/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tablet/tablet.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/tablet/tablet.proto |
3 | | |
4 | | #include "yb/tablet/tablet.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 tablet { |
25 | | class TabletStatusPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<TabletStatusPB> |
28 | | _instance; |
29 | | } _TabletStatusPB_default_instance_; |
30 | | class MaintenanceManagerStatusPB_MaintenanceOpPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<MaintenanceManagerStatusPB_MaintenanceOpPB> |
33 | | _instance; |
34 | | } _MaintenanceManagerStatusPB_MaintenanceOpPB_default_instance_; |
35 | | class MaintenanceManagerStatusPB_CompletedOpPBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<MaintenanceManagerStatusPB_CompletedOpPB> |
38 | | _instance; |
39 | | } _MaintenanceManagerStatusPB_CompletedOpPB_default_instance_; |
40 | | class MaintenanceManagerStatusPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<MaintenanceManagerStatusPB> |
43 | | _instance; |
44 | | } _MaintenanceManagerStatusPB_default_instance_; |
45 | | } // namespace tablet |
46 | | } // namespace yb |
47 | | namespace protobuf_yb_2ftablet_2ftablet_2eproto { |
48 | 15.8k | void InitDefaultsTabletStatusPBImpl() { |
49 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
50 | | |
51 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
52 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
53 | | #else |
54 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
55 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
56 | 15.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB(); |
57 | 15.8k | { |
58 | 15.8k | void* ptr = &::yb::tablet::_TabletStatusPB_default_instance_; |
59 | 15.8k | new (ptr) ::yb::tablet::TabletStatusPB(); |
60 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
61 | 15.8k | } |
62 | 15.8k | ::yb::tablet::TabletStatusPB::InitAsDefaultInstance(); |
63 | 15.8k | } |
64 | | |
65 | 58.0k | void InitDefaultsTabletStatusPB() { |
66 | 58.0k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
67 | 58.0k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletStatusPBImpl); |
68 | 58.0k | } |
69 | | |
70 | 15.8k | void InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPBImpl() { |
71 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
72 | | |
73 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
74 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
75 | | #else |
76 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
77 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
78 | 15.8k | { |
79 | 15.8k | void* ptr = &::yb::tablet::_MaintenanceManagerStatusPB_MaintenanceOpPB_default_instance_; |
80 | 15.8k | new (ptr) ::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB(); |
81 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
82 | 15.8k | } |
83 | 15.8k | ::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB::InitAsDefaultInstance(); |
84 | 15.8k | } |
85 | | |
86 | 31.6k | void InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPB() { |
87 | 31.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
88 | 31.6k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPBImpl); |
89 | 31.6k | } |
90 | | |
91 | 15.8k | void InitDefaultsMaintenanceManagerStatusPB_CompletedOpPBImpl() { |
92 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
93 | | |
94 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
95 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
96 | | #else |
97 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
98 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
99 | 15.8k | { |
100 | 15.8k | void* ptr = &::yb::tablet::_MaintenanceManagerStatusPB_CompletedOpPB_default_instance_; |
101 | 15.8k | new (ptr) ::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB(); |
102 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
103 | 15.8k | } |
104 | 15.8k | ::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB::InitAsDefaultInstance(); |
105 | 15.8k | } |
106 | | |
107 | 31.6k | void InitDefaultsMaintenanceManagerStatusPB_CompletedOpPB() { |
108 | 31.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
109 | 31.6k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMaintenanceManagerStatusPB_CompletedOpPBImpl); |
110 | 31.6k | } |
111 | | |
112 | 15.8k | void InitDefaultsMaintenanceManagerStatusPBImpl() { |
113 | 15.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
114 | | |
115 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
116 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
117 | | #else |
118 | 15.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
119 | 15.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
120 | 15.8k | protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPB(); |
121 | 15.8k | protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_CompletedOpPB(); |
122 | 15.8k | { |
123 | 15.8k | void* ptr = &::yb::tablet::_MaintenanceManagerStatusPB_default_instance_; |
124 | 15.8k | new (ptr) ::yb::tablet::MaintenanceManagerStatusPB(); |
125 | 15.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
126 | 15.8k | } |
127 | 15.8k | ::yb::tablet::MaintenanceManagerStatusPB::InitAsDefaultInstance(); |
128 | 15.8k | } |
129 | | |
130 | 15.8k | void InitDefaultsMaintenanceManagerStatusPB() { |
131 | 15.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
132 | 15.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMaintenanceManagerStatusPBImpl); |
133 | 15.8k | } |
134 | | |
135 | | ::google::protobuf::Metadata file_level_metadata[4]; |
136 | | |
137 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
138 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, _has_bits_), |
139 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, _internal_metadata_), |
140 | | ~0u, // no _extensions_ |
141 | | ~0u, // no _oneof_case_ |
142 | | ~0u, // no _weak_field_map_ |
143 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, tablet_id_), |
144 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, namespace_name_), |
145 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, table_name_), |
146 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, table_id_), |
147 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, state_), |
148 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, tablet_data_state_), |
149 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, last_status_), |
150 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, start_key_), |
151 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, end_key_), |
152 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, estimated_on_disk_size_), |
153 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, consensus_metadata_disk_size_), |
154 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, wal_files_disk_size_), |
155 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, sst_files_disk_size_), |
156 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, uncompressed_sst_files_disk_size_), |
157 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, partition_), |
158 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, table_type_), |
159 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TabletStatusPB, is_hidden_), |
160 | | 0, |
161 | | 6, |
162 | | 1, |
163 | | 5, |
164 | | 15, |
165 | | 16, |
166 | | 2, |
167 | | 3, |
168 | | 4, |
169 | | 8, |
170 | | 9, |
171 | | 10, |
172 | | 11, |
173 | | 12, |
174 | | 7, |
175 | | 14, |
176 | | 13, |
177 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, _has_bits_), |
178 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, _internal_metadata_), |
179 | | ~0u, // no _extensions_ |
180 | | ~0u, // no _oneof_case_ |
181 | | ~0u, // no _weak_field_map_ |
182 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, name_), |
183 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, running_), |
184 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, runnable_), |
185 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, ram_anchored_bytes_), |
186 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, logs_retained_bytes_), |
187 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB, perf_improvement_), |
188 | | 0, |
189 | | 1, |
190 | | 2, |
191 | | 3, |
192 | | 4, |
193 | | 5, |
194 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB, _has_bits_), |
195 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB, _internal_metadata_), |
196 | | ~0u, // no _extensions_ |
197 | | ~0u, // no _oneof_case_ |
198 | | ~0u, // no _weak_field_map_ |
199 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB, name_), |
200 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB, duration_millis_), |
201 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB, secs_since_start_), |
202 | | 0, |
203 | | 1, |
204 | | 2, |
205 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB, _has_bits_), |
206 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB, _internal_metadata_), |
207 | | ~0u, // no _extensions_ |
208 | | ~0u, // no _oneof_case_ |
209 | | ~0u, // no _weak_field_map_ |
210 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB, best_op_), |
211 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB, registered_operations_), |
212 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::MaintenanceManagerStatusPB, completed_operations_), |
213 | | 0, |
214 | | ~0u, |
215 | | ~0u, |
216 | | }; |
217 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
218 | | { 0, 22, sizeof(::yb::tablet::TabletStatusPB)}, |
219 | | { 39, 50, sizeof(::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB)}, |
220 | | { 56, 64, sizeof(::yb::tablet::MaintenanceManagerStatusPB_CompletedOpPB)}, |
221 | | { 67, 75, sizeof(::yb::tablet::MaintenanceManagerStatusPB)}, |
222 | | }; |
223 | | |
224 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
225 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_TabletStatusPB_default_instance_), |
226 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_MaintenanceManagerStatusPB_MaintenanceOpPB_default_instance_), |
227 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_MaintenanceManagerStatusPB_CompletedOpPB_default_instance_), |
228 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_MaintenanceManagerStatusPB_default_instance_), |
229 | | }; |
230 | | |
231 | 0 | void protobuf_AssignDescriptors() { |
232 | 0 | AddDescriptors(); |
233 | 0 | ::google::protobuf::MessageFactory* factory = NULL; |
234 | 0 | AssignDescriptors( |
235 | 0 | "yb/tablet/tablet.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
236 | 0 | file_level_metadata, NULL, NULL); |
237 | 0 | } |
238 | | |
239 | 0 | void protobuf_AssignDescriptorsOnce() { |
240 | 0 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
241 | 0 | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
242 | 0 | } |
243 | | |
244 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
245 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
246 | 0 | protobuf_AssignDescriptorsOnce(); |
247 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); |
248 | 0 | } |
249 | | |
250 | 15.8k | void AddDescriptorsImpl() { |
251 | 15.8k | InitDefaults(); |
252 | 15.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
253 | 15.8k | "\n\026yb/tablet/tablet.proto\022\tyb.tablet\032\026yb/" |
254 | 15.8k | "common/common.proto\032\034yb/common/common_ty" |
255 | 15.8k | "pes.proto\032\034yb/tablet/tablet_types.proto\"" |
256 | 15.8k | "\237\004\n\016TabletStatusPB\022\021\n\ttablet_id\030\001 \002(\t\022\026\n" |
257 | 15.8k | "\016namespace_name\030\017 \001(\t\022\022\n\ntable_name\030\002 \002(" |
258 | 15.8k | "\t\022\020\n\010table_id\030\n \002(\t\0223\n\005state\030\003 \001(\0162\033.yb." |
259 | 15.8k | "tablet.RaftGroupStatePB:\007UNKNOWN\022J\n\021tabl" |
260 | 15.8k | "et_data_state\030\010 \001(\0162\032.yb.tablet.TabletDa" |
261 | 15.8k | "taState:\023TABLET_DATA_UNKNOWN\022\023\n\013last_sta" |
262 | 15.8k | "tus\030\004 \002(\t\022\021\n\tstart_key\030\005 \001(\014\022\017\n\007end_key\030" |
263 | 15.8k | "\006 \001(\014\022\036\n\026estimated_on_disk_size\030\007 \001(\003\022$\n" |
264 | 15.8k | "\034consensus_metadata_disk_size\030\013 \001(\003\022\033\n\023w" |
265 | 15.8k | "al_files_disk_size\030\014 \001(\003\022\033\n\023sst_files_di" |
266 | 15.8k | "sk_size\030\r \001(\003\022(\n uncompressed_sst_files_" |
267 | 15.8k | "disk_size\030\016 \001(\003\022\"\n\tpartition\030\t \001(\0132\017.yb." |
268 | 15.8k | "PartitionPB\022!\n\ntable_type\030\020 \001(\0162\r.yb.Tab" |
269 | 15.8k | "leType\022\021\n\tis_hidden\030\021 \001(\010\"\367\003\n\032Maintenanc" |
270 | 15.8k | "eManagerStatusPB\022F\n\007best_op\030\001 \001(\01325.yb.t" |
271 | 15.8k | "ablet.MaintenanceManagerStatusPB.Mainten" |
272 | 15.8k | "anceOpPB\022T\n\025registered_operations\030\002 \003(\0132" |
273 | 15.8k | "5.yb.tablet.MaintenanceManagerStatusPB.M" |
274 | 15.8k | "aintenanceOpPB\022Q\n\024completed_operations\030\003" |
275 | 15.8k | " \003(\01323.yb.tablet.MaintenanceManagerStatu" |
276 | 15.8k | "sPB.CompletedOpPB\032\225\001\n\017MaintenanceOpPB\022\014\n" |
277 | 15.8k | "\004name\030\001 \002(\t\022\017\n\007running\030\002 \002(\r\022\020\n\010runnable" |
278 | 15.8k | "\030\003 \002(\010\022\032\n\022ram_anchored_bytes\030\004 \002(\004\022\033\n\023lo" |
279 | 15.8k | "gs_retained_bytes\030\005 \002(\003\022\030\n\020perf_improvem" |
280 | 15.8k | "ent\030\006 \002(\001\032P\n\rCompletedOpPB\022\014\n\004name\030\001 \002(\t" |
281 | 15.8k | "\022\027\n\017duration_millis\030\002 \002(\005\022\030\n\020secs_since_" |
282 | 15.8k | "start\030\003 \002(\005B\017\n\rorg.yb.tablet" |
283 | 15.8k | }; |
284 | 15.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
285 | 15.8k | descriptor, 1188); |
286 | 15.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
287 | 15.8k | "yb/tablet/tablet.proto", &protobuf_RegisterTypes); |
288 | 15.8k | ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors(); |
289 | 15.8k | ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors(); |
290 | 15.8k | ::protobuf_yb_2ftablet_2ftablet_5ftypes_2eproto::AddDescriptors(); |
291 | 15.8k | } |
292 | | |
293 | 31.6k | void AddDescriptors() { |
294 | 31.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
295 | 31.6k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
296 | 31.6k | } |
297 | | // Force AddDescriptors() to be called at dynamic initialization time. |
298 | | struct StaticDescriptorInitializer { |
299 | 15.8k | StaticDescriptorInitializer() { |
300 | 15.8k | AddDescriptors(); |
301 | 15.8k | } |
302 | | } static_descriptor_initializer; |
303 | | } // namespace protobuf_yb_2ftablet_2ftablet_2eproto |
304 | | namespace yb { |
305 | | namespace tablet { |
306 | | |
307 | | // =================================================================== |
308 | | |
309 | 15.8k | void TabletStatusPB::InitAsDefaultInstance() { |
310 | 15.8k | ::yb::tablet::_TabletStatusPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>( |
311 | 15.8k | ::yb::PartitionPB::internal_default_instance()); |
312 | 15.8k | } |
313 | 0 | void TabletStatusPB::clear_partition() { |
314 | 0 | if (partition_ != NULL) partition_->Clear(); |
315 | 0 | clear_has_partition(); |
316 | 0 | } |
317 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
318 | | const int TabletStatusPB::kTabletIdFieldNumber; |
319 | | const int TabletStatusPB::kNamespaceNameFieldNumber; |
320 | | const int TabletStatusPB::kTableNameFieldNumber; |
321 | | const int TabletStatusPB::kTableIdFieldNumber; |
322 | | const int TabletStatusPB::kStateFieldNumber; |
323 | | const int TabletStatusPB::kTabletDataStateFieldNumber; |
324 | | const int TabletStatusPB::kLastStatusFieldNumber; |
325 | | const int TabletStatusPB::kStartKeyFieldNumber; |
326 | | const int TabletStatusPB::kEndKeyFieldNumber; |
327 | | const int TabletStatusPB::kEstimatedOnDiskSizeFieldNumber; |
328 | | const int TabletStatusPB::kConsensusMetadataDiskSizeFieldNumber; |
329 | | const int TabletStatusPB::kWalFilesDiskSizeFieldNumber; |
330 | | const int TabletStatusPB::kSstFilesDiskSizeFieldNumber; |
331 | | const int TabletStatusPB::kUncompressedSstFilesDiskSizeFieldNumber; |
332 | | const int TabletStatusPB::kPartitionFieldNumber; |
333 | | const int TabletStatusPB::kTableTypeFieldNumber; |
334 | | const int TabletStatusPB::kIsHiddenFieldNumber; |
335 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
336 | | |
337 | | TabletStatusPB::TabletStatusPB() |
338 | 26.3k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
339 | 10.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
340 | 10.4k | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsTabletStatusPB(); |
341 | 10.4k | } |
342 | 26.3k | SharedCtor(); |
343 | | // @@protoc_insertion_point(constructor:yb.tablet.TabletStatusPB) |
344 | 26.3k | } |
345 | | TabletStatusPB::TabletStatusPB(const TabletStatusPB& from) |
346 | | : ::google::protobuf::Message(), |
347 | | _internal_metadata_(NULL), |
348 | | _has_bits_(from._has_bits_), |
349 | 3.06k | _cached_size_(0) { |
350 | 3.06k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
351 | 3.06k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
352 | 3.06k | if (from.has_tablet_id()) { |
353 | 3.06k | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
354 | 3.06k | } |
355 | 3.06k | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
356 | 3.06k | if (from.has_table_name()) { |
357 | 3.06k | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
358 | 3.06k | } |
359 | 3.06k | last_status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
360 | 3.06k | if (from.has_last_status()) { |
361 | 3.06k | last_status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_status_); |
362 | 3.06k | } |
363 | 3.06k | start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
364 | 3.06k | if (from.has_start_key()) { |
365 | 0 | start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_); |
366 | 0 | } |
367 | 3.06k | end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
368 | 3.06k | if (from.has_end_key()) { |
369 | 0 | end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_key_); |
370 | 0 | } |
371 | 3.06k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
372 | 3.06k | if (from.has_table_id()) { |
373 | 3.06k | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
374 | 3.06k | } |
375 | 3.06k | namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
376 | 3.06k | if (from.has_namespace_name()) { |
377 | 3.06k | namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_); |
378 | 3.06k | } |
379 | 3.06k | if (from.has_partition()) { |
380 | 3.06k | partition_ = new ::yb::PartitionPB(*from.partition_); |
381 | 0 | } else { |
382 | 0 | partition_ = NULL; |
383 | 0 | } |
384 | 3.06k | ::memcpy(&estimated_on_disk_size_, &from.estimated_on_disk_size_, |
385 | 3.06k | static_cast<size_t>(reinterpret_cast<char*>(&tablet_data_state_) - |
386 | 3.06k | reinterpret_cast<char*>(&estimated_on_disk_size_)) + sizeof(tablet_data_state_)); |
387 | | // @@protoc_insertion_point(copy_constructor:yb.tablet.TabletStatusPB) |
388 | 3.06k | } |
389 | | |
390 | 26.3k | void TabletStatusPB::SharedCtor() { |
391 | 26.3k | _cached_size_ = 0; |
392 | 26.3k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
393 | 26.3k | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
394 | 26.3k | last_status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
395 | 26.3k | start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
396 | 26.3k | end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
397 | 26.3k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
398 | 26.3k | namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
399 | 26.3k | ::memset(&partition_, 0, static_cast<size_t>( |
400 | 26.3k | reinterpret_cast<char*>(&is_hidden_) - |
401 | 26.3k | reinterpret_cast<char*>(&partition_)) + sizeof(is_hidden_)); |
402 | 26.3k | table_type_ = 2; |
403 | 26.3k | state_ = 999; |
404 | 26.3k | tablet_data_state_ = 999; |
405 | 26.3k | } |
406 | | |
407 | 13.5k | TabletStatusPB::~TabletStatusPB() { |
408 | | // @@protoc_insertion_point(destructor:yb.tablet.TabletStatusPB) |
409 | 13.5k | SharedDtor(); |
410 | 13.5k | } |
411 | | |
412 | 13.5k | void TabletStatusPB::SharedDtor() { |
413 | 13.5k | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
414 | 13.5k | table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
415 | 13.5k | last_status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
416 | 13.5k | start_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
417 | 13.5k | end_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
418 | 13.5k | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
419 | 13.5k | namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
420 | 13.5k | if (this != internal_default_instance()) delete partition_; |
421 | 13.5k | } |
422 | | |
423 | 0 | void TabletStatusPB::SetCachedSize(int size) const { |
424 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
425 | 0 | _cached_size_ = size; |
426 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
427 | 0 | } |
428 | 0 | const ::google::protobuf::Descriptor* TabletStatusPB::descriptor() { |
429 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
430 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
431 | 0 | } |
432 | | |
433 | 0 | const TabletStatusPB& TabletStatusPB::default_instance() { |
434 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsTabletStatusPB(); |
435 | 0 | return *internal_default_instance(); |
436 | 0 | } |
437 | | |
438 | 0 | TabletStatusPB* TabletStatusPB::New(::google::protobuf::Arena* arena) const { |
439 | 0 | TabletStatusPB* n = new TabletStatusPB; |
440 | 0 | if (arena != NULL) { |
441 | 0 | arena->Own(n); |
442 | 0 | } |
443 | 0 | return n; |
444 | 0 | } |
445 | | |
446 | 0 | void TabletStatusPB::Clear() { |
447 | | // @@protoc_insertion_point(message_clear_start:yb.tablet.TabletStatusPB) |
448 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
449 | | // Prevent compiler warnings about cached_has_bits being unused |
450 | 0 | (void) cached_has_bits; |
451 | |
|
452 | 0 | cached_has_bits = _has_bits_[0]; |
453 | 0 | if (cached_has_bits & 255u) { |
454 | 0 | if (cached_has_bits & 0x00000001u) { |
455 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
456 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
457 | 0 | } |
458 | 0 | if (cached_has_bits & 0x00000002u) { |
459 | 0 | GOOGLE_DCHECK(!table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
460 | 0 | (*table_name_.UnsafeRawStringPointer())->clear(); |
461 | 0 | } |
462 | 0 | if (cached_has_bits & 0x00000004u) { |
463 | 0 | GOOGLE_DCHECK(!last_status_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
464 | 0 | (*last_status_.UnsafeRawStringPointer())->clear(); |
465 | 0 | } |
466 | 0 | if (cached_has_bits & 0x00000008u) { |
467 | 0 | GOOGLE_DCHECK(!start_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
468 | 0 | (*start_key_.UnsafeRawStringPointer())->clear(); |
469 | 0 | } |
470 | 0 | if (cached_has_bits & 0x00000010u) { |
471 | 0 | GOOGLE_DCHECK(!end_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
472 | 0 | (*end_key_.UnsafeRawStringPointer())->clear(); |
473 | 0 | } |
474 | 0 | if (cached_has_bits & 0x00000020u) { |
475 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
476 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
477 | 0 | } |
478 | 0 | if (cached_has_bits & 0x00000040u) { |
479 | 0 | GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
480 | 0 | (*namespace_name_.UnsafeRawStringPointer())->clear(); |
481 | 0 | } |
482 | 0 | if (cached_has_bits & 0x00000080u) { |
483 | 0 | GOOGLE_DCHECK(partition_ != NULL); |
484 | 0 | partition_->Clear(); |
485 | 0 | } |
486 | 0 | } |
487 | 0 | if (cached_has_bits & 65280u) { |
488 | 0 | ::memset(&estimated_on_disk_size_, 0, static_cast<size_t>( |
489 | 0 | reinterpret_cast<char*>(&is_hidden_) - |
490 | 0 | reinterpret_cast<char*>(&estimated_on_disk_size_)) + sizeof(is_hidden_)); |
491 | 0 | table_type_ = 2; |
492 | 0 | state_ = 999; |
493 | 0 | } |
494 | 0 | tablet_data_state_ = 999; |
495 | 0 | _has_bits_.Clear(); |
496 | 0 | _internal_metadata_.Clear(); |
497 | 0 | } |
498 | | |
499 | | bool TabletStatusPB::MergePartialFromCodedStream( |
500 | 3.14k | ::google::protobuf::io::CodedInputStream* input) { |
501 | 47.1k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
502 | 3.14k | ::google::protobuf::uint32 tag; |
503 | | // @@protoc_insertion_point(parse_start:yb.tablet.TabletStatusPB) |
504 | 50.2k | for (;;) { |
505 | 50.2k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
506 | 50.2k | tag = p.first; |
507 | 50.2k | if (!p.second) goto handle_unusual; |
508 | 47.1k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
509 | | // required string tablet_id = 1; |
510 | 3.14k | case 1: { |
511 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
512 | 3.14k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
513 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
514 | 3.14k | input, this->mutable_tablet_id())); |
515 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
516 | 3.14k | this->tablet_id().data(), static_cast<int>(this->tablet_id().length()), |
517 | 3.14k | ::google::protobuf::internal::WireFormat::PARSE, |
518 | 3.14k | "yb.tablet.TabletStatusPB.tablet_id"); |
519 | 0 | } else { |
520 | 0 | goto handle_unusual; |
521 | 0 | } |
522 | 3.14k | break; |
523 | 3.14k | } |
524 | | |
525 | | // required string table_name = 2; |
526 | 3.14k | case 2: { |
527 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
528 | 3.14k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
529 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
530 | 3.14k | input, this->mutable_table_name())); |
531 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
532 | 3.14k | this->table_name().data(), static_cast<int>(this->table_name().length()), |
533 | 3.14k | ::google::protobuf::internal::WireFormat::PARSE, |
534 | 3.14k | "yb.tablet.TabletStatusPB.table_name"); |
535 | 0 | } else { |
536 | 0 | goto handle_unusual; |
537 | 0 | } |
538 | 3.14k | break; |
539 | 3.14k | } |
540 | | |
541 | | // optional .yb.tablet.RaftGroupStatePB state = 3 [default = UNKNOWN]; |
542 | 3.14k | case 3: { |
543 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
544 | 3.14k | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
545 | 3.14k | int value; |
546 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
547 | 3.14k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
548 | 3.14k | input, &value))); |
549 | 3.14k | if (::yb::tablet::RaftGroupStatePB_IsValid(value)) { |
550 | 3.14k | set_state(static_cast< ::yb::tablet::RaftGroupStatePB >(value)); |
551 | 0 | } else { |
552 | 0 | mutable_unknown_fields()->AddVarint( |
553 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
554 | 0 | } |
555 | 0 | } else { |
556 | 0 | goto handle_unusual; |
557 | 0 | } |
558 | 3.14k | break; |
559 | 3.14k | } |
560 | | |
561 | | // required string last_status = 4; |
562 | 3.14k | case 4: { |
563 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
564 | 3.14k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
565 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
566 | 3.14k | input, this->mutable_last_status())); |
567 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
568 | 3.14k | this->last_status().data(), static_cast<int>(this->last_status().length()), |
569 | 3.14k | ::google::protobuf::internal::WireFormat::PARSE, |
570 | 3.14k | "yb.tablet.TabletStatusPB.last_status"); |
571 | 0 | } else { |
572 | 0 | goto handle_unusual; |
573 | 0 | } |
574 | 3.14k | break; |
575 | 3.14k | } |
576 | | |
577 | | // optional bytes start_key = 5; |
578 | 0 | case 5: { |
579 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
580 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
581 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
582 | 0 | input, this->mutable_start_key())); |
583 | 0 | } else { |
584 | 0 | goto handle_unusual; |
585 | 0 | } |
586 | 0 | break; |
587 | 0 | } |
588 | | |
589 | | // optional bytes end_key = 6; |
590 | 0 | case 6: { |
591 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
592 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
593 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
594 | 0 | input, this->mutable_end_key())); |
595 | 0 | } else { |
596 | 0 | goto handle_unusual; |
597 | 0 | } |
598 | 0 | break; |
599 | 0 | } |
600 | | |
601 | | // optional int64 estimated_on_disk_size = 7; |
602 | 3.14k | case 7: { |
603 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
604 | 3.14k | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
605 | 3.14k | set_has_estimated_on_disk_size(); |
606 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
607 | 3.14k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
608 | 3.14k | input, &estimated_on_disk_size_))); |
609 | 0 | } else { |
610 | 0 | goto handle_unusual; |
611 | 0 | } |
612 | 3.14k | break; |
613 | 3.14k | } |
614 | | |
615 | | // optional .yb.tablet.TabletDataState tablet_data_state = 8 [default = TABLET_DATA_UNKNOWN]; |
616 | 3.14k | case 8: { |
617 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
618 | 3.14k | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
619 | 3.14k | int value; |
620 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
621 | 3.14k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
622 | 3.14k | input, &value))); |
623 | 3.14k | if (::yb::tablet::TabletDataState_IsValid(value)) { |
624 | 3.14k | set_tablet_data_state(static_cast< ::yb::tablet::TabletDataState >(value)); |
625 | 0 | } else { |
626 | 0 | mutable_unknown_fields()->AddVarint( |
627 | 0 | 8, static_cast< ::google::protobuf::uint64>(value)); |
628 | 0 | } |
629 | 0 | } else { |
630 | 0 | goto handle_unusual; |
631 | 0 | } |
632 | 3.14k | break; |
633 | 3.14k | } |
634 | | |
635 | | // optional .yb.PartitionPB partition = 9; |
636 | 3.14k | case 9: { |
637 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
638 | 3.14k | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
639 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
640 | 3.14k | input, mutable_partition())); |
641 | 0 | } else { |
642 | 0 | goto handle_unusual; |
643 | 0 | } |
644 | 3.14k | break; |
645 | 3.14k | } |
646 | | |
647 | | // required string table_id = 10; |
648 | 3.14k | case 10: { |
649 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
650 | 3.14k | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
651 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
652 | 3.14k | input, this->mutable_table_id())); |
653 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
654 | 3.14k | this->table_id().data(), static_cast<int>(this->table_id().length()), |
655 | 3.14k | ::google::protobuf::internal::WireFormat::PARSE, |
656 | 3.14k | "yb.tablet.TabletStatusPB.table_id"); |
657 | 0 | } else { |
658 | 0 | goto handle_unusual; |
659 | 0 | } |
660 | 3.14k | break; |
661 | 3.14k | } |
662 | | |
663 | | // optional int64 consensus_metadata_disk_size = 11; |
664 | 3.14k | case 11: { |
665 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
666 | 3.14k | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
667 | 3.14k | set_has_consensus_metadata_disk_size(); |
668 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
669 | 3.14k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
670 | 3.14k | input, &consensus_metadata_disk_size_))); |
671 | 0 | } else { |
672 | 0 | goto handle_unusual; |
673 | 0 | } |
674 | 3.14k | break; |
675 | 3.14k | } |
676 | | |
677 | | // optional int64 wal_files_disk_size = 12; |
678 | 3.14k | case 12: { |
679 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
680 | 3.14k | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
681 | 3.14k | set_has_wal_files_disk_size(); |
682 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
683 | 3.14k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
684 | 3.14k | input, &wal_files_disk_size_))); |
685 | 0 | } else { |
686 | 0 | goto handle_unusual; |
687 | 0 | } |
688 | 3.14k | break; |
689 | 3.14k | } |
690 | | |
691 | | // optional int64 sst_files_disk_size = 13; |
692 | 3.14k | case 13: { |
693 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
694 | 3.14k | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
695 | 3.14k | set_has_sst_files_disk_size(); |
696 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
697 | 3.14k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
698 | 3.14k | input, &sst_files_disk_size_))); |
699 | 0 | } else { |
700 | 0 | goto handle_unusual; |
701 | 0 | } |
702 | 3.14k | break; |
703 | 3.14k | } |
704 | | |
705 | | // optional int64 uncompressed_sst_files_disk_size = 14; |
706 | 3.14k | case 14: { |
707 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
708 | 3.14k | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
709 | 3.14k | set_has_uncompressed_sst_files_disk_size(); |
710 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
711 | 3.14k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
712 | 3.14k | input, &uncompressed_sst_files_disk_size_))); |
713 | 0 | } else { |
714 | 0 | goto handle_unusual; |
715 | 0 | } |
716 | 3.14k | break; |
717 | 3.14k | } |
718 | | |
719 | | // optional string namespace_name = 15; |
720 | 3.14k | case 15: { |
721 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
722 | 3.14k | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
723 | 3.14k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
724 | 3.14k | input, this->mutable_namespace_name())); |
725 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
726 | 3.14k | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
727 | 3.14k | ::google::protobuf::internal::WireFormat::PARSE, |
728 | 3.14k | "yb.tablet.TabletStatusPB.namespace_name"); |
729 | 0 | } else { |
730 | 0 | goto handle_unusual; |
731 | 0 | } |
732 | 3.14k | break; |
733 | 3.14k | } |
734 | | |
735 | | // optional .yb.TableType table_type = 16; |
736 | 3.14k | case 16: { |
737 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
738 | 3.14k | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
739 | 3.14k | int value; |
740 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
741 | 3.14k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
742 | 3.14k | input, &value))); |
743 | 3.14k | if (::yb::TableType_IsValid(value)) { |
744 | 3.14k | set_table_type(static_cast< ::yb::TableType >(value)); |
745 | 0 | } else { |
746 | 0 | mutable_unknown_fields()->AddVarint( |
747 | 0 | 16, static_cast< ::google::protobuf::uint64>(value)); |
748 | 0 | } |
749 | 0 | } else { |
750 | 0 | goto handle_unusual; |
751 | 0 | } |
752 | 3.14k | break; |
753 | 3.14k | } |
754 | | |
755 | | // optional bool is_hidden = 17; |
756 | 3.14k | case 17: { |
757 | 3.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
758 | 3.14k | static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { |
759 | 3.14k | set_has_is_hidden(); |
760 | 3.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
761 | 3.14k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
762 | 3.14k | input, &is_hidden_))); |
763 | 0 | } else { |
764 | 0 | goto handle_unusual; |
765 | 0 | } |
766 | 3.14k | break; |
767 | 3.14k | } |
768 | | |
769 | 0 | default: { |
770 | 3.14k | handle_unusual: |
771 | 3.14k | if (tag == 0) { |
772 | 3.14k | goto success; |
773 | 3.14k | } |
774 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
775 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
776 | 0 | break; |
777 | 0 | } |
778 | 47.1k | } |
779 | 47.1k | } |
780 | 3.14k | success: |
781 | | // @@protoc_insertion_point(parse_success:yb.tablet.TabletStatusPB) |
782 | 3.14k | return true; |
783 | 0 | failure: |
784 | | // @@protoc_insertion_point(parse_failure:yb.tablet.TabletStatusPB) |
785 | 0 | return false; |
786 | 3.14k | #undef DO_ |
787 | 3.14k | } |
788 | | |
789 | | void TabletStatusPB::SerializeWithCachedSizes( |
790 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
791 | | // @@protoc_insertion_point(serialize_start:yb.tablet.TabletStatusPB) |
792 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
793 | 0 | (void) cached_has_bits; |
794 | |
|
795 | 0 | cached_has_bits = _has_bits_[0]; |
796 | | // required string tablet_id = 1; |
797 | 0 | if (cached_has_bits & 0x00000001u) { |
798 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
799 | 0 | this->tablet_id().data(), static_cast<int>(this->tablet_id().length()), |
800 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
801 | 0 | "yb.tablet.TabletStatusPB.tablet_id"); |
802 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
803 | 0 | 1, this->tablet_id(), output); |
804 | 0 | } |
805 | | |
806 | | // required string table_name = 2; |
807 | 0 | if (cached_has_bits & 0x00000002u) { |
808 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
809 | 0 | this->table_name().data(), static_cast<int>(this->table_name().length()), |
810 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
811 | 0 | "yb.tablet.TabletStatusPB.table_name"); |
812 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
813 | 0 | 2, this->table_name(), output); |
814 | 0 | } |
815 | | |
816 | | // optional .yb.tablet.RaftGroupStatePB state = 3 [default = UNKNOWN]; |
817 | 0 | if (cached_has_bits & 0x00008000u) { |
818 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
819 | 0 | 3, this->state(), output); |
820 | 0 | } |
821 | | |
822 | | // required string last_status = 4; |
823 | 0 | if (cached_has_bits & 0x00000004u) { |
824 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
825 | 0 | this->last_status().data(), static_cast<int>(this->last_status().length()), |
826 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
827 | 0 | "yb.tablet.TabletStatusPB.last_status"); |
828 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
829 | 0 | 4, this->last_status(), output); |
830 | 0 | } |
831 | | |
832 | | // optional bytes start_key = 5; |
833 | 0 | if (cached_has_bits & 0x00000008u) { |
834 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
835 | 0 | 5, this->start_key(), output); |
836 | 0 | } |
837 | | |
838 | | // optional bytes end_key = 6; |
839 | 0 | if (cached_has_bits & 0x00000010u) { |
840 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
841 | 0 | 6, this->end_key(), output); |
842 | 0 | } |
843 | | |
844 | | // optional int64 estimated_on_disk_size = 7; |
845 | 0 | if (cached_has_bits & 0x00000100u) { |
846 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->estimated_on_disk_size(), output); |
847 | 0 | } |
848 | | |
849 | | // optional .yb.tablet.TabletDataState tablet_data_state = 8 [default = TABLET_DATA_UNKNOWN]; |
850 | 0 | if (cached_has_bits & 0x00010000u) { |
851 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
852 | 0 | 8, this->tablet_data_state(), output); |
853 | 0 | } |
854 | | |
855 | | // optional .yb.PartitionPB partition = 9; |
856 | 0 | if (cached_has_bits & 0x00000080u) { |
857 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
858 | 0 | 9, *this->partition_, output); |
859 | 0 | } |
860 | | |
861 | | // required string table_id = 10; |
862 | 0 | if (cached_has_bits & 0x00000020u) { |
863 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
864 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
865 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
866 | 0 | "yb.tablet.TabletStatusPB.table_id"); |
867 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
868 | 0 | 10, this->table_id(), output); |
869 | 0 | } |
870 | | |
871 | | // optional int64 consensus_metadata_disk_size = 11; |
872 | 0 | if (cached_has_bits & 0x00000200u) { |
873 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->consensus_metadata_disk_size(), output); |
874 | 0 | } |
875 | | |
876 | | // optional int64 wal_files_disk_size = 12; |
877 | 0 | if (cached_has_bits & 0x00000400u) { |
878 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->wal_files_disk_size(), output); |
879 | 0 | } |
880 | | |
881 | | // optional int64 sst_files_disk_size = 13; |
882 | 0 | if (cached_has_bits & 0x00000800u) { |
883 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(13, this->sst_files_disk_size(), output); |
884 | 0 | } |
885 | | |
886 | | // optional int64 uncompressed_sst_files_disk_size = 14; |
887 | 0 | if (cached_has_bits & 0x00001000u) { |
888 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(14, this->uncompressed_sst_files_disk_size(), output); |
889 | 0 | } |
890 | | |
891 | | // optional string namespace_name = 15; |
892 | 0 | if (cached_has_bits & 0x00000040u) { |
893 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
894 | 0 | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
895 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
896 | 0 | "yb.tablet.TabletStatusPB.namespace_name"); |
897 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
898 | 0 | 15, this->namespace_name(), output); |
899 | 0 | } |
900 | | |
901 | | // optional .yb.TableType table_type = 16; |
902 | 0 | if (cached_has_bits & 0x00004000u) { |
903 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
904 | 0 | 16, this->table_type(), output); |
905 | 0 | } |
906 | | |
907 | | // optional bool is_hidden = 17; |
908 | 0 | if (cached_has_bits & 0x00002000u) { |
909 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_hidden(), output); |
910 | 0 | } |
911 | |
|
912 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
913 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
914 | 0 | _internal_metadata_.unknown_fields(), output); |
915 | 0 | } |
916 | | // @@protoc_insertion_point(serialize_end:yb.tablet.TabletStatusPB) |
917 | 0 | } |
918 | | |
919 | | ::google::protobuf::uint8* TabletStatusPB::InternalSerializeWithCachedSizesToArray( |
920 | 3.14k | bool deterministic, ::google::protobuf::uint8* target) const { |
921 | 3.14k | (void)deterministic; // Unused |
922 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TabletStatusPB) |
923 | 3.14k | ::google::protobuf::uint32 cached_has_bits = 0; |
924 | 3.14k | (void) cached_has_bits; |
925 | | |
926 | 3.14k | cached_has_bits = _has_bits_[0]; |
927 | | // required string tablet_id = 1; |
928 | 3.14k | if (cached_has_bits & 0x00000001u) { |
929 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
930 | 3.14k | this->tablet_id().data(), static_cast<int>(this->tablet_id().length()), |
931 | 3.14k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
932 | 3.14k | "yb.tablet.TabletStatusPB.tablet_id"); |
933 | 3.14k | target = |
934 | 3.14k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
935 | 3.14k | 1, this->tablet_id(), target); |
936 | 3.14k | } |
937 | | |
938 | | // required string table_name = 2; |
939 | 3.14k | if (cached_has_bits & 0x00000002u) { |
940 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
941 | 3.14k | this->table_name().data(), static_cast<int>(this->table_name().length()), |
942 | 3.14k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
943 | 3.14k | "yb.tablet.TabletStatusPB.table_name"); |
944 | 3.14k | target = |
945 | 3.14k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
946 | 3.14k | 2, this->table_name(), target); |
947 | 3.14k | } |
948 | | |
949 | | // optional .yb.tablet.RaftGroupStatePB state = 3 [default = UNKNOWN]; |
950 | 3.14k | if (cached_has_bits & 0x00008000u) { |
951 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
952 | 3.14k | 3, this->state(), target); |
953 | 3.14k | } |
954 | | |
955 | | // required string last_status = 4; |
956 | 3.14k | if (cached_has_bits & 0x00000004u) { |
957 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
958 | 3.14k | this->last_status().data(), static_cast<int>(this->last_status().length()), |
959 | 3.14k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
960 | 3.14k | "yb.tablet.TabletStatusPB.last_status"); |
961 | 3.14k | target = |
962 | 3.14k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
963 | 3.14k | 4, this->last_status(), target); |
964 | 3.14k | } |
965 | | |
966 | | // optional bytes start_key = 5; |
967 | 3.14k | if (cached_has_bits & 0x00000008u) { |
968 | 0 | target = |
969 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
970 | 0 | 5, this->start_key(), target); |
971 | 0 | } |
972 | | |
973 | | // optional bytes end_key = 6; |
974 | 3.14k | if (cached_has_bits & 0x00000010u) { |
975 | 0 | target = |
976 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
977 | 0 | 6, this->end_key(), target); |
978 | 0 | } |
979 | | |
980 | | // optional int64 estimated_on_disk_size = 7; |
981 | 3.14k | if (cached_has_bits & 0x00000100u) { |
982 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->estimated_on_disk_size(), target); |
983 | 3.14k | } |
984 | | |
985 | | // optional .yb.tablet.TabletDataState tablet_data_state = 8 [default = TABLET_DATA_UNKNOWN]; |
986 | 3.14k | if (cached_has_bits & 0x00010000u) { |
987 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
988 | 3.14k | 8, this->tablet_data_state(), target); |
989 | 3.14k | } |
990 | | |
991 | | // optional .yb.PartitionPB partition = 9; |
992 | 3.14k | if (cached_has_bits & 0x00000080u) { |
993 | 3.14k | target = ::google::protobuf::internal::WireFormatLite:: |
994 | 3.14k | InternalWriteMessageToArray( |
995 | 3.14k | 9, *this->partition_, deterministic, target); |
996 | 3.14k | } |
997 | | |
998 | | // required string table_id = 10; |
999 | 3.14k | if (cached_has_bits & 0x00000020u) { |
1000 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1001 | 3.14k | this->table_id().data(), static_cast<int>(this->table_id().length()), |
1002 | 3.14k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1003 | 3.14k | "yb.tablet.TabletStatusPB.table_id"); |
1004 | 3.14k | target = |
1005 | 3.14k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1006 | 3.14k | 10, this->table_id(), target); |
1007 | 3.14k | } |
1008 | | |
1009 | | // optional int64 consensus_metadata_disk_size = 11; |
1010 | 3.14k | if (cached_has_bits & 0x00000200u) { |
1011 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->consensus_metadata_disk_size(), target); |
1012 | 3.14k | } |
1013 | | |
1014 | | // optional int64 wal_files_disk_size = 12; |
1015 | 3.14k | if (cached_has_bits & 0x00000400u) { |
1016 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->wal_files_disk_size(), target); |
1017 | 3.14k | } |
1018 | | |
1019 | | // optional int64 sst_files_disk_size = 13; |
1020 | 3.14k | if (cached_has_bits & 0x00000800u) { |
1021 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(13, this->sst_files_disk_size(), target); |
1022 | 3.14k | } |
1023 | | |
1024 | | // optional int64 uncompressed_sst_files_disk_size = 14; |
1025 | 3.14k | if (cached_has_bits & 0x00001000u) { |
1026 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(14, this->uncompressed_sst_files_disk_size(), target); |
1027 | 3.14k | } |
1028 | | |
1029 | | // optional string namespace_name = 15; |
1030 | 3.14k | if (cached_has_bits & 0x00000040u) { |
1031 | 3.14k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1032 | 3.14k | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
1033 | 3.14k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1034 | 3.14k | "yb.tablet.TabletStatusPB.namespace_name"); |
1035 | 3.14k | target = |
1036 | 3.14k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1037 | 3.14k | 15, this->namespace_name(), target); |
1038 | 3.14k | } |
1039 | | |
1040 | | // optional .yb.TableType table_type = 16; |
1041 | 3.14k | if (cached_has_bits & 0x00004000u) { |
1042 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
1043 | 3.14k | 16, this->table_type(), target); |
1044 | 3.14k | } |
1045 | | |
1046 | | // optional bool is_hidden = 17; |
1047 | 3.14k | if (cached_has_bits & 0x00002000u) { |
1048 | 3.14k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_hidden(), target); |
1049 | 3.14k | } |
1050 | | |
1051 | 3.14k | if (_internal_metadata_.have_unknown_fields()) { |
1052 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1053 | 0 | _internal_metadata_.unknown_fields(), target); |
1054 | 0 | } |
1055 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.TabletStatusPB) |
1056 | 3.14k | return target; |
1057 | 3.14k | } |
1058 | | |
1059 | 0 | size_t TabletStatusPB::RequiredFieldsByteSizeFallback() const { |
1060 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tablet.TabletStatusPB) |
1061 | 0 | size_t total_size = 0; |
1062 | |
|
1063 | 0 | if (has_tablet_id()) { |
1064 | | // required string tablet_id = 1; |
1065 | 0 | total_size += 1 + |
1066 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1067 | 0 | this->tablet_id()); |
1068 | 0 | } |
1069 | |
|
1070 | 0 | if (has_table_name()) { |
1071 | | // required string table_name = 2; |
1072 | 0 | total_size += 1 + |
1073 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1074 | 0 | this->table_name()); |
1075 | 0 | } |
1076 | |
|
1077 | 0 | if (has_last_status()) { |
1078 | | // required string last_status = 4; |
1079 | 0 | total_size += 1 + |
1080 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1081 | 0 | this->last_status()); |
1082 | 0 | } |
1083 | |
|
1084 | 0 | if (has_table_id()) { |
1085 | | // required string table_id = 10; |
1086 | 0 | total_size += 1 + |
1087 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1088 | 0 | this->table_id()); |
1089 | 0 | } |
1090 | |
|
1091 | 0 | return total_size; |
1092 | 0 | } |
1093 | 6.28k | size_t TabletStatusPB::ByteSizeLong() const { |
1094 | | // @@protoc_insertion_point(message_byte_size_start:yb.tablet.TabletStatusPB) |
1095 | 6.28k | size_t total_size = 0; |
1096 | | |
1097 | 6.28k | if (_internal_metadata_.have_unknown_fields()) { |
1098 | 0 | total_size += |
1099 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1100 | 0 | _internal_metadata_.unknown_fields()); |
1101 | 0 | } |
1102 | 6.28k | if (((_has_bits_[0] & 0x00000027) ^ 0x00000027) == 0) { // All required fields are present. |
1103 | | // required string tablet_id = 1; |
1104 | 6.28k | total_size += 1 + |
1105 | 6.28k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1106 | 6.28k | this->tablet_id()); |
1107 | | |
1108 | | // required string table_name = 2; |
1109 | 6.28k | total_size += 1 + |
1110 | 6.28k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1111 | 6.28k | this->table_name()); |
1112 | | |
1113 | | // required string last_status = 4; |
1114 | 6.28k | total_size += 1 + |
1115 | 6.28k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1116 | 6.28k | this->last_status()); |
1117 | | |
1118 | | // required string table_id = 10; |
1119 | 6.28k | total_size += 1 + |
1120 | 6.28k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1121 | 6.28k | this->table_id()); |
1122 | | |
1123 | 0 | } else { |
1124 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
1125 | 0 | } |
1126 | 6.28k | if (_has_bits_[0 / 32] & 24u) { |
1127 | | // optional bytes start_key = 5; |
1128 | 0 | if (has_start_key()) { |
1129 | 0 | total_size += 1 + |
1130 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1131 | 0 | this->start_key()); |
1132 | 0 | } |
1133 | | |
1134 | | // optional bytes end_key = 6; |
1135 | 0 | if (has_end_key()) { |
1136 | 0 | total_size += 1 + |
1137 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1138 | 0 | this->end_key()); |
1139 | 0 | } |
1140 | |
|
1141 | 0 | } |
1142 | 6.28k | if (_has_bits_[0 / 32] & 192u) { |
1143 | | // optional string namespace_name = 15; |
1144 | 6.28k | if (has_namespace_name()) { |
1145 | 6.28k | total_size += 1 + |
1146 | 6.28k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1147 | 6.28k | this->namespace_name()); |
1148 | 6.28k | } |
1149 | | |
1150 | | // optional .yb.PartitionPB partition = 9; |
1151 | 6.28k | if (has_partition()) { |
1152 | 6.28k | total_size += 1 + |
1153 | 6.28k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1154 | 6.28k | *this->partition_); |
1155 | 6.28k | } |
1156 | | |
1157 | 6.28k | } |
1158 | 6.28k | if (_has_bits_[8 / 32] & 65280u) { |
1159 | | // optional int64 estimated_on_disk_size = 7; |
1160 | 6.28k | if (has_estimated_on_disk_size()) { |
1161 | 6.28k | total_size += 1 + |
1162 | 6.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1163 | 6.28k | this->estimated_on_disk_size()); |
1164 | 6.28k | } |
1165 | | |
1166 | | // optional int64 consensus_metadata_disk_size = 11; |
1167 | 6.28k | if (has_consensus_metadata_disk_size()) { |
1168 | 6.28k | total_size += 1 + |
1169 | 6.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1170 | 6.28k | this->consensus_metadata_disk_size()); |
1171 | 6.28k | } |
1172 | | |
1173 | | // optional int64 wal_files_disk_size = 12; |
1174 | 6.28k | if (has_wal_files_disk_size()) { |
1175 | 6.28k | total_size += 1 + |
1176 | 6.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1177 | 6.28k | this->wal_files_disk_size()); |
1178 | 6.28k | } |
1179 | | |
1180 | | // optional int64 sst_files_disk_size = 13; |
1181 | 6.28k | if (has_sst_files_disk_size()) { |
1182 | 6.28k | total_size += 1 + |
1183 | 6.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1184 | 6.28k | this->sst_files_disk_size()); |
1185 | 6.28k | } |
1186 | | |
1187 | | // optional int64 uncompressed_sst_files_disk_size = 14; |
1188 | 6.28k | if (has_uncompressed_sst_files_disk_size()) { |
1189 | 6.28k | total_size += 1 + |
1190 | 6.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1191 | 6.28k | this->uncompressed_sst_files_disk_size()); |
1192 | 6.28k | } |
1193 | | |
1194 | | // optional bool is_hidden = 17; |
1195 | 6.28k | if (has_is_hidden()) { |
1196 | 6.28k | total_size += 2 + 1; |
1197 | 6.28k | } |
1198 | | |
1199 | | // optional .yb.TableType table_type = 16; |
1200 | 6.28k | if (has_table_type()) { |
1201 | 6.28k | total_size += 2 + |
1202 | 6.28k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->table_type()); |
1203 | 6.28k | } |
1204 | | |
1205 | | // optional .yb.tablet.RaftGroupStatePB state = 3 [default = UNKNOWN]; |
1206 | 6.28k | if (has_state()) { |
1207 | 6.28k | total_size += 1 + |
1208 | 6.28k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); |
1209 | 6.28k | } |
1210 | | |
1211 | 6.28k | } |
1212 | | // optional .yb.tablet.TabletDataState tablet_data_state = 8 [default = TABLET_DATA_UNKNOWN]; |
1213 | 6.28k | if (has_tablet_data_state()) { |
1214 | 6.28k | total_size += 1 + |
1215 | 6.28k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->tablet_data_state()); |
1216 | 6.28k | } |
1217 | | |
1218 | 6.28k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1219 | 6.28k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1220 | 6.28k | _cached_size_ = cached_size; |
1221 | 6.28k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1222 | 6.28k | return total_size; |
1223 | 6.28k | } |
1224 | | |
1225 | 0 | void TabletStatusPB::MergeFrom(const ::google::protobuf::Message& from) { |
1226 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.TabletStatusPB) |
1227 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1228 | 0 | const TabletStatusPB* source = |
1229 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TabletStatusPB>( |
1230 | 0 | &from); |
1231 | 0 | if (source == NULL) { |
1232 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.TabletStatusPB) |
1233 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1234 | 0 | } else { |
1235 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.TabletStatusPB) |
1236 | 0 | MergeFrom(*source); |
1237 | 0 | } |
1238 | 0 | } |
1239 | | |
1240 | 0 | void TabletStatusPB::MergeFrom(const TabletStatusPB& from) { |
1241 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TabletStatusPB) |
1242 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1243 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1244 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1245 | 0 | (void) cached_has_bits; |
1246 | |
|
1247 | 0 | cached_has_bits = from._has_bits_[0]; |
1248 | 0 | if (cached_has_bits & 255u) { |
1249 | 0 | if (cached_has_bits & 0x00000001u) { |
1250 | 0 | set_has_tablet_id(); |
1251 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
1252 | 0 | } |
1253 | 0 | if (cached_has_bits & 0x00000002u) { |
1254 | 0 | set_has_table_name(); |
1255 | 0 | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
1256 | 0 | } |
1257 | 0 | if (cached_has_bits & 0x00000004u) { |
1258 | 0 | set_has_last_status(); |
1259 | 0 | last_status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_status_); |
1260 | 0 | } |
1261 | 0 | if (cached_has_bits & 0x00000008u) { |
1262 | 0 | set_has_start_key(); |
1263 | 0 | start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_); |
1264 | 0 | } |
1265 | 0 | if (cached_has_bits & 0x00000010u) { |
1266 | 0 | set_has_end_key(); |
1267 | 0 | end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_key_); |
1268 | 0 | } |
1269 | 0 | if (cached_has_bits & 0x00000020u) { |
1270 | 0 | set_has_table_id(); |
1271 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
1272 | 0 | } |
1273 | 0 | if (cached_has_bits & 0x00000040u) { |
1274 | 0 | set_has_namespace_name(); |
1275 | 0 | namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_); |
1276 | 0 | } |
1277 | 0 | if (cached_has_bits & 0x00000080u) { |
1278 | 0 | mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition()); |
1279 | 0 | } |
1280 | 0 | } |
1281 | 0 | if (cached_has_bits & 65280u) { |
1282 | 0 | if (cached_has_bits & 0x00000100u) { |
1283 | 0 | estimated_on_disk_size_ = from.estimated_on_disk_size_; |
1284 | 0 | } |
1285 | 0 | if (cached_has_bits & 0x00000200u) { |
1286 | 0 | consensus_metadata_disk_size_ = from.consensus_metadata_disk_size_; |
1287 | 0 | } |
1288 | 0 | if (cached_has_bits & 0x00000400u) { |
1289 | 0 | wal_files_disk_size_ = from.wal_files_disk_size_; |
1290 | 0 | } |
1291 | 0 | if (cached_has_bits & 0x00000800u) { |
1292 | 0 | sst_files_disk_size_ = from.sst_files_disk_size_; |
1293 | 0 | } |
1294 | 0 | if (cached_has_bits & 0x00001000u) { |
1295 | 0 | uncompressed_sst_files_disk_size_ = from.uncompressed_sst_files_disk_size_; |
1296 | 0 | } |
1297 | 0 | if (cached_has_bits & 0x00002000u) { |
1298 | 0 | is_hidden_ = from.is_hidden_; |
1299 | 0 | } |
1300 | 0 | if (cached_has_bits & 0x00004000u) { |
1301 | 0 | table_type_ = from.table_type_; |
1302 | 0 | } |
1303 | 0 | if (cached_has_bits & 0x00008000u) { |
1304 | 0 | state_ = from.state_; |
1305 | 0 | } |
1306 | 0 | _has_bits_[0] |= cached_has_bits; |
1307 | 0 | } |
1308 | 0 | if (cached_has_bits & 0x00010000u) { |
1309 | 0 | set_tablet_data_state(from.tablet_data_state()); |
1310 | 0 | } |
1311 | 0 | } |
1312 | | |
1313 | 0 | void TabletStatusPB::CopyFrom(const ::google::protobuf::Message& from) { |
1314 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.TabletStatusPB) |
1315 | 0 | if (&from == this) return; |
1316 | 0 | Clear(); |
1317 | 0 | MergeFrom(from); |
1318 | 0 | } |
1319 | | |
1320 | 0 | void TabletStatusPB::CopyFrom(const TabletStatusPB& from) { |
1321 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TabletStatusPB) |
1322 | 0 | if (&from == this) return; |
1323 | 0 | Clear(); |
1324 | 0 | MergeFrom(from); |
1325 | 0 | } |
1326 | | |
1327 | 6.28k | bool TabletStatusPB::IsInitialized() const { |
1328 | 6.28k | if ((_has_bits_[0] & 0x00000027) != 0x00000027) return false; |
1329 | 6.28k | return true; |
1330 | 6.28k | } |
1331 | | |
1332 | 0 | void TabletStatusPB::Swap(TabletStatusPB* other) { |
1333 | 0 | if (other == this) return; |
1334 | 0 | InternalSwap(other); |
1335 | 0 | } |
1336 | 0 | void TabletStatusPB::InternalSwap(TabletStatusPB* other) { |
1337 | 0 | using std::swap; |
1338 | 0 | tablet_id_.Swap(&other->tablet_id_); |
1339 | 0 | table_name_.Swap(&other->table_name_); |
1340 | 0 | last_status_.Swap(&other->last_status_); |
1341 | 0 | start_key_.Swap(&other->start_key_); |
1342 | 0 | end_key_.Swap(&other->end_key_); |
1343 | 0 | table_id_.Swap(&other->table_id_); |
1344 | 0 | namespace_name_.Swap(&other->namespace_name_); |
1345 | 0 | swap(partition_, other->partition_); |
1346 | 0 | swap(estimated_on_disk_size_, other->estimated_on_disk_size_); |
1347 | 0 | swap(consensus_metadata_disk_size_, other->consensus_metadata_disk_size_); |
1348 | 0 | swap(wal_files_disk_size_, other->wal_files_disk_size_); |
1349 | 0 | swap(sst_files_disk_size_, other->sst_files_disk_size_); |
1350 | 0 | swap(uncompressed_sst_files_disk_size_, other->uncompressed_sst_files_disk_size_); |
1351 | 0 | swap(is_hidden_, other->is_hidden_); |
1352 | 0 | swap(table_type_, other->table_type_); |
1353 | 0 | swap(state_, other->state_); |
1354 | 0 | swap(tablet_data_state_, other->tablet_data_state_); |
1355 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1356 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1357 | 0 | swap(_cached_size_, other->_cached_size_); |
1358 | 0 | } |
1359 | | |
1360 | 0 | ::google::protobuf::Metadata TabletStatusPB::GetMetadata() const { |
1361 | 0 | protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
1362 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages]; |
1363 | 0 | } |
1364 | | |
1365 | | |
1366 | | // =================================================================== |
1367 | | |
1368 | 15.8k | void MaintenanceManagerStatusPB_MaintenanceOpPB::InitAsDefaultInstance() { |
1369 | 15.8k | } |
1370 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1371 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kNameFieldNumber; |
1372 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kRunningFieldNumber; |
1373 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kRunnableFieldNumber; |
1374 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kRamAnchoredBytesFieldNumber; |
1375 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kLogsRetainedBytesFieldNumber; |
1376 | | const int MaintenanceManagerStatusPB_MaintenanceOpPB::kPerfImprovementFieldNumber; |
1377 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1378 | | |
1379 | | MaintenanceManagerStatusPB_MaintenanceOpPB::MaintenanceManagerStatusPB_MaintenanceOpPB() |
1380 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1381 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1382 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPB(); |
1383 | 0 | } |
1384 | 15.8k | SharedCtor(); |
1385 | | // @@protoc_insertion_point(constructor:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1386 | 15.8k | } |
1387 | | MaintenanceManagerStatusPB_MaintenanceOpPB::MaintenanceManagerStatusPB_MaintenanceOpPB(const MaintenanceManagerStatusPB_MaintenanceOpPB& from) |
1388 | | : ::google::protobuf::Message(), |
1389 | | _internal_metadata_(NULL), |
1390 | | _has_bits_(from._has_bits_), |
1391 | 0 | _cached_size_(0) { |
1392 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1393 | 0 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1394 | 0 | if (from.has_name()) { |
1395 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
1396 | 0 | } |
1397 | 0 | ::memcpy(&running_, &from.running_, |
1398 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&perf_improvement_) - |
1399 | 0 | reinterpret_cast<char*>(&running_)) + sizeof(perf_improvement_)); |
1400 | | // @@protoc_insertion_point(copy_constructor:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1401 | 0 | } |
1402 | | |
1403 | 15.8k | void MaintenanceManagerStatusPB_MaintenanceOpPB::SharedCtor() { |
1404 | 15.8k | _cached_size_ = 0; |
1405 | 15.8k | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1406 | 15.8k | ::memset(&running_, 0, static_cast<size_t>( |
1407 | 15.8k | reinterpret_cast<char*>(&perf_improvement_) - |
1408 | 15.8k | reinterpret_cast<char*>(&running_)) + sizeof(perf_improvement_)); |
1409 | 15.8k | } |
1410 | | |
1411 | 0 | MaintenanceManagerStatusPB_MaintenanceOpPB::~MaintenanceManagerStatusPB_MaintenanceOpPB() { |
1412 | | // @@protoc_insertion_point(destructor:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1413 | 0 | SharedDtor(); |
1414 | 0 | } |
1415 | | |
1416 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::SharedDtor() { |
1417 | 0 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1418 | 0 | } |
1419 | | |
1420 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::SetCachedSize(int size) const { |
1421 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1422 | 0 | _cached_size_ = size; |
1423 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1424 | 0 | } |
1425 | 0 | const ::google::protobuf::Descriptor* MaintenanceManagerStatusPB_MaintenanceOpPB::descriptor() { |
1426 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
1427 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1428 | 0 | } |
1429 | | |
1430 | 0 | const MaintenanceManagerStatusPB_MaintenanceOpPB& MaintenanceManagerStatusPB_MaintenanceOpPB::default_instance() { |
1431 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_MaintenanceOpPB(); |
1432 | 0 | return *internal_default_instance(); |
1433 | 0 | } |
1434 | | |
1435 | 0 | MaintenanceManagerStatusPB_MaintenanceOpPB* MaintenanceManagerStatusPB_MaintenanceOpPB::New(::google::protobuf::Arena* arena) const { |
1436 | 0 | MaintenanceManagerStatusPB_MaintenanceOpPB* n = new MaintenanceManagerStatusPB_MaintenanceOpPB; |
1437 | 0 | if (arena != NULL) { |
1438 | 0 | arena->Own(n); |
1439 | 0 | } |
1440 | 0 | return n; |
1441 | 0 | } |
1442 | | |
1443 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::Clear() { |
1444 | | // @@protoc_insertion_point(message_clear_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1445 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1446 | | // Prevent compiler warnings about cached_has_bits being unused |
1447 | 0 | (void) cached_has_bits; |
1448 | |
|
1449 | 0 | cached_has_bits = _has_bits_[0]; |
1450 | 0 | if (cached_has_bits & 0x00000001u) { |
1451 | 0 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1452 | 0 | (*name_.UnsafeRawStringPointer())->clear(); |
1453 | 0 | } |
1454 | 0 | if (cached_has_bits & 62u) { |
1455 | 0 | ::memset(&running_, 0, static_cast<size_t>( |
1456 | 0 | reinterpret_cast<char*>(&perf_improvement_) - |
1457 | 0 | reinterpret_cast<char*>(&running_)) + sizeof(perf_improvement_)); |
1458 | 0 | } |
1459 | 0 | _has_bits_.Clear(); |
1460 | 0 | _internal_metadata_.Clear(); |
1461 | 0 | } |
1462 | | |
1463 | | bool MaintenanceManagerStatusPB_MaintenanceOpPB::MergePartialFromCodedStream( |
1464 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1465 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1466 | 0 | ::google::protobuf::uint32 tag; |
1467 | | // @@protoc_insertion_point(parse_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1468 | 0 | for (;;) { |
1469 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1470 | 0 | tag = p.first; |
1471 | 0 | if (!p.second) goto handle_unusual; |
1472 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1473 | | // required string name = 1; |
1474 | 0 | case 1: { |
1475 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1476 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1477 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1478 | 0 | input, this->mutable_name())); |
1479 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1480 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
1481 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1482 | 0 | "yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB.name"); |
1483 | 0 | } else { |
1484 | 0 | goto handle_unusual; |
1485 | 0 | } |
1486 | 0 | break; |
1487 | 0 | } |
1488 | | |
1489 | | // required uint32 running = 2; |
1490 | 0 | case 2: { |
1491 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1492 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1493 | 0 | set_has_running(); |
1494 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1495 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
1496 | 0 | input, &running_))); |
1497 | 0 | } else { |
1498 | 0 | goto handle_unusual; |
1499 | 0 | } |
1500 | 0 | break; |
1501 | 0 | } |
1502 | | |
1503 | | // required bool runnable = 3; |
1504 | 0 | case 3: { |
1505 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1506 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
1507 | 0 | set_has_runnable(); |
1508 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1509 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1510 | 0 | input, &runnable_))); |
1511 | 0 | } else { |
1512 | 0 | goto handle_unusual; |
1513 | 0 | } |
1514 | 0 | break; |
1515 | 0 | } |
1516 | | |
1517 | | // required uint64 ram_anchored_bytes = 4; |
1518 | 0 | case 4: { |
1519 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1520 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
1521 | 0 | set_has_ram_anchored_bytes(); |
1522 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1523 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1524 | 0 | input, &ram_anchored_bytes_))); |
1525 | 0 | } else { |
1526 | 0 | goto handle_unusual; |
1527 | 0 | } |
1528 | 0 | break; |
1529 | 0 | } |
1530 | | |
1531 | | // required int64 logs_retained_bytes = 5; |
1532 | 0 | case 5: { |
1533 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1534 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
1535 | 0 | set_has_logs_retained_bytes(); |
1536 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1537 | 0 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1538 | 0 | input, &logs_retained_bytes_))); |
1539 | 0 | } else { |
1540 | 0 | goto handle_unusual; |
1541 | 0 | } |
1542 | 0 | break; |
1543 | 0 | } |
1544 | | |
1545 | | // required double perf_improvement = 6; |
1546 | 0 | case 6: { |
1547 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1548 | 0 | static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { |
1549 | 0 | set_has_perf_improvement(); |
1550 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1551 | 0 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
1552 | 0 | input, &perf_improvement_))); |
1553 | 0 | } else { |
1554 | 0 | goto handle_unusual; |
1555 | 0 | } |
1556 | 0 | break; |
1557 | 0 | } |
1558 | | |
1559 | 0 | default: { |
1560 | 0 | handle_unusual: |
1561 | 0 | if (tag == 0) { |
1562 | 0 | goto success; |
1563 | 0 | } |
1564 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1565 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1566 | 0 | break; |
1567 | 0 | } |
1568 | 0 | } |
1569 | 0 | } |
1570 | 0 | success: |
1571 | | // @@protoc_insertion_point(parse_success:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1572 | 0 | return true; |
1573 | 0 | failure: |
1574 | | // @@protoc_insertion_point(parse_failure:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1575 | 0 | return false; |
1576 | 0 | #undef DO_ |
1577 | 0 | } |
1578 | | |
1579 | | void MaintenanceManagerStatusPB_MaintenanceOpPB::SerializeWithCachedSizes( |
1580 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1581 | | // @@protoc_insertion_point(serialize_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1582 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1583 | 0 | (void) cached_has_bits; |
1584 | |
|
1585 | 0 | cached_has_bits = _has_bits_[0]; |
1586 | | // required string name = 1; |
1587 | 0 | if (cached_has_bits & 0x00000001u) { |
1588 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1589 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
1590 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1591 | 0 | "yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB.name"); |
1592 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1593 | 0 | 1, this->name(), output); |
1594 | 0 | } |
1595 | | |
1596 | | // required uint32 running = 2; |
1597 | 0 | if (cached_has_bits & 0x00000002u) { |
1598 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->running(), output); |
1599 | 0 | } |
1600 | | |
1601 | | // required bool runnable = 3; |
1602 | 0 | if (cached_has_bits & 0x00000004u) { |
1603 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->runnable(), output); |
1604 | 0 | } |
1605 | | |
1606 | | // required uint64 ram_anchored_bytes = 4; |
1607 | 0 | if (cached_has_bits & 0x00000008u) { |
1608 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->ram_anchored_bytes(), output); |
1609 | 0 | } |
1610 | | |
1611 | | // required int64 logs_retained_bytes = 5; |
1612 | 0 | if (cached_has_bits & 0x00000010u) { |
1613 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->logs_retained_bytes(), output); |
1614 | 0 | } |
1615 | | |
1616 | | // required double perf_improvement = 6; |
1617 | 0 | if (cached_has_bits & 0x00000020u) { |
1618 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->perf_improvement(), output); |
1619 | 0 | } |
1620 | |
|
1621 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1622 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1623 | 0 | _internal_metadata_.unknown_fields(), output); |
1624 | 0 | } |
1625 | | // @@protoc_insertion_point(serialize_end:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1626 | 0 | } |
1627 | | |
1628 | | ::google::protobuf::uint8* MaintenanceManagerStatusPB_MaintenanceOpPB::InternalSerializeWithCachedSizesToArray( |
1629 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
1630 | 0 | (void)deterministic; // Unused |
1631 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1632 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1633 | 0 | (void) cached_has_bits; |
1634 | |
|
1635 | 0 | cached_has_bits = _has_bits_[0]; |
1636 | | // required string name = 1; |
1637 | 0 | if (cached_has_bits & 0x00000001u) { |
1638 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1639 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
1640 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1641 | 0 | "yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB.name"); |
1642 | 0 | target = |
1643 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1644 | 0 | 1, this->name(), target); |
1645 | 0 | } |
1646 | | |
1647 | | // required uint32 running = 2; |
1648 | 0 | if (cached_has_bits & 0x00000002u) { |
1649 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->running(), target); |
1650 | 0 | } |
1651 | | |
1652 | | // required bool runnable = 3; |
1653 | 0 | if (cached_has_bits & 0x00000004u) { |
1654 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->runnable(), target); |
1655 | 0 | } |
1656 | | |
1657 | | // required uint64 ram_anchored_bytes = 4; |
1658 | 0 | if (cached_has_bits & 0x00000008u) { |
1659 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->ram_anchored_bytes(), target); |
1660 | 0 | } |
1661 | | |
1662 | | // required int64 logs_retained_bytes = 5; |
1663 | 0 | if (cached_has_bits & 0x00000010u) { |
1664 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->logs_retained_bytes(), target); |
1665 | 0 | } |
1666 | | |
1667 | | // required double perf_improvement = 6; |
1668 | 0 | if (cached_has_bits & 0x00000020u) { |
1669 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->perf_improvement(), target); |
1670 | 0 | } |
1671 | |
|
1672 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1673 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1674 | 0 | _internal_metadata_.unknown_fields(), target); |
1675 | 0 | } |
1676 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1677 | 0 | return target; |
1678 | 0 | } |
1679 | | |
1680 | 0 | size_t MaintenanceManagerStatusPB_MaintenanceOpPB::RequiredFieldsByteSizeFallback() const { |
1681 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1682 | 0 | size_t total_size = 0; |
1683 | |
|
1684 | 0 | if (has_name()) { |
1685 | | // required string name = 1; |
1686 | 0 | total_size += 1 + |
1687 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1688 | 0 | this->name()); |
1689 | 0 | } |
1690 | |
|
1691 | 0 | if (has_running()) { |
1692 | | // required uint32 running = 2; |
1693 | 0 | total_size += 1 + |
1694 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
1695 | 0 | this->running()); |
1696 | 0 | } |
1697 | |
|
1698 | 0 | if (has_runnable()) { |
1699 | | // required bool runnable = 3; |
1700 | 0 | total_size += 1 + 1; |
1701 | 0 | } |
1702 | |
|
1703 | 0 | if (has_ram_anchored_bytes()) { |
1704 | | // required uint64 ram_anchored_bytes = 4; |
1705 | 0 | total_size += 1 + |
1706 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1707 | 0 | this->ram_anchored_bytes()); |
1708 | 0 | } |
1709 | |
|
1710 | 0 | if (has_logs_retained_bytes()) { |
1711 | | // required int64 logs_retained_bytes = 5; |
1712 | 0 | total_size += 1 + |
1713 | 0 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1714 | 0 | this->logs_retained_bytes()); |
1715 | 0 | } |
1716 | |
|
1717 | 0 | if (has_perf_improvement()) { |
1718 | | // required double perf_improvement = 6; |
1719 | 0 | total_size += 1 + 8; |
1720 | 0 | } |
1721 | |
|
1722 | 0 | return total_size; |
1723 | 0 | } |
1724 | 0 | size_t MaintenanceManagerStatusPB_MaintenanceOpPB::ByteSizeLong() const { |
1725 | | // @@protoc_insertion_point(message_byte_size_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1726 | 0 | size_t total_size = 0; |
1727 | |
|
1728 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1729 | 0 | total_size += |
1730 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1731 | 0 | _internal_metadata_.unknown_fields()); |
1732 | 0 | } |
1733 | 0 | if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. |
1734 | | // required string name = 1; |
1735 | 0 | total_size += 1 + |
1736 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1737 | 0 | this->name()); |
1738 | | |
1739 | | // required uint32 running = 2; |
1740 | 0 | total_size += 1 + |
1741 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
1742 | 0 | this->running()); |
1743 | | |
1744 | | // required bool runnable = 3; |
1745 | 0 | total_size += 1 + 1; |
1746 | | |
1747 | | // required uint64 ram_anchored_bytes = 4; |
1748 | 0 | total_size += 1 + |
1749 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1750 | 0 | this->ram_anchored_bytes()); |
1751 | | |
1752 | | // required int64 logs_retained_bytes = 5; |
1753 | 0 | total_size += 1 + |
1754 | 0 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1755 | 0 | this->logs_retained_bytes()); |
1756 | | |
1757 | | // required double perf_improvement = 6; |
1758 | 0 | total_size += 1 + 8; |
1759 | |
|
1760 | 0 | } else { |
1761 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
1762 | 0 | } |
1763 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1764 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1765 | 0 | _cached_size_ = cached_size; |
1766 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1767 | 0 | return total_size; |
1768 | 0 | } |
1769 | | |
1770 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::MergeFrom(const ::google::protobuf::Message& from) { |
1771 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1772 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1773 | 0 | const MaintenanceManagerStatusPB_MaintenanceOpPB* source = |
1774 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const MaintenanceManagerStatusPB_MaintenanceOpPB>( |
1775 | 0 | &from); |
1776 | 0 | if (source == NULL) { |
1777 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1778 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1779 | 0 | } else { |
1780 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1781 | 0 | MergeFrom(*source); |
1782 | 0 | } |
1783 | 0 | } |
1784 | | |
1785 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::MergeFrom(const MaintenanceManagerStatusPB_MaintenanceOpPB& from) { |
1786 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1787 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1788 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1789 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1790 | 0 | (void) cached_has_bits; |
1791 | |
|
1792 | 0 | cached_has_bits = from._has_bits_[0]; |
1793 | 0 | if (cached_has_bits & 63u) { |
1794 | 0 | if (cached_has_bits & 0x00000001u) { |
1795 | 0 | set_has_name(); |
1796 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
1797 | 0 | } |
1798 | 0 | if (cached_has_bits & 0x00000002u) { |
1799 | 0 | running_ = from.running_; |
1800 | 0 | } |
1801 | 0 | if (cached_has_bits & 0x00000004u) { |
1802 | 0 | runnable_ = from.runnable_; |
1803 | 0 | } |
1804 | 0 | if (cached_has_bits & 0x00000008u) { |
1805 | 0 | ram_anchored_bytes_ = from.ram_anchored_bytes_; |
1806 | 0 | } |
1807 | 0 | if (cached_has_bits & 0x00000010u) { |
1808 | 0 | logs_retained_bytes_ = from.logs_retained_bytes_; |
1809 | 0 | } |
1810 | 0 | if (cached_has_bits & 0x00000020u) { |
1811 | 0 | perf_improvement_ = from.perf_improvement_; |
1812 | 0 | } |
1813 | 0 | _has_bits_[0] |= cached_has_bits; |
1814 | 0 | } |
1815 | 0 | } |
1816 | | |
1817 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::CopyFrom(const ::google::protobuf::Message& from) { |
1818 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1819 | 0 | if (&from == this) return; |
1820 | 0 | Clear(); |
1821 | 0 | MergeFrom(from); |
1822 | 0 | } |
1823 | | |
1824 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::CopyFrom(const MaintenanceManagerStatusPB_MaintenanceOpPB& from) { |
1825 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB) |
1826 | 0 | if (&from == this) return; |
1827 | 0 | Clear(); |
1828 | 0 | MergeFrom(from); |
1829 | 0 | } |
1830 | | |
1831 | 0 | bool MaintenanceManagerStatusPB_MaintenanceOpPB::IsInitialized() const { |
1832 | 0 | if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; |
1833 | 0 | return true; |
1834 | 0 | } |
1835 | | |
1836 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::Swap(MaintenanceManagerStatusPB_MaintenanceOpPB* other) { |
1837 | 0 | if (other == this) return; |
1838 | 0 | InternalSwap(other); |
1839 | 0 | } |
1840 | 0 | void MaintenanceManagerStatusPB_MaintenanceOpPB::InternalSwap(MaintenanceManagerStatusPB_MaintenanceOpPB* other) { |
1841 | 0 | using std::swap; |
1842 | 0 | name_.Swap(&other->name_); |
1843 | 0 | swap(running_, other->running_); |
1844 | 0 | swap(runnable_, other->runnable_); |
1845 | 0 | swap(ram_anchored_bytes_, other->ram_anchored_bytes_); |
1846 | 0 | swap(logs_retained_bytes_, other->logs_retained_bytes_); |
1847 | 0 | swap(perf_improvement_, other->perf_improvement_); |
1848 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1849 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1850 | 0 | swap(_cached_size_, other->_cached_size_); |
1851 | 0 | } |
1852 | | |
1853 | 0 | ::google::protobuf::Metadata MaintenanceManagerStatusPB_MaintenanceOpPB::GetMetadata() const { |
1854 | 0 | protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
1855 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages]; |
1856 | 0 | } |
1857 | | |
1858 | | |
1859 | | // =================================================================== |
1860 | | |
1861 | 15.8k | void MaintenanceManagerStatusPB_CompletedOpPB::InitAsDefaultInstance() { |
1862 | 15.8k | } |
1863 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1864 | | const int MaintenanceManagerStatusPB_CompletedOpPB::kNameFieldNumber; |
1865 | | const int MaintenanceManagerStatusPB_CompletedOpPB::kDurationMillisFieldNumber; |
1866 | | const int MaintenanceManagerStatusPB_CompletedOpPB::kSecsSinceStartFieldNumber; |
1867 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1868 | | |
1869 | | MaintenanceManagerStatusPB_CompletedOpPB::MaintenanceManagerStatusPB_CompletedOpPB() |
1870 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1871 | 14 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1872 | 14 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_CompletedOpPB(); |
1873 | 14 | } |
1874 | 15.8k | SharedCtor(); |
1875 | | // @@protoc_insertion_point(constructor:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
1876 | 15.8k | } |
1877 | | MaintenanceManagerStatusPB_CompletedOpPB::MaintenanceManagerStatusPB_CompletedOpPB(const MaintenanceManagerStatusPB_CompletedOpPB& from) |
1878 | | : ::google::protobuf::Message(), |
1879 | | _internal_metadata_(NULL), |
1880 | | _has_bits_(from._has_bits_), |
1881 | 0 | _cached_size_(0) { |
1882 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1883 | 0 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1884 | 0 | if (from.has_name()) { |
1885 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
1886 | 0 | } |
1887 | 0 | ::memcpy(&duration_millis_, &from.duration_millis_, |
1888 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&secs_since_start_) - |
1889 | 0 | reinterpret_cast<char*>(&duration_millis_)) + sizeof(secs_since_start_)); |
1890 | | // @@protoc_insertion_point(copy_constructor:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
1891 | 0 | } |
1892 | | |
1893 | 15.8k | void MaintenanceManagerStatusPB_CompletedOpPB::SharedCtor() { |
1894 | 15.8k | _cached_size_ = 0; |
1895 | 15.8k | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1896 | 15.8k | ::memset(&duration_millis_, 0, static_cast<size_t>( |
1897 | 15.8k | reinterpret_cast<char*>(&secs_since_start_) - |
1898 | 15.8k | reinterpret_cast<char*>(&duration_millis_)) + sizeof(secs_since_start_)); |
1899 | 15.8k | } |
1900 | | |
1901 | 14 | MaintenanceManagerStatusPB_CompletedOpPB::~MaintenanceManagerStatusPB_CompletedOpPB() { |
1902 | | // @@protoc_insertion_point(destructor:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
1903 | 14 | SharedDtor(); |
1904 | 14 | } |
1905 | | |
1906 | 14 | void MaintenanceManagerStatusPB_CompletedOpPB::SharedDtor() { |
1907 | 14 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1908 | 14 | } |
1909 | | |
1910 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::SetCachedSize(int size) const { |
1911 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1912 | 0 | _cached_size_ = size; |
1913 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1914 | 0 | } |
1915 | 0 | const ::google::protobuf::Descriptor* MaintenanceManagerStatusPB_CompletedOpPB::descriptor() { |
1916 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
1917 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1918 | 0 | } |
1919 | | |
1920 | 0 | const MaintenanceManagerStatusPB_CompletedOpPB& MaintenanceManagerStatusPB_CompletedOpPB::default_instance() { |
1921 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB_CompletedOpPB(); |
1922 | 0 | return *internal_default_instance(); |
1923 | 0 | } |
1924 | | |
1925 | 0 | MaintenanceManagerStatusPB_CompletedOpPB* MaintenanceManagerStatusPB_CompletedOpPB::New(::google::protobuf::Arena* arena) const { |
1926 | 0 | MaintenanceManagerStatusPB_CompletedOpPB* n = new MaintenanceManagerStatusPB_CompletedOpPB; |
1927 | 0 | if (arena != NULL) { |
1928 | 0 | arena->Own(n); |
1929 | 0 | } |
1930 | 0 | return n; |
1931 | 0 | } |
1932 | | |
1933 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::Clear() { |
1934 | | // @@protoc_insertion_point(message_clear_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
1935 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1936 | | // Prevent compiler warnings about cached_has_bits being unused |
1937 | 0 | (void) cached_has_bits; |
1938 | |
|
1939 | 0 | cached_has_bits = _has_bits_[0]; |
1940 | 0 | if (cached_has_bits & 0x00000001u) { |
1941 | 0 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1942 | 0 | (*name_.UnsafeRawStringPointer())->clear(); |
1943 | 0 | } |
1944 | 0 | if (cached_has_bits & 6u) { |
1945 | 0 | ::memset(&duration_millis_, 0, static_cast<size_t>( |
1946 | 0 | reinterpret_cast<char*>(&secs_since_start_) - |
1947 | 0 | reinterpret_cast<char*>(&duration_millis_)) + sizeof(secs_since_start_)); |
1948 | 0 | } |
1949 | 0 | _has_bits_.Clear(); |
1950 | 0 | _internal_metadata_.Clear(); |
1951 | 0 | } |
1952 | | |
1953 | | bool MaintenanceManagerStatusPB_CompletedOpPB::MergePartialFromCodedStream( |
1954 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1955 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1956 | 0 | ::google::protobuf::uint32 tag; |
1957 | | // @@protoc_insertion_point(parse_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
1958 | 0 | for (;;) { |
1959 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1960 | 0 | tag = p.first; |
1961 | 0 | if (!p.second) goto handle_unusual; |
1962 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1963 | | // required string name = 1; |
1964 | 0 | case 1: { |
1965 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1966 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1967 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1968 | 0 | input, this->mutable_name())); |
1969 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1970 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
1971 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1972 | 0 | "yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB.name"); |
1973 | 0 | } else { |
1974 | 0 | goto handle_unusual; |
1975 | 0 | } |
1976 | 0 | break; |
1977 | 0 | } |
1978 | | |
1979 | | // required int32 duration_millis = 2; |
1980 | 0 | case 2: { |
1981 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1982 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1983 | 0 | set_has_duration_millis(); |
1984 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1985 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
1986 | 0 | input, &duration_millis_))); |
1987 | 0 | } else { |
1988 | 0 | goto handle_unusual; |
1989 | 0 | } |
1990 | 0 | break; |
1991 | 0 | } |
1992 | | |
1993 | | // required int32 secs_since_start = 3; |
1994 | 0 | case 3: { |
1995 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1996 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
1997 | 0 | set_has_secs_since_start(); |
1998 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1999 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2000 | 0 | input, &secs_since_start_))); |
2001 | 0 | } else { |
2002 | 0 | goto handle_unusual; |
2003 | 0 | } |
2004 | 0 | break; |
2005 | 0 | } |
2006 | | |
2007 | 0 | default: { |
2008 | 0 | handle_unusual: |
2009 | 0 | if (tag == 0) { |
2010 | 0 | goto success; |
2011 | 0 | } |
2012 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2013 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2014 | 0 | break; |
2015 | 0 | } |
2016 | 0 | } |
2017 | 0 | } |
2018 | 0 | success: |
2019 | | // @@protoc_insertion_point(parse_success:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2020 | 0 | return true; |
2021 | 0 | failure: |
2022 | | // @@protoc_insertion_point(parse_failure:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2023 | 0 | return false; |
2024 | 0 | #undef DO_ |
2025 | 0 | } |
2026 | | |
2027 | | void MaintenanceManagerStatusPB_CompletedOpPB::SerializeWithCachedSizes( |
2028 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2029 | | // @@protoc_insertion_point(serialize_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2030 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2031 | 0 | (void) cached_has_bits; |
2032 | |
|
2033 | 0 | cached_has_bits = _has_bits_[0]; |
2034 | | // required string name = 1; |
2035 | 0 | if (cached_has_bits & 0x00000001u) { |
2036 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2037 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
2038 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2039 | 0 | "yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB.name"); |
2040 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2041 | 0 | 1, this->name(), output); |
2042 | 0 | } |
2043 | | |
2044 | | // required int32 duration_millis = 2; |
2045 | 0 | if (cached_has_bits & 0x00000002u) { |
2046 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->duration_millis(), output); |
2047 | 0 | } |
2048 | | |
2049 | | // required int32 secs_since_start = 3; |
2050 | 0 | if (cached_has_bits & 0x00000004u) { |
2051 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->secs_since_start(), output); |
2052 | 0 | } |
2053 | |
|
2054 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2055 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2056 | 0 | _internal_metadata_.unknown_fields(), output); |
2057 | 0 | } |
2058 | | // @@protoc_insertion_point(serialize_end:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2059 | 0 | } |
2060 | | |
2061 | | ::google::protobuf::uint8* MaintenanceManagerStatusPB_CompletedOpPB::InternalSerializeWithCachedSizesToArray( |
2062 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2063 | 0 | (void)deterministic; // Unused |
2064 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2065 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2066 | 0 | (void) cached_has_bits; |
2067 | |
|
2068 | 0 | cached_has_bits = _has_bits_[0]; |
2069 | | // required string name = 1; |
2070 | 0 | if (cached_has_bits & 0x00000001u) { |
2071 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2072 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
2073 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2074 | 0 | "yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB.name"); |
2075 | 0 | target = |
2076 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2077 | 0 | 1, this->name(), target); |
2078 | 0 | } |
2079 | | |
2080 | | // required int32 duration_millis = 2; |
2081 | 0 | if (cached_has_bits & 0x00000002u) { |
2082 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->duration_millis(), target); |
2083 | 0 | } |
2084 | | |
2085 | | // required int32 secs_since_start = 3; |
2086 | 0 | if (cached_has_bits & 0x00000004u) { |
2087 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->secs_since_start(), target); |
2088 | 0 | } |
2089 | |
|
2090 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2091 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2092 | 0 | _internal_metadata_.unknown_fields(), target); |
2093 | 0 | } |
2094 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2095 | 0 | return target; |
2096 | 0 | } |
2097 | | |
2098 | 0 | size_t MaintenanceManagerStatusPB_CompletedOpPB::RequiredFieldsByteSizeFallback() const { |
2099 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2100 | 0 | size_t total_size = 0; |
2101 | |
|
2102 | 0 | if (has_name()) { |
2103 | | // required string name = 1; |
2104 | 0 | total_size += 1 + |
2105 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2106 | 0 | this->name()); |
2107 | 0 | } |
2108 | |
|
2109 | 0 | if (has_duration_millis()) { |
2110 | | // required int32 duration_millis = 2; |
2111 | 0 | total_size += 1 + |
2112 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2113 | 0 | this->duration_millis()); |
2114 | 0 | } |
2115 | |
|
2116 | 0 | if (has_secs_since_start()) { |
2117 | | // required int32 secs_since_start = 3; |
2118 | 0 | total_size += 1 + |
2119 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2120 | 0 | this->secs_since_start()); |
2121 | 0 | } |
2122 | |
|
2123 | 0 | return total_size; |
2124 | 0 | } |
2125 | 0 | size_t MaintenanceManagerStatusPB_CompletedOpPB::ByteSizeLong() const { |
2126 | | // @@protoc_insertion_point(message_byte_size_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2127 | 0 | size_t total_size = 0; |
2128 | |
|
2129 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2130 | 0 | total_size += |
2131 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2132 | 0 | _internal_metadata_.unknown_fields()); |
2133 | 0 | } |
2134 | 0 | if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
2135 | | // required string name = 1; |
2136 | 0 | total_size += 1 + |
2137 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2138 | 0 | this->name()); |
2139 | | |
2140 | | // required int32 duration_millis = 2; |
2141 | 0 | total_size += 1 + |
2142 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2143 | 0 | this->duration_millis()); |
2144 | | |
2145 | | // required int32 secs_since_start = 3; |
2146 | 0 | total_size += 1 + |
2147 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2148 | 0 | this->secs_since_start()); |
2149 | |
|
2150 | 0 | } else { |
2151 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
2152 | 0 | } |
2153 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2154 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2155 | 0 | _cached_size_ = cached_size; |
2156 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2157 | 0 | return total_size; |
2158 | 0 | } |
2159 | | |
2160 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::MergeFrom(const ::google::protobuf::Message& from) { |
2161 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2162 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2163 | 0 | const MaintenanceManagerStatusPB_CompletedOpPB* source = |
2164 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const MaintenanceManagerStatusPB_CompletedOpPB>( |
2165 | 0 | &from); |
2166 | 0 | if (source == NULL) { |
2167 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2168 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2169 | 0 | } else { |
2170 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2171 | 0 | MergeFrom(*source); |
2172 | 0 | } |
2173 | 0 | } |
2174 | | |
2175 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::MergeFrom(const MaintenanceManagerStatusPB_CompletedOpPB& from) { |
2176 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2177 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2178 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2179 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2180 | 0 | (void) cached_has_bits; |
2181 | |
|
2182 | 0 | cached_has_bits = from._has_bits_[0]; |
2183 | 0 | if (cached_has_bits & 7u) { |
2184 | 0 | if (cached_has_bits & 0x00000001u) { |
2185 | 0 | set_has_name(); |
2186 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
2187 | 0 | } |
2188 | 0 | if (cached_has_bits & 0x00000002u) { |
2189 | 0 | duration_millis_ = from.duration_millis_; |
2190 | 0 | } |
2191 | 0 | if (cached_has_bits & 0x00000004u) { |
2192 | 0 | secs_since_start_ = from.secs_since_start_; |
2193 | 0 | } |
2194 | 0 | _has_bits_[0] |= cached_has_bits; |
2195 | 0 | } |
2196 | 0 | } |
2197 | | |
2198 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::CopyFrom(const ::google::protobuf::Message& from) { |
2199 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2200 | 0 | if (&from == this) return; |
2201 | 0 | Clear(); |
2202 | 0 | MergeFrom(from); |
2203 | 0 | } |
2204 | | |
2205 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::CopyFrom(const MaintenanceManagerStatusPB_CompletedOpPB& from) { |
2206 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB) |
2207 | 0 | if (&from == this) return; |
2208 | 0 | Clear(); |
2209 | 0 | MergeFrom(from); |
2210 | 0 | } |
2211 | | |
2212 | 0 | bool MaintenanceManagerStatusPB_CompletedOpPB::IsInitialized() const { |
2213 | 0 | if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; |
2214 | 0 | return true; |
2215 | 0 | } |
2216 | | |
2217 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::Swap(MaintenanceManagerStatusPB_CompletedOpPB* other) { |
2218 | 0 | if (other == this) return; |
2219 | 0 | InternalSwap(other); |
2220 | 0 | } |
2221 | 0 | void MaintenanceManagerStatusPB_CompletedOpPB::InternalSwap(MaintenanceManagerStatusPB_CompletedOpPB* other) { |
2222 | 0 | using std::swap; |
2223 | 0 | name_.Swap(&other->name_); |
2224 | 0 | swap(duration_millis_, other->duration_millis_); |
2225 | 0 | swap(secs_since_start_, other->secs_since_start_); |
2226 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2227 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2228 | 0 | swap(_cached_size_, other->_cached_size_); |
2229 | 0 | } |
2230 | | |
2231 | 0 | ::google::protobuf::Metadata MaintenanceManagerStatusPB_CompletedOpPB::GetMetadata() const { |
2232 | 0 | protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
2233 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages]; |
2234 | 0 | } |
2235 | | |
2236 | | |
2237 | | // =================================================================== |
2238 | | |
2239 | 15.8k | void MaintenanceManagerStatusPB::InitAsDefaultInstance() { |
2240 | 15.8k | ::yb::tablet::_MaintenanceManagerStatusPB_default_instance_._instance.get_mutable()->best_op_ = const_cast< ::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB*>( |
2241 | 15.8k | ::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB::internal_default_instance()); |
2242 | 15.8k | } |
2243 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2244 | | const int MaintenanceManagerStatusPB::kBestOpFieldNumber; |
2245 | | const int MaintenanceManagerStatusPB::kRegisteredOperationsFieldNumber; |
2246 | | const int MaintenanceManagerStatusPB::kCompletedOperationsFieldNumber; |
2247 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2248 | | |
2249 | | MaintenanceManagerStatusPB::MaintenanceManagerStatusPB() |
2250 | 15.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2251 | 5 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2252 | 5 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB(); |
2253 | 5 | } |
2254 | 15.8k | SharedCtor(); |
2255 | | // @@protoc_insertion_point(constructor:yb.tablet.MaintenanceManagerStatusPB) |
2256 | 15.8k | } |
2257 | | MaintenanceManagerStatusPB::MaintenanceManagerStatusPB(const MaintenanceManagerStatusPB& from) |
2258 | | : ::google::protobuf::Message(), |
2259 | | _internal_metadata_(NULL), |
2260 | | _has_bits_(from._has_bits_), |
2261 | | _cached_size_(0), |
2262 | | registered_operations_(from.registered_operations_), |
2263 | 0 | completed_operations_(from.completed_operations_) { |
2264 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2265 | 0 | if (from.has_best_op()) { |
2266 | 0 | best_op_ = new ::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB(*from.best_op_); |
2267 | 0 | } else { |
2268 | 0 | best_op_ = NULL; |
2269 | 0 | } |
2270 | | // @@protoc_insertion_point(copy_constructor:yb.tablet.MaintenanceManagerStatusPB) |
2271 | 0 | } |
2272 | | |
2273 | 15.8k | void MaintenanceManagerStatusPB::SharedCtor() { |
2274 | 15.8k | _cached_size_ = 0; |
2275 | 15.8k | best_op_ = NULL; |
2276 | 15.8k | } |
2277 | | |
2278 | 5 | MaintenanceManagerStatusPB::~MaintenanceManagerStatusPB() { |
2279 | | // @@protoc_insertion_point(destructor:yb.tablet.MaintenanceManagerStatusPB) |
2280 | 5 | SharedDtor(); |
2281 | 5 | } |
2282 | | |
2283 | 5 | void MaintenanceManagerStatusPB::SharedDtor() { |
2284 | 5 | if (this != internal_default_instance()) delete best_op_; |
2285 | 5 | } |
2286 | | |
2287 | 0 | void MaintenanceManagerStatusPB::SetCachedSize(int size) const { |
2288 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2289 | 0 | _cached_size_ = size; |
2290 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2291 | 0 | } |
2292 | 0 | const ::google::protobuf::Descriptor* MaintenanceManagerStatusPB::descriptor() { |
2293 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
2294 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2295 | 0 | } |
2296 | | |
2297 | 0 | const MaintenanceManagerStatusPB& MaintenanceManagerStatusPB::default_instance() { |
2298 | 0 | ::protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsMaintenanceManagerStatusPB(); |
2299 | 0 | return *internal_default_instance(); |
2300 | 0 | } |
2301 | | |
2302 | 0 | MaintenanceManagerStatusPB* MaintenanceManagerStatusPB::New(::google::protobuf::Arena* arena) const { |
2303 | 0 | MaintenanceManagerStatusPB* n = new MaintenanceManagerStatusPB; |
2304 | 0 | if (arena != NULL) { |
2305 | 0 | arena->Own(n); |
2306 | 0 | } |
2307 | 0 | return n; |
2308 | 0 | } |
2309 | | |
2310 | 0 | void MaintenanceManagerStatusPB::Clear() { |
2311 | | // @@protoc_insertion_point(message_clear_start:yb.tablet.MaintenanceManagerStatusPB) |
2312 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2313 | | // Prevent compiler warnings about cached_has_bits being unused |
2314 | 0 | (void) cached_has_bits; |
2315 | |
|
2316 | 0 | registered_operations_.Clear(); |
2317 | 0 | completed_operations_.Clear(); |
2318 | 0 | cached_has_bits = _has_bits_[0]; |
2319 | 0 | if (cached_has_bits & 0x00000001u) { |
2320 | 0 | GOOGLE_DCHECK(best_op_ != NULL); |
2321 | 0 | best_op_->Clear(); |
2322 | 0 | } |
2323 | 0 | _has_bits_.Clear(); |
2324 | 0 | _internal_metadata_.Clear(); |
2325 | 0 | } |
2326 | | |
2327 | | bool MaintenanceManagerStatusPB::MergePartialFromCodedStream( |
2328 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2329 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2330 | 0 | ::google::protobuf::uint32 tag; |
2331 | | // @@protoc_insertion_point(parse_start:yb.tablet.MaintenanceManagerStatusPB) |
2332 | 0 | for (;;) { |
2333 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2334 | 0 | tag = p.first; |
2335 | 0 | if (!p.second) goto handle_unusual; |
2336 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2337 | | // optional .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB best_op = 1; |
2338 | 0 | case 1: { |
2339 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2340 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2341 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2342 | 0 | input, mutable_best_op())); |
2343 | 0 | } else { |
2344 | 0 | goto handle_unusual; |
2345 | 0 | } |
2346 | 0 | break; |
2347 | 0 | } |
2348 | | |
2349 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB registered_operations = 2; |
2350 | 0 | case 2: { |
2351 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2352 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2353 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_registered_operations())); |
2354 | 0 | } else { |
2355 | 0 | goto handle_unusual; |
2356 | 0 | } |
2357 | 0 | break; |
2358 | 0 | } |
2359 | | |
2360 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB completed_operations = 3; |
2361 | 0 | case 3: { |
2362 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2363 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2364 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_completed_operations())); |
2365 | 0 | } else { |
2366 | 0 | goto handle_unusual; |
2367 | 0 | } |
2368 | 0 | break; |
2369 | 0 | } |
2370 | | |
2371 | 0 | default: { |
2372 | 0 | handle_unusual: |
2373 | 0 | if (tag == 0) { |
2374 | 0 | goto success; |
2375 | 0 | } |
2376 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2377 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2378 | 0 | break; |
2379 | 0 | } |
2380 | 0 | } |
2381 | 0 | } |
2382 | 0 | success: |
2383 | | // @@protoc_insertion_point(parse_success:yb.tablet.MaintenanceManagerStatusPB) |
2384 | 0 | return true; |
2385 | 0 | failure: |
2386 | | // @@protoc_insertion_point(parse_failure:yb.tablet.MaintenanceManagerStatusPB) |
2387 | 0 | return false; |
2388 | 0 | #undef DO_ |
2389 | 0 | } |
2390 | | |
2391 | | void MaintenanceManagerStatusPB::SerializeWithCachedSizes( |
2392 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2393 | | // @@protoc_insertion_point(serialize_start:yb.tablet.MaintenanceManagerStatusPB) |
2394 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2395 | 0 | (void) cached_has_bits; |
2396 | |
|
2397 | 0 | cached_has_bits = _has_bits_[0]; |
2398 | | // optional .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB best_op = 1; |
2399 | 0 | if (cached_has_bits & 0x00000001u) { |
2400 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2401 | 0 | 1, *this->best_op_, output); |
2402 | 0 | } |
2403 | | |
2404 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB registered_operations = 2; |
2405 | 0 | for (unsigned int i = 0, |
2406 | 0 | n = static_cast<unsigned int>(this->registered_operations_size()); i < n; i++) { |
2407 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2408 | 0 | 2, this->registered_operations(static_cast<int>(i)), output); |
2409 | 0 | } |
2410 | | |
2411 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB completed_operations = 3; |
2412 | 0 | for (unsigned int i = 0, |
2413 | 0 | n = static_cast<unsigned int>(this->completed_operations_size()); i < n; i++) { |
2414 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2415 | 0 | 3, this->completed_operations(static_cast<int>(i)), output); |
2416 | 0 | } |
2417 | |
|
2418 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2419 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2420 | 0 | _internal_metadata_.unknown_fields(), output); |
2421 | 0 | } |
2422 | | // @@protoc_insertion_point(serialize_end:yb.tablet.MaintenanceManagerStatusPB) |
2423 | 0 | } |
2424 | | |
2425 | | ::google::protobuf::uint8* MaintenanceManagerStatusPB::InternalSerializeWithCachedSizesToArray( |
2426 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2427 | 0 | (void)deterministic; // Unused |
2428 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.MaintenanceManagerStatusPB) |
2429 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2430 | 0 | (void) cached_has_bits; |
2431 | |
|
2432 | 0 | cached_has_bits = _has_bits_[0]; |
2433 | | // optional .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB best_op = 1; |
2434 | 0 | if (cached_has_bits & 0x00000001u) { |
2435 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2436 | 0 | InternalWriteMessageToArray( |
2437 | 0 | 1, *this->best_op_, deterministic, target); |
2438 | 0 | } |
2439 | | |
2440 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB registered_operations = 2; |
2441 | 0 | for (unsigned int i = 0, |
2442 | 0 | n = static_cast<unsigned int>(this->registered_operations_size()); i < n; i++) { |
2443 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2444 | 0 | InternalWriteMessageToArray( |
2445 | 0 | 2, this->registered_operations(static_cast<int>(i)), deterministic, target); |
2446 | 0 | } |
2447 | | |
2448 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB completed_operations = 3; |
2449 | 0 | for (unsigned int i = 0, |
2450 | 0 | n = static_cast<unsigned int>(this->completed_operations_size()); i < n; i++) { |
2451 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2452 | 0 | InternalWriteMessageToArray( |
2453 | 0 | 3, this->completed_operations(static_cast<int>(i)), deterministic, target); |
2454 | 0 | } |
2455 | |
|
2456 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2457 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2458 | 0 | _internal_metadata_.unknown_fields(), target); |
2459 | 0 | } |
2460 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.MaintenanceManagerStatusPB) |
2461 | 0 | return target; |
2462 | 0 | } |
2463 | | |
2464 | 0 | size_t MaintenanceManagerStatusPB::ByteSizeLong() const { |
2465 | | // @@protoc_insertion_point(message_byte_size_start:yb.tablet.MaintenanceManagerStatusPB) |
2466 | 0 | size_t total_size = 0; |
2467 | |
|
2468 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2469 | 0 | total_size += |
2470 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2471 | 0 | _internal_metadata_.unknown_fields()); |
2472 | 0 | } |
2473 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB registered_operations = 2; |
2474 | 0 | { |
2475 | 0 | unsigned int count = static_cast<unsigned int>(this->registered_operations_size()); |
2476 | 0 | total_size += 1UL * count; |
2477 | 0 | for (unsigned int i = 0; i < count; i++) { |
2478 | 0 | total_size += |
2479 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2480 | 0 | this->registered_operations(static_cast<int>(i))); |
2481 | 0 | } |
2482 | 0 | } |
2483 | | |
2484 | | // repeated .yb.tablet.MaintenanceManagerStatusPB.CompletedOpPB completed_operations = 3; |
2485 | 0 | { |
2486 | 0 | unsigned int count = static_cast<unsigned int>(this->completed_operations_size()); |
2487 | 0 | total_size += 1UL * count; |
2488 | 0 | for (unsigned int i = 0; i < count; i++) { |
2489 | 0 | total_size += |
2490 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2491 | 0 | this->completed_operations(static_cast<int>(i))); |
2492 | 0 | } |
2493 | 0 | } |
2494 | | |
2495 | | // optional .yb.tablet.MaintenanceManagerStatusPB.MaintenanceOpPB best_op = 1; |
2496 | 0 | if (has_best_op()) { |
2497 | 0 | total_size += 1 + |
2498 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2499 | 0 | *this->best_op_); |
2500 | 0 | } |
2501 | |
|
2502 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2503 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2504 | 0 | _cached_size_ = cached_size; |
2505 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2506 | 0 | return total_size; |
2507 | 0 | } |
2508 | | |
2509 | 0 | void MaintenanceManagerStatusPB::MergeFrom(const ::google::protobuf::Message& from) { |
2510 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.MaintenanceManagerStatusPB) |
2511 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2512 | 0 | const MaintenanceManagerStatusPB* source = |
2513 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const MaintenanceManagerStatusPB>( |
2514 | 0 | &from); |
2515 | 0 | if (source == NULL) { |
2516 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.MaintenanceManagerStatusPB) |
2517 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2518 | 0 | } else { |
2519 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.MaintenanceManagerStatusPB) |
2520 | 0 | MergeFrom(*source); |
2521 | 0 | } |
2522 | 0 | } |
2523 | | |
2524 | 0 | void MaintenanceManagerStatusPB::MergeFrom(const MaintenanceManagerStatusPB& from) { |
2525 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.MaintenanceManagerStatusPB) |
2526 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2527 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2528 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2529 | 0 | (void) cached_has_bits; |
2530 | |
|
2531 | 0 | registered_operations_.MergeFrom(from.registered_operations_); |
2532 | 0 | completed_operations_.MergeFrom(from.completed_operations_); |
2533 | 0 | if (from.has_best_op()) { |
2534 | 0 | mutable_best_op()->::yb::tablet::MaintenanceManagerStatusPB_MaintenanceOpPB::MergeFrom(from.best_op()); |
2535 | 0 | } |
2536 | 0 | } |
2537 | | |
2538 | 0 | void MaintenanceManagerStatusPB::CopyFrom(const ::google::protobuf::Message& from) { |
2539 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.MaintenanceManagerStatusPB) |
2540 | 0 | if (&from == this) return; |
2541 | 0 | Clear(); |
2542 | 0 | MergeFrom(from); |
2543 | 0 | } |
2544 | | |
2545 | 0 | void MaintenanceManagerStatusPB::CopyFrom(const MaintenanceManagerStatusPB& from) { |
2546 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.MaintenanceManagerStatusPB) |
2547 | 0 | if (&from == this) return; |
2548 | 0 | Clear(); |
2549 | 0 | MergeFrom(from); |
2550 | 0 | } |
2551 | | |
2552 | 0 | bool MaintenanceManagerStatusPB::IsInitialized() const { |
2553 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->registered_operations())) return false; |
2554 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->completed_operations())) return false; |
2555 | 0 | if (has_best_op()) { |
2556 | 0 | if (!this->best_op_->IsInitialized()) return false; |
2557 | 0 | } |
2558 | 0 | return true; |
2559 | 0 | } |
2560 | | |
2561 | 0 | void MaintenanceManagerStatusPB::Swap(MaintenanceManagerStatusPB* other) { |
2562 | 0 | if (other == this) return; |
2563 | 0 | InternalSwap(other); |
2564 | 0 | } |
2565 | 0 | void MaintenanceManagerStatusPB::InternalSwap(MaintenanceManagerStatusPB* other) { |
2566 | 0 | using std::swap; |
2567 | 0 | registered_operations_.InternalSwap(&other->registered_operations_); |
2568 | 0 | completed_operations_.InternalSwap(&other->completed_operations_); |
2569 | 0 | swap(best_op_, other->best_op_); |
2570 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2571 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2572 | 0 | swap(_cached_size_, other->_cached_size_); |
2573 | 0 | } |
2574 | | |
2575 | 0 | ::google::protobuf::Metadata MaintenanceManagerStatusPB::GetMetadata() const { |
2576 | 0 | protobuf_yb_2ftablet_2ftablet_2eproto::protobuf_AssignDescriptorsOnce(); |
2577 | 0 | return ::protobuf_yb_2ftablet_2ftablet_2eproto::file_level_metadata[kIndexInFileMessages]; |
2578 | 0 | } |
2579 | | |
2580 | | |
2581 | | // @@protoc_insertion_point(namespace_scope) |
2582 | | } // namespace tablet |
2583 | | } // namespace yb |
2584 | | |
2585 | | // @@protoc_insertion_point(global_scope) |