/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_heartbeat.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/master/master_heartbeat.proto |
3 | | |
4 | | #include "yb/master/master_heartbeat.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/stubs/once.h> |
11 | | #include <google/protobuf/io/coded_stream.h> |
12 | | #include <google/protobuf/wire_format_lite_inl.h> |
13 | | #include <google/protobuf/descriptor.h> |
14 | | #include <google/protobuf/generated_message_reflection.h> |
15 | | #include <google/protobuf/reflection_ops.h> |
16 | | #include <google/protobuf/wire_format.h> |
17 | | // This is a temporary google only hack |
18 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
19 | | #include "third_party/protobuf/version.h" |
20 | | #endif |
21 | | #include "yb/util/protobuf-annotations.h" |
22 | | // @@protoc_insertion_point(includes) |
23 | | namespace yb { |
24 | | namespace master { |
25 | | class TSToMasterCommonPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<TSToMasterCommonPB> |
28 | | _instance; |
29 | | } _TSToMasterCommonPB_default_instance_; |
30 | | class ReportedTabletPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<ReportedTabletPB> |
33 | | _instance; |
34 | | } _ReportedTabletPB_default_instance_; |
35 | | class TabletReportPBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<TabletReportPB> |
38 | | _instance; |
39 | | } _TabletReportPB_default_instance_; |
40 | | class TabletForSplitPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<TabletForSplitPB> |
43 | | _instance; |
44 | | } _TabletForSplitPB_default_instance_; |
45 | | class TabletDriveStorageMetadataPBDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<TabletDriveStorageMetadataPB> |
48 | | _instance; |
49 | | } _TabletDriveStorageMetadataPB_default_instance_; |
50 | | class ReportedTabletUpdatesPBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<ReportedTabletUpdatesPB> |
53 | | _instance; |
54 | | } _ReportedTabletUpdatesPB_default_instance_; |
55 | | class TabletReportUpdatesPBDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<TabletReportUpdatesPB> |
58 | | _instance; |
59 | | } _TabletReportUpdatesPB_default_instance_; |
60 | | class TSInformationPBDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<TSInformationPB> |
63 | | _instance; |
64 | | } _TSInformationPB_default_instance_; |
65 | | class TSSnapshotScheduleInfoPBDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotScheduleInfoPB> |
68 | | _instance; |
69 | | } _TSSnapshotScheduleInfoPB_default_instance_; |
70 | | class TSSnapshotRestorationInfoPBDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotRestorationInfoPB> |
73 | | _instance; |
74 | | } _TSSnapshotRestorationInfoPB_default_instance_; |
75 | | class TSSnapshotsInfoPBDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotsInfoPB> |
78 | | _instance; |
79 | | } _TSSnapshotsInfoPB_default_instance_; |
80 | | class TSHeartbeatRequestPBDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<TSHeartbeatRequestPB> |
83 | | _instance; |
84 | | } _TSHeartbeatRequestPB_default_instance_; |
85 | | class TSHeartbeatResponsePBDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<TSHeartbeatResponsePB> |
88 | | _instance; |
89 | | } _TSHeartbeatResponsePB_default_instance_; |
90 | | } // namespace master |
91 | | } // namespace yb |
92 | | namespace protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto { |
93 | 26.8k | void InitDefaultsTSToMasterCommonPBImpl() { |
94 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
95 | | |
96 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
97 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
98 | | #else |
99 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
100 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
101 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB(); |
102 | 26.8k | { |
103 | 26.8k | void* ptr = &::yb::master::_TSToMasterCommonPB_default_instance_; |
104 | 26.8k | new (ptr) ::yb::master::TSToMasterCommonPB(); |
105 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
106 | 26.8k | } |
107 | 26.8k | ::yb::master::TSToMasterCommonPB::InitAsDefaultInstance(); |
108 | 26.8k | } |
109 | | |
110 | 10.4M | void InitDefaultsTSToMasterCommonPB() { |
111 | 10.4M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
112 | 10.4M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSToMasterCommonPBImpl); |
113 | 10.4M | } |
114 | | |
115 | 26.8k | void InitDefaultsReportedTabletPBImpl() { |
116 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
117 | | |
118 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
119 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
120 | | #else |
121 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
122 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
123 | 26.8k | protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePB(); |
124 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
125 | 26.8k | { |
126 | 26.8k | void* ptr = &::yb::master::_ReportedTabletPB_default_instance_; |
127 | 26.8k | new (ptr) ::yb::master::ReportedTabletPB(); |
128 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
129 | 26.8k | } |
130 | 26.8k | ::yb::master::ReportedTabletPB::InitAsDefaultInstance(); |
131 | 26.8k | } |
132 | | |
133 | 968k | void InitDefaultsReportedTabletPB() { |
134 | 968k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
135 | 968k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReportedTabletPBImpl); |
136 | 968k | } |
137 | | |
138 | 26.8k | void InitDefaultsTabletReportPBImpl() { |
139 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
140 | | |
141 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
142 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
143 | | #else |
144 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
145 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
146 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB(); |
147 | 26.8k | { |
148 | 26.8k | void* ptr = &::yb::master::_TabletReportPB_default_instance_; |
149 | 26.8k | new (ptr) ::yb::master::TabletReportPB(); |
150 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
151 | 26.8k | } |
152 | 26.8k | ::yb::master::TabletReportPB::InitAsDefaultInstance(); |
153 | 26.8k | } |
154 | | |
155 | 10.4M | void InitDefaultsTabletReportPB() { |
156 | 10.4M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
157 | 10.4M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletReportPBImpl); |
158 | 10.4M | } |
159 | | |
160 | 26.8k | void InitDefaultsTabletForSplitPBImpl() { |
161 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
162 | | |
163 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
164 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
165 | | #else |
166 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
167 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
168 | 26.8k | { |
169 | 26.8k | void* ptr = &::yb::master::_TabletForSplitPB_default_instance_; |
170 | 26.8k | new (ptr) ::yb::master::TabletForSplitPB(); |
171 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
172 | 26.8k | } |
173 | 26.8k | ::yb::master::TabletForSplitPB::InitAsDefaultInstance(); |
174 | 26.8k | } |
175 | | |
176 | 53.7k | void InitDefaultsTabletForSplitPB() { |
177 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
178 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletForSplitPBImpl); |
179 | 53.7k | } |
180 | | |
181 | 26.8k | void InitDefaultsTabletDriveStorageMetadataPBImpl() { |
182 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
183 | | |
184 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
185 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
186 | | #else |
187 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
188 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
189 | 26.8k | { |
190 | 26.8k | void* ptr = &::yb::master::_TabletDriveStorageMetadataPB_default_instance_; |
191 | 26.8k | new (ptr) ::yb::master::TabletDriveStorageMetadataPB(); |
192 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
193 | 26.8k | } |
194 | 26.8k | ::yb::master::TabletDriveStorageMetadataPB::InitAsDefaultInstance(); |
195 | 26.8k | } |
196 | | |
197 | 4.75M | void InitDefaultsTabletDriveStorageMetadataPB() { |
198 | 4.75M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
199 | 4.75M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletDriveStorageMetadataPBImpl); |
200 | 4.75M | } |
201 | | |
202 | 26.8k | void InitDefaultsReportedTabletUpdatesPBImpl() { |
203 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
204 | | |
205 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
206 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
207 | | #else |
208 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
209 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
210 | 26.8k | { |
211 | 26.8k | void* ptr = &::yb::master::_ReportedTabletUpdatesPB_default_instance_; |
212 | 26.8k | new (ptr) ::yb::master::ReportedTabletUpdatesPB(); |
213 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
214 | 26.8k | } |
215 | 26.8k | ::yb::master::ReportedTabletUpdatesPB::InitAsDefaultInstance(); |
216 | 26.8k | } |
217 | | |
218 | 962k | void InitDefaultsReportedTabletUpdatesPB() { |
219 | 962k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
220 | 962k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReportedTabletUpdatesPBImpl); |
221 | 962k | } |
222 | | |
223 | 26.8k | void InitDefaultsTabletReportUpdatesPBImpl() { |
224 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
225 | | |
226 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
227 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
228 | | #else |
229 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
230 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
231 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB(); |
232 | 26.8k | { |
233 | 26.8k | void* ptr = &::yb::master::_TabletReportUpdatesPB_default_instance_; |
234 | 26.8k | new (ptr) ::yb::master::TabletReportUpdatesPB(); |
235 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
236 | 26.8k | } |
237 | 26.8k | ::yb::master::TabletReportUpdatesPB::InitAsDefaultInstance(); |
238 | 26.8k | } |
239 | | |
240 | 9.69M | void InitDefaultsTabletReportUpdatesPB() { |
241 | 9.69M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
242 | 9.69M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletReportUpdatesPBImpl); |
243 | 9.69M | } |
244 | | |
245 | 26.8k | void InitDefaultsTSInformationPBImpl() { |
246 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
247 | | |
248 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
249 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
250 | | #else |
251 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
252 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
253 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB(); |
254 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB(); |
255 | 26.8k | { |
256 | 26.8k | void* ptr = &::yb::master::_TSInformationPB_default_instance_; |
257 | 26.8k | new (ptr) ::yb::master::TSInformationPB(); |
258 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
259 | 26.8k | } |
260 | 26.8k | ::yb::master::TSInformationPB::InitAsDefaultInstance(); |
261 | 26.8k | } |
262 | | |
263 | 35.7M | void InitDefaultsTSInformationPB() { |
264 | 35.7M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
265 | 35.7M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSInformationPBImpl); |
266 | 35.7M | } |
267 | | |
268 | 26.8k | void InitDefaultsTSSnapshotScheduleInfoPBImpl() { |
269 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
270 | | |
271 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
272 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
273 | | #else |
274 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
275 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
276 | 26.8k | { |
277 | 26.8k | void* ptr = &::yb::master::_TSSnapshotScheduleInfoPB_default_instance_; |
278 | 26.8k | new (ptr) ::yb::master::TSSnapshotScheduleInfoPB(); |
279 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
280 | 26.8k | } |
281 | 26.8k | ::yb::master::TSSnapshotScheduleInfoPB::InitAsDefaultInstance(); |
282 | 26.8k | } |
283 | | |
284 | 54.6k | void InitDefaultsTSSnapshotScheduleInfoPB() { |
285 | 54.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
286 | 54.6k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotScheduleInfoPBImpl); |
287 | 54.6k | } |
288 | | |
289 | 26.8k | void InitDefaultsTSSnapshotRestorationInfoPBImpl() { |
290 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
291 | | |
292 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
293 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
294 | | #else |
295 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
296 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
297 | 26.8k | { |
298 | 26.8k | void* ptr = &::yb::master::_TSSnapshotRestorationInfoPB_default_instance_; |
299 | 26.8k | new (ptr) ::yb::master::TSSnapshotRestorationInfoPB(); |
300 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
301 | 26.8k | } |
302 | 26.8k | ::yb::master::TSSnapshotRestorationInfoPB::InitAsDefaultInstance(); |
303 | 26.8k | } |
304 | | |
305 | 53.7k | void InitDefaultsTSSnapshotRestorationInfoPB() { |
306 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
307 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotRestorationInfoPBImpl); |
308 | 53.7k | } |
309 | | |
310 | 26.8k | void InitDefaultsTSSnapshotsInfoPBImpl() { |
311 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
312 | | |
313 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
314 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
315 | | #else |
316 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
317 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
318 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB(); |
319 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB(); |
320 | 26.8k | { |
321 | 26.8k | void* ptr = &::yb::master::_TSSnapshotsInfoPB_default_instance_; |
322 | 26.8k | new (ptr) ::yb::master::TSSnapshotsInfoPB(); |
323 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
324 | 26.8k | } |
325 | 26.8k | ::yb::master::TSSnapshotsInfoPB::InitAsDefaultInstance(); |
326 | 26.8k | } |
327 | | |
328 | 9.69M | void InitDefaultsTSSnapshotsInfoPB() { |
329 | 9.69M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
330 | 9.69M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotsInfoPBImpl); |
331 | 9.69M | } |
332 | | |
333 | 26.8k | void InitDefaultsTSHeartbeatRequestPBImpl() { |
334 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
335 | | |
336 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
337 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
338 | | #else |
339 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
340 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
341 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB(); |
342 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB(); |
343 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB(); |
344 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB(); |
345 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB(); |
346 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB(); |
347 | 26.8k | { |
348 | 26.8k | void* ptr = &::yb::master::_TSHeartbeatRequestPB_default_instance_; |
349 | 26.8k | new (ptr) ::yb::master::TSHeartbeatRequestPB(); |
350 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
351 | 26.8k | } |
352 | 26.8k | ::yb::master::TSHeartbeatRequestPB::InitAsDefaultInstance(); |
353 | 26.8k | } |
354 | | |
355 | 10.4M | void InitDefaultsTSHeartbeatRequestPB() { |
356 | 10.4M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
357 | 10.4M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSHeartbeatRequestPBImpl); |
358 | 10.4M | } |
359 | | |
360 | 26.8k | void InitDefaultsTSHeartbeatResponsePBImpl() { |
361 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
362 | | |
363 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
364 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
365 | | #else |
366 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
367 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
368 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
369 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB(); |
370 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB(); |
371 | 26.8k | protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPB(); |
372 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB(); |
373 | 26.8k | protobuf_yb_2fencryption_2fencryption_2eproto::InitDefaultsUniverseKeyRegistryPB(); |
374 | 26.8k | protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB(); |
375 | 26.8k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB(); |
376 | 26.8k | { |
377 | 26.8k | void* ptr = &::yb::master::_TSHeartbeatResponsePB_default_instance_; |
378 | 26.8k | new (ptr) ::yb::master::TSHeartbeatResponsePB(); |
379 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
380 | 26.8k | } |
381 | 26.8k | ::yb::master::TSHeartbeatResponsePB::InitAsDefaultInstance(); |
382 | 26.8k | } |
383 | | |
384 | 10.4M | void InitDefaultsTSHeartbeatResponsePB() { |
385 | 10.4M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
386 | 10.4M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSHeartbeatResponsePBImpl); |
387 | 10.4M | } |
388 | | |
389 | | ::google::protobuf::Metadata file_level_metadata[13]; |
390 | | |
391 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
392 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, _has_bits_), |
393 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, _internal_metadata_), |
394 | | ~0u, // no _extensions_ |
395 | | ~0u, // no _oneof_case_ |
396 | | ~0u, // no _weak_field_map_ |
397 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, ts_instance_), |
398 | | 0, |
399 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, _has_bits_), |
400 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, _internal_metadata_), |
401 | | ~0u, // no _extensions_ |
402 | | ~0u, // no _oneof_case_ |
403 | | ~0u, // no _weak_field_map_ |
404 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, tablet_id_), |
405 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, state_), |
406 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, tablet_data_state_), |
407 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, committed_consensus_state_), |
408 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, error_), |
409 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, schema_version_), |
410 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, should_disable_lb_move_), |
411 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, fs_data_dir_), |
412 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, is_hidden_), |
413 | | 0, |
414 | | 7, |
415 | | 8, |
416 | | 2, |
417 | | 3, |
418 | | 4, |
419 | | 5, |
420 | | 1, |
421 | | 6, |
422 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, _has_bits_), |
423 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, _internal_metadata_), |
424 | | ~0u, // no _extensions_ |
425 | | ~0u, // no _oneof_case_ |
426 | | ~0u, // no _weak_field_map_ |
427 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, is_incremental_), |
428 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, updated_tablets_), |
429 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, removed_tablet_ids_), |
430 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, sequence_number_), |
431 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, remaining_tablet_count_), |
432 | | 0, |
433 | | ~0u, |
434 | | ~0u, |
435 | | 1, |
436 | | 2, |
437 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, _has_bits_), |
438 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, _internal_metadata_), |
439 | | ~0u, // no _extensions_ |
440 | | ~0u, // no _oneof_case_ |
441 | | ~0u, // no _weak_field_map_ |
442 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, tablet_id_), |
443 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, obsolete_split_partition_key_), |
444 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, obsolete_split_encoded_key_), |
445 | | 0, |
446 | | 1, |
447 | | 2, |
448 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, _has_bits_), |
449 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, _internal_metadata_), |
450 | | ~0u, // no _extensions_ |
451 | | ~0u, // no _oneof_case_ |
452 | | ~0u, // no _weak_field_map_ |
453 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, tablet_id_), |
454 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, sst_file_size_), |
455 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, wal_file_size_), |
456 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, uncompressed_sst_file_size_), |
457 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, may_have_orphaned_post_split_data_), |
458 | | 0, |
459 | | 1, |
460 | | 2, |
461 | | 3, |
462 | | 4, |
463 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, _has_bits_), |
464 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, _internal_metadata_), |
465 | | ~0u, // no _extensions_ |
466 | | ~0u, // no _oneof_case_ |
467 | | ~0u, // no _weak_field_map_ |
468 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, tablet_id_), |
469 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, state_msg_), |
470 | | 0, |
471 | | 1, |
472 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, _has_bits_), |
473 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, _internal_metadata_), |
474 | | ~0u, // no _extensions_ |
475 | | ~0u, // no _oneof_case_ |
476 | | ~0u, // no _weak_field_map_ |
477 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, tablets_), |
478 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, processing_truncated_), |
479 | | ~0u, |
480 | | 0, |
481 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, _has_bits_), |
482 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, _internal_metadata_), |
483 | | ~0u, // no _extensions_ |
484 | | ~0u, // no _oneof_case_ |
485 | | ~0u, // no _weak_field_map_ |
486 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, registration_), |
487 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, tserver_instance_), |
488 | | 0, |
489 | | 1, |
490 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, _has_bits_), |
491 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, _internal_metadata_), |
492 | | ~0u, // no _extensions_ |
493 | | ~0u, // no _oneof_case_ |
494 | | ~0u, // no _weak_field_map_ |
495 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, id_), |
496 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, last_snapshot_hybrid_time_), |
497 | | 0, |
498 | | 1, |
499 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, _has_bits_), |
500 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, _internal_metadata_), |
501 | | ~0u, // no _extensions_ |
502 | | ~0u, // no _oneof_case_ |
503 | | ~0u, // no _weak_field_map_ |
504 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, id_), |
505 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, complete_time_ht_), |
506 | | 0, |
507 | | 1, |
508 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, _has_bits_), |
509 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, _internal_metadata_), |
510 | | ~0u, // no _extensions_ |
511 | | ~0u, // no _oneof_case_ |
512 | | ~0u, // no _weak_field_map_ |
513 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, schedules_), |
514 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, last_restorations_update_ht_), |
515 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, restorations_), |
516 | | ~0u, |
517 | | 0, |
518 | | ~0u, |
519 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, _has_bits_), |
520 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, _internal_metadata_), |
521 | | ~0u, // no _extensions_ |
522 | | ~0u, // no _oneof_case_ |
523 | | ~0u, // no _weak_field_map_ |
524 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, common_), |
525 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, registration_), |
526 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, tablet_report_), |
527 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, num_live_tablets_), |
528 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, config_index_), |
529 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, metrics_), |
530 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, leader_count_), |
531 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, cluster_config_version_), |
532 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, deprecated_tablets_for_split_), |
533 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, ts_physical_time_), |
534 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, ts_hybrid_time_), |
535 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, rtt_us_), |
536 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, storage_metadata_), |
537 | | 0, |
538 | | 1, |
539 | | 2, |
540 | | 5, |
541 | | 4, |
542 | | 3, |
543 | | 6, |
544 | | 10, |
545 | | ~0u, |
546 | | 7, |
547 | | 8, |
548 | | 9, |
549 | | ~0u, |
550 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, _has_bits_), |
551 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, _internal_metadata_), |
552 | | ~0u, // no _extensions_ |
553 | | ~0u, // no _oneof_case_ |
554 | | ~0u, // no _weak_field_map_ |
555 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, error_), |
556 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, master_instance_), |
557 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, needs_reregister_), |
558 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, needs_full_tablet_report_), |
559 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tablet_report_), |
560 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, leader_master_), |
561 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, master_config_), |
562 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tservers_), |
563 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, cluster_uuid_), |
564 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, ysql_catalog_version_), |
565 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, ysql_last_breaking_catalog_version_), |
566 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, universe_key_registry_), |
567 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, consumer_registry_), |
568 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, cluster_config_version_), |
569 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tablet_report_limit_), |
570 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, snapshots_info_), |
571 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, deprecated_tablet_split_size_threshold_bytes_), |
572 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, transaction_tables_version_), |
573 | | 1, |
574 | | 2, |
575 | | 8, |
576 | | 9, |
577 | | 3, |
578 | | 10, |
579 | | 4, |
580 | | ~0u, |
581 | | 0, |
582 | | 12, |
583 | | 14, |
584 | | 5, |
585 | | 6, |
586 | | 11, |
587 | | 16, |
588 | | 7, |
589 | | 13, |
590 | | 15, |
591 | | }; |
592 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
593 | | { 0, 6, sizeof(::yb::master::TSToMasterCommonPB)}, |
594 | | { 7, 21, sizeof(::yb::master::ReportedTabletPB)}, |
595 | | { 30, 40, sizeof(::yb::master::TabletReportPB)}, |
596 | | { 45, 53, sizeof(::yb::master::TabletForSplitPB)}, |
597 | | { 56, 66, sizeof(::yb::master::TabletDriveStorageMetadataPB)}, |
598 | | { 71, 78, sizeof(::yb::master::ReportedTabletUpdatesPB)}, |
599 | | { 80, 87, sizeof(::yb::master::TabletReportUpdatesPB)}, |
600 | | { 89, 96, sizeof(::yb::master::TSInformationPB)}, |
601 | | { 98, 105, sizeof(::yb::master::TSSnapshotScheduleInfoPB)}, |
602 | | { 107, 114, sizeof(::yb::master::TSSnapshotRestorationInfoPB)}, |
603 | | { 116, 124, sizeof(::yb::master::TSSnapshotsInfoPB)}, |
604 | | { 127, 145, sizeof(::yb::master::TSHeartbeatRequestPB)}, |
605 | | { 158, 181, sizeof(::yb::master::TSHeartbeatResponsePB)}, |
606 | | }; |
607 | | |
608 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
609 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSToMasterCommonPB_default_instance_), |
610 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReportedTabletPB_default_instance_), |
611 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletReportPB_default_instance_), |
612 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletForSplitPB_default_instance_), |
613 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletDriveStorageMetadataPB_default_instance_), |
614 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReportedTabletUpdatesPB_default_instance_), |
615 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletReportUpdatesPB_default_instance_), |
616 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSInformationPB_default_instance_), |
617 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotScheduleInfoPB_default_instance_), |
618 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotRestorationInfoPB_default_instance_), |
619 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotsInfoPB_default_instance_), |
620 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSHeartbeatRequestPB_default_instance_), |
621 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSHeartbeatResponsePB_default_instance_), |
622 | | }; |
623 | | |
624 | 3.04k | void protobuf_AssignDescriptors() { |
625 | 3.04k | AddDescriptors(); |
626 | 3.04k | ::google::protobuf::MessageFactory* factory = NULL; |
627 | 3.04k | AssignDescriptors( |
628 | 3.04k | "yb/master/master_heartbeat.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
629 | 3.04k | file_level_metadata, NULL, NULL); |
630 | 3.04k | } |
631 | | |
632 | 18.3M | void protobuf_AssignDescriptorsOnce() { |
633 | 18.3M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
634 | 18.3M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
635 | 18.3M | } |
636 | | |
637 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
638 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
639 | 0 | protobuf_AssignDescriptorsOnce(); |
640 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 13); |
641 | 0 | } |
642 | | |
643 | 26.8k | void AddDescriptorsImpl() { |
644 | 26.8k | InitDefaults(); |
645 | 26.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
646 | 26.8k | "\n yb/master/master_heartbeat.proto\022\tyb.m" |
647 | 26.8k | "aster\032\031yb/cdc/cdc_consumer.proto\032\035yb/com" |
648 | 26.8k | "mon/wire_protocol.proto\032\033yb/consensus/me" |
649 | 26.8k | "tadata.proto\032\036yb/encryption/encryption.p" |
650 | 26.8k | "roto\032\034yb/master/master_types.proto\032\034yb/t" |
651 | 26.8k | "ablet/tablet_types.proto\032\024yb/rpc/service" |
652 | 26.8k | ".proto\"=\n\022TSToMasterCommonPB\022\'\n\013ts_insta" |
653 | 26.8k | "nce\030\001 \002(\0132\022.yb.NodeInstancePB\"\351\002\n\020Report" |
654 | 26.8k | "edTabletPB\022\021\n\ttablet_id\030\001 \002(\014\0223\n\005state\030\002" |
655 | 26.8k | " \001(\0162\033.yb.tablet.RaftGroupStatePB:\007UNKNO" |
656 | 26.8k | "WN\022J\n\021tablet_data_state\030\006 \001(\0162\032.yb.table" |
657 | 26.8k | "t.TabletDataState:\023TABLET_DATA_UNKNOWN\022A" |
658 | 26.8k | "\n\031committed_consensus_state\030\003 \001(\0132\036.yb.c" |
659 | 26.8k | "onsensus.ConsensusStatePB\022\036\n\005error\030\004 \001(\013" |
660 | 26.8k | "2\017.yb.AppStatusPB\022\026\n\016schema_version\030\005 \001(" |
661 | 26.8k | "\r\022\036\n\026should_disable_lb_move\030\007 \001(\010\022\023\n\013fs_" |
662 | 26.8k | "data_dir\030\010 \001(\014\022\021\n\tis_hidden\030\t \001(\010\"\263\001\n\016Ta" |
663 | 26.8k | "bletReportPB\022\026\n\016is_incremental\030\001 \002(\010\0224\n\017" |
664 | 26.8k | "updated_tablets\030\002 \003(\0132\033.yb.master.Report" |
665 | 26.8k | "edTabletPB\022\032\n\022removed_tablet_ids\030\003 \003(\014\022\027" |
666 | 26.8k | "\n\017sequence_number\030\004 \002(\005\022\036\n\026remaining_tab" |
667 | 26.8k | "let_count\030\005 \001(\005\"o\n\020TabletForSplitPB\022\021\n\tt" |
668 | 26.8k | "ablet_id\030\001 \002(\014\022$\n\034OBSOLETE_split_partiti" |
669 | 26.8k | "on_key\030\002 \001(\014\022\"\n\032OBSOLETE_split_encoded_k" |
670 | 26.8k | "ey\030\003 \001(\014\"\264\001\n\034TabletDriveStorageMetadataP" |
671 | 26.8k | "B\022\021\n\ttablet_id\030\001 \002(\014\022\025\n\rsst_file_size\030\002 " |
672 | 26.8k | "\001(\004\022\025\n\rwal_file_size\030\003 \001(\004\022\"\n\032uncompress" |
673 | 26.8k | "ed_sst_file_size\030\004 \001(\004\022/\n!may_have_orpha" |
674 | 26.8k | "ned_post_split_data\030\005 \001(\010:\004true\"\?\n\027Repor" |
675 | 26.8k | "tedTabletUpdatesPB\022\021\n\ttablet_id\030\001 \002(\014\022\021\n" |
676 | 26.8k | "\tstate_msg\030\002 \001(\t\"q\n\025TabletReportUpdatesP" |
677 | 26.8k | "B\0223\n\007tablets\030\001 \003(\0132\".yb.master.ReportedT" |
678 | 26.8k | "abletUpdatesPB\022#\n\024processing_truncated\030\002" |
679 | 26.8k | " \001(\010:\005false\"r\n\017TSInformationPB\0221\n\014regist" |
680 | 26.8k | "ration\030\001 \002(\0132\033.yb.master.TSRegistrationP" |
681 | 26.8k | "B\022,\n\020tserver_instance\030\002 \002(\0132\022.yb.NodeIns" |
682 | 26.8k | "tancePB\"I\n\030TSSnapshotScheduleInfoPB\022\n\n\002i" |
683 | 26.8k | "d\030\001 \001(\014\022!\n\031last_snapshot_hybrid_time\030\002 \001" |
684 | 26.8k | "(\006\"C\n\033TSSnapshotRestorationInfoPB\022\n\n\002id\030" |
685 | 26.8k | "\001 \001(\014\022\030\n\020complete_time_ht\030\002 \001(\006\"\256\001\n\021TSSn" |
686 | 26.8k | "apshotsInfoPB\0226\n\tschedules\030\001 \003(\0132#.yb.ma" |
687 | 26.8k | "ster.TSSnapshotScheduleInfoPB\022#\n\033last_re" |
688 | 26.8k | "storations_update_ht\030\002 \001(\006\022<\n\014restoratio" |
689 | 26.8k | "ns\030\003 \003(\0132&.yb.master.TSSnapshotRestorati" |
690 | 26.8k | "onInfoPB\"\214\004\n\024TSHeartbeatRequestPB\022-\n\006com" |
691 | 26.8k | "mon\030\001 \002(\0132\035.yb.master.TSToMasterCommonPB" |
692 | 26.8k | "\0221\n\014registration\030\002 \001(\0132\033.yb.master.TSReg" |
693 | 26.8k | "istrationPB\0220\n\rtablet_report\030\003 \001(\0132\031.yb." |
694 | 26.8k | "master.TabletReportPB\022\030\n\020num_live_tablet" |
695 | 26.8k | "s\030\004 \001(\005\022\024\n\014config_index\030\005 \001(\003\022,\n\007metrics" |
696 | 26.8k | "\030\006 \001(\0132\033.yb.master.TServerMetricsPB\022\024\n\014l" |
697 | 26.8k | "eader_count\030\007 \001(\005\022\036\n\026cluster_config_vers" |
698 | 26.8k | "ion\030\010 \001(\005\022A\n\034DEPRECATED_tablets_for_spli" |
699 | 26.8k | "t\030\t \003(\0132\033.yb.master.TabletForSplitPB\022\030\n\020" |
700 | 26.8k | "ts_physical_time\030\n \001(\006\022\026\n\016ts_hybrid_time" |
701 | 26.8k | "\030\013 \001(\006\022\016\n\006rtt_us\030\014 \001(\003\022A\n\020storage_metada" |
702 | 26.8k | "ta\030\016 \003(\0132\'.yb.master.TabletDriveStorageM" |
703 | 26.8k | "etadataPBJ\004\010\r\020\016\"\221\006\n\025TSHeartbeatResponseP" |
704 | 26.8k | "B\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterError" |
705 | 26.8k | "PB\022+\n\017master_instance\030\002 \001(\0132\022.yb.NodeIns" |
706 | 26.8k | "tancePB\022\037\n\020needs_reregister\030\003 \001(\010:\005false" |
707 | 26.8k | "\022\'\n\030needs_full_tablet_report\030\004 \001(\010:\005fals" |
708 | 26.8k | "e\0227\n\rtablet_report\030\005 \001(\0132 .yb.master.Tab" |
709 | 26.8k | "letReportUpdatesPB\022\025\n\rleader_master\030\006 \001(" |
710 | 26.8k | "\010\0221\n\rmaster_config\030\007 \001(\0132\032.yb.consensus." |
711 | 26.8k | "RaftConfigPB\022,\n\010tservers\030\010 \003(\0132\032.yb.mast" |
712 | 26.8k | "er.TSInformationPB\022\024\n\014cluster_uuid\030\t \001(\t" |
713 | 26.8k | "\022\034\n\024ysql_catalog_version\030\n \001(\004\022*\n\"ysql_l" |
714 | 26.8k | "ast_breaking_catalog_version\030\017 \001(\004\022C\n\025un" |
715 | 26.8k | "iverse_key_registry\030\013 \001(\0132$.yb.encryptio" |
716 | 26.8k | "n.UniverseKeyRegistryPB\0225\n\021consumer_regi" |
717 | 26.8k | "stry\030\014 \001(\0132\032.yb.cdc.ConsumerRegistryPB\022\036" |
718 | 26.8k | "\n\026cluster_config_version\030\r \001(\005\022\033\n\023tablet" |
719 | 26.8k | "_report_limit\030\020 \001(\005\0224\n\016snapshots_info\030\021 " |
720 | 26.8k | "\001(\0132\034.yb.master.TSSnapshotsInfoPB\0224\n,DEP" |
721 | 26.8k | "RECATED_tablet_split_size_threshold_byte" |
722 | 26.8k | "s\030\016 \001(\003\022\"\n\032transaction_tables_version\030\022 " |
723 | 26.8k | "\001(\0042\200\001\n\017MasterHeartbeat\022P\n\013TSHeartbeat\022\037" |
724 | 26.8k | ".yb.master.TSHeartbeatRequestPB\032 .yb.mas" |
725 | 26.8k | "ter.TSHeartbeatResponsePB\032\033\332\265\030\027yb.master" |
726 | 26.8k | ".MasterServiceB\017\n\rorg.yb.master" |
727 | 26.8k | }; |
728 | 26.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
729 | 26.8k | descriptor, 3231); |
730 | 26.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
731 | 26.8k | "yb/master/master_heartbeat.proto", &protobuf_RegisterTypes); |
732 | 26.8k | ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::AddDescriptors(); |
733 | 26.8k | ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors(); |
734 | 26.8k | ::protobuf_yb_2fconsensus_2fmetadata_2eproto::AddDescriptors(); |
735 | 26.8k | ::protobuf_yb_2fencryption_2fencryption_2eproto::AddDescriptors(); |
736 | 26.8k | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors(); |
737 | 26.8k | ::protobuf_yb_2ftablet_2ftablet_5ftypes_2eproto::AddDescriptors(); |
738 | 26.8k | ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors(); |
739 | 26.8k | } |
740 | | |
741 | 29.9k | void AddDescriptors() { |
742 | 29.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
743 | 29.9k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
744 | 29.9k | } |
745 | | // Force AddDescriptors() to be called at dynamic initialization time. |
746 | | struct StaticDescriptorInitializer { |
747 | 26.8k | StaticDescriptorInitializer() { |
748 | 26.8k | AddDescriptors(); |
749 | 26.8k | } |
750 | | } static_descriptor_initializer; |
751 | | } // namespace protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto |
752 | | namespace yb { |
753 | | namespace master { |
754 | | |
755 | | // =================================================================== |
756 | | |
757 | 26.8k | void TSToMasterCommonPB::InitAsDefaultInstance() { |
758 | 26.8k | ::yb::master::_TSToMasterCommonPB_default_instance_._instance.get_mutable()->ts_instance_ = const_cast< ::yb::NodeInstancePB*>( |
759 | 26.8k | ::yb::NodeInstancePB::internal_default_instance()); |
760 | 26.8k | } |
761 | 0 | void TSToMasterCommonPB::clear_ts_instance() { |
762 | 0 | if (ts_instance_ != NULL) ts_instance_->Clear(); |
763 | 0 | clear_has_ts_instance(); |
764 | 0 | } |
765 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
766 | | const int TSToMasterCommonPB::kTsInstanceFieldNumber; |
767 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
768 | | |
769 | | TSToMasterCommonPB::TSToMasterCommonPB() |
770 | 10.4M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
771 | 10.4M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
772 | 10.4M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB(); |
773 | 10.4M | } |
774 | 10.4M | SharedCtor(); |
775 | | // @@protoc_insertion_point(constructor:yb.master.TSToMasterCommonPB) |
776 | 10.4M | } |
777 | | TSToMasterCommonPB::TSToMasterCommonPB(const TSToMasterCommonPB& from) |
778 | | : ::google::protobuf::Message(), |
779 | | _internal_metadata_(NULL), |
780 | | _has_bits_(from._has_bits_), |
781 | 0 | _cached_size_(0) { |
782 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
783 | 0 | if (from.has_ts_instance()) { |
784 | 0 | ts_instance_ = new ::yb::NodeInstancePB(*from.ts_instance_); |
785 | 0 | } else { |
786 | 0 | ts_instance_ = NULL; |
787 | 0 | } |
788 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSToMasterCommonPB) |
789 | 0 | } |
790 | | |
791 | 10.4M | void TSToMasterCommonPB::SharedCtor() { |
792 | 10.4M | _cached_size_ = 0; |
793 | 10.4M | ts_instance_ = NULL; |
794 | 10.4M | } |
795 | | |
796 | 10.4M | TSToMasterCommonPB::~TSToMasterCommonPB() { |
797 | | // @@protoc_insertion_point(destructor:yb.master.TSToMasterCommonPB) |
798 | 10.4M | SharedDtor(); |
799 | 10.4M | } |
800 | | |
801 | 10.4M | void TSToMasterCommonPB::SharedDtor() { |
802 | 10.4M | if (this != internal_default_instance()) delete ts_instance_10.4M ; |
803 | 10.4M | } |
804 | | |
805 | 0 | void TSToMasterCommonPB::SetCachedSize(int size) const { |
806 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
807 | 0 | _cached_size_ = size; |
808 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
809 | 0 | } |
810 | 0 | const ::google::protobuf::Descriptor* TSToMasterCommonPB::descriptor() { |
811 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
812 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
813 | 0 | } |
814 | | |
815 | 0 | const TSToMasterCommonPB& TSToMasterCommonPB::default_instance() { |
816 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB(); |
817 | 0 | return *internal_default_instance(); |
818 | 0 | } |
819 | | |
820 | 0 | TSToMasterCommonPB* TSToMasterCommonPB::New(::google::protobuf::Arena* arena) const { |
821 | 0 | TSToMasterCommonPB* n = new TSToMasterCommonPB; |
822 | 0 | if (arena != NULL) { |
823 | 0 | arena->Own(n); |
824 | 0 | } |
825 | 0 | return n; |
826 | 0 | } |
827 | | |
828 | 5 | void TSToMasterCommonPB::Clear() { |
829 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSToMasterCommonPB) |
830 | 5 | ::google::protobuf::uint32 cached_has_bits = 0; |
831 | | // Prevent compiler warnings about cached_has_bits being unused |
832 | 5 | (void) cached_has_bits; |
833 | | |
834 | 5 | cached_has_bits = _has_bits_[0]; |
835 | 5 | if (cached_has_bits & 0x00000001u) { |
836 | 0 | GOOGLE_DCHECK(ts_instance_ != NULL); |
837 | 0 | ts_instance_->Clear(); |
838 | 0 | } |
839 | 5 | _has_bits_.Clear(); |
840 | 5 | _internal_metadata_.Clear(); |
841 | 5 | } |
842 | | |
843 | | bool TSToMasterCommonPB::MergePartialFromCodedStream( |
844 | 5.17M | ::google::protobuf::io::CodedInputStream* input) { |
845 | 5.17M | #define DO_(EXPRESSION) if (5.16M !GOOGLE_PREDICT_TRUE5.16M (EXPRESSION)) goto failure0 |
846 | 5.17M | ::google::protobuf::uint32 tag; |
847 | | // @@protoc_insertion_point(parse_start:yb.master.TSToMasterCommonPB) |
848 | 10.3M | for (;;) { |
849 | 10.3M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
850 | 10.3M | tag = p.first; |
851 | 10.3M | if (!p.second) goto handle_unusual5.16M ; |
852 | 5.18M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
853 | | // required .yb.NodeInstancePB ts_instance = 1; |
854 | 5.17M | case 1: { |
855 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
856 | 5.17M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
857 | 5.16M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
858 | 5.16M | input, mutable_ts_instance())); |
859 | 5.16M | } else { |
860 | 5.08k | goto handle_unusual; |
861 | 5.08k | } |
862 | 5.16M | break; |
863 | 5.17M | } |
864 | | |
865 | 5.16M | default: { |
866 | 5.16M | handle_unusual: |
867 | 5.16M | if (tag == 05.16M ) { |
868 | 5.16M | goto success; |
869 | 5.16M | } |
870 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
871 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
872 | 18.4E | break; |
873 | 18.4E | } |
874 | 5.18M | } |
875 | 5.18M | } |
876 | 18.4E | success: |
877 | | // @@protoc_insertion_point(parse_success:yb.master.TSToMasterCommonPB) |
878 | 5.17M | return true; |
879 | 0 | failure: |
880 | | // @@protoc_insertion_point(parse_failure:yb.master.TSToMasterCommonPB) |
881 | 0 | return false; |
882 | 5.17M | #undef DO_ |
883 | 5.17M | } |
884 | | |
885 | | void TSToMasterCommonPB::SerializeWithCachedSizes( |
886 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
887 | | // @@protoc_insertion_point(serialize_start:yb.master.TSToMasterCommonPB) |
888 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
889 | 0 | (void) cached_has_bits; |
890 | |
|
891 | 0 | cached_has_bits = _has_bits_[0]; |
892 | | // required .yb.NodeInstancePB ts_instance = 1; |
893 | 0 | if (cached_has_bits & 0x00000001u) { |
894 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
895 | 0 | 1, *this->ts_instance_, output); |
896 | 0 | } |
897 | |
|
898 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
899 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
900 | 0 | _internal_metadata_.unknown_fields(), output); |
901 | 0 | } |
902 | | // @@protoc_insertion_point(serialize_end:yb.master.TSToMasterCommonPB) |
903 | 0 | } |
904 | | |
905 | | ::google::protobuf::uint8* TSToMasterCommonPB::InternalSerializeWithCachedSizesToArray( |
906 | 5.25M | bool deterministic, ::google::protobuf::uint8* target) const { |
907 | 5.25M | (void)deterministic; // Unused |
908 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSToMasterCommonPB) |
909 | 5.25M | ::google::protobuf::uint32 cached_has_bits = 0; |
910 | 5.25M | (void) cached_has_bits; |
911 | | |
912 | 5.25M | cached_has_bits = _has_bits_[0]; |
913 | | // required .yb.NodeInstancePB ts_instance = 1; |
914 | 5.25M | if (cached_has_bits & 0x00000001u) { |
915 | 5.25M | target = ::google::protobuf::internal::WireFormatLite:: |
916 | 5.25M | InternalWriteMessageToArray( |
917 | 5.25M | 1, *this->ts_instance_, deterministic, target); |
918 | 5.25M | } |
919 | | |
920 | 5.25M | if (_internal_metadata_.have_unknown_fields()) { |
921 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
922 | 0 | _internal_metadata_.unknown_fields(), target); |
923 | 0 | } |
924 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSToMasterCommonPB) |
925 | 5.25M | return target; |
926 | 5.25M | } |
927 | | |
928 | 10.5M | size_t TSToMasterCommonPB::ByteSizeLong() const { |
929 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSToMasterCommonPB) |
930 | 10.5M | size_t total_size = 0; |
931 | | |
932 | 10.5M | if (_internal_metadata_.have_unknown_fields()) { |
933 | 0 | total_size += |
934 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
935 | 0 | _internal_metadata_.unknown_fields()); |
936 | 0 | } |
937 | | // required .yb.NodeInstancePB ts_instance = 1; |
938 | 10.5M | if (has_ts_instance()) { |
939 | 10.5M | total_size += 1 + |
940 | 10.5M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
941 | 10.5M | *this->ts_instance_); |
942 | 10.5M | } |
943 | 10.5M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
944 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
945 | 10.5M | _cached_size_ = cached_size; |
946 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
947 | 10.5M | return total_size; |
948 | 10.5M | } |
949 | | |
950 | 0 | void TSToMasterCommonPB::MergeFrom(const ::google::protobuf::Message& from) { |
951 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSToMasterCommonPB) |
952 | 0 | GOOGLE_DCHECK_NE(&from, this); |
953 | 0 | const TSToMasterCommonPB* source = |
954 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSToMasterCommonPB>( |
955 | 0 | &from); |
956 | 0 | if (source == NULL) { |
957 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSToMasterCommonPB) |
958 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
959 | 0 | } else { |
960 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSToMasterCommonPB) |
961 | 0 | MergeFrom(*source); |
962 | 0 | } |
963 | 0 | } |
964 | | |
965 | 5 | void TSToMasterCommonPB::MergeFrom(const TSToMasterCommonPB& from) { |
966 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSToMasterCommonPB) |
967 | 5 | GOOGLE_DCHECK_NE(&from, this); |
968 | 5 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
969 | 5 | ::google::protobuf::uint32 cached_has_bits = 0; |
970 | 5 | (void) cached_has_bits; |
971 | | |
972 | 5 | if (from.has_ts_instance()) { |
973 | 5 | mutable_ts_instance()->::yb::NodeInstancePB::MergeFrom(from.ts_instance()); |
974 | 5 | } |
975 | 5 | } |
976 | | |
977 | 0 | void TSToMasterCommonPB::CopyFrom(const ::google::protobuf::Message& from) { |
978 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSToMasterCommonPB) |
979 | 0 | if (&from == this) return; |
980 | 0 | Clear(); |
981 | 0 | MergeFrom(from); |
982 | 0 | } |
983 | | |
984 | 5 | void TSToMasterCommonPB::CopyFrom(const TSToMasterCommonPB& from) { |
985 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSToMasterCommonPB) |
986 | 5 | if (&from == this) return0 ; |
987 | 5 | Clear(); |
988 | 5 | MergeFrom(from); |
989 | 5 | } |
990 | | |
991 | 10.4M | bool TSToMasterCommonPB::IsInitialized() const { |
992 | 10.4M | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
993 | 10.4M | if (10.4M has_ts_instance()10.4M ) { |
994 | 10.4M | if (!this->ts_instance_->IsInitialized()) return false0 ; |
995 | 10.4M | } |
996 | 10.4M | return true; |
997 | 10.4M | } |
998 | | |
999 | 0 | void TSToMasterCommonPB::Swap(TSToMasterCommonPB* other) { |
1000 | 0 | if (other == this) return; |
1001 | 0 | InternalSwap(other); |
1002 | 0 | } |
1003 | 0 | void TSToMasterCommonPB::InternalSwap(TSToMasterCommonPB* other) { |
1004 | 0 | using std::swap; |
1005 | 0 | swap(ts_instance_, other->ts_instance_); |
1006 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1007 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1008 | 0 | swap(_cached_size_, other->_cached_size_); |
1009 | 0 | } |
1010 | | |
1011 | 5.17M | ::google::protobuf::Metadata TSToMasterCommonPB::GetMetadata() const { |
1012 | 5.17M | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
1013 | 5.17M | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1014 | 5.17M | } |
1015 | | |
1016 | | |
1017 | | // =================================================================== |
1018 | | |
1019 | 26.8k | void ReportedTabletPB::InitAsDefaultInstance() { |
1020 | 26.8k | ::yb::master::_ReportedTabletPB_default_instance_._instance.get_mutable()->committed_consensus_state_ = const_cast< ::yb::consensus::ConsensusStatePB*>( |
1021 | 26.8k | ::yb::consensus::ConsensusStatePB::internal_default_instance()); |
1022 | 26.8k | ::yb::master::_ReportedTabletPB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::AppStatusPB*>( |
1023 | 26.8k | ::yb::AppStatusPB::internal_default_instance()); |
1024 | 26.8k | } |
1025 | 0 | void ReportedTabletPB::clear_committed_consensus_state() { |
1026 | 0 | if (committed_consensus_state_ != NULL) committed_consensus_state_->Clear(); |
1027 | 0 | clear_has_committed_consensus_state(); |
1028 | 0 | } |
1029 | 0 | void ReportedTabletPB::clear_error() { |
1030 | 0 | if (error_ != NULL) error_->Clear(); |
1031 | 0 | clear_has_error(); |
1032 | 0 | } |
1033 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1034 | | const int ReportedTabletPB::kTabletIdFieldNumber; |
1035 | | const int ReportedTabletPB::kStateFieldNumber; |
1036 | | const int ReportedTabletPB::kTabletDataStateFieldNumber; |
1037 | | const int ReportedTabletPB::kCommittedConsensusStateFieldNumber; |
1038 | | const int ReportedTabletPB::kErrorFieldNumber; |
1039 | | const int ReportedTabletPB::kSchemaVersionFieldNumber; |
1040 | | const int ReportedTabletPB::kShouldDisableLbMoveFieldNumber; |
1041 | | const int ReportedTabletPB::kFsDataDirFieldNumber; |
1042 | | const int ReportedTabletPB::kIsHiddenFieldNumber; |
1043 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1044 | | |
1045 | | ReportedTabletPB::ReportedTabletPB() |
1046 | 940k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1047 | 940k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1048 | 914k | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB(); |
1049 | 914k | } |
1050 | 940k | SharedCtor(); |
1051 | | // @@protoc_insertion_point(constructor:yb.master.ReportedTabletPB) |
1052 | 940k | } |
1053 | | ReportedTabletPB::ReportedTabletPB(const ReportedTabletPB& from) |
1054 | | : ::google::protobuf::Message(), |
1055 | | _internal_metadata_(NULL), |
1056 | | _has_bits_(from._has_bits_), |
1057 | 6 | _cached_size_(0) { |
1058 | 6 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1059 | 6 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1060 | 6 | if (from.has_tablet_id()) { |
1061 | 6 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
1062 | 6 | } |
1063 | 6 | fs_data_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1064 | 6 | if (from.has_fs_data_dir()) { |
1065 | 6 | fs_data_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fs_data_dir_); |
1066 | 6 | } |
1067 | 6 | if (from.has_committed_consensus_state()) { |
1068 | 6 | committed_consensus_state_ = new ::yb::consensus::ConsensusStatePB(*from.committed_consensus_state_); |
1069 | 6 | } else { |
1070 | 0 | committed_consensus_state_ = NULL; |
1071 | 0 | } |
1072 | 6 | if (from.has_error()) { |
1073 | 0 | error_ = new ::yb::AppStatusPB(*from.error_); |
1074 | 6 | } else { |
1075 | 6 | error_ = NULL; |
1076 | 6 | } |
1077 | 6 | ::memcpy(&schema_version_, &from.schema_version_, |
1078 | 6 | static_cast<size_t>(reinterpret_cast<char*>(&tablet_data_state_) - |
1079 | 6 | reinterpret_cast<char*>(&schema_version_)) + sizeof(tablet_data_state_)); |
1080 | | // @@protoc_insertion_point(copy_constructor:yb.master.ReportedTabletPB) |
1081 | 6 | } |
1082 | | |
1083 | 941k | void ReportedTabletPB::SharedCtor() { |
1084 | 941k | _cached_size_ = 0; |
1085 | 941k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1086 | 941k | fs_data_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1087 | 941k | ::memset(&committed_consensus_state_, 0, static_cast<size_t>( |
1088 | 941k | reinterpret_cast<char*>(&is_hidden_) - |
1089 | 941k | reinterpret_cast<char*>(&committed_consensus_state_)) + sizeof(is_hidden_)); |
1090 | 941k | state_ = 999; |
1091 | 941k | tablet_data_state_ = 999; |
1092 | 941k | } |
1093 | | |
1094 | 915k | ReportedTabletPB::~ReportedTabletPB() { |
1095 | | // @@protoc_insertion_point(destructor:yb.master.ReportedTabletPB) |
1096 | 915k | SharedDtor(); |
1097 | 915k | } |
1098 | | |
1099 | 915k | void ReportedTabletPB::SharedDtor() { |
1100 | 915k | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1101 | 915k | fs_data_dir_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1102 | 915k | if (this != internal_default_instance()) delete committed_consensus_state_912k ; |
1103 | 915k | if (this != internal_default_instance()) delete error_915k ; |
1104 | 915k | } |
1105 | | |
1106 | 0 | void ReportedTabletPB::SetCachedSize(int size) const { |
1107 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1108 | 0 | _cached_size_ = size; |
1109 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1110 | 0 | } |
1111 | 0 | const ::google::protobuf::Descriptor* ReportedTabletPB::descriptor() { |
1112 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
1113 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1114 | 0 | } |
1115 | | |
1116 | 0 | const ReportedTabletPB& ReportedTabletPB::default_instance() { |
1117 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB(); |
1118 | 0 | return *internal_default_instance(); |
1119 | 0 | } |
1120 | | |
1121 | 0 | ReportedTabletPB* ReportedTabletPB::New(::google::protobuf::Arena* arena) const { |
1122 | 0 | ReportedTabletPB* n = new ReportedTabletPB; |
1123 | 0 | if (arena != NULL) { |
1124 | 0 | arena->Own(n); |
1125 | 0 | } |
1126 | 0 | return n; |
1127 | 0 | } |
1128 | | |
1129 | 3 | void ReportedTabletPB::Clear() { |
1130 | | // @@protoc_insertion_point(message_clear_start:yb.master.ReportedTabletPB) |
1131 | 3 | ::google::protobuf::uint32 cached_has_bits = 0; |
1132 | | // Prevent compiler warnings about cached_has_bits being unused |
1133 | 3 | (void) cached_has_bits; |
1134 | | |
1135 | 3 | cached_has_bits = _has_bits_[0]; |
1136 | 3 | if (cached_has_bits & 15u) { |
1137 | 3 | if (cached_has_bits & 0x00000001u) { |
1138 | 3 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1139 | 3 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
1140 | 3 | } |
1141 | 3 | if (cached_has_bits & 0x00000002u) { |
1142 | 3 | GOOGLE_DCHECK(!fs_data_dir_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1143 | 3 | (*fs_data_dir_.UnsafeRawStringPointer())->clear(); |
1144 | 3 | } |
1145 | 3 | if (cached_has_bits & 0x00000004u) { |
1146 | 3 | GOOGLE_DCHECK(committed_consensus_state_ != NULL); |
1147 | 3 | committed_consensus_state_->Clear(); |
1148 | 3 | } |
1149 | 3 | if (cached_has_bits & 0x00000008u) { |
1150 | 0 | GOOGLE_DCHECK(error_ != NULL); |
1151 | 0 | error_->Clear(); |
1152 | 0 | } |
1153 | 3 | } |
1154 | 3 | if (cached_has_bits & 240u) { |
1155 | 3 | ::memset(&schema_version_, 0, static_cast<size_t>( |
1156 | 3 | reinterpret_cast<char*>(&is_hidden_) - |
1157 | 3 | reinterpret_cast<char*>(&schema_version_)) + sizeof(is_hidden_)); |
1158 | 3 | state_ = 999; |
1159 | 3 | } |
1160 | 3 | tablet_data_state_ = 999; |
1161 | 3 | _has_bits_.Clear(); |
1162 | 3 | _internal_metadata_.Clear(); |
1163 | 3 | } |
1164 | | |
1165 | | bool ReportedTabletPB::MergePartialFromCodedStream( |
1166 | 457k | ::google::protobuf::io::CodedInputStream* input) { |
1167 | 3.65M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1168 | 457k | ::google::protobuf::uint32 tag; |
1169 | | // @@protoc_insertion_point(parse_start:yb.master.ReportedTabletPB) |
1170 | 4.09M | for (;;) { |
1171 | 4.09M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1172 | 4.09M | tag = p.first; |
1173 | 4.09M | if (!p.second) goto handle_unusual457k ; |
1174 | 3.64M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1175 | | // required bytes tablet_id = 1; |
1176 | 456k | case 1: { |
1177 | 456k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1178 | 456k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1179 | 456k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1180 | 456k | input, this->mutable_tablet_id())); |
1181 | 18.4E | } else { |
1182 | 18.4E | goto handle_unusual; |
1183 | 18.4E | } |
1184 | 456k | break; |
1185 | 456k | } |
1186 | | |
1187 | | // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN]; |
1188 | 457k | case 2: { |
1189 | 457k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1190 | 457k | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1191 | 457k | int value; |
1192 | 457k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1193 | 457k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
1194 | 457k | input, &value))); |
1195 | 457k | if (::yb::tablet::RaftGroupStatePB_IsValid(value)) { |
1196 | 455k | set_state(static_cast< ::yb::tablet::RaftGroupStatePB >(value)); |
1197 | 455k | } else { |
1198 | 2.05k | mutable_unknown_fields()->AddVarint( |
1199 | 2.05k | 2, static_cast< ::google::protobuf::uint64>(value)); |
1200 | 2.05k | } |
1201 | 18.4E | } else { |
1202 | 18.4E | goto handle_unusual; |
1203 | 18.4E | } |
1204 | 457k | break; |
1205 | 457k | } |
1206 | | |
1207 | | // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3; |
1208 | 457k | case 3: { |
1209 | 453k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1210 | 453k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1211 | 453k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1212 | 453k | input, mutable_committed_consensus_state())); |
1213 | 18.4E | } else { |
1214 | 18.4E | goto handle_unusual; |
1215 | 18.4E | } |
1216 | 453k | break; |
1217 | 453k | } |
1218 | | |
1219 | | // optional .yb.AppStatusPB error = 4; |
1220 | 453k | case 4: { |
1221 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1222 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
1223 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1224 | 0 | input, mutable_error())); |
1225 | 0 | } else { |
1226 | 0 | goto handle_unusual; |
1227 | 0 | } |
1228 | 0 | break; |
1229 | 0 | } |
1230 | | |
1231 | | // optional uint32 schema_version = 5; |
1232 | 457k | case 5: { |
1233 | 457k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1234 | 457k | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
1235 | 457k | set_has_schema_version(); |
1236 | 457k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1237 | 457k | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
1238 | 457k | input, &schema_version_))); |
1239 | 18.4E | } else { |
1240 | 18.4E | goto handle_unusual; |
1241 | 18.4E | } |
1242 | 457k | break; |
1243 | 457k | } |
1244 | | |
1245 | | // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN]; |
1246 | 457k | case 6: { |
1247 | 457k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1248 | 457k | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
1249 | 457k | int value; |
1250 | 457k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1251 | 457k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
1252 | 457k | input, &value))); |
1253 | 457k | if (::yb::tablet::TabletDataState_IsValid(value)) { |
1254 | 457k | set_tablet_data_state(static_cast< ::yb::tablet::TabletDataState >(value)); |
1255 | 457k | } else { |
1256 | 113 | mutable_unknown_fields()->AddVarint( |
1257 | 113 | 6, static_cast< ::google::protobuf::uint64>(value)); |
1258 | 113 | } |
1259 | 18.4E | } else { |
1260 | 18.4E | goto handle_unusual; |
1261 | 18.4E | } |
1262 | 457k | break; |
1263 | 457k | } |
1264 | | |
1265 | | // optional bool should_disable_lb_move = 7; |
1266 | 457k | case 7: { |
1267 | 454k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1268 | 454k | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
1269 | 454k | set_has_should_disable_lb_move(); |
1270 | 454k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1271 | 454k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1272 | 454k | input, &should_disable_lb_move_))); |
1273 | 18.4E | } else { |
1274 | 18.4E | goto handle_unusual; |
1275 | 18.4E | } |
1276 | 454k | break; |
1277 | 454k | } |
1278 | | |
1279 | | // optional bytes fs_data_dir = 8; |
1280 | 457k | case 8: { |
1281 | 457k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1282 | 457k | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
1283 | 457k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1284 | 457k | input, this->mutable_fs_data_dir())); |
1285 | 18.4E | } else { |
1286 | 18.4E | goto handle_unusual; |
1287 | 18.4E | } |
1288 | 457k | break; |
1289 | 457k | } |
1290 | | |
1291 | | // optional bool is_hidden = 9; |
1292 | 457k | case 9: { |
1293 | 457k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1294 | 457k | static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { |
1295 | 457k | set_has_is_hidden(); |
1296 | 457k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1297 | 457k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1298 | 457k | input, &is_hidden_))); |
1299 | 18.4E | } else { |
1300 | 18.4E | goto handle_unusual; |
1301 | 18.4E | } |
1302 | 457k | break; |
1303 | 457k | } |
1304 | | |
1305 | 457k | default: { |
1306 | 457k | handle_unusual: |
1307 | 457k | if (tag == 0457k ) { |
1308 | 457k | goto success; |
1309 | 457k | } |
1310 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1311 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1312 | 18.4E | break; |
1313 | 18.4E | } |
1314 | 3.64M | } |
1315 | 3.64M | } |
1316 | 457k | success: |
1317 | | // @@protoc_insertion_point(parse_success:yb.master.ReportedTabletPB) |
1318 | 457k | return true; |
1319 | 0 | failure: |
1320 | | // @@protoc_insertion_point(parse_failure:yb.master.ReportedTabletPB) |
1321 | 0 | return false; |
1322 | 457k | #undef DO_ |
1323 | 457k | } |
1324 | | |
1325 | | void ReportedTabletPB::SerializeWithCachedSizes( |
1326 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1327 | | // @@protoc_insertion_point(serialize_start:yb.master.ReportedTabletPB) |
1328 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1329 | 0 | (void) cached_has_bits; |
1330 | |
|
1331 | 0 | cached_has_bits = _has_bits_[0]; |
1332 | | // required bytes tablet_id = 1; |
1333 | 0 | if (cached_has_bits & 0x00000001u) { |
1334 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1335 | 0 | 1, this->tablet_id(), output); |
1336 | 0 | } |
1337 | | |
1338 | | // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN]; |
1339 | 0 | if (cached_has_bits & 0x00000080u) { |
1340 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
1341 | 0 | 2, this->state(), output); |
1342 | 0 | } |
1343 | | |
1344 | | // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3; |
1345 | 0 | if (cached_has_bits & 0x00000004u) { |
1346 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1347 | 0 | 3, *this->committed_consensus_state_, output); |
1348 | 0 | } |
1349 | | |
1350 | | // optional .yb.AppStatusPB error = 4; |
1351 | 0 | if (cached_has_bits & 0x00000008u) { |
1352 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1353 | 0 | 4, *this->error_, output); |
1354 | 0 | } |
1355 | | |
1356 | | // optional uint32 schema_version = 5; |
1357 | 0 | if (cached_has_bits & 0x00000010u) { |
1358 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->schema_version(), output); |
1359 | 0 | } |
1360 | | |
1361 | | // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN]; |
1362 | 0 | if (cached_has_bits & 0x00000100u) { |
1363 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
1364 | 0 | 6, this->tablet_data_state(), output); |
1365 | 0 | } |
1366 | | |
1367 | | // optional bool should_disable_lb_move = 7; |
1368 | 0 | if (cached_has_bits & 0x00000020u) { |
1369 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->should_disable_lb_move(), output); |
1370 | 0 | } |
1371 | | |
1372 | | // optional bytes fs_data_dir = 8; |
1373 | 0 | if (cached_has_bits & 0x00000002u) { |
1374 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1375 | 0 | 8, this->fs_data_dir(), output); |
1376 | 0 | } |
1377 | | |
1378 | | // optional bool is_hidden = 9; |
1379 | 0 | if (cached_has_bits & 0x00000040u) { |
1380 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->is_hidden(), output); |
1381 | 0 | } |
1382 | |
|
1383 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1384 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1385 | 0 | _internal_metadata_.unknown_fields(), output); |
1386 | 0 | } |
1387 | | // @@protoc_insertion_point(serialize_end:yb.master.ReportedTabletPB) |
1388 | 0 | } |
1389 | | |
1390 | | ::google::protobuf::uint8* ReportedTabletPB::InternalSerializeWithCachedSizesToArray( |
1391 | 458k | bool deterministic, ::google::protobuf::uint8* target) const { |
1392 | 458k | (void)deterministic; // Unused |
1393 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReportedTabletPB) |
1394 | 458k | ::google::protobuf::uint32 cached_has_bits = 0; |
1395 | 458k | (void) cached_has_bits; |
1396 | | |
1397 | 458k | cached_has_bits = _has_bits_[0]; |
1398 | | // required bytes tablet_id = 1; |
1399 | 458k | if (cached_has_bits & 0x00000001u) { |
1400 | 458k | target = |
1401 | 458k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1402 | 458k | 1, this->tablet_id(), target); |
1403 | 458k | } |
1404 | | |
1405 | | // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN]; |
1406 | 458k | if (cached_has_bits & 0x00000080u) { |
1407 | 458k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
1408 | 458k | 2, this->state(), target); |
1409 | 458k | } |
1410 | | |
1411 | | // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3; |
1412 | 458k | if (cached_has_bits & 0x00000004u) { |
1413 | 454k | target = ::google::protobuf::internal::WireFormatLite:: |
1414 | 454k | InternalWriteMessageToArray( |
1415 | 454k | 3, *this->committed_consensus_state_, deterministic, target); |
1416 | 454k | } |
1417 | | |
1418 | | // optional .yb.AppStatusPB error = 4; |
1419 | 458k | if (cached_has_bits & 0x00000008u) { |
1420 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1421 | 0 | InternalWriteMessageToArray( |
1422 | 0 | 4, *this->error_, deterministic, target); |
1423 | 0 | } |
1424 | | |
1425 | | // optional uint32 schema_version = 5; |
1426 | 458k | if (cached_has_bits & 0x00000010u) { |
1427 | 458k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->schema_version(), target); |
1428 | 458k | } |
1429 | | |
1430 | | // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN]; |
1431 | 458k | if (cached_has_bits & 0x00000100u) { |
1432 | 458k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
1433 | 458k | 6, this->tablet_data_state(), target); |
1434 | 458k | } |
1435 | | |
1436 | | // optional bool should_disable_lb_move = 7; |
1437 | 458k | if (cached_has_bits & 0x00000020u) { |
1438 | 454k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->should_disable_lb_move(), target); |
1439 | 454k | } |
1440 | | |
1441 | | // optional bytes fs_data_dir = 8; |
1442 | 458k | if (cached_has_bits & 0x00000002u) { |
1443 | 458k | target = |
1444 | 458k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1445 | 458k | 8, this->fs_data_dir(), target); |
1446 | 458k | } |
1447 | | |
1448 | | // optional bool is_hidden = 9; |
1449 | 458k | if (cached_has_bits & 0x00000040u) { |
1450 | 458k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->is_hidden(), target); |
1451 | 458k | } |
1452 | | |
1453 | 458k | if (_internal_metadata_.have_unknown_fields()) { |
1454 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1455 | 0 | _internal_metadata_.unknown_fields(), target); |
1456 | 0 | } |
1457 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReportedTabletPB) |
1458 | 458k | return target; |
1459 | 458k | } |
1460 | | |
1461 | 916k | size_t ReportedTabletPB::ByteSizeLong() const { |
1462 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ReportedTabletPB) |
1463 | 916k | size_t total_size = 0; |
1464 | | |
1465 | 916k | if (_internal_metadata_.have_unknown_fields()) { |
1466 | 0 | total_size += |
1467 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1468 | 0 | _internal_metadata_.unknown_fields()); |
1469 | 0 | } |
1470 | | // required bytes tablet_id = 1; |
1471 | 916k | if (has_tablet_id()) { |
1472 | 916k | total_size += 1 + |
1473 | 916k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1474 | 916k | this->tablet_id()); |
1475 | 916k | } |
1476 | 916k | if (_has_bits_[0 / 32] & 254u) { |
1477 | | // optional bytes fs_data_dir = 8; |
1478 | 916k | if (has_fs_data_dir()) { |
1479 | 916k | total_size += 1 + |
1480 | 916k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1481 | 916k | this->fs_data_dir()); |
1482 | 916k | } |
1483 | | |
1484 | | // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3; |
1485 | 916k | if (has_committed_consensus_state()) { |
1486 | 909k | total_size += 1 + |
1487 | 909k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1488 | 909k | *this->committed_consensus_state_); |
1489 | 909k | } |
1490 | | |
1491 | | // optional .yb.AppStatusPB error = 4; |
1492 | 916k | if (has_error()) { |
1493 | 0 | total_size += 1 + |
1494 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1495 | 0 | *this->error_); |
1496 | 0 | } |
1497 | | |
1498 | | // optional uint32 schema_version = 5; |
1499 | 916k | if (has_schema_version()) { |
1500 | 916k | total_size += 1 + |
1501 | 916k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
1502 | 916k | this->schema_version()); |
1503 | 916k | } |
1504 | | |
1505 | | // optional bool should_disable_lb_move = 7; |
1506 | 916k | if (has_should_disable_lb_move()) { |
1507 | 909k | total_size += 1 + 1; |
1508 | 909k | } |
1509 | | |
1510 | | // optional bool is_hidden = 9; |
1511 | 916k | if (has_is_hidden()) { |
1512 | 916k | total_size += 1 + 1; |
1513 | 916k | } |
1514 | | |
1515 | | // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN]; |
1516 | 916k | if (has_state()) { |
1517 | 916k | total_size += 1 + |
1518 | 916k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); |
1519 | 916k | } |
1520 | | |
1521 | 916k | } |
1522 | | // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN]; |
1523 | 916k | if (has_tablet_data_state()) { |
1524 | 916k | total_size += 1 + |
1525 | 916k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->tablet_data_state()); |
1526 | 916k | } |
1527 | | |
1528 | 916k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1529 | 916k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1530 | 916k | _cached_size_ = cached_size; |
1531 | 916k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1532 | 916k | return total_size; |
1533 | 916k | } |
1534 | | |
1535 | 0 | void ReportedTabletPB::MergeFrom(const ::google::protobuf::Message& from) { |
1536 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReportedTabletPB) |
1537 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1538 | 0 | const ReportedTabletPB* source = |
1539 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ReportedTabletPB>( |
1540 | 0 | &from); |
1541 | 0 | if (source == NULL) { |
1542 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReportedTabletPB) |
1543 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1544 | 0 | } else { |
1545 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReportedTabletPB) |
1546 | 0 | MergeFrom(*source); |
1547 | 0 | } |
1548 | 0 | } |
1549 | | |
1550 | 0 | void ReportedTabletPB::MergeFrom(const ReportedTabletPB& from) { |
1551 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReportedTabletPB) |
1552 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1553 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1554 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1555 | 0 | (void) cached_has_bits; |
1556 | |
|
1557 | 0 | cached_has_bits = from._has_bits_[0]; |
1558 | 0 | if (cached_has_bits & 255u) { |
1559 | 0 | if (cached_has_bits & 0x00000001u) { |
1560 | 0 | set_has_tablet_id(); |
1561 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
1562 | 0 | } |
1563 | 0 | if (cached_has_bits & 0x00000002u) { |
1564 | 0 | set_has_fs_data_dir(); |
1565 | 0 | fs_data_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fs_data_dir_); |
1566 | 0 | } |
1567 | 0 | if (cached_has_bits & 0x00000004u) { |
1568 | 0 | mutable_committed_consensus_state()->::yb::consensus::ConsensusStatePB::MergeFrom(from.committed_consensus_state()); |
1569 | 0 | } |
1570 | 0 | if (cached_has_bits & 0x00000008u) { |
1571 | 0 | mutable_error()->::yb::AppStatusPB::MergeFrom(from.error()); |
1572 | 0 | } |
1573 | 0 | if (cached_has_bits & 0x00000010u) { |
1574 | 0 | schema_version_ = from.schema_version_; |
1575 | 0 | } |
1576 | 0 | if (cached_has_bits & 0x00000020u) { |
1577 | 0 | should_disable_lb_move_ = from.should_disable_lb_move_; |
1578 | 0 | } |
1579 | 0 | if (cached_has_bits & 0x00000040u) { |
1580 | 0 | is_hidden_ = from.is_hidden_; |
1581 | 0 | } |
1582 | 0 | if (cached_has_bits & 0x00000080u) { |
1583 | 0 | state_ = from.state_; |
1584 | 0 | } |
1585 | 0 | _has_bits_[0] |= cached_has_bits; |
1586 | 0 | } |
1587 | 0 | if (cached_has_bits & 0x00000100u) { |
1588 | 0 | set_tablet_data_state(from.tablet_data_state()); |
1589 | 0 | } |
1590 | 0 | } |
1591 | | |
1592 | 0 | void ReportedTabletPB::CopyFrom(const ::google::protobuf::Message& from) { |
1593 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReportedTabletPB) |
1594 | 0 | if (&from == this) return; |
1595 | 0 | Clear(); |
1596 | 0 | MergeFrom(from); |
1597 | 0 | } |
1598 | | |
1599 | 0 | void ReportedTabletPB::CopyFrom(const ReportedTabletPB& from) { |
1600 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReportedTabletPB) |
1601 | 0 | if (&from == this) return; |
1602 | 0 | Clear(); |
1603 | 0 | MergeFrom(from); |
1604 | 0 | } |
1605 | | |
1606 | 915k | bool ReportedTabletPB::IsInitialized() const { |
1607 | 915k | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
1608 | 915k | if (has_committed_consensus_state()) { |
1609 | 906k | if (!this->committed_consensus_state_->IsInitialized()) return false0 ; |
1610 | 906k | } |
1611 | 915k | if (has_error()) { |
1612 | 0 | if (!this->error_->IsInitialized()) return false; |
1613 | 0 | } |
1614 | 915k | return true; |
1615 | 915k | } |
1616 | | |
1617 | 0 | void ReportedTabletPB::Swap(ReportedTabletPB* other) { |
1618 | 0 | if (other == this) return; |
1619 | 0 | InternalSwap(other); |
1620 | 0 | } |
1621 | 0 | void ReportedTabletPB::InternalSwap(ReportedTabletPB* other) { |
1622 | 0 | using std::swap; |
1623 | 0 | tablet_id_.Swap(&other->tablet_id_); |
1624 | 0 | fs_data_dir_.Swap(&other->fs_data_dir_); |
1625 | 0 | swap(committed_consensus_state_, other->committed_consensus_state_); |
1626 | 0 | swap(error_, other->error_); |
1627 | 0 | swap(schema_version_, other->schema_version_); |
1628 | 0 | swap(should_disable_lb_move_, other->should_disable_lb_move_); |
1629 | 0 | swap(is_hidden_, other->is_hidden_); |
1630 | 0 | swap(state_, other->state_); |
1631 | 0 | swap(tablet_data_state_, other->tablet_data_state_); |
1632 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1633 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1634 | 0 | swap(_cached_size_, other->_cached_size_); |
1635 | 0 | } |
1636 | | |
1637 | 457k | ::google::protobuf::Metadata ReportedTabletPB::GetMetadata() const { |
1638 | 457k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
1639 | 457k | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1640 | 457k | } |
1641 | | |
1642 | | |
1643 | | // =================================================================== |
1644 | | |
1645 | 26.8k | void TabletReportPB::InitAsDefaultInstance() { |
1646 | 26.8k | } |
1647 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1648 | | const int TabletReportPB::kIsIncrementalFieldNumber; |
1649 | | const int TabletReportPB::kUpdatedTabletsFieldNumber; |
1650 | | const int TabletReportPB::kRemovedTabletIdsFieldNumber; |
1651 | | const int TabletReportPB::kSequenceNumberFieldNumber; |
1652 | | const int TabletReportPB::kRemainingTabletCountFieldNumber; |
1653 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1654 | | |
1655 | | TabletReportPB::TabletReportPB() |
1656 | 10.4M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1657 | 10.4M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1658 | 10.4M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB(); |
1659 | 10.4M | } |
1660 | 10.4M | SharedCtor(); |
1661 | | // @@protoc_insertion_point(constructor:yb.master.TabletReportPB) |
1662 | 10.4M | } |
1663 | | TabletReportPB::TabletReportPB(const TabletReportPB& from) |
1664 | | : ::google::protobuf::Message(), |
1665 | | _internal_metadata_(NULL), |
1666 | | _has_bits_(from._has_bits_), |
1667 | | _cached_size_(0), |
1668 | | updated_tablets_(from.updated_tablets_), |
1669 | 0 | removed_tablet_ids_(from.removed_tablet_ids_) { |
1670 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1671 | 0 | ::memcpy(&is_incremental_, &from.is_incremental_, |
1672 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&remaining_tablet_count_) - |
1673 | 0 | reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_)); |
1674 | | // @@protoc_insertion_point(copy_constructor:yb.master.TabletReportPB) |
1675 | 0 | } |
1676 | | |
1677 | 10.4M | void TabletReportPB::SharedCtor() { |
1678 | 10.4M | _cached_size_ = 0; |
1679 | 10.4M | ::memset(&is_incremental_, 0, static_cast<size_t>( |
1680 | 10.4M | reinterpret_cast<char*>(&remaining_tablet_count_) - |
1681 | 10.4M | reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_)); |
1682 | 10.4M | } |
1683 | | |
1684 | 10.4M | TabletReportPB::~TabletReportPB() { |
1685 | | // @@protoc_insertion_point(destructor:yb.master.TabletReportPB) |
1686 | 10.4M | SharedDtor(); |
1687 | 10.4M | } |
1688 | | |
1689 | 10.4M | void TabletReportPB::SharedDtor() { |
1690 | 10.4M | } |
1691 | | |
1692 | 0 | void TabletReportPB::SetCachedSize(int size) const { |
1693 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1694 | 0 | _cached_size_ = size; |
1695 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1696 | 0 | } |
1697 | 0 | const ::google::protobuf::Descriptor* TabletReportPB::descriptor() { |
1698 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
1699 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1700 | 0 | } |
1701 | | |
1702 | 0 | const TabletReportPB& TabletReportPB::default_instance() { |
1703 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB(); |
1704 | 0 | return *internal_default_instance(); |
1705 | 0 | } |
1706 | | |
1707 | 0 | TabletReportPB* TabletReportPB::New(::google::protobuf::Arena* arena) const { |
1708 | 0 | TabletReportPB* n = new TabletReportPB; |
1709 | 0 | if (arena != NULL) { |
1710 | 0 | arena->Own(n); |
1711 | 0 | } |
1712 | 0 | return n; |
1713 | 0 | } |
1714 | | |
1715 | 5.25M | void TabletReportPB::Clear() { |
1716 | | // @@protoc_insertion_point(message_clear_start:yb.master.TabletReportPB) |
1717 | 5.25M | ::google::protobuf::uint32 cached_has_bits = 0; |
1718 | | // Prevent compiler warnings about cached_has_bits being unused |
1719 | 5.25M | (void) cached_has_bits; |
1720 | | |
1721 | 5.25M | updated_tablets_.Clear(); |
1722 | 5.25M | removed_tablet_ids_.Clear(); |
1723 | 5.25M | cached_has_bits = _has_bits_[0]; |
1724 | 5.25M | if (cached_has_bits & 7u) { |
1725 | 7 | ::memset(&is_incremental_, 0, static_cast<size_t>( |
1726 | 7 | reinterpret_cast<char*>(&remaining_tablet_count_) - |
1727 | 7 | reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_)); |
1728 | 7 | } |
1729 | 5.25M | _has_bits_.Clear(); |
1730 | 5.25M | _internal_metadata_.Clear(); |
1731 | 5.25M | } |
1732 | | |
1733 | | bool TabletReportPB::MergePartialFromCodedStream( |
1734 | 5.17M | ::google::protobuf::io::CodedInputStream* input) { |
1735 | 15.9M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1736 | 5.17M | ::google::protobuf::uint32 tag; |
1737 | | // @@protoc_insertion_point(parse_start:yb.master.TabletReportPB) |
1738 | 21.1M | for (;;) { |
1739 | 21.1M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1740 | 21.1M | tag = p.first; |
1741 | 21.1M | if (!p.second) goto handle_unusual5.17M ; |
1742 | 15.9M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1743 | | // required bool is_incremental = 1; |
1744 | 5.17M | case 1: { |
1745 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1746 | 5.17M | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1747 | 5.17M | set_has_is_incremental(); |
1748 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1749 | 5.17M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1750 | 5.17M | input, &is_incremental_))); |
1751 | 18.4E | } else { |
1752 | 18.4E | goto handle_unusual; |
1753 | 18.4E | } |
1754 | 5.17M | break; |
1755 | 5.17M | } |
1756 | | |
1757 | | // repeated .yb.master.ReportedTabletPB updated_tablets = 2; |
1758 | 5.17M | case 2: { |
1759 | 456k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1760 | 457k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1761 | 457k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_updated_tablets())); |
1762 | 18.4E | } else { |
1763 | 18.4E | goto handle_unusual; |
1764 | 18.4E | } |
1765 | 457k | break; |
1766 | 456k | } |
1767 | | |
1768 | | // repeated bytes removed_tablet_ids = 3; |
1769 | 457k | case 3: { |
1770 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1771 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1772 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1773 | 0 | input, this->add_removed_tablet_ids())); |
1774 | 0 | } else { |
1775 | 0 | goto handle_unusual; |
1776 | 0 | } |
1777 | 0 | break; |
1778 | 0 | } |
1779 | | |
1780 | | // required int32 sequence_number = 4; |
1781 | 5.17M | case 4: { |
1782 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1783 | 5.17M | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
1784 | 5.17M | set_has_sequence_number(); |
1785 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1786 | 5.17M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
1787 | 5.17M | input, &sequence_number_))); |
1788 | 5.17M | } else { |
1789 | 1.19k | goto handle_unusual; |
1790 | 1.19k | } |
1791 | 5.17M | break; |
1792 | 5.17M | } |
1793 | | |
1794 | | // optional int32 remaining_tablet_count = 5; |
1795 | 5.17M | case 5: { |
1796 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1797 | 5.17M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
1798 | 5.17M | set_has_remaining_tablet_count(); |
1799 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1800 | 5.17M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
1801 | 5.17M | input, &remaining_tablet_count_))); |
1802 | 18.4E | } else { |
1803 | 18.4E | goto handle_unusual; |
1804 | 18.4E | } |
1805 | 5.17M | break; |
1806 | 5.17M | } |
1807 | | |
1808 | 5.17M | default: { |
1809 | 5.17M | handle_unusual: |
1810 | 5.17M | if (tag == 05.17M ) { |
1811 | 5.17M | goto success; |
1812 | 5.17M | } |
1813 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1814 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1815 | 18.4E | break; |
1816 | 18.4E | } |
1817 | 15.9M | } |
1818 | 15.9M | } |
1819 | 5.17M | success: |
1820 | | // @@protoc_insertion_point(parse_success:yb.master.TabletReportPB) |
1821 | 5.17M | return true; |
1822 | 0 | failure: |
1823 | | // @@protoc_insertion_point(parse_failure:yb.master.TabletReportPB) |
1824 | 0 | return false; |
1825 | 5.17M | #undef DO_ |
1826 | 5.17M | } |
1827 | | |
1828 | | void TabletReportPB::SerializeWithCachedSizes( |
1829 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1830 | | // @@protoc_insertion_point(serialize_start:yb.master.TabletReportPB) |
1831 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1832 | 0 | (void) cached_has_bits; |
1833 | |
|
1834 | 0 | cached_has_bits = _has_bits_[0]; |
1835 | | // required bool is_incremental = 1; |
1836 | 0 | if (cached_has_bits & 0x00000001u) { |
1837 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_incremental(), output); |
1838 | 0 | } |
1839 | | |
1840 | | // repeated .yb.master.ReportedTabletPB updated_tablets = 2; |
1841 | 0 | for (unsigned int i = 0, |
1842 | 0 | n = static_cast<unsigned int>(this->updated_tablets_size()); i < n; i++) { |
1843 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1844 | 0 | 2, this->updated_tablets(static_cast<int>(i)), output); |
1845 | 0 | } |
1846 | | |
1847 | | // repeated bytes removed_tablet_ids = 3; |
1848 | 0 | for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++) { |
1849 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
1850 | 0 | 3, this->removed_tablet_ids(i), output); |
1851 | 0 | } |
1852 | | |
1853 | | // required int32 sequence_number = 4; |
1854 | 0 | if (cached_has_bits & 0x00000002u) { |
1855 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->sequence_number(), output); |
1856 | 0 | } |
1857 | | |
1858 | | // optional int32 remaining_tablet_count = 5; |
1859 | 0 | if (cached_has_bits & 0x00000004u) { |
1860 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->remaining_tablet_count(), output); |
1861 | 0 | } |
1862 | |
|
1863 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1864 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1865 | 0 | _internal_metadata_.unknown_fields(), output); |
1866 | 0 | } |
1867 | | // @@protoc_insertion_point(serialize_end:yb.master.TabletReportPB) |
1868 | 0 | } |
1869 | | |
1870 | | ::google::protobuf::uint8* TabletReportPB::InternalSerializeWithCachedSizesToArray( |
1871 | 5.25M | bool deterministic, ::google::protobuf::uint8* target) const { |
1872 | 5.25M | (void)deterministic; // Unused |
1873 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletReportPB) |
1874 | 5.25M | ::google::protobuf::uint32 cached_has_bits = 0; |
1875 | 5.25M | (void) cached_has_bits; |
1876 | | |
1877 | 5.25M | cached_has_bits = _has_bits_[0]; |
1878 | | // required bool is_incremental = 1; |
1879 | 5.25M | if (cached_has_bits & 0x00000001u) { |
1880 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_incremental(), target); |
1881 | 5.25M | } |
1882 | | |
1883 | | // repeated .yb.master.ReportedTabletPB updated_tablets = 2; |
1884 | 5.25M | for (unsigned int i = 0, |
1885 | 5.71M | n = static_cast<unsigned int>(this->updated_tablets_size()); i < n; i++458k ) { |
1886 | 458k | target = ::google::protobuf::internal::WireFormatLite:: |
1887 | 458k | InternalWriteMessageToArray( |
1888 | 458k | 2, this->updated_tablets(static_cast<int>(i)), deterministic, target); |
1889 | 458k | } |
1890 | | |
1891 | | // repeated bytes removed_tablet_ids = 3; |
1892 | 5.25M | for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++0 ) { |
1893 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1894 | 0 | WriteBytesToArray(3, this->removed_tablet_ids(i), target); |
1895 | 0 | } |
1896 | | |
1897 | | // required int32 sequence_number = 4; |
1898 | 5.25M | if (cached_has_bits & 0x00000002u) { |
1899 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->sequence_number(), target); |
1900 | 5.25M | } |
1901 | | |
1902 | | // optional int32 remaining_tablet_count = 5; |
1903 | 5.25M | if (cached_has_bits & 0x00000004u) { |
1904 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->remaining_tablet_count(), target); |
1905 | 5.25M | } |
1906 | | |
1907 | 5.25M | if (_internal_metadata_.have_unknown_fields()) { |
1908 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1909 | 0 | _internal_metadata_.unknown_fields(), target); |
1910 | 0 | } |
1911 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletReportPB) |
1912 | 5.25M | return target; |
1913 | 5.25M | } |
1914 | | |
1915 | 0 | size_t TabletReportPB::RequiredFieldsByteSizeFallback() const { |
1916 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TabletReportPB) |
1917 | 0 | size_t total_size = 0; |
1918 | |
|
1919 | 0 | if (has_is_incremental()) { |
1920 | | // required bool is_incremental = 1; |
1921 | 0 | total_size += 1 + 1; |
1922 | 0 | } |
1923 | |
|
1924 | 0 | if (has_sequence_number()) { |
1925 | | // required int32 sequence_number = 4; |
1926 | 0 | total_size += 1 + |
1927 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1928 | 0 | this->sequence_number()); |
1929 | 0 | } |
1930 | |
|
1931 | 0 | return total_size; |
1932 | 0 | } |
1933 | 10.5M | size_t TabletReportPB::ByteSizeLong() const { |
1934 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TabletReportPB) |
1935 | 10.5M | size_t total_size = 0; |
1936 | | |
1937 | 10.5M | if (_internal_metadata_.have_unknown_fields()) { |
1938 | 0 | total_size += |
1939 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1940 | 0 | _internal_metadata_.unknown_fields()); |
1941 | 0 | } |
1942 | 10.5M | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
1943 | | // required bool is_incremental = 1; |
1944 | 10.5M | total_size += 1 + 1; |
1945 | | |
1946 | | // required int32 sequence_number = 4; |
1947 | 10.5M | total_size += 1 + |
1948 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1949 | 10.5M | this->sequence_number()); |
1950 | | |
1951 | 10.5M | } else { |
1952 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
1953 | 0 | } |
1954 | | // repeated .yb.master.ReportedTabletPB updated_tablets = 2; |
1955 | 10.5M | { |
1956 | 10.5M | unsigned int count = static_cast<unsigned int>(this->updated_tablets_size()); |
1957 | 10.5M | total_size += 1UL * count; |
1958 | 11.4M | for (unsigned int i = 0; i < count; i++916k ) { |
1959 | 916k | total_size += |
1960 | 916k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1961 | 916k | this->updated_tablets(static_cast<int>(i))); |
1962 | 916k | } |
1963 | 10.5M | } |
1964 | | |
1965 | | // repeated bytes removed_tablet_ids = 3; |
1966 | 10.5M | total_size += 1 * |
1967 | 10.5M | ::google::protobuf::internal::FromIntSize(this->removed_tablet_ids_size()); |
1968 | 10.5M | for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++0 ) { |
1969 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1970 | 0 | this->removed_tablet_ids(i)); |
1971 | 0 | } |
1972 | | |
1973 | | // optional int32 remaining_tablet_count = 5; |
1974 | 10.5M | if (has_remaining_tablet_count()) { |
1975 | 10.5M | total_size += 1 + |
1976 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1977 | 10.5M | this->remaining_tablet_count()); |
1978 | 10.5M | } |
1979 | | |
1980 | 10.5M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1981 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1982 | 10.5M | _cached_size_ = cached_size; |
1983 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1984 | 10.5M | return total_size; |
1985 | 10.5M | } |
1986 | | |
1987 | 0 | void TabletReportPB::MergeFrom(const ::google::protobuf::Message& from) { |
1988 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletReportPB) |
1989 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1990 | 0 | const TabletReportPB* source = |
1991 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TabletReportPB>( |
1992 | 0 | &from); |
1993 | 0 | if (source == NULL) { |
1994 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletReportPB) |
1995 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1996 | 0 | } else { |
1997 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletReportPB) |
1998 | 0 | MergeFrom(*source); |
1999 | 0 | } |
2000 | 0 | } |
2001 | | |
2002 | 0 | void TabletReportPB::MergeFrom(const TabletReportPB& from) { |
2003 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletReportPB) |
2004 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2005 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2006 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2007 | 0 | (void) cached_has_bits; |
2008 | |
|
2009 | 0 | updated_tablets_.MergeFrom(from.updated_tablets_); |
2010 | 0 | removed_tablet_ids_.MergeFrom(from.removed_tablet_ids_); |
2011 | 0 | cached_has_bits = from._has_bits_[0]; |
2012 | 0 | if (cached_has_bits & 7u) { |
2013 | 0 | if (cached_has_bits & 0x00000001u) { |
2014 | 0 | is_incremental_ = from.is_incremental_; |
2015 | 0 | } |
2016 | 0 | if (cached_has_bits & 0x00000002u) { |
2017 | 0 | sequence_number_ = from.sequence_number_; |
2018 | 0 | } |
2019 | 0 | if (cached_has_bits & 0x00000004u) { |
2020 | 0 | remaining_tablet_count_ = from.remaining_tablet_count_; |
2021 | 0 | } |
2022 | 0 | _has_bits_[0] |= cached_has_bits; |
2023 | 0 | } |
2024 | 0 | } |
2025 | | |
2026 | 0 | void TabletReportPB::CopyFrom(const ::google::protobuf::Message& from) { |
2027 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletReportPB) |
2028 | 0 | if (&from == this) return; |
2029 | 0 | Clear(); |
2030 | 0 | MergeFrom(from); |
2031 | 0 | } |
2032 | | |
2033 | 0 | void TabletReportPB::CopyFrom(const TabletReportPB& from) { |
2034 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletReportPB) |
2035 | 0 | if (&from == this) return; |
2036 | 0 | Clear(); |
2037 | 0 | MergeFrom(from); |
2038 | 0 | } |
2039 | | |
2040 | 10.4M | bool TabletReportPB::IsInitialized() const { |
2041 | 10.4M | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false0 ; |
2042 | 10.4M | if (!::google::protobuf::internal::AllAreInitialized(this->updated_tablets())) return false0 ; |
2043 | 10.4M | return true; |
2044 | 10.4M | } |
2045 | | |
2046 | 0 | void TabletReportPB::Swap(TabletReportPB* other) { |
2047 | 0 | if (other == this) return; |
2048 | 0 | InternalSwap(other); |
2049 | 0 | } |
2050 | 0 | void TabletReportPB::InternalSwap(TabletReportPB* other) { |
2051 | 0 | using std::swap; |
2052 | 0 | updated_tablets_.InternalSwap(&other->updated_tablets_); |
2053 | 0 | removed_tablet_ids_.InternalSwap(&other->removed_tablet_ids_); |
2054 | 0 | swap(is_incremental_, other->is_incremental_); |
2055 | 0 | swap(sequence_number_, other->sequence_number_); |
2056 | 0 | swap(remaining_tablet_count_, other->remaining_tablet_count_); |
2057 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2058 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2059 | 0 | swap(_cached_size_, other->_cached_size_); |
2060 | 0 | } |
2061 | | |
2062 | 5.17M | ::google::protobuf::Metadata TabletReportPB::GetMetadata() const { |
2063 | 5.17M | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2064 | 5.17M | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
2065 | 5.17M | } |
2066 | | |
2067 | | |
2068 | | // =================================================================== |
2069 | | |
2070 | 26.8k | void TabletForSplitPB::InitAsDefaultInstance() { |
2071 | 26.8k | } |
2072 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2073 | | const int TabletForSplitPB::kTabletIdFieldNumber; |
2074 | | const int TabletForSplitPB::kOBSOLETESplitPartitionKeyFieldNumber; |
2075 | | const int TabletForSplitPB::kOBSOLETESplitEncodedKeyFieldNumber; |
2076 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2077 | | |
2078 | | TabletForSplitPB::TabletForSplitPB() |
2079 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2080 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2081 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB(); |
2082 | 0 | } |
2083 | 26.8k | SharedCtor(); |
2084 | | // @@protoc_insertion_point(constructor:yb.master.TabletForSplitPB) |
2085 | 26.8k | } |
2086 | | TabletForSplitPB::TabletForSplitPB(const TabletForSplitPB& from) |
2087 | | : ::google::protobuf::Message(), |
2088 | | _internal_metadata_(NULL), |
2089 | | _has_bits_(from._has_bits_), |
2090 | 0 | _cached_size_(0) { |
2091 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2092 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2093 | 0 | if (from.has_tablet_id()) { |
2094 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
2095 | 0 | } |
2096 | 0 | obsolete_split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2097 | 0 | if (from.has_obsolete_split_partition_key()) { |
2098 | 0 | obsolete_split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_partition_key_); |
2099 | 0 | } |
2100 | 0 | obsolete_split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2101 | 0 | if (from.has_obsolete_split_encoded_key()) { |
2102 | 0 | obsolete_split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_encoded_key_); |
2103 | 0 | } |
2104 | | // @@protoc_insertion_point(copy_constructor:yb.master.TabletForSplitPB) |
2105 | 0 | } |
2106 | | |
2107 | 26.8k | void TabletForSplitPB::SharedCtor() { |
2108 | 26.8k | _cached_size_ = 0; |
2109 | 26.8k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2110 | 26.8k | obsolete_split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2111 | 26.8k | obsolete_split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2112 | 26.8k | } |
2113 | | |
2114 | 0 | TabletForSplitPB::~TabletForSplitPB() { |
2115 | | // @@protoc_insertion_point(destructor:yb.master.TabletForSplitPB) |
2116 | 0 | SharedDtor(); |
2117 | 0 | } |
2118 | | |
2119 | 0 | void TabletForSplitPB::SharedDtor() { |
2120 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2121 | 0 | obsolete_split_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2122 | 0 | obsolete_split_encoded_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2123 | 0 | } |
2124 | | |
2125 | 0 | void TabletForSplitPB::SetCachedSize(int size) const { |
2126 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2127 | 0 | _cached_size_ = size; |
2128 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2129 | 0 | } |
2130 | 0 | const ::google::protobuf::Descriptor* TabletForSplitPB::descriptor() { |
2131 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2132 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2133 | 0 | } |
2134 | | |
2135 | 0 | const TabletForSplitPB& TabletForSplitPB::default_instance() { |
2136 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB(); |
2137 | 0 | return *internal_default_instance(); |
2138 | 0 | } |
2139 | | |
2140 | 0 | TabletForSplitPB* TabletForSplitPB::New(::google::protobuf::Arena* arena) const { |
2141 | 0 | TabletForSplitPB* n = new TabletForSplitPB; |
2142 | 0 | if (arena != NULL) { |
2143 | 0 | arena->Own(n); |
2144 | 0 | } |
2145 | 0 | return n; |
2146 | 0 | } |
2147 | | |
2148 | 0 | void TabletForSplitPB::Clear() { |
2149 | | // @@protoc_insertion_point(message_clear_start:yb.master.TabletForSplitPB) |
2150 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2151 | | // Prevent compiler warnings about cached_has_bits being unused |
2152 | 0 | (void) cached_has_bits; |
2153 | |
|
2154 | 0 | cached_has_bits = _has_bits_[0]; |
2155 | 0 | if (cached_has_bits & 7u) { |
2156 | 0 | if (cached_has_bits & 0x00000001u) { |
2157 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2158 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
2159 | 0 | } |
2160 | 0 | if (cached_has_bits & 0x00000002u) { |
2161 | 0 | GOOGLE_DCHECK(!obsolete_split_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2162 | 0 | (*obsolete_split_partition_key_.UnsafeRawStringPointer())->clear(); |
2163 | 0 | } |
2164 | 0 | if (cached_has_bits & 0x00000004u) { |
2165 | 0 | GOOGLE_DCHECK(!obsolete_split_encoded_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2166 | 0 | (*obsolete_split_encoded_key_.UnsafeRawStringPointer())->clear(); |
2167 | 0 | } |
2168 | 0 | } |
2169 | 0 | _has_bits_.Clear(); |
2170 | 0 | _internal_metadata_.Clear(); |
2171 | 0 | } |
2172 | | |
2173 | | bool TabletForSplitPB::MergePartialFromCodedStream( |
2174 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2175 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2176 | 0 | ::google::protobuf::uint32 tag; |
2177 | | // @@protoc_insertion_point(parse_start:yb.master.TabletForSplitPB) |
2178 | 0 | for (;;) { |
2179 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2180 | 0 | tag = p.first; |
2181 | 0 | if (!p.second) goto handle_unusual; |
2182 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2183 | | // required bytes tablet_id = 1; |
2184 | 0 | case 1: { |
2185 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2186 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2187 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2188 | 0 | input, this->mutable_tablet_id())); |
2189 | 0 | } else { |
2190 | 0 | goto handle_unusual; |
2191 | 0 | } |
2192 | 0 | break; |
2193 | 0 | } |
2194 | | |
2195 | | // optional bytes OBSOLETE_split_partition_key = 2; |
2196 | 0 | case 2: { |
2197 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2198 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2199 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2200 | 0 | input, this->mutable_obsolete_split_partition_key())); |
2201 | 0 | } else { |
2202 | 0 | goto handle_unusual; |
2203 | 0 | } |
2204 | 0 | break; |
2205 | 0 | } |
2206 | | |
2207 | | // optional bytes OBSOLETE_split_encoded_key = 3; |
2208 | 0 | case 3: { |
2209 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2210 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2211 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2212 | 0 | input, this->mutable_obsolete_split_encoded_key())); |
2213 | 0 | } else { |
2214 | 0 | goto handle_unusual; |
2215 | 0 | } |
2216 | 0 | break; |
2217 | 0 | } |
2218 | | |
2219 | 0 | default: { |
2220 | 0 | handle_unusual: |
2221 | 0 | if (tag == 0) { |
2222 | 0 | goto success; |
2223 | 0 | } |
2224 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2225 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2226 | 0 | break; |
2227 | 0 | } |
2228 | 0 | } |
2229 | 0 | } |
2230 | 0 | success: |
2231 | | // @@protoc_insertion_point(parse_success:yb.master.TabletForSplitPB) |
2232 | 0 | return true; |
2233 | 0 | failure: |
2234 | | // @@protoc_insertion_point(parse_failure:yb.master.TabletForSplitPB) |
2235 | 0 | return false; |
2236 | 0 | #undef DO_ |
2237 | 0 | } |
2238 | | |
2239 | | void TabletForSplitPB::SerializeWithCachedSizes( |
2240 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2241 | | // @@protoc_insertion_point(serialize_start:yb.master.TabletForSplitPB) |
2242 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2243 | 0 | (void) cached_has_bits; |
2244 | |
|
2245 | 0 | cached_has_bits = _has_bits_[0]; |
2246 | | // required bytes tablet_id = 1; |
2247 | 0 | if (cached_has_bits & 0x00000001u) { |
2248 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2249 | 0 | 1, this->tablet_id(), output); |
2250 | 0 | } |
2251 | | |
2252 | | // optional bytes OBSOLETE_split_partition_key = 2; |
2253 | 0 | if (cached_has_bits & 0x00000002u) { |
2254 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2255 | 0 | 2, this->obsolete_split_partition_key(), output); |
2256 | 0 | } |
2257 | | |
2258 | | // optional bytes OBSOLETE_split_encoded_key = 3; |
2259 | 0 | if (cached_has_bits & 0x00000004u) { |
2260 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2261 | 0 | 3, this->obsolete_split_encoded_key(), output); |
2262 | 0 | } |
2263 | |
|
2264 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2265 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2266 | 0 | _internal_metadata_.unknown_fields(), output); |
2267 | 0 | } |
2268 | | // @@protoc_insertion_point(serialize_end:yb.master.TabletForSplitPB) |
2269 | 0 | } |
2270 | | |
2271 | | ::google::protobuf::uint8* TabletForSplitPB::InternalSerializeWithCachedSizesToArray( |
2272 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2273 | 0 | (void)deterministic; // Unused |
2274 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletForSplitPB) |
2275 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2276 | 0 | (void) cached_has_bits; |
2277 | |
|
2278 | 0 | cached_has_bits = _has_bits_[0]; |
2279 | | // required bytes tablet_id = 1; |
2280 | 0 | if (cached_has_bits & 0x00000001u) { |
2281 | 0 | target = |
2282 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2283 | 0 | 1, this->tablet_id(), target); |
2284 | 0 | } |
2285 | | |
2286 | | // optional bytes OBSOLETE_split_partition_key = 2; |
2287 | 0 | if (cached_has_bits & 0x00000002u) { |
2288 | 0 | target = |
2289 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2290 | 0 | 2, this->obsolete_split_partition_key(), target); |
2291 | 0 | } |
2292 | | |
2293 | | // optional bytes OBSOLETE_split_encoded_key = 3; |
2294 | 0 | if (cached_has_bits & 0x00000004u) { |
2295 | 0 | target = |
2296 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2297 | 0 | 3, this->obsolete_split_encoded_key(), target); |
2298 | 0 | } |
2299 | |
|
2300 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2301 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2302 | 0 | _internal_metadata_.unknown_fields(), target); |
2303 | 0 | } |
2304 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletForSplitPB) |
2305 | 0 | return target; |
2306 | 0 | } |
2307 | | |
2308 | 0 | size_t TabletForSplitPB::ByteSizeLong() const { |
2309 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TabletForSplitPB) |
2310 | 0 | size_t total_size = 0; |
2311 | |
|
2312 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2313 | 0 | total_size += |
2314 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2315 | 0 | _internal_metadata_.unknown_fields()); |
2316 | 0 | } |
2317 | | // required bytes tablet_id = 1; |
2318 | 0 | if (has_tablet_id()) { |
2319 | 0 | total_size += 1 + |
2320 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2321 | 0 | this->tablet_id()); |
2322 | 0 | } |
2323 | 0 | if (_has_bits_[0 / 32] & 6u) { |
2324 | | // optional bytes OBSOLETE_split_partition_key = 2; |
2325 | 0 | if (has_obsolete_split_partition_key()) { |
2326 | 0 | total_size += 1 + |
2327 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2328 | 0 | this->obsolete_split_partition_key()); |
2329 | 0 | } |
2330 | | |
2331 | | // optional bytes OBSOLETE_split_encoded_key = 3; |
2332 | 0 | if (has_obsolete_split_encoded_key()) { |
2333 | 0 | total_size += 1 + |
2334 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2335 | 0 | this->obsolete_split_encoded_key()); |
2336 | 0 | } |
2337 | |
|
2338 | 0 | } |
2339 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2340 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2341 | 0 | _cached_size_ = cached_size; |
2342 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2343 | 0 | return total_size; |
2344 | 0 | } |
2345 | | |
2346 | 0 | void TabletForSplitPB::MergeFrom(const ::google::protobuf::Message& from) { |
2347 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletForSplitPB) |
2348 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2349 | 0 | const TabletForSplitPB* source = |
2350 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TabletForSplitPB>( |
2351 | 0 | &from); |
2352 | 0 | if (source == NULL) { |
2353 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletForSplitPB) |
2354 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2355 | 0 | } else { |
2356 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletForSplitPB) |
2357 | 0 | MergeFrom(*source); |
2358 | 0 | } |
2359 | 0 | } |
2360 | | |
2361 | 0 | void TabletForSplitPB::MergeFrom(const TabletForSplitPB& from) { |
2362 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletForSplitPB) |
2363 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2364 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2365 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2366 | 0 | (void) cached_has_bits; |
2367 | |
|
2368 | 0 | cached_has_bits = from._has_bits_[0]; |
2369 | 0 | if (cached_has_bits & 7u) { |
2370 | 0 | if (cached_has_bits & 0x00000001u) { |
2371 | 0 | set_has_tablet_id(); |
2372 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
2373 | 0 | } |
2374 | 0 | if (cached_has_bits & 0x00000002u) { |
2375 | 0 | set_has_obsolete_split_partition_key(); |
2376 | 0 | obsolete_split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_partition_key_); |
2377 | 0 | } |
2378 | 0 | if (cached_has_bits & 0x00000004u) { |
2379 | 0 | set_has_obsolete_split_encoded_key(); |
2380 | 0 | obsolete_split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_encoded_key_); |
2381 | 0 | } |
2382 | 0 | } |
2383 | 0 | } |
2384 | | |
2385 | 0 | void TabletForSplitPB::CopyFrom(const ::google::protobuf::Message& from) { |
2386 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletForSplitPB) |
2387 | 0 | if (&from == this) return; |
2388 | 0 | Clear(); |
2389 | 0 | MergeFrom(from); |
2390 | 0 | } |
2391 | | |
2392 | 0 | void TabletForSplitPB::CopyFrom(const TabletForSplitPB& from) { |
2393 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletForSplitPB) |
2394 | 0 | if (&from == this) return; |
2395 | 0 | Clear(); |
2396 | 0 | MergeFrom(from); |
2397 | 0 | } |
2398 | | |
2399 | 0 | bool TabletForSplitPB::IsInitialized() const { |
2400 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
2401 | 0 | return true; |
2402 | 0 | } |
2403 | | |
2404 | 0 | void TabletForSplitPB::Swap(TabletForSplitPB* other) { |
2405 | 0 | if (other == this) return; |
2406 | 0 | InternalSwap(other); |
2407 | 0 | } |
2408 | 0 | void TabletForSplitPB::InternalSwap(TabletForSplitPB* other) { |
2409 | 0 | using std::swap; |
2410 | 0 | tablet_id_.Swap(&other->tablet_id_); |
2411 | 0 | obsolete_split_partition_key_.Swap(&other->obsolete_split_partition_key_); |
2412 | 0 | obsolete_split_encoded_key_.Swap(&other->obsolete_split_encoded_key_); |
2413 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2414 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2415 | 0 | swap(_cached_size_, other->_cached_size_); |
2416 | 0 | } |
2417 | | |
2418 | 0 | ::google::protobuf::Metadata TabletForSplitPB::GetMetadata() const { |
2419 | 0 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2420 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
2421 | 0 | } |
2422 | | |
2423 | | |
2424 | | // =================================================================== |
2425 | | |
2426 | 26.8k | void TabletDriveStorageMetadataPB::InitAsDefaultInstance() { |
2427 | 26.8k | } |
2428 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2429 | | const int TabletDriveStorageMetadataPB::kTabletIdFieldNumber; |
2430 | | const int TabletDriveStorageMetadataPB::kSstFileSizeFieldNumber; |
2431 | | const int TabletDriveStorageMetadataPB::kWalFileSizeFieldNumber; |
2432 | | const int TabletDriveStorageMetadataPB::kUncompressedSstFileSizeFieldNumber; |
2433 | | const int TabletDriveStorageMetadataPB::kMayHaveOrphanedPostSplitDataFieldNumber; |
2434 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2435 | | |
2436 | | TabletDriveStorageMetadataPB::TabletDriveStorageMetadataPB() |
2437 | 4.72M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2438 | 4.72M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2439 | 4.69M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB(); |
2440 | 4.69M | } |
2441 | 4.72M | SharedCtor(); |
2442 | | // @@protoc_insertion_point(constructor:yb.master.TabletDriveStorageMetadataPB) |
2443 | 4.72M | } |
2444 | | TabletDriveStorageMetadataPB::TabletDriveStorageMetadataPB(const TabletDriveStorageMetadataPB& from) |
2445 | | : ::google::protobuf::Message(), |
2446 | | _internal_metadata_(NULL), |
2447 | | _has_bits_(from._has_bits_), |
2448 | 0 | _cached_size_(0) { |
2449 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2450 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2451 | 0 | if (from.has_tablet_id()) { |
2452 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
2453 | 0 | } |
2454 | 0 | ::memcpy(&sst_file_size_, &from.sst_file_size_, |
2455 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&may_have_orphaned_post_split_data_) - |
2456 | 0 | reinterpret_cast<char*>(&sst_file_size_)) + sizeof(may_have_orphaned_post_split_data_)); |
2457 | | // @@protoc_insertion_point(copy_constructor:yb.master.TabletDriveStorageMetadataPB) |
2458 | 0 | } |
2459 | | |
2460 | 4.72M | void TabletDriveStorageMetadataPB::SharedCtor() { |
2461 | 4.72M | _cached_size_ = 0; |
2462 | 4.72M | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2463 | 4.72M | ::memset(&sst_file_size_, 0, static_cast<size_t>( |
2464 | 4.72M | reinterpret_cast<char*>(&uncompressed_sst_file_size_) - |
2465 | 4.72M | reinterpret_cast<char*>(&sst_file_size_)) + sizeof(uncompressed_sst_file_size_)); |
2466 | 4.72M | may_have_orphaned_post_split_data_ = true; |
2467 | 4.72M | } |
2468 | | |
2469 | 4.69M | TabletDriveStorageMetadataPB::~TabletDriveStorageMetadataPB() { |
2470 | | // @@protoc_insertion_point(destructor:yb.master.TabletDriveStorageMetadataPB) |
2471 | 4.69M | SharedDtor(); |
2472 | 4.69M | } |
2473 | | |
2474 | 4.69M | void TabletDriveStorageMetadataPB::SharedDtor() { |
2475 | 4.69M | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2476 | 4.69M | } |
2477 | | |
2478 | 0 | void TabletDriveStorageMetadataPB::SetCachedSize(int size) const { |
2479 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2480 | 0 | _cached_size_ = size; |
2481 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2482 | 0 | } |
2483 | 0 | const ::google::protobuf::Descriptor* TabletDriveStorageMetadataPB::descriptor() { |
2484 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2485 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2486 | 0 | } |
2487 | | |
2488 | 0 | const TabletDriveStorageMetadataPB& TabletDriveStorageMetadataPB::default_instance() { |
2489 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB(); |
2490 | 0 | return *internal_default_instance(); |
2491 | 0 | } |
2492 | | |
2493 | 0 | TabletDriveStorageMetadataPB* TabletDriveStorageMetadataPB::New(::google::protobuf::Arena* arena) const { |
2494 | 0 | TabletDriveStorageMetadataPB* n = new TabletDriveStorageMetadataPB; |
2495 | 0 | if (arena != NULL) { |
2496 | 0 | arena->Own(n); |
2497 | 0 | } |
2498 | 0 | return n; |
2499 | 0 | } |
2500 | | |
2501 | 0 | void TabletDriveStorageMetadataPB::Clear() { |
2502 | | // @@protoc_insertion_point(message_clear_start:yb.master.TabletDriveStorageMetadataPB) |
2503 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2504 | | // Prevent compiler warnings about cached_has_bits being unused |
2505 | 0 | (void) cached_has_bits; |
2506 | |
|
2507 | 0 | cached_has_bits = _has_bits_[0]; |
2508 | 0 | if (cached_has_bits & 0x00000001u) { |
2509 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2510 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
2511 | 0 | } |
2512 | 0 | if (cached_has_bits & 30u) { |
2513 | 0 | ::memset(&sst_file_size_, 0, static_cast<size_t>( |
2514 | 0 | reinterpret_cast<char*>(&uncompressed_sst_file_size_) - |
2515 | 0 | reinterpret_cast<char*>(&sst_file_size_)) + sizeof(uncompressed_sst_file_size_)); |
2516 | 0 | may_have_orphaned_post_split_data_ = true; |
2517 | 0 | } |
2518 | 0 | _has_bits_.Clear(); |
2519 | 0 | _internal_metadata_.Clear(); |
2520 | 0 | } |
2521 | | |
2522 | | bool TabletDriveStorageMetadataPB::MergePartialFromCodedStream( |
2523 | 2.34M | ::google::protobuf::io::CodedInputStream* input) { |
2524 | 11.7M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2525 | 2.34M | ::google::protobuf::uint32 tag; |
2526 | | // @@protoc_insertion_point(parse_start:yb.master.TabletDriveStorageMetadataPB) |
2527 | 13.9M | for (;;) { |
2528 | 13.9M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2529 | 13.9M | tag = p.first; |
2530 | 13.9M | if (!p.second) goto handle_unusual2.34M ; |
2531 | 11.6M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2532 | | // required bytes tablet_id = 1; |
2533 | 2.34M | case 1: { |
2534 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2535 | 2.34M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2536 | 2.34M | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2537 | 2.34M | input, this->mutable_tablet_id())); |
2538 | 18.4E | } else { |
2539 | 18.4E | goto handle_unusual; |
2540 | 18.4E | } |
2541 | 2.34M | break; |
2542 | 2.34M | } |
2543 | | |
2544 | | // optional uint64 sst_file_size = 2; |
2545 | 2.34M | case 2: { |
2546 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2547 | 2.34M | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2548 | 2.34M | set_has_sst_file_size(); |
2549 | 2.34M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2550 | 2.34M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2551 | 2.34M | input, &sst_file_size_))); |
2552 | 18.4E | } else { |
2553 | 18.4E | goto handle_unusual; |
2554 | 18.4E | } |
2555 | 2.34M | break; |
2556 | 2.34M | } |
2557 | | |
2558 | | // optional uint64 wal_file_size = 3; |
2559 | 2.34M | case 3: { |
2560 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2561 | 2.34M | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2562 | 2.34M | set_has_wal_file_size(); |
2563 | 2.34M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2564 | 2.34M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2565 | 2.34M | input, &wal_file_size_))); |
2566 | 18.4E | } else { |
2567 | 18.4E | goto handle_unusual; |
2568 | 18.4E | } |
2569 | 2.34M | break; |
2570 | 2.34M | } |
2571 | | |
2572 | | // optional uint64 uncompressed_sst_file_size = 4; |
2573 | 2.34M | case 4: { |
2574 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2575 | 2.34M | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2576 | 2.34M | set_has_uncompressed_sst_file_size(); |
2577 | 2.34M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2578 | 2.34M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2579 | 2.34M | input, &uncompressed_sst_file_size_))); |
2580 | 18.4E | } else { |
2581 | 18.4E | goto handle_unusual; |
2582 | 18.4E | } |
2583 | 2.34M | break; |
2584 | 2.34M | } |
2585 | | |
2586 | | // optional bool may_have_orphaned_post_split_data = 5 [default = true]; |
2587 | 2.34M | case 5: { |
2588 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2589 | 2.34M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2590 | 2.34M | set_has_may_have_orphaned_post_split_data(); |
2591 | 2.34M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2592 | 2.34M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2593 | 2.34M | input, &may_have_orphaned_post_split_data_))); |
2594 | 18.4E | } else { |
2595 | 18.4E | goto handle_unusual; |
2596 | 18.4E | } |
2597 | 2.34M | break; |
2598 | 2.34M | } |
2599 | | |
2600 | 2.34M | default: { |
2601 | 2.34M | handle_unusual: |
2602 | 2.34M | if (tag == 02.34M ) { |
2603 | 2.34M | goto success; |
2604 | 2.34M | } |
2605 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2606 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2607 | 18.4E | break; |
2608 | 18.4E | } |
2609 | 11.6M | } |
2610 | 11.6M | } |
2611 | 2.34M | success: |
2612 | | // @@protoc_insertion_point(parse_success:yb.master.TabletDriveStorageMetadataPB) |
2613 | 2.34M | return true; |
2614 | 0 | failure: |
2615 | | // @@protoc_insertion_point(parse_failure:yb.master.TabletDriveStorageMetadataPB) |
2616 | 0 | return false; |
2617 | 2.34M | #undef DO_ |
2618 | 2.34M | } |
2619 | | |
2620 | | void TabletDriveStorageMetadataPB::SerializeWithCachedSizes( |
2621 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2622 | | // @@protoc_insertion_point(serialize_start:yb.master.TabletDriveStorageMetadataPB) |
2623 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2624 | 0 | (void) cached_has_bits; |
2625 | |
|
2626 | 0 | cached_has_bits = _has_bits_[0]; |
2627 | | // required bytes tablet_id = 1; |
2628 | 0 | if (cached_has_bits & 0x00000001u) { |
2629 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2630 | 0 | 1, this->tablet_id(), output); |
2631 | 0 | } |
2632 | | |
2633 | | // optional uint64 sst_file_size = 2; |
2634 | 0 | if (cached_has_bits & 0x00000002u) { |
2635 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->sst_file_size(), output); |
2636 | 0 | } |
2637 | | |
2638 | | // optional uint64 wal_file_size = 3; |
2639 | 0 | if (cached_has_bits & 0x00000004u) { |
2640 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->wal_file_size(), output); |
2641 | 0 | } |
2642 | | |
2643 | | // optional uint64 uncompressed_sst_file_size = 4; |
2644 | 0 | if (cached_has_bits & 0x00000008u) { |
2645 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->uncompressed_sst_file_size(), output); |
2646 | 0 | } |
2647 | | |
2648 | | // optional bool may_have_orphaned_post_split_data = 5 [default = true]; |
2649 | 0 | if (cached_has_bits & 0x00000010u) { |
2650 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->may_have_orphaned_post_split_data(), output); |
2651 | 0 | } |
2652 | |
|
2653 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2654 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2655 | 0 | _internal_metadata_.unknown_fields(), output); |
2656 | 0 | } |
2657 | | // @@protoc_insertion_point(serialize_end:yb.master.TabletDriveStorageMetadataPB) |
2658 | 0 | } |
2659 | | |
2660 | | ::google::protobuf::uint8* TabletDriveStorageMetadataPB::InternalSerializeWithCachedSizesToArray( |
2661 | 2.35M | bool deterministic, ::google::protobuf::uint8* target) const { |
2662 | 2.35M | (void)deterministic; // Unused |
2663 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletDriveStorageMetadataPB) |
2664 | 2.35M | ::google::protobuf::uint32 cached_has_bits = 0; |
2665 | 2.35M | (void) cached_has_bits; |
2666 | | |
2667 | 2.35M | cached_has_bits = _has_bits_[0]; |
2668 | | // required bytes tablet_id = 1; |
2669 | 2.35M | if (cached_has_bits & 0x00000001u) { |
2670 | 2.35M | target = |
2671 | 2.35M | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2672 | 2.35M | 1, this->tablet_id(), target); |
2673 | 2.35M | } |
2674 | | |
2675 | | // optional uint64 sst_file_size = 2; |
2676 | 2.35M | if (cached_has_bits & 0x00000002u) { |
2677 | 2.35M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->sst_file_size(), target); |
2678 | 2.35M | } |
2679 | | |
2680 | | // optional uint64 wal_file_size = 3; |
2681 | 2.35M | if (cached_has_bits & 0x00000004u) { |
2682 | 2.35M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->wal_file_size(), target); |
2683 | 2.35M | } |
2684 | | |
2685 | | // optional uint64 uncompressed_sst_file_size = 4; |
2686 | 2.35M | if (cached_has_bits & 0x00000008u) { |
2687 | 2.35M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->uncompressed_sst_file_size(), target); |
2688 | 2.35M | } |
2689 | | |
2690 | | // optional bool may_have_orphaned_post_split_data = 5 [default = true]; |
2691 | 2.35M | if (cached_has_bits & 0x00000010u) { |
2692 | 2.35M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->may_have_orphaned_post_split_data(), target); |
2693 | 2.35M | } |
2694 | | |
2695 | 2.35M | if (_internal_metadata_.have_unknown_fields()) { |
2696 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2697 | 0 | _internal_metadata_.unknown_fields(), target); |
2698 | 0 | } |
2699 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletDriveStorageMetadataPB) |
2700 | 2.35M | return target; |
2701 | 2.35M | } |
2702 | | |
2703 | 4.71M | size_t TabletDriveStorageMetadataPB::ByteSizeLong() const { |
2704 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TabletDriveStorageMetadataPB) |
2705 | 4.71M | size_t total_size = 0; |
2706 | | |
2707 | 4.71M | if (_internal_metadata_.have_unknown_fields()) { |
2708 | 0 | total_size += |
2709 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2710 | 0 | _internal_metadata_.unknown_fields()); |
2711 | 0 | } |
2712 | | // required bytes tablet_id = 1; |
2713 | 4.71M | if (has_tablet_id()) { |
2714 | 4.71M | total_size += 1 + |
2715 | 4.71M | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2716 | 4.71M | this->tablet_id()); |
2717 | 4.71M | } |
2718 | 4.71M | if (_has_bits_[0 / 32] & 30u) { |
2719 | | // optional uint64 sst_file_size = 2; |
2720 | 4.71M | if (has_sst_file_size()) { |
2721 | 4.71M | total_size += 1 + |
2722 | 4.71M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2723 | 4.71M | this->sst_file_size()); |
2724 | 4.71M | } |
2725 | | |
2726 | | // optional uint64 wal_file_size = 3; |
2727 | 4.71M | if (has_wal_file_size()) { |
2728 | 4.71M | total_size += 1 + |
2729 | 4.71M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2730 | 4.71M | this->wal_file_size()); |
2731 | 4.71M | } |
2732 | | |
2733 | | // optional uint64 uncompressed_sst_file_size = 4; |
2734 | 4.71M | if (has_uncompressed_sst_file_size()) { |
2735 | 4.71M | total_size += 1 + |
2736 | 4.71M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2737 | 4.71M | this->uncompressed_sst_file_size()); |
2738 | 4.71M | } |
2739 | | |
2740 | | // optional bool may_have_orphaned_post_split_data = 5 [default = true]; |
2741 | 4.71M | if (has_may_have_orphaned_post_split_data()) { |
2742 | 4.71M | total_size += 1 + 1; |
2743 | 4.71M | } |
2744 | | |
2745 | 4.71M | } |
2746 | 4.71M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2747 | 4.71M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2748 | 4.71M | _cached_size_ = cached_size; |
2749 | 4.71M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2750 | 4.71M | return total_size; |
2751 | 4.71M | } |
2752 | | |
2753 | 0 | void TabletDriveStorageMetadataPB::MergeFrom(const ::google::protobuf::Message& from) { |
2754 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletDriveStorageMetadataPB) |
2755 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2756 | 0 | const TabletDriveStorageMetadataPB* source = |
2757 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TabletDriveStorageMetadataPB>( |
2758 | 0 | &from); |
2759 | 0 | if (source == NULL) { |
2760 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletDriveStorageMetadataPB) |
2761 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2762 | 0 | } else { |
2763 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletDriveStorageMetadataPB) |
2764 | 0 | MergeFrom(*source); |
2765 | 0 | } |
2766 | 0 | } |
2767 | | |
2768 | 0 | void TabletDriveStorageMetadataPB::MergeFrom(const TabletDriveStorageMetadataPB& from) { |
2769 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletDriveStorageMetadataPB) |
2770 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2771 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2772 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2773 | 0 | (void) cached_has_bits; |
2774 | |
|
2775 | 0 | cached_has_bits = from._has_bits_[0]; |
2776 | 0 | if (cached_has_bits & 31u) { |
2777 | 0 | if (cached_has_bits & 0x00000001u) { |
2778 | 0 | set_has_tablet_id(); |
2779 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
2780 | 0 | } |
2781 | 0 | if (cached_has_bits & 0x00000002u) { |
2782 | 0 | sst_file_size_ = from.sst_file_size_; |
2783 | 0 | } |
2784 | 0 | if (cached_has_bits & 0x00000004u) { |
2785 | 0 | wal_file_size_ = from.wal_file_size_; |
2786 | 0 | } |
2787 | 0 | if (cached_has_bits & 0x00000008u) { |
2788 | 0 | uncompressed_sst_file_size_ = from.uncompressed_sst_file_size_; |
2789 | 0 | } |
2790 | 0 | if (cached_has_bits & 0x00000010u) { |
2791 | 0 | may_have_orphaned_post_split_data_ = from.may_have_orphaned_post_split_data_; |
2792 | 0 | } |
2793 | 0 | _has_bits_[0] |= cached_has_bits; |
2794 | 0 | } |
2795 | 0 | } |
2796 | | |
2797 | 0 | void TabletDriveStorageMetadataPB::CopyFrom(const ::google::protobuf::Message& from) { |
2798 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletDriveStorageMetadataPB) |
2799 | 0 | if (&from == this) return; |
2800 | 0 | Clear(); |
2801 | 0 | MergeFrom(from); |
2802 | 0 | } |
2803 | | |
2804 | 0 | void TabletDriveStorageMetadataPB::CopyFrom(const TabletDriveStorageMetadataPB& from) { |
2805 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletDriveStorageMetadataPB) |
2806 | 0 | if (&from == this) return; |
2807 | 0 | Clear(); |
2808 | 0 | MergeFrom(from); |
2809 | 0 | } |
2810 | | |
2811 | 4.69M | bool TabletDriveStorageMetadataPB::IsInitialized() const { |
2812 | 4.69M | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
2813 | 4.69M | return true; |
2814 | 4.69M | } |
2815 | | |
2816 | 0 | void TabletDriveStorageMetadataPB::Swap(TabletDriveStorageMetadataPB* other) { |
2817 | 0 | if (other == this) return; |
2818 | 0 | InternalSwap(other); |
2819 | 0 | } |
2820 | 0 | void TabletDriveStorageMetadataPB::InternalSwap(TabletDriveStorageMetadataPB* other) { |
2821 | 0 | using std::swap; |
2822 | 0 | tablet_id_.Swap(&other->tablet_id_); |
2823 | 0 | swap(sst_file_size_, other->sst_file_size_); |
2824 | 0 | swap(wal_file_size_, other->wal_file_size_); |
2825 | 0 | swap(uncompressed_sst_file_size_, other->uncompressed_sst_file_size_); |
2826 | 0 | swap(may_have_orphaned_post_split_data_, other->may_have_orphaned_post_split_data_); |
2827 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2828 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2829 | 0 | swap(_cached_size_, other->_cached_size_); |
2830 | 0 | } |
2831 | | |
2832 | 2.33M | ::google::protobuf::Metadata TabletDriveStorageMetadataPB::GetMetadata() const { |
2833 | 2.33M | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2834 | 2.33M | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
2835 | 2.33M | } |
2836 | | |
2837 | | |
2838 | | // =================================================================== |
2839 | | |
2840 | 26.8k | void ReportedTabletUpdatesPB::InitAsDefaultInstance() { |
2841 | 26.8k | } |
2842 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2843 | | const int ReportedTabletUpdatesPB::kTabletIdFieldNumber; |
2844 | | const int ReportedTabletUpdatesPB::kStateMsgFieldNumber; |
2845 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2846 | | |
2847 | | ReportedTabletUpdatesPB::ReportedTabletUpdatesPB() |
2848 | 936k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2849 | 936k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2850 | 909k | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB(); |
2851 | 909k | } |
2852 | 936k | SharedCtor(); |
2853 | | // @@protoc_insertion_point(constructor:yb.master.ReportedTabletUpdatesPB) |
2854 | 936k | } |
2855 | | ReportedTabletUpdatesPB::ReportedTabletUpdatesPB(const ReportedTabletUpdatesPB& from) |
2856 | | : ::google::protobuf::Message(), |
2857 | | _internal_metadata_(NULL), |
2858 | | _has_bits_(from._has_bits_), |
2859 | 0 | _cached_size_(0) { |
2860 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2861 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2862 | 0 | if (from.has_tablet_id()) { |
2863 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
2864 | 0 | } |
2865 | 0 | state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2866 | 0 | if (from.has_state_msg()) { |
2867 | 0 | state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_); |
2868 | 0 | } |
2869 | | // @@protoc_insertion_point(copy_constructor:yb.master.ReportedTabletUpdatesPB) |
2870 | 0 | } |
2871 | | |
2872 | 936k | void ReportedTabletUpdatesPB::SharedCtor() { |
2873 | 936k | _cached_size_ = 0; |
2874 | 936k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2875 | 936k | state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2876 | 936k | } |
2877 | | |
2878 | 906k | ReportedTabletUpdatesPB::~ReportedTabletUpdatesPB() { |
2879 | | // @@protoc_insertion_point(destructor:yb.master.ReportedTabletUpdatesPB) |
2880 | 906k | SharedDtor(); |
2881 | 906k | } |
2882 | | |
2883 | 907k | void ReportedTabletUpdatesPB::SharedDtor() { |
2884 | 907k | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2885 | 907k | state_msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2886 | 907k | } |
2887 | | |
2888 | 0 | void ReportedTabletUpdatesPB::SetCachedSize(int size) const { |
2889 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2890 | 0 | _cached_size_ = size; |
2891 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2892 | 0 | } |
2893 | 0 | const ::google::protobuf::Descriptor* ReportedTabletUpdatesPB::descriptor() { |
2894 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
2895 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2896 | 0 | } |
2897 | | |
2898 | 0 | const ReportedTabletUpdatesPB& ReportedTabletUpdatesPB::default_instance() { |
2899 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB(); |
2900 | 0 | return *internal_default_instance(); |
2901 | 0 | } |
2902 | | |
2903 | 0 | ReportedTabletUpdatesPB* ReportedTabletUpdatesPB::New(::google::protobuf::Arena* arena) const { |
2904 | 0 | ReportedTabletUpdatesPB* n = new ReportedTabletUpdatesPB; |
2905 | 0 | if (arena != NULL) { |
2906 | 0 | arena->Own(n); |
2907 | 0 | } |
2908 | 0 | return n; |
2909 | 0 | } |
2910 | | |
2911 | 1 | void ReportedTabletUpdatesPB::Clear() { |
2912 | | // @@protoc_insertion_point(message_clear_start:yb.master.ReportedTabletUpdatesPB) |
2913 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
2914 | | // Prevent compiler warnings about cached_has_bits being unused |
2915 | 1 | (void) cached_has_bits; |
2916 | | |
2917 | 1 | cached_has_bits = _has_bits_[0]; |
2918 | 1 | if (cached_has_bits & 3u) { |
2919 | 1 | if (cached_has_bits & 0x00000001u) { |
2920 | 1 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2921 | 1 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
2922 | 1 | } |
2923 | 1 | if (cached_has_bits & 0x00000002u) { |
2924 | 0 | GOOGLE_DCHECK(!state_msg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2925 | 0 | (*state_msg_.UnsafeRawStringPointer())->clear(); |
2926 | 0 | } |
2927 | 1 | } |
2928 | 1 | _has_bits_.Clear(); |
2929 | 1 | _internal_metadata_.Clear(); |
2930 | 1 | } |
2931 | | |
2932 | | bool ReportedTabletUpdatesPB::MergePartialFromCodedStream( |
2933 | 454k | ::google::protobuf::io::CodedInputStream* input) { |
2934 | 454k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2935 | 454k | ::google::protobuf::uint32 tag; |
2936 | | // @@protoc_insertion_point(parse_start:yb.master.ReportedTabletUpdatesPB) |
2937 | 909k | for (;;) { |
2938 | 909k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2939 | 909k | tag = p.first; |
2940 | 909k | if (!p.second) goto handle_unusual454k ; |
2941 | 454k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2942 | | // required bytes tablet_id = 1; |
2943 | 454k | case 1: { |
2944 | 454k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2945 | 454k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2946 | 454k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2947 | 454k | input, this->mutable_tablet_id())); |
2948 | 454k | } else { |
2949 | 0 | goto handle_unusual; |
2950 | 0 | } |
2951 | 454k | break; |
2952 | 454k | } |
2953 | | |
2954 | | // optional string state_msg = 2; |
2955 | 454k | case 2: { |
2956 | 98 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2957 | 98 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2958 | 98 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2959 | 98 | input, this->mutable_state_msg())); |
2960 | 98 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2961 | 98 | this->state_msg().data(), static_cast<int>(this->state_msg().length()), |
2962 | 98 | ::google::protobuf::internal::WireFormat::PARSE, |
2963 | 98 | "yb.master.ReportedTabletUpdatesPB.state_msg"); |
2964 | 98 | } else { |
2965 | 0 | goto handle_unusual; |
2966 | 0 | } |
2967 | 98 | break; |
2968 | 98 | } |
2969 | | |
2970 | 98 | default: { |
2971 | 454k | handle_unusual: |
2972 | 454k | if (tag == 0) { |
2973 | 454k | goto success; |
2974 | 454k | } |
2975 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2976 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2977 | 0 | break; |
2978 | 0 | } |
2979 | 454k | } |
2980 | 454k | } |
2981 | 454k | success: |
2982 | | // @@protoc_insertion_point(parse_success:yb.master.ReportedTabletUpdatesPB) |
2983 | 454k | return true; |
2984 | 0 | failure: |
2985 | | // @@protoc_insertion_point(parse_failure:yb.master.ReportedTabletUpdatesPB) |
2986 | 0 | return false; |
2987 | 454k | #undef DO_ |
2988 | 454k | } |
2989 | | |
2990 | | void ReportedTabletUpdatesPB::SerializeWithCachedSizes( |
2991 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2992 | | // @@protoc_insertion_point(serialize_start:yb.master.ReportedTabletUpdatesPB) |
2993 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2994 | 0 | (void) cached_has_bits; |
2995 | |
|
2996 | 0 | cached_has_bits = _has_bits_[0]; |
2997 | | // required bytes tablet_id = 1; |
2998 | 0 | if (cached_has_bits & 0x00000001u) { |
2999 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
3000 | 0 | 1, this->tablet_id(), output); |
3001 | 0 | } |
3002 | | |
3003 | | // optional string state_msg = 2; |
3004 | 0 | if (cached_has_bits & 0x00000002u) { |
3005 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3006 | 0 | this->state_msg().data(), static_cast<int>(this->state_msg().length()), |
3007 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3008 | 0 | "yb.master.ReportedTabletUpdatesPB.state_msg"); |
3009 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3010 | 0 | 2, this->state_msg(), output); |
3011 | 0 | } |
3012 | |
|
3013 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3014 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3015 | 0 | _internal_metadata_.unknown_fields(), output); |
3016 | 0 | } |
3017 | | // @@protoc_insertion_point(serialize_end:yb.master.ReportedTabletUpdatesPB) |
3018 | 0 | } |
3019 | | |
3020 | | ::google::protobuf::uint8* ReportedTabletUpdatesPB::InternalSerializeWithCachedSizesToArray( |
3021 | 453k | bool deterministic, ::google::protobuf::uint8* target) const { |
3022 | 453k | (void)deterministic; // Unused |
3023 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReportedTabletUpdatesPB) |
3024 | 453k | ::google::protobuf::uint32 cached_has_bits = 0; |
3025 | 453k | (void) cached_has_bits; |
3026 | | |
3027 | 453k | cached_has_bits = _has_bits_[0]; |
3028 | | // required bytes tablet_id = 1; |
3029 | 453k | if (cached_has_bits & 0x00000001u) { |
3030 | 453k | target = |
3031 | 453k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
3032 | 453k | 1, this->tablet_id(), target); |
3033 | 453k | } |
3034 | | |
3035 | | // optional string state_msg = 2; |
3036 | 453k | if (cached_has_bits & 0x00000002u) { |
3037 | 98 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3038 | 98 | this->state_msg().data(), static_cast<int>(this->state_msg().length()), |
3039 | 98 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3040 | 98 | "yb.master.ReportedTabletUpdatesPB.state_msg"); |
3041 | 98 | target = |
3042 | 98 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3043 | 98 | 2, this->state_msg(), target); |
3044 | 98 | } |
3045 | | |
3046 | 453k | if (_internal_metadata_.have_unknown_fields()) { |
3047 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3048 | 0 | _internal_metadata_.unknown_fields(), target); |
3049 | 0 | } |
3050 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReportedTabletUpdatesPB) |
3051 | 453k | return target; |
3052 | 453k | } |
3053 | | |
3054 | 906k | size_t ReportedTabletUpdatesPB::ByteSizeLong() const { |
3055 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ReportedTabletUpdatesPB) |
3056 | 906k | size_t total_size = 0; |
3057 | | |
3058 | 906k | if (_internal_metadata_.have_unknown_fields()) { |
3059 | 0 | total_size += |
3060 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3061 | 0 | _internal_metadata_.unknown_fields()); |
3062 | 0 | } |
3063 | | // required bytes tablet_id = 1; |
3064 | 906k | if (has_tablet_id()) { |
3065 | 902k | total_size += 1 + |
3066 | 902k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
3067 | 902k | this->tablet_id()); |
3068 | 902k | } |
3069 | | // optional string state_msg = 2; |
3070 | 906k | if (has_state_msg()) { |
3071 | 196 | total_size += 1 + |
3072 | 196 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3073 | 196 | this->state_msg()); |
3074 | 196 | } |
3075 | | |
3076 | 906k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3077 | 906k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3078 | 906k | _cached_size_ = cached_size; |
3079 | 906k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3080 | 906k | return total_size; |
3081 | 906k | } |
3082 | | |
3083 | 0 | void ReportedTabletUpdatesPB::MergeFrom(const ::google::protobuf::Message& from) { |
3084 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReportedTabletUpdatesPB) |
3085 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3086 | 0 | const ReportedTabletUpdatesPB* source = |
3087 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ReportedTabletUpdatesPB>( |
3088 | 0 | &from); |
3089 | 0 | if (source == NULL) { |
3090 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReportedTabletUpdatesPB) |
3091 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3092 | 0 | } else { |
3093 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReportedTabletUpdatesPB) |
3094 | 0 | MergeFrom(*source); |
3095 | 0 | } |
3096 | 0 | } |
3097 | | |
3098 | 0 | void ReportedTabletUpdatesPB::MergeFrom(const ReportedTabletUpdatesPB& from) { |
3099 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReportedTabletUpdatesPB) |
3100 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3101 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3102 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3103 | 0 | (void) cached_has_bits; |
3104 | |
|
3105 | 0 | cached_has_bits = from._has_bits_[0]; |
3106 | 0 | if (cached_has_bits & 3u) { |
3107 | 0 | if (cached_has_bits & 0x00000001u) { |
3108 | 0 | set_has_tablet_id(); |
3109 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
3110 | 0 | } |
3111 | 0 | if (cached_has_bits & 0x00000002u) { |
3112 | 0 | set_has_state_msg(); |
3113 | 0 | state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_); |
3114 | 0 | } |
3115 | 0 | } |
3116 | 0 | } |
3117 | | |
3118 | 0 | void ReportedTabletUpdatesPB::CopyFrom(const ::google::protobuf::Message& from) { |
3119 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReportedTabletUpdatesPB) |
3120 | 0 | if (&from == this) return; |
3121 | 0 | Clear(); |
3122 | 0 | MergeFrom(from); |
3123 | 0 | } |
3124 | | |
3125 | 0 | void ReportedTabletUpdatesPB::CopyFrom(const ReportedTabletUpdatesPB& from) { |
3126 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReportedTabletUpdatesPB) |
3127 | 0 | if (&from == this) return; |
3128 | 0 | Clear(); |
3129 | 0 | MergeFrom(from); |
3130 | 0 | } |
3131 | | |
3132 | 907k | bool ReportedTabletUpdatesPB::IsInitialized() const { |
3133 | 907k | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
3134 | 907k | return true; |
3135 | 907k | } |
3136 | | |
3137 | 0 | void ReportedTabletUpdatesPB::Swap(ReportedTabletUpdatesPB* other) { |
3138 | 0 | if (other == this) return; |
3139 | 0 | InternalSwap(other); |
3140 | 0 | } |
3141 | 0 | void ReportedTabletUpdatesPB::InternalSwap(ReportedTabletUpdatesPB* other) { |
3142 | 0 | using std::swap; |
3143 | 0 | tablet_id_.Swap(&other->tablet_id_); |
3144 | 0 | state_msg_.Swap(&other->state_msg_); |
3145 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3146 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3147 | 0 | swap(_cached_size_, other->_cached_size_); |
3148 | 0 | } |
3149 | | |
3150 | 40 | ::google::protobuf::Metadata ReportedTabletUpdatesPB::GetMetadata() const { |
3151 | 40 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3152 | 40 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3153 | 40 | } |
3154 | | |
3155 | | |
3156 | | // =================================================================== |
3157 | | |
3158 | 26.8k | void TabletReportUpdatesPB::InitAsDefaultInstance() { |
3159 | 26.8k | } |
3160 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3161 | | const int TabletReportUpdatesPB::kTabletsFieldNumber; |
3162 | | const int TabletReportUpdatesPB::kProcessingTruncatedFieldNumber; |
3163 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3164 | | |
3165 | | TabletReportUpdatesPB::TabletReportUpdatesPB() |
3166 | 9.66M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3167 | 9.66M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3168 | 9.63M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB(); |
3169 | 9.63M | } |
3170 | 9.66M | SharedCtor(); |
3171 | | // @@protoc_insertion_point(constructor:yb.master.TabletReportUpdatesPB) |
3172 | 9.66M | } |
3173 | | TabletReportUpdatesPB::TabletReportUpdatesPB(const TabletReportUpdatesPB& from) |
3174 | | : ::google::protobuf::Message(), |
3175 | | _internal_metadata_(NULL), |
3176 | | _has_bits_(from._has_bits_), |
3177 | | _cached_size_(0), |
3178 | 0 | tablets_(from.tablets_) { |
3179 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3180 | 0 | processing_truncated_ = from.processing_truncated_; |
3181 | | // @@protoc_insertion_point(copy_constructor:yb.master.TabletReportUpdatesPB) |
3182 | 0 | } |
3183 | | |
3184 | 9.66M | void TabletReportUpdatesPB::SharedCtor() { |
3185 | 9.66M | _cached_size_ = 0; |
3186 | 9.66M | processing_truncated_ = false; |
3187 | 9.66M | } |
3188 | | |
3189 | 9.63M | TabletReportUpdatesPB::~TabletReportUpdatesPB() { |
3190 | | // @@protoc_insertion_point(destructor:yb.master.TabletReportUpdatesPB) |
3191 | 9.63M | SharedDtor(); |
3192 | 9.63M | } |
3193 | | |
3194 | 9.62M | void TabletReportUpdatesPB::SharedDtor() { |
3195 | 9.62M | } |
3196 | | |
3197 | 0 | void TabletReportUpdatesPB::SetCachedSize(int size) const { |
3198 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3199 | 0 | _cached_size_ = size; |
3200 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3201 | 0 | } |
3202 | 0 | const ::google::protobuf::Descriptor* TabletReportUpdatesPB::descriptor() { |
3203 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3204 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3205 | 0 | } |
3206 | | |
3207 | 0 | const TabletReportUpdatesPB& TabletReportUpdatesPB::default_instance() { |
3208 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB(); |
3209 | 0 | return *internal_default_instance(); |
3210 | 0 | } |
3211 | | |
3212 | 0 | TabletReportUpdatesPB* TabletReportUpdatesPB::New(::google::protobuf::Arena* arena) const { |
3213 | 0 | TabletReportUpdatesPB* n = new TabletReportUpdatesPB; |
3214 | 0 | if (arena != NULL) { |
3215 | 0 | arena->Own(n); |
3216 | 0 | } |
3217 | 0 | return n; |
3218 | 0 | } |
3219 | | |
3220 | 7 | void TabletReportUpdatesPB::Clear() { |
3221 | | // @@protoc_insertion_point(message_clear_start:yb.master.TabletReportUpdatesPB) |
3222 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
3223 | | // Prevent compiler warnings about cached_has_bits being unused |
3224 | 7 | (void) cached_has_bits; |
3225 | | |
3226 | 7 | tablets_.Clear(); |
3227 | 7 | processing_truncated_ = false; |
3228 | 7 | _has_bits_.Clear(); |
3229 | 7 | _internal_metadata_.Clear(); |
3230 | 7 | } |
3231 | | |
3232 | | bool TabletReportUpdatesPB::MergePartialFromCodedStream( |
3233 | 4.83M | ::google::protobuf::io::CodedInputStream* input) { |
3234 | 4.83M | #define DO_(EXPRESSION) if (455k !GOOGLE_PREDICT_TRUE455k (EXPRESSION)) goto failure0 |
3235 | 4.83M | ::google::protobuf::uint32 tag; |
3236 | | // @@protoc_insertion_point(parse_start:yb.master.TabletReportUpdatesPB) |
3237 | 5.28M | for (;;) { |
3238 | 5.28M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3239 | 5.28M | tag = p.first; |
3240 | 5.28M | if (!p.second) goto handle_unusual4.83M ; |
3241 | 455k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3242 | | // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1; |
3243 | 454k | case 1: { |
3244 | 454k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3245 | 454k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3246 | 454k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablets())); |
3247 | 454k | } else { |
3248 | 0 | goto handle_unusual; |
3249 | 0 | } |
3250 | 454k | break; |
3251 | 454k | } |
3252 | | |
3253 | | // optional bool processing_truncated = 2 [default = false]; |
3254 | 454k | case 2: { |
3255 | 919 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3256 | 919 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3257 | 919 | set_has_processing_truncated(); |
3258 | 919 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3259 | 919 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3260 | 919 | input, &processing_truncated_))); |
3261 | 919 | } else { |
3262 | 0 | goto handle_unusual; |
3263 | 0 | } |
3264 | 919 | break; |
3265 | 919 | } |
3266 | | |
3267 | 919 | default: { |
3268 | 4.83M | handle_unusual: |
3269 | 4.83M | if (tag == 0) { |
3270 | 4.83M | goto success; |
3271 | 4.83M | } |
3272 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3273 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3274 | 0 | break; |
3275 | 0 | } |
3276 | 455k | } |
3277 | 455k | } |
3278 | 4.83M | success: |
3279 | | // @@protoc_insertion_point(parse_success:yb.master.TabletReportUpdatesPB) |
3280 | 4.83M | return true; |
3281 | 0 | failure: |
3282 | | // @@protoc_insertion_point(parse_failure:yb.master.TabletReportUpdatesPB) |
3283 | 0 | return false; |
3284 | 4.83M | #undef DO_ |
3285 | 4.83M | } |
3286 | | |
3287 | | void TabletReportUpdatesPB::SerializeWithCachedSizes( |
3288 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3289 | | // @@protoc_insertion_point(serialize_start:yb.master.TabletReportUpdatesPB) |
3290 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3291 | 0 | (void) cached_has_bits; |
3292 | | |
3293 | | // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1; |
3294 | 0 | for (unsigned int i = 0, |
3295 | 0 | n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) { |
3296 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3297 | 0 | 1, this->tablets(static_cast<int>(i)), output); |
3298 | 0 | } |
3299 | |
|
3300 | 0 | cached_has_bits = _has_bits_[0]; |
3301 | | // optional bool processing_truncated = 2 [default = false]; |
3302 | 0 | if (cached_has_bits & 0x00000001u) { |
3303 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->processing_truncated(), output); |
3304 | 0 | } |
3305 | |
|
3306 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3307 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3308 | 0 | _internal_metadata_.unknown_fields(), output); |
3309 | 0 | } |
3310 | | // @@protoc_insertion_point(serialize_end:yb.master.TabletReportUpdatesPB) |
3311 | 0 | } |
3312 | | |
3313 | | ::google::protobuf::uint8* TabletReportUpdatesPB::InternalSerializeWithCachedSizesToArray( |
3314 | 4.80M | bool deterministic, ::google::protobuf::uint8* target) const { |
3315 | 4.80M | (void)deterministic; // Unused |
3316 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletReportUpdatesPB) |
3317 | 4.80M | ::google::protobuf::uint32 cached_has_bits = 0; |
3318 | 4.80M | (void) cached_has_bits; |
3319 | | |
3320 | | // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1; |
3321 | 4.80M | for (unsigned int i = 0, |
3322 | 5.25M | n = static_cast<unsigned int>(this->tablets_size()); i < n; i++451k ) { |
3323 | 451k | target = ::google::protobuf::internal::WireFormatLite:: |
3324 | 451k | InternalWriteMessageToArray( |
3325 | 451k | 1, this->tablets(static_cast<int>(i)), deterministic, target); |
3326 | 451k | } |
3327 | | |
3328 | 4.80M | cached_has_bits = _has_bits_[0]; |
3329 | | // optional bool processing_truncated = 2 [default = false]; |
3330 | 4.80M | if (cached_has_bits & 0x00000001u) { |
3331 | 917 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->processing_truncated(), target); |
3332 | 917 | } |
3333 | | |
3334 | 4.80M | if (_internal_metadata_.have_unknown_fields()) { |
3335 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3336 | 0 | _internal_metadata_.unknown_fields(), target); |
3337 | 0 | } |
3338 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletReportUpdatesPB) |
3339 | 4.80M | return target; |
3340 | 4.80M | } |
3341 | | |
3342 | 9.61M | size_t TabletReportUpdatesPB::ByteSizeLong() const { |
3343 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TabletReportUpdatesPB) |
3344 | 9.61M | size_t total_size = 0; |
3345 | | |
3346 | 9.61M | if (_internal_metadata_.have_unknown_fields()) { |
3347 | 0 | total_size += |
3348 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3349 | 0 | _internal_metadata_.unknown_fields()); |
3350 | 0 | } |
3351 | | // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1; |
3352 | 9.61M | { |
3353 | 9.61M | unsigned int count = static_cast<unsigned int>(this->tablets_size()); |
3354 | 9.61M | total_size += 1UL * count; |
3355 | 10.5M | for (unsigned int i = 0; i < count; i++904k ) { |
3356 | 904k | total_size += |
3357 | 904k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3358 | 904k | this->tablets(static_cast<int>(i))); |
3359 | 904k | } |
3360 | 9.61M | } |
3361 | | |
3362 | | // optional bool processing_truncated = 2 [default = false]; |
3363 | 9.61M | if (has_processing_truncated()) { |
3364 | 1.83k | total_size += 1 + 1; |
3365 | 1.83k | } |
3366 | | |
3367 | 9.61M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3368 | 9.61M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3369 | 9.61M | _cached_size_ = cached_size; |
3370 | 9.61M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3371 | 9.61M | return total_size; |
3372 | 9.61M | } |
3373 | | |
3374 | 0 | void TabletReportUpdatesPB::MergeFrom(const ::google::protobuf::Message& from) { |
3375 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletReportUpdatesPB) |
3376 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3377 | 0 | const TabletReportUpdatesPB* source = |
3378 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TabletReportUpdatesPB>( |
3379 | 0 | &from); |
3380 | 0 | if (source == NULL) { |
3381 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletReportUpdatesPB) |
3382 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3383 | 0 | } else { |
3384 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletReportUpdatesPB) |
3385 | 0 | MergeFrom(*source); |
3386 | 0 | } |
3387 | 0 | } |
3388 | | |
3389 | 0 | void TabletReportUpdatesPB::MergeFrom(const TabletReportUpdatesPB& from) { |
3390 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletReportUpdatesPB) |
3391 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3392 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3393 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3394 | 0 | (void) cached_has_bits; |
3395 | |
|
3396 | 0 | tablets_.MergeFrom(from.tablets_); |
3397 | 0 | if (from.has_processing_truncated()) { |
3398 | 0 | set_processing_truncated(from.processing_truncated()); |
3399 | 0 | } |
3400 | 0 | } |
3401 | | |
3402 | 0 | void TabletReportUpdatesPB::CopyFrom(const ::google::protobuf::Message& from) { |
3403 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletReportUpdatesPB) |
3404 | 0 | if (&from == this) return; |
3405 | 0 | Clear(); |
3406 | 0 | MergeFrom(from); |
3407 | 0 | } |
3408 | | |
3409 | 0 | void TabletReportUpdatesPB::CopyFrom(const TabletReportUpdatesPB& from) { |
3410 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletReportUpdatesPB) |
3411 | 0 | if (&from == this) return; |
3412 | 0 | Clear(); |
3413 | 0 | MergeFrom(from); |
3414 | 0 | } |
3415 | | |
3416 | 9.63M | bool TabletReportUpdatesPB::IsInitialized() const { |
3417 | 9.63M | if (!::google::protobuf::internal::AllAreInitialized(this->tablets())) return false0 ; |
3418 | 9.63M | return true; |
3419 | 9.63M | } |
3420 | | |
3421 | 0 | void TabletReportUpdatesPB::Swap(TabletReportUpdatesPB* other) { |
3422 | 0 | if (other == this) return; |
3423 | 0 | InternalSwap(other); |
3424 | 0 | } |
3425 | 0 | void TabletReportUpdatesPB::InternalSwap(TabletReportUpdatesPB* other) { |
3426 | 0 | using std::swap; |
3427 | 0 | tablets_.InternalSwap(&other->tablets_); |
3428 | 0 | swap(processing_truncated_, other->processing_truncated_); |
3429 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3430 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3431 | 0 | swap(_cached_size_, other->_cached_size_); |
3432 | 0 | } |
3433 | | |
3434 | 392 | ::google::protobuf::Metadata TabletReportUpdatesPB::GetMetadata() const { |
3435 | 392 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3436 | 392 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3437 | 392 | } |
3438 | | |
3439 | | |
3440 | | // =================================================================== |
3441 | | |
3442 | 26.8k | void TSInformationPB::InitAsDefaultInstance() { |
3443 | 26.8k | ::yb::master::_TSInformationPB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::master::TSRegistrationPB*>( |
3444 | 26.8k | ::yb::master::TSRegistrationPB::internal_default_instance()); |
3445 | 26.8k | ::yb::master::_TSInformationPB_default_instance_._instance.get_mutable()->tserver_instance_ = const_cast< ::yb::NodeInstancePB*>( |
3446 | 26.8k | ::yb::NodeInstancePB::internal_default_instance()); |
3447 | 26.8k | } |
3448 | 0 | void TSInformationPB::clear_registration() { |
3449 | 0 | if (registration_ != NULL) registration_->Clear(); |
3450 | 0 | clear_has_registration(); |
3451 | 0 | } |
3452 | 0 | void TSInformationPB::clear_tserver_instance() { |
3453 | 0 | if (tserver_instance_ != NULL) tserver_instance_->Clear(); |
3454 | 0 | clear_has_tserver_instance(); |
3455 | 0 | } |
3456 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3457 | | const int TSInformationPB::kRegistrationFieldNumber; |
3458 | | const int TSInformationPB::kTserverInstanceFieldNumber; |
3459 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3460 | | |
3461 | | TSInformationPB::TSInformationPB() |
3462 | 35.6M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3463 | 35.6M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3464 | 35.6M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB(); |
3465 | 35.6M | } |
3466 | 35.6M | SharedCtor(); |
3467 | | // @@protoc_insertion_point(constructor:yb.master.TSInformationPB) |
3468 | 35.6M | } |
3469 | | TSInformationPB::TSInformationPB(const TSInformationPB& from) |
3470 | | : ::google::protobuf::Message(), |
3471 | | _internal_metadata_(NULL), |
3472 | | _has_bits_(from._has_bits_), |
3473 | 585k | _cached_size_(0) { |
3474 | 585k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3475 | 585k | if (from.has_registration()) { |
3476 | 585k | registration_ = new ::yb::master::TSRegistrationPB(*from.registration_); |
3477 | 585k | } else { |
3478 | 281 | registration_ = NULL; |
3479 | 281 | } |
3480 | 585k | if (from.has_tserver_instance()) { |
3481 | 584k | tserver_instance_ = new ::yb::NodeInstancePB(*from.tserver_instance_); |
3482 | 584k | } else { |
3483 | 553 | tserver_instance_ = NULL; |
3484 | 553 | } |
3485 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSInformationPB) |
3486 | 585k | } |
3487 | | |
3488 | 35.6M | void TSInformationPB::SharedCtor() { |
3489 | 35.6M | _cached_size_ = 0; |
3490 | 35.6M | ::memset(®istration_, 0, static_cast<size_t>( |
3491 | 35.6M | reinterpret_cast<char*>(&tserver_instance_) - |
3492 | 35.6M | reinterpret_cast<char*>(®istration_)) + sizeof(tserver_instance_)); |
3493 | 35.6M | } |
3494 | | |
3495 | 36.1M | TSInformationPB::~TSInformationPB() { |
3496 | | // @@protoc_insertion_point(destructor:yb.master.TSInformationPB) |
3497 | 36.1M | SharedDtor(); |
3498 | 36.1M | } |
3499 | | |
3500 | 36.1M | void TSInformationPB::SharedDtor() { |
3501 | 36.1M | if (this != internal_default_instance()) delete registration_36.1M ; |
3502 | 36.1M | if (this != internal_default_instance()) delete tserver_instance_36.1M ; |
3503 | 36.1M | } |
3504 | | |
3505 | 0 | void TSInformationPB::SetCachedSize(int size) const { |
3506 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3507 | 0 | _cached_size_ = size; |
3508 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3509 | 0 | } |
3510 | 0 | const ::google::protobuf::Descriptor* TSInformationPB::descriptor() { |
3511 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3512 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3513 | 0 | } |
3514 | | |
3515 | 0 | const TSInformationPB& TSInformationPB::default_instance() { |
3516 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB(); |
3517 | 0 | return *internal_default_instance(); |
3518 | 0 | } |
3519 | | |
3520 | 0 | TSInformationPB* TSInformationPB::New(::google::protobuf::Arena* arena) const { |
3521 | 0 | TSInformationPB* n = new TSInformationPB; |
3522 | 0 | if (arena != NULL) { |
3523 | 0 | arena->Own(n); |
3524 | 0 | } |
3525 | 0 | return n; |
3526 | 0 | } |
3527 | | |
3528 | 35.2M | void TSInformationPB::Clear() { |
3529 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSInformationPB) |
3530 | 35.2M | ::google::protobuf::uint32 cached_has_bits = 0; |
3531 | | // Prevent compiler warnings about cached_has_bits being unused |
3532 | 35.2M | (void) cached_has_bits; |
3533 | | |
3534 | 35.2M | cached_has_bits = _has_bits_[0]; |
3535 | 35.2M | if (cached_has_bits & 3u) { |
3536 | 17.6M | if (cached_has_bits & 0x00000001u) { |
3537 | 17.6M | GOOGLE_DCHECK(registration_ != NULL); |
3538 | 17.6M | registration_->Clear(); |
3539 | 17.6M | } |
3540 | 17.6M | if (cached_has_bits & 0x00000002u) { |
3541 | 17.6M | GOOGLE_DCHECK(tserver_instance_ != NULL); |
3542 | 17.6M | tserver_instance_->Clear(); |
3543 | 17.6M | } |
3544 | 17.6M | } |
3545 | 35.2M | _has_bits_.Clear(); |
3546 | 35.2M | _internal_metadata_.Clear(); |
3547 | 35.2M | } |
3548 | | |
3549 | | bool TSInformationPB::MergePartialFromCodedStream( |
3550 | 17.6M | ::google::protobuf::io::CodedInputStream* input) { |
3551 | 35.3M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3552 | 17.6M | ::google::protobuf::uint32 tag; |
3553 | | // @@protoc_insertion_point(parse_start:yb.master.TSInformationPB) |
3554 | 53.0M | for (;;) { |
3555 | 53.0M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3556 | 53.0M | tag = p.first; |
3557 | 53.0M | if (!p.second) goto handle_unusual17.6M ; |
3558 | 35.3M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3559 | | // required .yb.master.TSRegistrationPB registration = 1; |
3560 | 17.6M | case 1: { |
3561 | 17.6M | if (static_cast< ::google::protobuf::uint8>(tag) == |
3562 | 17.6M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3563 | 17.6M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3564 | 17.6M | input, mutable_registration())); |
3565 | 17.6M | } else { |
3566 | 0 | goto handle_unusual; |
3567 | 0 | } |
3568 | 17.6M | break; |
3569 | 17.6M | } |
3570 | | |
3571 | | // required .yb.NodeInstancePB tserver_instance = 2; |
3572 | 17.6M | case 2: { |
3573 | 17.6M | if (static_cast< ::google::protobuf::uint8>(tag) == |
3574 | 17.6M | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3575 | 17.6M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3576 | 17.6M | input, mutable_tserver_instance())); |
3577 | 17.6M | } else { |
3578 | 0 | goto handle_unusual; |
3579 | 0 | } |
3580 | 17.6M | break; |
3581 | 17.6M | } |
3582 | | |
3583 | 17.6M | default: { |
3584 | 17.6M | handle_unusual: |
3585 | 17.6M | if (tag == 0) { |
3586 | 17.6M | goto success; |
3587 | 17.6M | } |
3588 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3589 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3590 | 0 | break; |
3591 | 0 | } |
3592 | 35.3M | } |
3593 | 35.3M | } |
3594 | 17.6M | success: |
3595 | | // @@protoc_insertion_point(parse_success:yb.master.TSInformationPB) |
3596 | 17.6M | return true; |
3597 | 0 | failure: |
3598 | | // @@protoc_insertion_point(parse_failure:yb.master.TSInformationPB) |
3599 | 0 | return false; |
3600 | 17.6M | #undef DO_ |
3601 | 17.6M | } |
3602 | | |
3603 | | void TSInformationPB::SerializeWithCachedSizes( |
3604 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3605 | | // @@protoc_insertion_point(serialize_start:yb.master.TSInformationPB) |
3606 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3607 | 0 | (void) cached_has_bits; |
3608 | |
|
3609 | 0 | cached_has_bits = _has_bits_[0]; |
3610 | | // required .yb.master.TSRegistrationPB registration = 1; |
3611 | 0 | if (cached_has_bits & 0x00000001u) { |
3612 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3613 | 0 | 1, *this->registration_, output); |
3614 | 0 | } |
3615 | | |
3616 | | // required .yb.NodeInstancePB tserver_instance = 2; |
3617 | 0 | if (cached_has_bits & 0x00000002u) { |
3618 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3619 | 0 | 2, *this->tserver_instance_, output); |
3620 | 0 | } |
3621 | |
|
3622 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3623 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3624 | 0 | _internal_metadata_.unknown_fields(), output); |
3625 | 0 | } |
3626 | | // @@protoc_insertion_point(serialize_end:yb.master.TSInformationPB) |
3627 | 0 | } |
3628 | | |
3629 | | ::google::protobuf::uint8* TSInformationPB::InternalSerializeWithCachedSizesToArray( |
3630 | 17.6M | bool deterministic, ::google::protobuf::uint8* target) const { |
3631 | 17.6M | (void)deterministic; // Unused |
3632 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSInformationPB) |
3633 | 17.6M | ::google::protobuf::uint32 cached_has_bits = 0; |
3634 | 17.6M | (void) cached_has_bits; |
3635 | | |
3636 | 17.6M | cached_has_bits = _has_bits_[0]; |
3637 | | // required .yb.master.TSRegistrationPB registration = 1; |
3638 | 17.6M | if (cached_has_bits & 0x00000001u) { |
3639 | 17.6M | target = ::google::protobuf::internal::WireFormatLite:: |
3640 | 17.6M | InternalWriteMessageToArray( |
3641 | 17.6M | 1, *this->registration_, deterministic, target); |
3642 | 17.6M | } |
3643 | | |
3644 | | // required .yb.NodeInstancePB tserver_instance = 2; |
3645 | 17.6M | if (cached_has_bits & 0x00000002u) { |
3646 | 17.6M | target = ::google::protobuf::internal::WireFormatLite:: |
3647 | 17.6M | InternalWriteMessageToArray( |
3648 | 17.6M | 2, *this->tserver_instance_, deterministic, target); |
3649 | 17.6M | } |
3650 | | |
3651 | 17.6M | if (_internal_metadata_.have_unknown_fields()) { |
3652 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3653 | 0 | _internal_metadata_.unknown_fields(), target); |
3654 | 0 | } |
3655 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSInformationPB) |
3656 | 17.6M | return target; |
3657 | 17.6M | } |
3658 | | |
3659 | 0 | size_t TSInformationPB::RequiredFieldsByteSizeFallback() const { |
3660 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TSInformationPB) |
3661 | 0 | size_t total_size = 0; |
3662 | |
|
3663 | 0 | if (has_registration()) { |
3664 | | // required .yb.master.TSRegistrationPB registration = 1; |
3665 | 0 | total_size += 1 + |
3666 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3667 | 0 | *this->registration_); |
3668 | 0 | } |
3669 | |
|
3670 | 0 | if (has_tserver_instance()) { |
3671 | | // required .yb.NodeInstancePB tserver_instance = 2; |
3672 | 0 | total_size += 1 + |
3673 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3674 | 0 | *this->tserver_instance_); |
3675 | 0 | } |
3676 | |
|
3677 | 0 | return total_size; |
3678 | 0 | } |
3679 | 35.2M | size_t TSInformationPB::ByteSizeLong() const { |
3680 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSInformationPB) |
3681 | 35.2M | size_t total_size = 0; |
3682 | | |
3683 | 35.2M | if (_internal_metadata_.have_unknown_fields()) { |
3684 | 0 | total_size += |
3685 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3686 | 0 | _internal_metadata_.unknown_fields()); |
3687 | 0 | } |
3688 | 35.2M | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
3689 | | // required .yb.master.TSRegistrationPB registration = 1; |
3690 | 35.2M | total_size += 1 + |
3691 | 35.2M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3692 | 35.2M | *this->registration_); |
3693 | | |
3694 | | // required .yb.NodeInstancePB tserver_instance = 2; |
3695 | 35.2M | total_size += 1 + |
3696 | 35.2M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3697 | 35.2M | *this->tserver_instance_); |
3698 | | |
3699 | 35.2M | } else { |
3700 | 6.81k | total_size += RequiredFieldsByteSizeFallback(); |
3701 | 6.81k | } |
3702 | 35.2M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3703 | 35.2M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3704 | 35.2M | _cached_size_ = cached_size; |
3705 | 35.2M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3706 | 35.2M | return total_size; |
3707 | 35.2M | } |
3708 | | |
3709 | 0 | void TSInformationPB::MergeFrom(const ::google::protobuf::Message& from) { |
3710 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSInformationPB) |
3711 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3712 | 0 | const TSInformationPB* source = |
3713 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSInformationPB>( |
3714 | 0 | &from); |
3715 | 0 | if (source == NULL) { |
3716 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSInformationPB) |
3717 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3718 | 0 | } else { |
3719 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSInformationPB) |
3720 | 0 | MergeFrom(*source); |
3721 | 0 | } |
3722 | 0 | } |
3723 | | |
3724 | 35.2M | void TSInformationPB::MergeFrom(const TSInformationPB& from) { |
3725 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSInformationPB) |
3726 | 35.2M | GOOGLE_DCHECK_NE(&from, this); |
3727 | 35.2M | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3728 | 35.2M | ::google::protobuf::uint32 cached_has_bits = 0; |
3729 | 35.2M | (void) cached_has_bits; |
3730 | | |
3731 | 35.2M | cached_has_bits = from._has_bits_[0]; |
3732 | 35.2M | if (cached_has_bits & 3u) { |
3733 | 35.2M | if (cached_has_bits & 0x00000001u35.2M ) { |
3734 | 35.2M | mutable_registration()->::yb::master::TSRegistrationPB::MergeFrom(from.registration()); |
3735 | 35.2M | } |
3736 | 35.2M | if (cached_has_bits & 0x00000002u) { |
3737 | 35.2M | mutable_tserver_instance()->::yb::NodeInstancePB::MergeFrom(from.tserver_instance()); |
3738 | 35.2M | } |
3739 | 35.2M | } |
3740 | 35.2M | } |
3741 | | |
3742 | 0 | void TSInformationPB::CopyFrom(const ::google::protobuf::Message& from) { |
3743 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSInformationPB) |
3744 | 0 | if (&from == this) return; |
3745 | 0 | Clear(); |
3746 | 0 | MergeFrom(from); |
3747 | 0 | } |
3748 | | |
3749 | 35.2M | void TSInformationPB::CopyFrom(const TSInformationPB& from) { |
3750 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSInformationPB) |
3751 | 35.2M | if (&from == this) return0 ; |
3752 | 35.2M | Clear(); |
3753 | 35.2M | MergeFrom(from); |
3754 | 35.2M | } |
3755 | | |
3756 | 35.2M | bool TSInformationPB::IsInitialized() const { |
3757 | 35.2M | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false0 ; |
3758 | 35.2M | if (has_registration()) { |
3759 | 35.2M | if (!this->registration_->IsInitialized()) return false0 ; |
3760 | 35.2M | } |
3761 | 35.2M | if (has_tserver_instance()) { |
3762 | 35.2M | if (!this->tserver_instance_->IsInitialized()) return false0 ; |
3763 | 35.2M | } |
3764 | 35.2M | return true; |
3765 | 35.2M | } |
3766 | | |
3767 | 0 | void TSInformationPB::Swap(TSInformationPB* other) { |
3768 | 0 | if (other == this) return; |
3769 | 0 | InternalSwap(other); |
3770 | 0 | } |
3771 | 340k | void TSInformationPB::InternalSwap(TSInformationPB* other) { |
3772 | 340k | using std::swap; |
3773 | 340k | swap(registration_, other->registration_); |
3774 | 340k | swap(tserver_instance_, other->tserver_instance_); |
3775 | 340k | swap(_has_bits_[0], other->_has_bits_[0]); |
3776 | 340k | _internal_metadata_.Swap(&other->_internal_metadata_); |
3777 | 340k | swap(_cached_size_, other->_cached_size_); |
3778 | 340k | } |
3779 | | |
3780 | 1.25k | ::google::protobuf::Metadata TSInformationPB::GetMetadata() const { |
3781 | 1.25k | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3782 | 1.25k | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3783 | 1.25k | } |
3784 | | |
3785 | | |
3786 | | // =================================================================== |
3787 | | |
3788 | 26.8k | void TSSnapshotScheduleInfoPB::InitAsDefaultInstance() { |
3789 | 26.8k | } |
3790 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3791 | | const int TSSnapshotScheduleInfoPB::kIdFieldNumber; |
3792 | | const int TSSnapshotScheduleInfoPB::kLastSnapshotHybridTimeFieldNumber; |
3793 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3794 | | |
3795 | | TSSnapshotScheduleInfoPB::TSSnapshotScheduleInfoPB() |
3796 | 27.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3797 | 27.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3798 | 926 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB(); |
3799 | 926 | } |
3800 | 27.7k | SharedCtor(); |
3801 | | // @@protoc_insertion_point(constructor:yb.master.TSSnapshotScheduleInfoPB) |
3802 | 27.7k | } |
3803 | | TSSnapshotScheduleInfoPB::TSSnapshotScheduleInfoPB(const TSSnapshotScheduleInfoPB& from) |
3804 | | : ::google::protobuf::Message(), |
3805 | | _internal_metadata_(NULL), |
3806 | | _has_bits_(from._has_bits_), |
3807 | 0 | _cached_size_(0) { |
3808 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3809 | 0 | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3810 | 0 | if (from.has_id()) { |
3811 | 0 | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
3812 | 0 | } |
3813 | 0 | last_snapshot_hybrid_time_ = from.last_snapshot_hybrid_time_; |
3814 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotScheduleInfoPB) |
3815 | 0 | } |
3816 | | |
3817 | 27.7k | void TSSnapshotScheduleInfoPB::SharedCtor() { |
3818 | 27.7k | _cached_size_ = 0; |
3819 | 27.7k | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3820 | 27.7k | last_snapshot_hybrid_time_ = GOOGLE_ULONGLONG(0); |
3821 | 27.7k | } |
3822 | | |
3823 | 902 | TSSnapshotScheduleInfoPB::~TSSnapshotScheduleInfoPB() { |
3824 | | // @@protoc_insertion_point(destructor:yb.master.TSSnapshotScheduleInfoPB) |
3825 | 902 | SharedDtor(); |
3826 | 902 | } |
3827 | | |
3828 | 902 | void TSSnapshotScheduleInfoPB::SharedDtor() { |
3829 | 902 | id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3830 | 902 | } |
3831 | | |
3832 | 0 | void TSSnapshotScheduleInfoPB::SetCachedSize(int size) const { |
3833 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3834 | 0 | _cached_size_ = size; |
3835 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3836 | 0 | } |
3837 | 0 | const ::google::protobuf::Descriptor* TSSnapshotScheduleInfoPB::descriptor() { |
3838 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
3839 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3840 | 0 | } |
3841 | | |
3842 | 0 | const TSSnapshotScheduleInfoPB& TSSnapshotScheduleInfoPB::default_instance() { |
3843 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB(); |
3844 | 0 | return *internal_default_instance(); |
3845 | 0 | } |
3846 | | |
3847 | 0 | TSSnapshotScheduleInfoPB* TSSnapshotScheduleInfoPB::New(::google::protobuf::Arena* arena) const { |
3848 | 0 | TSSnapshotScheduleInfoPB* n = new TSSnapshotScheduleInfoPB; |
3849 | 0 | if (arena != NULL) { |
3850 | 0 | arena->Own(n); |
3851 | 0 | } |
3852 | 0 | return n; |
3853 | 0 | } |
3854 | | |
3855 | 0 | void TSSnapshotScheduleInfoPB::Clear() { |
3856 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotScheduleInfoPB) |
3857 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3858 | | // Prevent compiler warnings about cached_has_bits being unused |
3859 | 0 | (void) cached_has_bits; |
3860 | |
|
3861 | 0 | cached_has_bits = _has_bits_[0]; |
3862 | 0 | if (cached_has_bits & 0x00000001u) { |
3863 | 0 | GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3864 | 0 | (*id_.UnsafeRawStringPointer())->clear(); |
3865 | 0 | } |
3866 | 0 | last_snapshot_hybrid_time_ = GOOGLE_ULONGLONG(0); |
3867 | 0 | _has_bits_.Clear(); |
3868 | 0 | _internal_metadata_.Clear(); |
3869 | 0 | } |
3870 | | |
3871 | | bool TSSnapshotScheduleInfoPB::MergePartialFromCodedStream( |
3872 | 463 | ::google::protobuf::io::CodedInputStream* input) { |
3873 | 909 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3874 | 463 | ::google::protobuf::uint32 tag; |
3875 | | // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotScheduleInfoPB) |
3876 | 1.37k | for (;;) { |
3877 | 1.37k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3878 | 1.37k | tag = p.first; |
3879 | 1.37k | if (!p.second) goto handle_unusual463 ; |
3880 | 909 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3881 | | // optional bytes id = 1; |
3882 | 463 | case 1: { |
3883 | 463 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3884 | 463 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3885 | 463 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3886 | 463 | input, this->mutable_id())); |
3887 | 463 | } else { |
3888 | 0 | goto handle_unusual; |
3889 | 0 | } |
3890 | 463 | break; |
3891 | 463 | } |
3892 | | |
3893 | | // optional fixed64 last_snapshot_hybrid_time = 2; |
3894 | 463 | case 2: { |
3895 | 446 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3896 | 446 | static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { |
3897 | 446 | set_has_last_snapshot_hybrid_time(); |
3898 | 446 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3899 | 446 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
3900 | 446 | input, &last_snapshot_hybrid_time_))); |
3901 | 446 | } else { |
3902 | 0 | goto handle_unusual; |
3903 | 0 | } |
3904 | 446 | break; |
3905 | 446 | } |
3906 | | |
3907 | 446 | default: { |
3908 | 463 | handle_unusual: |
3909 | 463 | if (tag == 0) { |
3910 | 463 | goto success; |
3911 | 463 | } |
3912 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3913 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3914 | 0 | break; |
3915 | 0 | } |
3916 | 909 | } |
3917 | 909 | } |
3918 | 463 | success: |
3919 | | // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotScheduleInfoPB) |
3920 | 463 | return true; |
3921 | 0 | failure: |
3922 | | // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotScheduleInfoPB) |
3923 | 0 | return false; |
3924 | 463 | #undef DO_ |
3925 | 463 | } |
3926 | | |
3927 | | void TSSnapshotScheduleInfoPB::SerializeWithCachedSizes( |
3928 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3929 | | // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotScheduleInfoPB) |
3930 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3931 | 0 | (void) cached_has_bits; |
3932 | |
|
3933 | 0 | cached_has_bits = _has_bits_[0]; |
3934 | | // optional bytes id = 1; |
3935 | 0 | if (cached_has_bits & 0x00000001u) { |
3936 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
3937 | 0 | 1, this->id(), output); |
3938 | 0 | } |
3939 | | |
3940 | | // optional fixed64 last_snapshot_hybrid_time = 2; |
3941 | 0 | if (cached_has_bits & 0x00000002u) { |
3942 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->last_snapshot_hybrid_time(), output); |
3943 | 0 | } |
3944 | |
|
3945 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3946 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3947 | 0 | _internal_metadata_.unknown_fields(), output); |
3948 | 0 | } |
3949 | | // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotScheduleInfoPB) |
3950 | 0 | } |
3951 | | |
3952 | | ::google::protobuf::uint8* TSSnapshotScheduleInfoPB::InternalSerializeWithCachedSizesToArray( |
3953 | 463 | bool deterministic, ::google::protobuf::uint8* target) const { |
3954 | 463 | (void)deterministic; // Unused |
3955 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotScheduleInfoPB) |
3956 | 463 | ::google::protobuf::uint32 cached_has_bits = 0; |
3957 | 463 | (void) cached_has_bits; |
3958 | | |
3959 | 463 | cached_has_bits = _has_bits_[0]; |
3960 | | // optional bytes id = 1; |
3961 | 463 | if (cached_has_bits & 0x00000001u) { |
3962 | 462 | target = |
3963 | 462 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
3964 | 462 | 1, this->id(), target); |
3965 | 462 | } |
3966 | | |
3967 | | // optional fixed64 last_snapshot_hybrid_time = 2; |
3968 | 463 | if (cached_has_bits & 0x00000002u) { |
3969 | 445 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->last_snapshot_hybrid_time(), target); |
3970 | 445 | } |
3971 | | |
3972 | 463 | if (_internal_metadata_.have_unknown_fields()) { |
3973 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3974 | 0 | _internal_metadata_.unknown_fields(), target); |
3975 | 0 | } |
3976 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotScheduleInfoPB) |
3977 | 463 | return target; |
3978 | 463 | } |
3979 | | |
3980 | 923 | size_t TSSnapshotScheduleInfoPB::ByteSizeLong() const { |
3981 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotScheduleInfoPB) |
3982 | 923 | size_t total_size = 0; |
3983 | | |
3984 | 923 | if (_internal_metadata_.have_unknown_fields()) { |
3985 | 0 | total_size += |
3986 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3987 | 0 | _internal_metadata_.unknown_fields()); |
3988 | 0 | } |
3989 | 923 | if (_has_bits_[0 / 32] & 3u) { |
3990 | | // optional bytes id = 1; |
3991 | 921 | if (has_id()) { |
3992 | 919 | total_size += 1 + |
3993 | 919 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
3994 | 919 | this->id()); |
3995 | 919 | } |
3996 | | |
3997 | | // optional fixed64 last_snapshot_hybrid_time = 2; |
3998 | 921 | if (has_last_snapshot_hybrid_time()) { |
3999 | 888 | total_size += 1 + 8; |
4000 | 888 | } |
4001 | | |
4002 | 921 | } |
4003 | 923 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4004 | 923 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4005 | 923 | _cached_size_ = cached_size; |
4006 | 923 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4007 | 923 | return total_size; |
4008 | 923 | } |
4009 | | |
4010 | 0 | void TSSnapshotScheduleInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
4011 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotScheduleInfoPB) |
4012 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4013 | 0 | const TSSnapshotScheduleInfoPB* source = |
4014 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotScheduleInfoPB>( |
4015 | 0 | &from); |
4016 | 0 | if (source == NULL) { |
4017 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotScheduleInfoPB) |
4018 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4019 | 0 | } else { |
4020 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotScheduleInfoPB) |
4021 | 0 | MergeFrom(*source); |
4022 | 0 | } |
4023 | 0 | } |
4024 | | |
4025 | 0 | void TSSnapshotScheduleInfoPB::MergeFrom(const TSSnapshotScheduleInfoPB& from) { |
4026 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotScheduleInfoPB) |
4027 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4028 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4029 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4030 | 0 | (void) cached_has_bits; |
4031 | |
|
4032 | 0 | cached_has_bits = from._has_bits_[0]; |
4033 | 0 | if (cached_has_bits & 3u) { |
4034 | 0 | if (cached_has_bits & 0x00000001u) { |
4035 | 0 | set_has_id(); |
4036 | 0 | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
4037 | 0 | } |
4038 | 0 | if (cached_has_bits & 0x00000002u) { |
4039 | 0 | last_snapshot_hybrid_time_ = from.last_snapshot_hybrid_time_; |
4040 | 0 | } |
4041 | 0 | _has_bits_[0] |= cached_has_bits; |
4042 | 0 | } |
4043 | 0 | } |
4044 | | |
4045 | 0 | void TSSnapshotScheduleInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
4046 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotScheduleInfoPB) |
4047 | 0 | if (&from == this) return; |
4048 | 0 | Clear(); |
4049 | 0 | MergeFrom(from); |
4050 | 0 | } |
4051 | | |
4052 | 0 | void TSSnapshotScheduleInfoPB::CopyFrom(const TSSnapshotScheduleInfoPB& from) { |
4053 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotScheduleInfoPB) |
4054 | 0 | if (&from == this) return; |
4055 | 0 | Clear(); |
4056 | 0 | MergeFrom(from); |
4057 | 0 | } |
4058 | | |
4059 | 0 | bool TSSnapshotScheduleInfoPB::IsInitialized() const { |
4060 | 0 | return true; |
4061 | 0 | } |
4062 | | |
4063 | 0 | void TSSnapshotScheduleInfoPB::Swap(TSSnapshotScheduleInfoPB* other) { |
4064 | 0 | if (other == this) return; |
4065 | 0 | InternalSwap(other); |
4066 | 0 | } |
4067 | 0 | void TSSnapshotScheduleInfoPB::InternalSwap(TSSnapshotScheduleInfoPB* other) { |
4068 | 0 | using std::swap; |
4069 | 0 | id_.Swap(&other->id_); |
4070 | 0 | swap(last_snapshot_hybrid_time_, other->last_snapshot_hybrid_time_); |
4071 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4072 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4073 | 0 | swap(_cached_size_, other->_cached_size_); |
4074 | 0 | } |
4075 | | |
4076 | 0 | ::google::protobuf::Metadata TSSnapshotScheduleInfoPB::GetMetadata() const { |
4077 | 0 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4078 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
4079 | 0 | } |
4080 | | |
4081 | | |
4082 | | // =================================================================== |
4083 | | |
4084 | 26.8k | void TSSnapshotRestorationInfoPB::InitAsDefaultInstance() { |
4085 | 26.8k | } |
4086 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4087 | | const int TSSnapshotRestorationInfoPB::kIdFieldNumber; |
4088 | | const int TSSnapshotRestorationInfoPB::kCompleteTimeHtFieldNumber; |
4089 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4090 | | |
4091 | | TSSnapshotRestorationInfoPB::TSSnapshotRestorationInfoPB() |
4092 | 26.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4093 | 26.9k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4094 | 66 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB(); |
4095 | 66 | } |
4096 | 26.9k | SharedCtor(); |
4097 | | // @@protoc_insertion_point(constructor:yb.master.TSSnapshotRestorationInfoPB) |
4098 | 26.9k | } |
4099 | | TSSnapshotRestorationInfoPB::TSSnapshotRestorationInfoPB(const TSSnapshotRestorationInfoPB& from) |
4100 | | : ::google::protobuf::Message(), |
4101 | | _internal_metadata_(NULL), |
4102 | | _has_bits_(from._has_bits_), |
4103 | 0 | _cached_size_(0) { |
4104 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4105 | 0 | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4106 | 0 | if (from.has_id()) { |
4107 | 0 | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
4108 | 0 | } |
4109 | 0 | complete_time_ht_ = from.complete_time_ht_; |
4110 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotRestorationInfoPB) |
4111 | 0 | } |
4112 | | |
4113 | 26.9k | void TSSnapshotRestorationInfoPB::SharedCtor() { |
4114 | 26.9k | _cached_size_ = 0; |
4115 | 26.9k | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4116 | 26.9k | complete_time_ht_ = GOOGLE_ULONGLONG(0); |
4117 | 26.9k | } |
4118 | | |
4119 | 57 | TSSnapshotRestorationInfoPB::~TSSnapshotRestorationInfoPB() { |
4120 | | // @@protoc_insertion_point(destructor:yb.master.TSSnapshotRestorationInfoPB) |
4121 | 57 | SharedDtor(); |
4122 | 57 | } |
4123 | | |
4124 | 57 | void TSSnapshotRestorationInfoPB::SharedDtor() { |
4125 | 57 | id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4126 | 57 | } |
4127 | | |
4128 | 0 | void TSSnapshotRestorationInfoPB::SetCachedSize(int size) const { |
4129 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4130 | 0 | _cached_size_ = size; |
4131 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4132 | 0 | } |
4133 | 0 | const ::google::protobuf::Descriptor* TSSnapshotRestorationInfoPB::descriptor() { |
4134 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4135 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4136 | 0 | } |
4137 | | |
4138 | 0 | const TSSnapshotRestorationInfoPB& TSSnapshotRestorationInfoPB::default_instance() { |
4139 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB(); |
4140 | 0 | return *internal_default_instance(); |
4141 | 0 | } |
4142 | | |
4143 | 0 | TSSnapshotRestorationInfoPB* TSSnapshotRestorationInfoPB::New(::google::protobuf::Arena* arena) const { |
4144 | 0 | TSSnapshotRestorationInfoPB* n = new TSSnapshotRestorationInfoPB; |
4145 | 0 | if (arena != NULL) { |
4146 | 0 | arena->Own(n); |
4147 | 0 | } |
4148 | 0 | return n; |
4149 | 0 | } |
4150 | | |
4151 | 0 | void TSSnapshotRestorationInfoPB::Clear() { |
4152 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotRestorationInfoPB) |
4153 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4154 | | // Prevent compiler warnings about cached_has_bits being unused |
4155 | 0 | (void) cached_has_bits; |
4156 | |
|
4157 | 0 | cached_has_bits = _has_bits_[0]; |
4158 | 0 | if (cached_has_bits & 0x00000001u) { |
4159 | 0 | GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4160 | 0 | (*id_.UnsafeRawStringPointer())->clear(); |
4161 | 0 | } |
4162 | 0 | complete_time_ht_ = GOOGLE_ULONGLONG(0); |
4163 | 0 | _has_bits_.Clear(); |
4164 | 0 | _internal_metadata_.Clear(); |
4165 | 0 | } |
4166 | | |
4167 | | bool TSSnapshotRestorationInfoPB::MergePartialFromCodedStream( |
4168 | 33 | ::google::protobuf::io::CodedInputStream* input) { |
4169 | 42 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4170 | 33 | ::google::protobuf::uint32 tag; |
4171 | | // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotRestorationInfoPB) |
4172 | 75 | for (;;) { |
4173 | 75 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4174 | 75 | tag = p.first; |
4175 | 75 | if (!p.second) goto handle_unusual33 ; |
4176 | 42 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4177 | | // optional bytes id = 1; |
4178 | 33 | case 1: { |
4179 | 33 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4180 | 33 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4181 | 33 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4182 | 33 | input, this->mutable_id())); |
4183 | 33 | } else { |
4184 | 0 | goto handle_unusual; |
4185 | 0 | } |
4186 | 33 | break; |
4187 | 33 | } |
4188 | | |
4189 | | // optional fixed64 complete_time_ht = 2; |
4190 | 33 | case 2: { |
4191 | 9 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4192 | 9 | static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { |
4193 | 9 | set_has_complete_time_ht(); |
4194 | 9 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4195 | 9 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
4196 | 9 | input, &complete_time_ht_))); |
4197 | 9 | } else { |
4198 | 0 | goto handle_unusual; |
4199 | 0 | } |
4200 | 9 | break; |
4201 | 9 | } |
4202 | | |
4203 | 9 | default: { |
4204 | 33 | handle_unusual: |
4205 | 33 | if (tag == 0) { |
4206 | 33 | goto success; |
4207 | 33 | } |
4208 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4209 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4210 | 0 | break; |
4211 | 0 | } |
4212 | 42 | } |
4213 | 42 | } |
4214 | 33 | success: |
4215 | | // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotRestorationInfoPB) |
4216 | 33 | return true; |
4217 | 0 | failure: |
4218 | | // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotRestorationInfoPB) |
4219 | 0 | return false; |
4220 | 33 | #undef DO_ |
4221 | 33 | } |
4222 | | |
4223 | | void TSSnapshotRestorationInfoPB::SerializeWithCachedSizes( |
4224 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4225 | | // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotRestorationInfoPB) |
4226 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4227 | 0 | (void) cached_has_bits; |
4228 | |
|
4229 | 0 | cached_has_bits = _has_bits_[0]; |
4230 | | // optional bytes id = 1; |
4231 | 0 | if (cached_has_bits & 0x00000001u) { |
4232 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4233 | 0 | 1, this->id(), output); |
4234 | 0 | } |
4235 | | |
4236 | | // optional fixed64 complete_time_ht = 2; |
4237 | 0 | if (cached_has_bits & 0x00000002u) { |
4238 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->complete_time_ht(), output); |
4239 | 0 | } |
4240 | |
|
4241 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4242 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4243 | 0 | _internal_metadata_.unknown_fields(), output); |
4244 | 0 | } |
4245 | | // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotRestorationInfoPB) |
4246 | 0 | } |
4247 | | |
4248 | | ::google::protobuf::uint8* TSSnapshotRestorationInfoPB::InternalSerializeWithCachedSizesToArray( |
4249 | 33 | bool deterministic, ::google::protobuf::uint8* target) const { |
4250 | 33 | (void)deterministic; // Unused |
4251 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotRestorationInfoPB) |
4252 | 33 | ::google::protobuf::uint32 cached_has_bits = 0; |
4253 | 33 | (void) cached_has_bits; |
4254 | | |
4255 | 33 | cached_has_bits = _has_bits_[0]; |
4256 | | // optional bytes id = 1; |
4257 | 33 | if (cached_has_bits & 0x00000001u) { |
4258 | 33 | target = |
4259 | 33 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4260 | 33 | 1, this->id(), target); |
4261 | 33 | } |
4262 | | |
4263 | | // optional fixed64 complete_time_ht = 2; |
4264 | 33 | if (cached_has_bits & 0x00000002u) { |
4265 | 9 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->complete_time_ht(), target); |
4266 | 9 | } |
4267 | | |
4268 | 33 | if (_internal_metadata_.have_unknown_fields()) { |
4269 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4270 | 0 | _internal_metadata_.unknown_fields(), target); |
4271 | 0 | } |
4272 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotRestorationInfoPB) |
4273 | 33 | return target; |
4274 | 33 | } |
4275 | | |
4276 | 65 | size_t TSSnapshotRestorationInfoPB::ByteSizeLong() const { |
4277 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotRestorationInfoPB) |
4278 | 65 | size_t total_size = 0; |
4279 | | |
4280 | 65 | if (_internal_metadata_.have_unknown_fields()) { |
4281 | 0 | total_size += |
4282 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4283 | 0 | _internal_metadata_.unknown_fields()); |
4284 | 0 | } |
4285 | 65 | if (_has_bits_[0 / 32] & 3u) { |
4286 | | // optional bytes id = 1; |
4287 | 64 | if (has_id()) { |
4288 | 64 | total_size += 1 + |
4289 | 64 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4290 | 64 | this->id()); |
4291 | 64 | } |
4292 | | |
4293 | | // optional fixed64 complete_time_ht = 2; |
4294 | 64 | if (has_complete_time_ht()) { |
4295 | 18 | total_size += 1 + 8; |
4296 | 18 | } |
4297 | | |
4298 | 64 | } |
4299 | 65 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4300 | 65 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4301 | 65 | _cached_size_ = cached_size; |
4302 | 65 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4303 | 65 | return total_size; |
4304 | 65 | } |
4305 | | |
4306 | 0 | void TSSnapshotRestorationInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
4307 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotRestorationInfoPB) |
4308 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4309 | 0 | const TSSnapshotRestorationInfoPB* source = |
4310 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotRestorationInfoPB>( |
4311 | 0 | &from); |
4312 | 0 | if (source == NULL) { |
4313 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotRestorationInfoPB) |
4314 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4315 | 0 | } else { |
4316 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotRestorationInfoPB) |
4317 | 0 | MergeFrom(*source); |
4318 | 0 | } |
4319 | 0 | } |
4320 | | |
4321 | 0 | void TSSnapshotRestorationInfoPB::MergeFrom(const TSSnapshotRestorationInfoPB& from) { |
4322 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotRestorationInfoPB) |
4323 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4324 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4325 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4326 | 0 | (void) cached_has_bits; |
4327 | |
|
4328 | 0 | cached_has_bits = from._has_bits_[0]; |
4329 | 0 | if (cached_has_bits & 3u) { |
4330 | 0 | if (cached_has_bits & 0x00000001u) { |
4331 | 0 | set_has_id(); |
4332 | 0 | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
4333 | 0 | } |
4334 | 0 | if (cached_has_bits & 0x00000002u) { |
4335 | 0 | complete_time_ht_ = from.complete_time_ht_; |
4336 | 0 | } |
4337 | 0 | _has_bits_[0] |= cached_has_bits; |
4338 | 0 | } |
4339 | 0 | } |
4340 | | |
4341 | 0 | void TSSnapshotRestorationInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
4342 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotRestorationInfoPB) |
4343 | 0 | if (&from == this) return; |
4344 | 0 | Clear(); |
4345 | 0 | MergeFrom(from); |
4346 | 0 | } |
4347 | | |
4348 | 0 | void TSSnapshotRestorationInfoPB::CopyFrom(const TSSnapshotRestorationInfoPB& from) { |
4349 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotRestorationInfoPB) |
4350 | 0 | if (&from == this) return; |
4351 | 0 | Clear(); |
4352 | 0 | MergeFrom(from); |
4353 | 0 | } |
4354 | | |
4355 | 0 | bool TSSnapshotRestorationInfoPB::IsInitialized() const { |
4356 | 0 | return true; |
4357 | 0 | } |
4358 | | |
4359 | 0 | void TSSnapshotRestorationInfoPB::Swap(TSSnapshotRestorationInfoPB* other) { |
4360 | 0 | if (other == this) return; |
4361 | 0 | InternalSwap(other); |
4362 | 0 | } |
4363 | 0 | void TSSnapshotRestorationInfoPB::InternalSwap(TSSnapshotRestorationInfoPB* other) { |
4364 | 0 | using std::swap; |
4365 | 0 | id_.Swap(&other->id_); |
4366 | 0 | swap(complete_time_ht_, other->complete_time_ht_); |
4367 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4368 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4369 | 0 | swap(_cached_size_, other->_cached_size_); |
4370 | 0 | } |
4371 | | |
4372 | 0 | ::google::protobuf::Metadata TSSnapshotRestorationInfoPB::GetMetadata() const { |
4373 | 0 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4374 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
4375 | 0 | } |
4376 | | |
4377 | | |
4378 | | // =================================================================== |
4379 | | |
4380 | 26.8k | void TSSnapshotsInfoPB::InitAsDefaultInstance() { |
4381 | 26.8k | } |
4382 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4383 | | const int TSSnapshotsInfoPB::kSchedulesFieldNumber; |
4384 | | const int TSSnapshotsInfoPB::kLastRestorationsUpdateHtFieldNumber; |
4385 | | const int TSSnapshotsInfoPB::kRestorationsFieldNumber; |
4386 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4387 | | |
4388 | | TSSnapshotsInfoPB::TSSnapshotsInfoPB() |
4389 | 9.66M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4390 | 9.66M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4391 | 9.64M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB(); |
4392 | 9.64M | } |
4393 | 9.66M | SharedCtor(); |
4394 | | // @@protoc_insertion_point(constructor:yb.master.TSSnapshotsInfoPB) |
4395 | 9.66M | } |
4396 | | TSSnapshotsInfoPB::TSSnapshotsInfoPB(const TSSnapshotsInfoPB& from) |
4397 | | : ::google::protobuf::Message(), |
4398 | | _internal_metadata_(NULL), |
4399 | | _has_bits_(from._has_bits_), |
4400 | | _cached_size_(0), |
4401 | | schedules_(from.schedules_), |
4402 | 0 | restorations_(from.restorations_) { |
4403 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4404 | 0 | last_restorations_update_ht_ = from.last_restorations_update_ht_; |
4405 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotsInfoPB) |
4406 | 0 | } |
4407 | | |
4408 | 9.66M | void TSSnapshotsInfoPB::SharedCtor() { |
4409 | 9.66M | _cached_size_ = 0; |
4410 | 9.66M | last_restorations_update_ht_ = GOOGLE_ULONGLONG(0); |
4411 | 9.66M | } |
4412 | | |
4413 | 9.63M | TSSnapshotsInfoPB::~TSSnapshotsInfoPB() { |
4414 | | // @@protoc_insertion_point(destructor:yb.master.TSSnapshotsInfoPB) |
4415 | 9.63M | SharedDtor(); |
4416 | 9.63M | } |
4417 | | |
4418 | 9.63M | void TSSnapshotsInfoPB::SharedDtor() { |
4419 | 9.63M | } |
4420 | | |
4421 | 0 | void TSSnapshotsInfoPB::SetCachedSize(int size) const { |
4422 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4423 | 0 | _cached_size_ = size; |
4424 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4425 | 0 | } |
4426 | 0 | const ::google::protobuf::Descriptor* TSSnapshotsInfoPB::descriptor() { |
4427 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4428 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4429 | 0 | } |
4430 | | |
4431 | 0 | const TSSnapshotsInfoPB& TSSnapshotsInfoPB::default_instance() { |
4432 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB(); |
4433 | 0 | return *internal_default_instance(); |
4434 | 0 | } |
4435 | | |
4436 | 0 | TSSnapshotsInfoPB* TSSnapshotsInfoPB::New(::google::protobuf::Arena* arena) const { |
4437 | 0 | TSSnapshotsInfoPB* n = new TSSnapshotsInfoPB; |
4438 | 0 | if (arena != NULL) { |
4439 | 0 | arena->Own(n); |
4440 | 0 | } |
4441 | 0 | return n; |
4442 | 0 | } |
4443 | | |
4444 | 0 | void TSSnapshotsInfoPB::Clear() { |
4445 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotsInfoPB) |
4446 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4447 | | // Prevent compiler warnings about cached_has_bits being unused |
4448 | 0 | (void) cached_has_bits; |
4449 | |
|
4450 | 0 | schedules_.Clear(); |
4451 | 0 | restorations_.Clear(); |
4452 | 0 | last_restorations_update_ht_ = GOOGLE_ULONGLONG(0); |
4453 | 0 | _has_bits_.Clear(); |
4454 | 0 | _internal_metadata_.Clear(); |
4455 | 0 | } |
4456 | | |
4457 | | bool TSSnapshotsInfoPB::MergePartialFromCodedStream( |
4458 | 4.83M | ::google::protobuf::io::CodedInputStream* input) { |
4459 | 4.83M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4460 | 4.83M | ::google::protobuf::uint32 tag; |
4461 | | // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotsInfoPB) |
4462 | 9.66M | for (;;) { |
4463 | 9.66M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4464 | 9.66M | tag = p.first; |
4465 | 9.66M | if (!p.second) goto handle_unusual4.83M ; |
4466 | 4.83M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4467 | | // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1; |
4468 | 463 | case 1: { |
4469 | 463 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4470 | 463 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4471 | 463 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_schedules())); |
4472 | 463 | } else { |
4473 | 0 | goto handle_unusual; |
4474 | 0 | } |
4475 | 463 | break; |
4476 | 463 | } |
4477 | | |
4478 | | // optional fixed64 last_restorations_update_ht = 2; |
4479 | 4.83M | case 2: { |
4480 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4481 | 4.83M | static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { |
4482 | 4.83M | set_has_last_restorations_update_ht(); |
4483 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4484 | 4.83M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
4485 | 4.83M | input, &last_restorations_update_ht_))); |
4486 | 4.83M | } else { |
4487 | 0 | goto handle_unusual; |
4488 | 0 | } |
4489 | 4.83M | break; |
4490 | 4.83M | } |
4491 | | |
4492 | | // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3; |
4493 | 4.83M | case 3: { |
4494 | 33 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4495 | 33 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4496 | 33 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_restorations())); |
4497 | 33 | } else { |
4498 | 0 | goto handle_unusual; |
4499 | 0 | } |
4500 | 33 | break; |
4501 | 33 | } |
4502 | | |
4503 | 33 | default: { |
4504 | 4.83M | handle_unusual: |
4505 | 4.83M | if (tag == 0) { |
4506 | 4.83M | goto success; |
4507 | 4.83M | } |
4508 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4509 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4510 | 0 | break; |
4511 | 0 | } |
4512 | 4.83M | } |
4513 | 4.83M | } |
4514 | 4.83M | success: |
4515 | | // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotsInfoPB) |
4516 | 4.83M | return true; |
4517 | 0 | failure: |
4518 | | // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotsInfoPB) |
4519 | 0 | return false; |
4520 | 4.83M | #undef DO_ |
4521 | 4.83M | } |
4522 | | |
4523 | | void TSSnapshotsInfoPB::SerializeWithCachedSizes( |
4524 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4525 | | // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotsInfoPB) |
4526 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4527 | 0 | (void) cached_has_bits; |
4528 | | |
4529 | | // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1; |
4530 | 0 | for (unsigned int i = 0, |
4531 | 0 | n = static_cast<unsigned int>(this->schedules_size()); i < n; i++) { |
4532 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4533 | 0 | 1, this->schedules(static_cast<int>(i)), output); |
4534 | 0 | } |
4535 | |
|
4536 | 0 | cached_has_bits = _has_bits_[0]; |
4537 | | // optional fixed64 last_restorations_update_ht = 2; |
4538 | 0 | if (cached_has_bits & 0x00000001u) { |
4539 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->last_restorations_update_ht(), output); |
4540 | 0 | } |
4541 | | |
4542 | | // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3; |
4543 | 0 | for (unsigned int i = 0, |
4544 | 0 | n = static_cast<unsigned int>(this->restorations_size()); i < n; i++) { |
4545 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4546 | 0 | 3, this->restorations(static_cast<int>(i)), output); |
4547 | 0 | } |
4548 | |
|
4549 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4550 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4551 | 0 | _internal_metadata_.unknown_fields(), output); |
4552 | 0 | } |
4553 | | // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotsInfoPB) |
4554 | 0 | } |
4555 | | |
4556 | | ::google::protobuf::uint8* TSSnapshotsInfoPB::InternalSerializeWithCachedSizesToArray( |
4557 | 4.80M | bool deterministic, ::google::protobuf::uint8* target) const { |
4558 | 4.80M | (void)deterministic; // Unused |
4559 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotsInfoPB) |
4560 | 4.80M | ::google::protobuf::uint32 cached_has_bits = 0; |
4561 | 4.80M | (void) cached_has_bits; |
4562 | | |
4563 | | // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1; |
4564 | 4.80M | for (unsigned int i = 0, |
4565 | 4.81M | n = static_cast<unsigned int>(this->schedules_size()); i < n; i++463 ) { |
4566 | 463 | target = ::google::protobuf::internal::WireFormatLite:: |
4567 | 463 | InternalWriteMessageToArray( |
4568 | 463 | 1, this->schedules(static_cast<int>(i)), deterministic, target); |
4569 | 463 | } |
4570 | | |
4571 | 4.80M | cached_has_bits = _has_bits_[0]; |
4572 | | // optional fixed64 last_restorations_update_ht = 2; |
4573 | 4.80M | if (cached_has_bits & 0x00000001u) { |
4574 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->last_restorations_update_ht(), target); |
4575 | 4.80M | } |
4576 | | |
4577 | | // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3; |
4578 | 4.80M | for (unsigned int i = 0, |
4579 | 4.80M | n = static_cast<unsigned int>(this->restorations_size()); i < n; i++33 ) { |
4580 | 33 | target = ::google::protobuf::internal::WireFormatLite:: |
4581 | 33 | InternalWriteMessageToArray( |
4582 | 33 | 3, this->restorations(static_cast<int>(i)), deterministic, target); |
4583 | 33 | } |
4584 | | |
4585 | 4.80M | if (_internal_metadata_.have_unknown_fields()) { |
4586 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4587 | 0 | _internal_metadata_.unknown_fields(), target); |
4588 | 0 | } |
4589 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotsInfoPB) |
4590 | 4.80M | return target; |
4591 | 4.80M | } |
4592 | | |
4593 | 9.61M | size_t TSSnapshotsInfoPB::ByteSizeLong() const { |
4594 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotsInfoPB) |
4595 | 9.61M | size_t total_size = 0; |
4596 | | |
4597 | 9.61M | if (_internal_metadata_.have_unknown_fields()) { |
4598 | 0 | total_size += |
4599 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4600 | 0 | _internal_metadata_.unknown_fields()); |
4601 | 0 | } |
4602 | | // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1; |
4603 | 9.61M | { |
4604 | 9.61M | unsigned int count = static_cast<unsigned int>(this->schedules_size()); |
4605 | 9.61M | total_size += 1UL * count; |
4606 | 9.61M | for (unsigned int i = 0; i < count; i++920 ) { |
4607 | 920 | total_size += |
4608 | 920 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4609 | 920 | this->schedules(static_cast<int>(i))); |
4610 | 920 | } |
4611 | 9.61M | } |
4612 | | |
4613 | | // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3; |
4614 | 9.61M | { |
4615 | 9.61M | unsigned int count = static_cast<unsigned int>(this->restorations_size()); |
4616 | 9.61M | total_size += 1UL * count; |
4617 | 9.61M | for (unsigned int i = 0; i < count; i++64 ) { |
4618 | 64 | total_size += |
4619 | 64 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4620 | 64 | this->restorations(static_cast<int>(i))); |
4621 | 64 | } |
4622 | 9.61M | } |
4623 | | |
4624 | | // optional fixed64 last_restorations_update_ht = 2; |
4625 | 9.61M | if (has_last_restorations_update_ht()) { |
4626 | 9.60M | total_size += 1 + 8; |
4627 | 9.60M | } |
4628 | | |
4629 | 9.61M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4630 | 9.61M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4631 | 9.61M | _cached_size_ = cached_size; |
4632 | 9.61M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4633 | 9.61M | return total_size; |
4634 | 9.61M | } |
4635 | | |
4636 | 0 | void TSSnapshotsInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
4637 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotsInfoPB) |
4638 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4639 | 0 | const TSSnapshotsInfoPB* source = |
4640 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotsInfoPB>( |
4641 | 0 | &from); |
4642 | 0 | if (source == NULL) { |
4643 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotsInfoPB) |
4644 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4645 | 0 | } else { |
4646 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotsInfoPB) |
4647 | 0 | MergeFrom(*source); |
4648 | 0 | } |
4649 | 0 | } |
4650 | | |
4651 | 0 | void TSSnapshotsInfoPB::MergeFrom(const TSSnapshotsInfoPB& from) { |
4652 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotsInfoPB) |
4653 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4654 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4655 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4656 | 0 | (void) cached_has_bits; |
4657 | |
|
4658 | 0 | schedules_.MergeFrom(from.schedules_); |
4659 | 0 | restorations_.MergeFrom(from.restorations_); |
4660 | 0 | if (from.has_last_restorations_update_ht()) { |
4661 | 0 | set_last_restorations_update_ht(from.last_restorations_update_ht()); |
4662 | 0 | } |
4663 | 0 | } |
4664 | | |
4665 | 0 | void TSSnapshotsInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
4666 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotsInfoPB) |
4667 | 0 | if (&from == this) return; |
4668 | 0 | Clear(); |
4669 | 0 | MergeFrom(from); |
4670 | 0 | } |
4671 | | |
4672 | 0 | void TSSnapshotsInfoPB::CopyFrom(const TSSnapshotsInfoPB& from) { |
4673 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotsInfoPB) |
4674 | 0 | if (&from == this) return; |
4675 | 0 | Clear(); |
4676 | 0 | MergeFrom(from); |
4677 | 0 | } |
4678 | | |
4679 | 0 | bool TSSnapshotsInfoPB::IsInitialized() const { |
4680 | 0 | return true; |
4681 | 0 | } |
4682 | | |
4683 | 0 | void TSSnapshotsInfoPB::Swap(TSSnapshotsInfoPB* other) { |
4684 | 0 | if (other == this) return; |
4685 | 0 | InternalSwap(other); |
4686 | 0 | } |
4687 | 0 | void TSSnapshotsInfoPB::InternalSwap(TSSnapshotsInfoPB* other) { |
4688 | 0 | using std::swap; |
4689 | 0 | schedules_.InternalSwap(&other->schedules_); |
4690 | 0 | restorations_.InternalSwap(&other->restorations_); |
4691 | 0 | swap(last_restorations_update_ht_, other->last_restorations_update_ht_); |
4692 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4693 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4694 | 0 | swap(_cached_size_, other->_cached_size_); |
4695 | 0 | } |
4696 | | |
4697 | 416 | ::google::protobuf::Metadata TSSnapshotsInfoPB::GetMetadata() const { |
4698 | 416 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4699 | 416 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
4700 | 416 | } |
4701 | | |
4702 | | |
4703 | | // =================================================================== |
4704 | | |
4705 | 26.8k | void TSHeartbeatRequestPB::InitAsDefaultInstance() { |
4706 | 26.8k | ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->common_ = const_cast< ::yb::master::TSToMasterCommonPB*>( |
4707 | 26.8k | ::yb::master::TSToMasterCommonPB::internal_default_instance()); |
4708 | 26.8k | ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::master::TSRegistrationPB*>( |
4709 | 26.8k | ::yb::master::TSRegistrationPB::internal_default_instance()); |
4710 | 26.8k | ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->tablet_report_ = const_cast< ::yb::master::TabletReportPB*>( |
4711 | 26.8k | ::yb::master::TabletReportPB::internal_default_instance()); |
4712 | 26.8k | ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->metrics_ = const_cast< ::yb::master::TServerMetricsPB*>( |
4713 | 26.8k | ::yb::master::TServerMetricsPB::internal_default_instance()); |
4714 | 26.8k | } |
4715 | 0 | void TSHeartbeatRequestPB::clear_registration() { |
4716 | 0 | if (registration_ != NULL) registration_->Clear(); |
4717 | 0 | clear_has_registration(); |
4718 | 0 | } |
4719 | 0 | void TSHeartbeatRequestPB::clear_metrics() { |
4720 | 0 | if (metrics_ != NULL) metrics_->Clear(); |
4721 | 0 | clear_has_metrics(); |
4722 | 0 | } |
4723 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4724 | | const int TSHeartbeatRequestPB::kCommonFieldNumber; |
4725 | | const int TSHeartbeatRequestPB::kRegistrationFieldNumber; |
4726 | | const int TSHeartbeatRequestPB::kTabletReportFieldNumber; |
4727 | | const int TSHeartbeatRequestPB::kNumLiveTabletsFieldNumber; |
4728 | | const int TSHeartbeatRequestPB::kConfigIndexFieldNumber; |
4729 | | const int TSHeartbeatRequestPB::kMetricsFieldNumber; |
4730 | | const int TSHeartbeatRequestPB::kLeaderCountFieldNumber; |
4731 | | const int TSHeartbeatRequestPB::kClusterConfigVersionFieldNumber; |
4732 | | const int TSHeartbeatRequestPB::kDEPRECATEDTabletsForSplitFieldNumber; |
4733 | | const int TSHeartbeatRequestPB::kTsPhysicalTimeFieldNumber; |
4734 | | const int TSHeartbeatRequestPB::kTsHybridTimeFieldNumber; |
4735 | | const int TSHeartbeatRequestPB::kRttUsFieldNumber; |
4736 | | const int TSHeartbeatRequestPB::kStorageMetadataFieldNumber; |
4737 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4738 | | |
4739 | | TSHeartbeatRequestPB::TSHeartbeatRequestPB() |
4740 | 10.4M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4741 | 10.4M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4742 | 10.4M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatRequestPB(); |
4743 | 10.4M | } |
4744 | 10.4M | SharedCtor(); |
4745 | | // @@protoc_insertion_point(constructor:yb.master.TSHeartbeatRequestPB) |
4746 | 10.4M | } |
4747 | | TSHeartbeatRequestPB::TSHeartbeatRequestPB(const TSHeartbeatRequestPB& from) |
4748 | | : ::google::protobuf::Message(), |
4749 | | _internal_metadata_(NULL), |
4750 | | _has_bits_(from._has_bits_), |
4751 | | _cached_size_(0), |
4752 | | deprecated_tablets_for_split_(from.deprecated_tablets_for_split_), |
4753 | 0 | storage_metadata_(from.storage_metadata_) { |
4754 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4755 | 0 | if (from.has_common()) { |
4756 | 0 | common_ = new ::yb::master::TSToMasterCommonPB(*from.common_); |
4757 | 0 | } else { |
4758 | 0 | common_ = NULL; |
4759 | 0 | } |
4760 | 0 | if (from.has_registration()) { |
4761 | 0 | registration_ = new ::yb::master::TSRegistrationPB(*from.registration_); |
4762 | 0 | } else { |
4763 | 0 | registration_ = NULL; |
4764 | 0 | } |
4765 | 0 | if (from.has_tablet_report()) { |
4766 | 0 | tablet_report_ = new ::yb::master::TabletReportPB(*from.tablet_report_); |
4767 | 0 | } else { |
4768 | 0 | tablet_report_ = NULL; |
4769 | 0 | } |
4770 | 0 | if (from.has_metrics()) { |
4771 | 0 | metrics_ = new ::yb::master::TServerMetricsPB(*from.metrics_); |
4772 | 0 | } else { |
4773 | 0 | metrics_ = NULL; |
4774 | 0 | } |
4775 | 0 | ::memcpy(&config_index_, &from.config_index_, |
4776 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&cluster_config_version_) - |
4777 | 0 | reinterpret_cast<char*>(&config_index_)) + sizeof(cluster_config_version_)); |
4778 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSHeartbeatRequestPB) |
4779 | 0 | } |
4780 | | |
4781 | 10.4M | void TSHeartbeatRequestPB::SharedCtor() { |
4782 | 10.4M | _cached_size_ = 0; |
4783 | 10.4M | ::memset(&common_, 0, static_cast<size_t>( |
4784 | 10.4M | reinterpret_cast<char*>(&cluster_config_version_) - |
4785 | 10.4M | reinterpret_cast<char*>(&common_)) + sizeof(cluster_config_version_)); |
4786 | 10.4M | } |
4787 | | |
4788 | 10.4M | TSHeartbeatRequestPB::~TSHeartbeatRequestPB() { |
4789 | | // @@protoc_insertion_point(destructor:yb.master.TSHeartbeatRequestPB) |
4790 | 10.4M | SharedDtor(); |
4791 | 10.4M | } |
4792 | | |
4793 | 10.4M | void TSHeartbeatRequestPB::SharedDtor() { |
4794 | 10.4M | if (this != internal_default_instance()) delete common_10.4M ; |
4795 | 10.4M | if (this != internal_default_instance()) delete registration_10.4M ; |
4796 | 10.4M | if (this != internal_default_instance()) delete tablet_report_10.4M ; |
4797 | 10.4M | if (this != internal_default_instance()) delete metrics_10.4M ; |
4798 | 10.4M | } |
4799 | | |
4800 | 0 | void TSHeartbeatRequestPB::SetCachedSize(int size) const { |
4801 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4802 | 0 | _cached_size_ = size; |
4803 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4804 | 0 | } |
4805 | 0 | const ::google::protobuf::Descriptor* TSHeartbeatRequestPB::descriptor() { |
4806 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
4807 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4808 | 0 | } |
4809 | | |
4810 | 0 | const TSHeartbeatRequestPB& TSHeartbeatRequestPB::default_instance() { |
4811 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatRequestPB(); |
4812 | 0 | return *internal_default_instance(); |
4813 | 0 | } |
4814 | | |
4815 | 0 | TSHeartbeatRequestPB* TSHeartbeatRequestPB::New(::google::protobuf::Arena* arena) const { |
4816 | 0 | TSHeartbeatRequestPB* n = new TSHeartbeatRequestPB; |
4817 | 0 | if (arena != NULL) { |
4818 | 0 | arena->Own(n); |
4819 | 0 | } |
4820 | 0 | return n; |
4821 | 0 | } |
4822 | | |
4823 | 5.17M | void TSHeartbeatRequestPB::Clear() { |
4824 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSHeartbeatRequestPB) |
4825 | 5.17M | ::google::protobuf::uint32 cached_has_bits = 0; |
4826 | | // Prevent compiler warnings about cached_has_bits being unused |
4827 | 5.17M | (void) cached_has_bits; |
4828 | | |
4829 | 5.17M | deprecated_tablets_for_split_.Clear(); |
4830 | 5.17M | storage_metadata_.Clear(); |
4831 | 5.17M | cached_has_bits = _has_bits_[0]; |
4832 | 5.17M | if (cached_has_bits & 15u) { |
4833 | 0 | if (cached_has_bits & 0x00000001u) { |
4834 | 0 | GOOGLE_DCHECK(common_ != NULL); |
4835 | 0 | common_->Clear(); |
4836 | 0 | } |
4837 | 0 | if (cached_has_bits & 0x00000002u) { |
4838 | 0 | GOOGLE_DCHECK(registration_ != NULL); |
4839 | 0 | registration_->Clear(); |
4840 | 0 | } |
4841 | 0 | if (cached_has_bits & 0x00000004u) { |
4842 | 0 | GOOGLE_DCHECK(tablet_report_ != NULL); |
4843 | 0 | tablet_report_->Clear(); |
4844 | 0 | } |
4845 | 0 | if (cached_has_bits & 0x00000008u) { |
4846 | 0 | GOOGLE_DCHECK(metrics_ != NULL); |
4847 | 0 | metrics_->Clear(); |
4848 | 0 | } |
4849 | 0 | } |
4850 | 5.17M | if (cached_has_bits & 240u) { |
4851 | 0 | ::memset(&config_index_, 0, static_cast<size_t>( |
4852 | 0 | reinterpret_cast<char*>(&ts_physical_time_) - |
4853 | 0 | reinterpret_cast<char*>(&config_index_)) + sizeof(ts_physical_time_)); |
4854 | 0 | } |
4855 | 5.17M | if (cached_has_bits & 1792u) { |
4856 | 0 | ::memset(&ts_hybrid_time_, 0, static_cast<size_t>( |
4857 | 0 | reinterpret_cast<char*>(&cluster_config_version_) - |
4858 | 0 | reinterpret_cast<char*>(&ts_hybrid_time_)) + sizeof(cluster_config_version_)); |
4859 | 0 | } |
4860 | 5.17M | _has_bits_.Clear(); |
4861 | 5.17M | _internal_metadata_.Clear(); |
4862 | 5.17M | } |
4863 | | |
4864 | | bool TSHeartbeatRequestPB::MergePartialFromCodedStream( |
4865 | 5.16M | ::google::protobuf::io::CodedInputStream* input) { |
4866 | 49.9M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4867 | 5.16M | ::google::protobuf::uint32 tag; |
4868 | | // @@protoc_insertion_point(parse_start:yb.master.TSHeartbeatRequestPB) |
4869 | 55.1M | for (;;) { |
4870 | 55.1M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4871 | 55.1M | tag = p.first; |
4872 | 55.1M | if (!p.second) goto handle_unusual5.17M ; |
4873 | 49.9M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4874 | | // required .yb.master.TSToMasterCommonPB common = 1; |
4875 | 5.16M | case 1: { |
4876 | 5.16M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4877 | 5.16M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4878 | 5.16M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4879 | 5.16M | input, mutable_common())); |
4880 | 18.4E | } else { |
4881 | 18.4E | goto handle_unusual; |
4882 | 18.4E | } |
4883 | 5.16M | break; |
4884 | 5.16M | } |
4885 | | |
4886 | | // optional .yb.master.TSRegistrationPB registration = 2; |
4887 | 5.16M | case 2: { |
4888 | 9.44k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4889 | 9.44k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4890 | 9.44k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4891 | 9.44k | input, mutable_registration())); |
4892 | 9.44k | } else { |
4893 | 0 | goto handle_unusual; |
4894 | 0 | } |
4895 | 9.44k | break; |
4896 | 9.44k | } |
4897 | | |
4898 | | // optional .yb.master.TabletReportPB tablet_report = 3; |
4899 | 5.17M | case 3: { |
4900 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4901 | 5.17M | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4902 | 5.17M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4903 | 5.17M | input, mutable_tablet_report())); |
4904 | 18.4E | } else { |
4905 | 18.4E | goto handle_unusual; |
4906 | 18.4E | } |
4907 | 5.17M | break; |
4908 | 5.17M | } |
4909 | | |
4910 | | // optional int32 num_live_tablets = 4; |
4911 | 5.17M | case 4: { |
4912 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4913 | 5.17M | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4914 | 5.17M | set_has_num_live_tablets(); |
4915 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4916 | 5.17M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4917 | 5.17M | input, &num_live_tablets_))); |
4918 | 18.4E | } else { |
4919 | 18.4E | goto handle_unusual; |
4920 | 18.4E | } |
4921 | 5.17M | break; |
4922 | 5.17M | } |
4923 | | |
4924 | | // optional int64 config_index = 5; |
4925 | 5.17M | case 5: { |
4926 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4927 | 5.17M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
4928 | 5.17M | set_has_config_index(); |
4929 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4930 | 5.17M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4931 | 5.17M | input, &config_index_))); |
4932 | 18.4E | } else { |
4933 | 18.4E | goto handle_unusual; |
4934 | 18.4E | } |
4935 | 5.17M | break; |
4936 | 5.17M | } |
4937 | | |
4938 | | // optional .yb.master.TServerMetricsPB metrics = 6; |
4939 | 5.17M | case 6: { |
4940 | 1.05M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4941 | 1.05M | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
4942 | 1.05M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4943 | 1.05M | input, mutable_metrics())); |
4944 | 18.4E | } else { |
4945 | 18.4E | goto handle_unusual; |
4946 | 18.4E | } |
4947 | 1.05M | break; |
4948 | 1.05M | } |
4949 | | |
4950 | | // optional int32 leader_count = 7; |
4951 | 5.17M | case 7: { |
4952 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4953 | 5.17M | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
4954 | 5.17M | set_has_leader_count(); |
4955 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4956 | 5.17M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4957 | 5.17M | input, &leader_count_))); |
4958 | 18.4E | } else { |
4959 | 18.4E | goto handle_unusual; |
4960 | 18.4E | } |
4961 | 5.17M | break; |
4962 | 5.17M | } |
4963 | | |
4964 | | // optional int32 cluster_config_version = 8; |
4965 | 5.17M | case 8: { |
4966 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4967 | 5.17M | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
4968 | 5.17M | set_has_cluster_config_version(); |
4969 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4970 | 5.17M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4971 | 5.17M | input, &cluster_config_version_))); |
4972 | 18.4E | } else { |
4973 | 18.4E | goto handle_unusual; |
4974 | 18.4E | } |
4975 | 5.17M | break; |
4976 | 5.17M | } |
4977 | | |
4978 | | // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9; |
4979 | 5.17M | case 9: { |
4980 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4981 | 0 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
4982 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_deprecated_tablets_for_split())); |
4983 | 0 | } else { |
4984 | 0 | goto handle_unusual; |
4985 | 0 | } |
4986 | 0 | break; |
4987 | 0 | } |
4988 | | |
4989 | | // optional fixed64 ts_physical_time = 10; |
4990 | 5.17M | case 10: { |
4991 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4992 | 5.17M | static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { |
4993 | 5.17M | set_has_ts_physical_time(); |
4994 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4995 | 5.17M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
4996 | 5.17M | input, &ts_physical_time_))); |
4997 | 18.4E | } else { |
4998 | 18.4E | goto handle_unusual; |
4999 | 18.4E | } |
5000 | 5.17M | break; |
5001 | 5.17M | } |
5002 | | |
5003 | | // optional fixed64 ts_hybrid_time = 11; |
5004 | 5.17M | case 11: { |
5005 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5006 | 5.17M | static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { |
5007 | 5.17M | set_has_ts_hybrid_time(); |
5008 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5009 | 5.17M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
5010 | 5.17M | input, &ts_hybrid_time_))); |
5011 | 5.17M | } else { |
5012 | 375 | goto handle_unusual; |
5013 | 375 | } |
5014 | 5.17M | break; |
5015 | 5.17M | } |
5016 | | |
5017 | | // optional int64 rtt_us = 12; |
5018 | 5.17M | case 12: { |
5019 | 5.17M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5020 | 5.17M | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
5021 | 5.17M | set_has_rtt_us(); |
5022 | 5.17M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5023 | 5.17M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
5024 | 5.17M | input, &rtt_us_))); |
5025 | 18.4E | } else { |
5026 | 18.4E | goto handle_unusual; |
5027 | 18.4E | } |
5028 | 5.17M | break; |
5029 | 5.17M | } |
5030 | | |
5031 | | // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14; |
5032 | 5.17M | case 14: { |
5033 | 2.34M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5034 | 2.34M | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
5035 | 2.34M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_storage_metadata())); |
5036 | 18.4E | } else { |
5037 | 18.4E | goto handle_unusual; |
5038 | 18.4E | } |
5039 | 2.34M | break; |
5040 | 2.34M | } |
5041 | | |
5042 | 2.34M | default: { |
5043 | 5.17M | handle_unusual: |
5044 | 5.17M | if (tag == 05.17M ) { |
5045 | 5.17M | goto success; |
5046 | 5.17M | } |
5047 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5048 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5049 | 18.4E | break; |
5050 | 18.4E | } |
5051 | 49.9M | } |
5052 | 49.9M | } |
5053 | 5.17M | success: |
5054 | | // @@protoc_insertion_point(parse_success:yb.master.TSHeartbeatRequestPB) |
5055 | 5.17M | return true; |
5056 | 0 | failure: |
5057 | | // @@protoc_insertion_point(parse_failure:yb.master.TSHeartbeatRequestPB) |
5058 | 0 | return false; |
5059 | 5.16M | #undef DO_ |
5060 | 5.16M | } |
5061 | | |
5062 | | void TSHeartbeatRequestPB::SerializeWithCachedSizes( |
5063 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5064 | | // @@protoc_insertion_point(serialize_start:yb.master.TSHeartbeatRequestPB) |
5065 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5066 | 0 | (void) cached_has_bits; |
5067 | |
|
5068 | 0 | cached_has_bits = _has_bits_[0]; |
5069 | | // required .yb.master.TSToMasterCommonPB common = 1; |
5070 | 0 | if (cached_has_bits & 0x00000001u) { |
5071 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5072 | 0 | 1, *this->common_, output); |
5073 | 0 | } |
5074 | | |
5075 | | // optional .yb.master.TSRegistrationPB registration = 2; |
5076 | 0 | if (cached_has_bits & 0x00000002u) { |
5077 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5078 | 0 | 2, *this->registration_, output); |
5079 | 0 | } |
5080 | | |
5081 | | // optional .yb.master.TabletReportPB tablet_report = 3; |
5082 | 0 | if (cached_has_bits & 0x00000004u) { |
5083 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5084 | 0 | 3, *this->tablet_report_, output); |
5085 | 0 | } |
5086 | | |
5087 | | // optional int32 num_live_tablets = 4; |
5088 | 0 | if (cached_has_bits & 0x00000020u) { |
5089 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->num_live_tablets(), output); |
5090 | 0 | } |
5091 | | |
5092 | | // optional int64 config_index = 5; |
5093 | 0 | if (cached_has_bits & 0x00000010u) { |
5094 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->config_index(), output); |
5095 | 0 | } |
5096 | | |
5097 | | // optional .yb.master.TServerMetricsPB metrics = 6; |
5098 | 0 | if (cached_has_bits & 0x00000008u) { |
5099 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5100 | 0 | 6, *this->metrics_, output); |
5101 | 0 | } |
5102 | | |
5103 | | // optional int32 leader_count = 7; |
5104 | 0 | if (cached_has_bits & 0x00000040u) { |
5105 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->leader_count(), output); |
5106 | 0 | } |
5107 | | |
5108 | | // optional int32 cluster_config_version = 8; |
5109 | 0 | if (cached_has_bits & 0x00000400u) { |
5110 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->cluster_config_version(), output); |
5111 | 0 | } |
5112 | | |
5113 | | // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9; |
5114 | 0 | for (unsigned int i = 0, |
5115 | 0 | n = static_cast<unsigned int>(this->deprecated_tablets_for_split_size()); i < n; i++) { |
5116 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5117 | 0 | 9, this->deprecated_tablets_for_split(static_cast<int>(i)), output); |
5118 | 0 | } |
5119 | | |
5120 | | // optional fixed64 ts_physical_time = 10; |
5121 | 0 | if (cached_has_bits & 0x00000080u) { |
5122 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(10, this->ts_physical_time(), output); |
5123 | 0 | } |
5124 | | |
5125 | | // optional fixed64 ts_hybrid_time = 11; |
5126 | 0 | if (cached_has_bits & 0x00000100u) { |
5127 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(11, this->ts_hybrid_time(), output); |
5128 | 0 | } |
5129 | | |
5130 | | // optional int64 rtt_us = 12; |
5131 | 0 | if (cached_has_bits & 0x00000200u) { |
5132 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->rtt_us(), output); |
5133 | 0 | } |
5134 | | |
5135 | | // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14; |
5136 | 0 | for (unsigned int i = 0, |
5137 | 0 | n = static_cast<unsigned int>(this->storage_metadata_size()); i < n; i++) { |
5138 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5139 | 0 | 14, this->storage_metadata(static_cast<int>(i)), output); |
5140 | 0 | } |
5141 | |
|
5142 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5143 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5144 | 0 | _internal_metadata_.unknown_fields(), output); |
5145 | 0 | } |
5146 | | // @@protoc_insertion_point(serialize_end:yb.master.TSHeartbeatRequestPB) |
5147 | 0 | } |
5148 | | |
5149 | | ::google::protobuf::uint8* TSHeartbeatRequestPB::InternalSerializeWithCachedSizesToArray( |
5150 | 5.25M | bool deterministic, ::google::protobuf::uint8* target) const { |
5151 | 5.25M | (void)deterministic; // Unused |
5152 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSHeartbeatRequestPB) |
5153 | 5.25M | ::google::protobuf::uint32 cached_has_bits = 0; |
5154 | 5.25M | (void) cached_has_bits; |
5155 | | |
5156 | 5.25M | cached_has_bits = _has_bits_[0]; |
5157 | | // required .yb.master.TSToMasterCommonPB common = 1; |
5158 | 5.25M | if (cached_has_bits & 0x00000001u) { |
5159 | 5.25M | target = ::google::protobuf::internal::WireFormatLite:: |
5160 | 5.25M | InternalWriteMessageToArray( |
5161 | 5.25M | 1, *this->common_, deterministic, target); |
5162 | 5.25M | } |
5163 | | |
5164 | | // optional .yb.master.TSRegistrationPB registration = 2; |
5165 | 5.25M | if (cached_has_bits & 0x00000002u) { |
5166 | 9.44k | target = ::google::protobuf::internal::WireFormatLite:: |
5167 | 9.44k | InternalWriteMessageToArray( |
5168 | 9.44k | 2, *this->registration_, deterministic, target); |
5169 | 9.44k | } |
5170 | | |
5171 | | // optional .yb.master.TabletReportPB tablet_report = 3; |
5172 | 5.25M | if (cached_has_bits & 0x00000004u) { |
5173 | 5.25M | target = ::google::protobuf::internal::WireFormatLite:: |
5174 | 5.25M | InternalWriteMessageToArray( |
5175 | 5.25M | 3, *this->tablet_report_, deterministic, target); |
5176 | 5.25M | } |
5177 | | |
5178 | | // optional int32 num_live_tablets = 4; |
5179 | 5.25M | if (cached_has_bits & 0x00000020u) { |
5180 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->num_live_tablets(), target); |
5181 | 5.25M | } |
5182 | | |
5183 | | // optional int64 config_index = 5; |
5184 | 5.25M | if (cached_has_bits & 0x00000010u) { |
5185 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->config_index(), target); |
5186 | 5.25M | } |
5187 | | |
5188 | | // optional .yb.master.TServerMetricsPB metrics = 6; |
5189 | 5.25M | if (cached_has_bits & 0x00000008u) { |
5190 | 1.07M | target = ::google::protobuf::internal::WireFormatLite:: |
5191 | 1.07M | InternalWriteMessageToArray( |
5192 | 1.07M | 6, *this->metrics_, deterministic, target); |
5193 | 1.07M | } |
5194 | | |
5195 | | // optional int32 leader_count = 7; |
5196 | 5.25M | if (cached_has_bits & 0x00000040u) { |
5197 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->leader_count(), target); |
5198 | 5.25M | } |
5199 | | |
5200 | | // optional int32 cluster_config_version = 8; |
5201 | 5.25M | if (cached_has_bits & 0x00000400u) { |
5202 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->cluster_config_version(), target); |
5203 | 5.25M | } |
5204 | | |
5205 | | // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9; |
5206 | 5.25M | for (unsigned int i = 0, |
5207 | 5.25M | n = static_cast<unsigned int>(this->deprecated_tablets_for_split_size()); i < n; i++0 ) { |
5208 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5209 | 0 | InternalWriteMessageToArray( |
5210 | 0 | 9, this->deprecated_tablets_for_split(static_cast<int>(i)), deterministic, target); |
5211 | 0 | } |
5212 | | |
5213 | | // optional fixed64 ts_physical_time = 10; |
5214 | 5.25M | if (cached_has_bits & 0x00000080u) { |
5215 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(10, this->ts_physical_time(), target); |
5216 | 5.25M | } |
5217 | | |
5218 | | // optional fixed64 ts_hybrid_time = 11; |
5219 | 5.25M | if (cached_has_bits & 0x00000100u) { |
5220 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(11, this->ts_hybrid_time(), target); |
5221 | 5.25M | } |
5222 | | |
5223 | | // optional int64 rtt_us = 12; |
5224 | 5.25M | if (cached_has_bits & 0x00000200u) { |
5225 | 5.25M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->rtt_us(), target); |
5226 | 5.25M | } |
5227 | | |
5228 | | // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14; |
5229 | 5.25M | for (unsigned int i = 0, |
5230 | 7.61M | n = static_cast<unsigned int>(this->storage_metadata_size()); i < n; i++2.35M ) { |
5231 | 2.35M | target = ::google::protobuf::internal::WireFormatLite:: |
5232 | 2.35M | InternalWriteMessageToArray( |
5233 | 2.35M | 14, this->storage_metadata(static_cast<int>(i)), deterministic, target); |
5234 | 2.35M | } |
5235 | | |
5236 | 5.25M | if (_internal_metadata_.have_unknown_fields()) { |
5237 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5238 | 0 | _internal_metadata_.unknown_fields(), target); |
5239 | 0 | } |
5240 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSHeartbeatRequestPB) |
5241 | 5.25M | return target; |
5242 | 5.25M | } |
5243 | | |
5244 | 10.5M | size_t TSHeartbeatRequestPB::ByteSizeLong() const { |
5245 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSHeartbeatRequestPB) |
5246 | 10.5M | size_t total_size = 0; |
5247 | | |
5248 | 10.5M | if (_internal_metadata_.have_unknown_fields()) { |
5249 | 0 | total_size += |
5250 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5251 | 0 | _internal_metadata_.unknown_fields()); |
5252 | 0 | } |
5253 | | // required .yb.master.TSToMasterCommonPB common = 1; |
5254 | 10.5M | if (has_common()) { |
5255 | 10.5M | total_size += 1 + |
5256 | 10.5M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5257 | 10.5M | *this->common_); |
5258 | 10.5M | } |
5259 | | // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9; |
5260 | 10.5M | { |
5261 | 10.5M | unsigned int count = static_cast<unsigned int>(this->deprecated_tablets_for_split_size()); |
5262 | 10.5M | total_size += 1UL * count; |
5263 | 10.5M | for (unsigned int i = 0; i < count; i++0 ) { |
5264 | 0 | total_size += |
5265 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5266 | 0 | this->deprecated_tablets_for_split(static_cast<int>(i))); |
5267 | 0 | } |
5268 | 10.5M | } |
5269 | | |
5270 | | // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14; |
5271 | 10.5M | { |
5272 | 10.5M | unsigned int count = static_cast<unsigned int>(this->storage_metadata_size()); |
5273 | 10.5M | total_size += 1UL * count; |
5274 | 15.2M | for (unsigned int i = 0; i < count; i++4.71M ) { |
5275 | 4.71M | total_size += |
5276 | 4.71M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5277 | 4.71M | this->storage_metadata(static_cast<int>(i))); |
5278 | 4.71M | } |
5279 | 10.5M | } |
5280 | | |
5281 | 10.5M | if (_has_bits_[0 / 32] & 254u) { |
5282 | | // optional .yb.master.TSRegistrationPB registration = 2; |
5283 | 10.5M | if (has_registration()) { |
5284 | 18.8k | total_size += 1 + |
5285 | 18.8k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5286 | 18.8k | *this->registration_); |
5287 | 18.8k | } |
5288 | | |
5289 | | // optional .yb.master.TabletReportPB tablet_report = 3; |
5290 | 10.5M | if (has_tablet_report()) { |
5291 | 10.5M | total_size += 1 + |
5292 | 10.5M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5293 | 10.5M | *this->tablet_report_); |
5294 | 10.5M | } |
5295 | | |
5296 | | // optional .yb.master.TServerMetricsPB metrics = 6; |
5297 | 10.5M | if (has_metrics()) { |
5298 | 2.14M | total_size += 1 + |
5299 | 2.14M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5300 | 2.14M | *this->metrics_); |
5301 | 2.14M | } |
5302 | | |
5303 | | // optional int64 config_index = 5; |
5304 | 10.5M | if (has_config_index()) { |
5305 | 10.5M | total_size += 1 + |
5306 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
5307 | 10.5M | this->config_index()); |
5308 | 10.5M | } |
5309 | | |
5310 | | // optional int32 num_live_tablets = 4; |
5311 | 10.5M | if (has_num_live_tablets()) { |
5312 | 10.5M | total_size += 1 + |
5313 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5314 | 10.5M | this->num_live_tablets()); |
5315 | 10.5M | } |
5316 | | |
5317 | | // optional int32 leader_count = 7; |
5318 | 10.5M | if (has_leader_count()) { |
5319 | 10.5M | total_size += 1 + |
5320 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5321 | 10.5M | this->leader_count()); |
5322 | 10.5M | } |
5323 | | |
5324 | | // optional fixed64 ts_physical_time = 10; |
5325 | 10.5M | if (has_ts_physical_time()) { |
5326 | 10.5M | total_size += 1 + 8; |
5327 | 10.5M | } |
5328 | | |
5329 | 10.5M | } |
5330 | 10.5M | if (_has_bits_[8 / 32] & 1792u) { |
5331 | | // optional fixed64 ts_hybrid_time = 11; |
5332 | 10.5M | if (has_ts_hybrid_time()) { |
5333 | 10.5M | total_size += 1 + 8; |
5334 | 10.5M | } |
5335 | | |
5336 | | // optional int64 rtt_us = 12; |
5337 | 10.5M | if (has_rtt_us()) { |
5338 | 10.5M | total_size += 1 + |
5339 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
5340 | 10.5M | this->rtt_us()); |
5341 | 10.5M | } |
5342 | | |
5343 | | // optional int32 cluster_config_version = 8; |
5344 | 10.5M | if (has_cluster_config_version()) { |
5345 | 10.5M | total_size += 1 + |
5346 | 10.5M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5347 | 10.5M | this->cluster_config_version()); |
5348 | 10.5M | } |
5349 | | |
5350 | 10.5M | } |
5351 | 10.5M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5352 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5353 | 10.5M | _cached_size_ = cached_size; |
5354 | 10.5M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5355 | 10.5M | return total_size; |
5356 | 10.5M | } |
5357 | | |
5358 | 0 | void TSHeartbeatRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
5359 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSHeartbeatRequestPB) |
5360 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5361 | 0 | const TSHeartbeatRequestPB* source = |
5362 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSHeartbeatRequestPB>( |
5363 | 0 | &from); |
5364 | 0 | if (source == NULL) { |
5365 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSHeartbeatRequestPB) |
5366 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5367 | 0 | } else { |
5368 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSHeartbeatRequestPB) |
5369 | 0 | MergeFrom(*source); |
5370 | 0 | } |
5371 | 0 | } |
5372 | | |
5373 | 0 | void TSHeartbeatRequestPB::MergeFrom(const TSHeartbeatRequestPB& from) { |
5374 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSHeartbeatRequestPB) |
5375 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5376 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5377 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5378 | 0 | (void) cached_has_bits; |
5379 | |
|
5380 | 0 | deprecated_tablets_for_split_.MergeFrom(from.deprecated_tablets_for_split_); |
5381 | 0 | storage_metadata_.MergeFrom(from.storage_metadata_); |
5382 | 0 | cached_has_bits = from._has_bits_[0]; |
5383 | 0 | if (cached_has_bits & 255u) { |
5384 | 0 | if (cached_has_bits & 0x00000001u) { |
5385 | 0 | mutable_common()->::yb::master::TSToMasterCommonPB::MergeFrom(from.common()); |
5386 | 0 | } |
5387 | 0 | if (cached_has_bits & 0x00000002u) { |
5388 | 0 | mutable_registration()->::yb::master::TSRegistrationPB::MergeFrom(from.registration()); |
5389 | 0 | } |
5390 | 0 | if (cached_has_bits & 0x00000004u) { |
5391 | 0 | mutable_tablet_report()->::yb::master::TabletReportPB::MergeFrom(from.tablet_report()); |
5392 | 0 | } |
5393 | 0 | if (cached_has_bits & 0x00000008u) { |
5394 | 0 | mutable_metrics()->::yb::master::TServerMetricsPB::MergeFrom(from.metrics()); |
5395 | 0 | } |
5396 | 0 | if (cached_has_bits & 0x00000010u) { |
5397 | 0 | config_index_ = from.config_index_; |
5398 | 0 | } |
5399 | 0 | if (cached_has_bits & 0x00000020u) { |
5400 | 0 | num_live_tablets_ = from.num_live_tablets_; |
5401 | 0 | } |
5402 | 0 | if (cached_has_bits & 0x00000040u) { |
5403 | 0 | leader_count_ = from.leader_count_; |
5404 | 0 | } |
5405 | 0 | if (cached_has_bits & 0x00000080u) { |
5406 | 0 | ts_physical_time_ = from.ts_physical_time_; |
5407 | 0 | } |
5408 | 0 | _has_bits_[0] |= cached_has_bits; |
5409 | 0 | } |
5410 | 0 | if (cached_has_bits & 1792u) { |
5411 | 0 | if (cached_has_bits & 0x00000100u) { |
5412 | 0 | ts_hybrid_time_ = from.ts_hybrid_time_; |
5413 | 0 | } |
5414 | 0 | if (cached_has_bits & 0x00000200u) { |
5415 | 0 | rtt_us_ = from.rtt_us_; |
5416 | 0 | } |
5417 | 0 | if (cached_has_bits & 0x00000400u) { |
5418 | 0 | cluster_config_version_ = from.cluster_config_version_; |
5419 | 0 | } |
5420 | 0 | _has_bits_[0] |= cached_has_bits; |
5421 | 0 | } |
5422 | 0 | } |
5423 | | |
5424 | 0 | void TSHeartbeatRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
5425 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSHeartbeatRequestPB) |
5426 | 0 | if (&from == this) return; |
5427 | 0 | Clear(); |
5428 | 0 | MergeFrom(from); |
5429 | 0 | } |
5430 | | |
5431 | 0 | void TSHeartbeatRequestPB::CopyFrom(const TSHeartbeatRequestPB& from) { |
5432 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSHeartbeatRequestPB) |
5433 | 0 | if (&from == this) return; |
5434 | 0 | Clear(); |
5435 | 0 | MergeFrom(from); |
5436 | 0 | } |
5437 | | |
5438 | 10.4M | bool TSHeartbeatRequestPB::IsInitialized() const { |
5439 | 10.4M | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
5440 | 10.4M | if (!::google::protobuf::internal::AllAreInitialized(this->deprecated_tablets_for_split())) return false0 ; |
5441 | 10.4M | if (!::google::protobuf::internal::AllAreInitialized(this->storage_metadata())) return false0 ; |
5442 | 10.4M | if (has_common()) { |
5443 | 10.4M | if (!this->common_->IsInitialized()) return false0 ; |
5444 | 10.4M | } |
5445 | 10.4M | if (has_registration()) { |
5446 | 18.8k | if (!this->registration_->IsInitialized()) return false0 ; |
5447 | 18.8k | } |
5448 | 10.4M | if (has_tablet_report()) { |
5449 | 10.4M | if (!this->tablet_report_->IsInitialized()) return false0 ; |
5450 | 10.4M | } |
5451 | 10.4M | if (has_metrics()) { |
5452 | 2.12M | if (!this->metrics_->IsInitialized()) return false0 ; |
5453 | 2.12M | } |
5454 | 10.4M | return true; |
5455 | 10.4M | } |
5456 | | |
5457 | 0 | void TSHeartbeatRequestPB::Swap(TSHeartbeatRequestPB* other) { |
5458 | 0 | if (other == this) return; |
5459 | 0 | InternalSwap(other); |
5460 | 0 | } |
5461 | 0 | void TSHeartbeatRequestPB::InternalSwap(TSHeartbeatRequestPB* other) { |
5462 | 0 | using std::swap; |
5463 | 0 | deprecated_tablets_for_split_.InternalSwap(&other->deprecated_tablets_for_split_); |
5464 | 0 | storage_metadata_.InternalSwap(&other->storage_metadata_); |
5465 | 0 | swap(common_, other->common_); |
5466 | 0 | swap(registration_, other->registration_); |
5467 | 0 | swap(tablet_report_, other->tablet_report_); |
5468 | 0 | swap(metrics_, other->metrics_); |
5469 | 0 | swap(config_index_, other->config_index_); |
5470 | 0 | swap(num_live_tablets_, other->num_live_tablets_); |
5471 | 0 | swap(leader_count_, other->leader_count_); |
5472 | 0 | swap(ts_physical_time_, other->ts_physical_time_); |
5473 | 0 | swap(ts_hybrid_time_, other->ts_hybrid_time_); |
5474 | 0 | swap(rtt_us_, other->rtt_us_); |
5475 | 0 | swap(cluster_config_version_, other->cluster_config_version_); |
5476 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5477 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5478 | 0 | swap(_cached_size_, other->_cached_size_); |
5479 | 0 | } |
5480 | | |
5481 | 5.17M | ::google::protobuf::Metadata TSHeartbeatRequestPB::GetMetadata() const { |
5482 | 5.17M | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
5483 | 5.17M | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
5484 | 5.17M | } |
5485 | | |
5486 | | |
5487 | | // =================================================================== |
5488 | | |
5489 | 26.8k | void TSHeartbeatResponsePB::InitAsDefaultInstance() { |
5490 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
5491 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
5492 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->master_instance_ = const_cast< ::yb::NodeInstancePB*>( |
5493 | 26.8k | ::yb::NodeInstancePB::internal_default_instance()); |
5494 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->tablet_report_ = const_cast< ::yb::master::TabletReportUpdatesPB*>( |
5495 | 26.8k | ::yb::master::TabletReportUpdatesPB::internal_default_instance()); |
5496 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->master_config_ = const_cast< ::yb::consensus::RaftConfigPB*>( |
5497 | 26.8k | ::yb::consensus::RaftConfigPB::internal_default_instance()); |
5498 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->universe_key_registry_ = const_cast< ::yb::encryption::UniverseKeyRegistryPB*>( |
5499 | 26.8k | ::yb::encryption::UniverseKeyRegistryPB::internal_default_instance()); |
5500 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->consumer_registry_ = const_cast< ::yb::cdc::ConsumerRegistryPB*>( |
5501 | 26.8k | ::yb::cdc::ConsumerRegistryPB::internal_default_instance()); |
5502 | 26.8k | ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->snapshots_info_ = const_cast< ::yb::master::TSSnapshotsInfoPB*>( |
5503 | 26.8k | ::yb::master::TSSnapshotsInfoPB::internal_default_instance()); |
5504 | 26.8k | } |
5505 | 0 | void TSHeartbeatResponsePB::clear_error() { |
5506 | 0 | if (error_ != NULL) error_->Clear(); |
5507 | 0 | clear_has_error(); |
5508 | 0 | } |
5509 | 0 | void TSHeartbeatResponsePB::clear_master_instance() { |
5510 | 0 | if (master_instance_ != NULL) master_instance_->Clear(); |
5511 | 0 | clear_has_master_instance(); |
5512 | 0 | } |
5513 | 0 | void TSHeartbeatResponsePB::clear_master_config() { |
5514 | 0 | if (master_config_ != NULL) master_config_->Clear(); |
5515 | 0 | clear_has_master_config(); |
5516 | 0 | } |
5517 | 0 | void TSHeartbeatResponsePB::clear_universe_key_registry() { |
5518 | 0 | if (universe_key_registry_ != NULL) universe_key_registry_->Clear(); |
5519 | 0 | clear_has_universe_key_registry(); |
5520 | 0 | } |
5521 | 0 | void TSHeartbeatResponsePB::clear_consumer_registry() { |
5522 | 0 | if (consumer_registry_ != NULL) consumer_registry_->Clear(); |
5523 | 0 | clear_has_consumer_registry(); |
5524 | 0 | } |
5525 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5526 | | const int TSHeartbeatResponsePB::kErrorFieldNumber; |
5527 | | const int TSHeartbeatResponsePB::kMasterInstanceFieldNumber; |
5528 | | const int TSHeartbeatResponsePB::kNeedsReregisterFieldNumber; |
5529 | | const int TSHeartbeatResponsePB::kNeedsFullTabletReportFieldNumber; |
5530 | | const int TSHeartbeatResponsePB::kTabletReportFieldNumber; |
5531 | | const int TSHeartbeatResponsePB::kLeaderMasterFieldNumber; |
5532 | | const int TSHeartbeatResponsePB::kMasterConfigFieldNumber; |
5533 | | const int TSHeartbeatResponsePB::kTserversFieldNumber; |
5534 | | const int TSHeartbeatResponsePB::kClusterUuidFieldNumber; |
5535 | | const int TSHeartbeatResponsePB::kYsqlCatalogVersionFieldNumber; |
5536 | | const int TSHeartbeatResponsePB::kYsqlLastBreakingCatalogVersionFieldNumber; |
5537 | | const int TSHeartbeatResponsePB::kUniverseKeyRegistryFieldNumber; |
5538 | | const int TSHeartbeatResponsePB::kConsumerRegistryFieldNumber; |
5539 | | const int TSHeartbeatResponsePB::kClusterConfigVersionFieldNumber; |
5540 | | const int TSHeartbeatResponsePB::kTabletReportLimitFieldNumber; |
5541 | | const int TSHeartbeatResponsePB::kSnapshotsInfoFieldNumber; |
5542 | | const int TSHeartbeatResponsePB::kDEPRECATEDTabletSplitSizeThresholdBytesFieldNumber; |
5543 | | const int TSHeartbeatResponsePB::kTransactionTablesVersionFieldNumber; |
5544 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5545 | | |
5546 | | TSHeartbeatResponsePB::TSHeartbeatResponsePB() |
5547 | 10.4M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5548 | 10.4M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5549 | 10.4M | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatResponsePB(); |
5550 | 10.4M | } |
5551 | 10.4M | SharedCtor(); |
5552 | | // @@protoc_insertion_point(constructor:yb.master.TSHeartbeatResponsePB) |
5553 | 10.4M | } |
5554 | | TSHeartbeatResponsePB::TSHeartbeatResponsePB(const TSHeartbeatResponsePB& from) |
5555 | | : ::google::protobuf::Message(), |
5556 | | _internal_metadata_(NULL), |
5557 | | _has_bits_(from._has_bits_), |
5558 | | _cached_size_(0), |
5559 | 0 | tservers_(from.tservers_) { |
5560 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5561 | 0 | cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5562 | 0 | if (from.has_cluster_uuid()) { |
5563 | 0 | cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_); |
5564 | 0 | } |
5565 | 0 | if (from.has_error()) { |
5566 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
5567 | 0 | } else { |
5568 | 0 | error_ = NULL; |
5569 | 0 | } |
5570 | 0 | if (from.has_master_instance()) { |
5571 | 0 | master_instance_ = new ::yb::NodeInstancePB(*from.master_instance_); |
5572 | 0 | } else { |
5573 | 0 | master_instance_ = NULL; |
5574 | 0 | } |
5575 | 0 | if (from.has_tablet_report()) { |
5576 | 0 | tablet_report_ = new ::yb::master::TabletReportUpdatesPB(*from.tablet_report_); |
5577 | 0 | } else { |
5578 | 0 | tablet_report_ = NULL; |
5579 | 0 | } |
5580 | 0 | if (from.has_master_config()) { |
5581 | 0 | master_config_ = new ::yb::consensus::RaftConfigPB(*from.master_config_); |
5582 | 0 | } else { |
5583 | 0 | master_config_ = NULL; |
5584 | 0 | } |
5585 | 0 | if (from.has_universe_key_registry()) { |
5586 | 0 | universe_key_registry_ = new ::yb::encryption::UniverseKeyRegistryPB(*from.universe_key_registry_); |
5587 | 0 | } else { |
5588 | 0 | universe_key_registry_ = NULL; |
5589 | 0 | } |
5590 | 0 | if (from.has_consumer_registry()) { |
5591 | 0 | consumer_registry_ = new ::yb::cdc::ConsumerRegistryPB(*from.consumer_registry_); |
5592 | 0 | } else { |
5593 | 0 | consumer_registry_ = NULL; |
5594 | 0 | } |
5595 | 0 | if (from.has_snapshots_info()) { |
5596 | 0 | snapshots_info_ = new ::yb::master::TSSnapshotsInfoPB(*from.snapshots_info_); |
5597 | 0 | } else { |
5598 | 0 | snapshots_info_ = NULL; |
5599 | 0 | } |
5600 | 0 | ::memcpy(&needs_reregister_, &from.needs_reregister_, |
5601 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&tablet_report_limit_) - |
5602 | 0 | reinterpret_cast<char*>(&needs_reregister_)) + sizeof(tablet_report_limit_)); |
5603 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSHeartbeatResponsePB) |
5604 | 0 | } |
5605 | | |
5606 | 10.4M | void TSHeartbeatResponsePB::SharedCtor() { |
5607 | 10.4M | _cached_size_ = 0; |
5608 | 10.4M | cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5609 | 10.4M | ::memset(&error_, 0, static_cast<size_t>( |
5610 | 10.4M | reinterpret_cast<char*>(&tablet_report_limit_) - |
5611 | 10.4M | reinterpret_cast<char*>(&error_)) + sizeof(tablet_report_limit_)); |
5612 | 10.4M | } |
5613 | | |
5614 | 10.4M | TSHeartbeatResponsePB::~TSHeartbeatResponsePB() { |
5615 | | // @@protoc_insertion_point(destructor:yb.master.TSHeartbeatResponsePB) |
5616 | 10.4M | SharedDtor(); |
5617 | 10.4M | } |
5618 | | |
5619 | 10.4M | void TSHeartbeatResponsePB::SharedDtor() { |
5620 | 10.4M | cluster_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5621 | 10.4M | if (this != internal_default_instance()) delete error_10.4M ; |
5622 | 10.4M | if (this != internal_default_instance()) delete master_instance_10.4M ; |
5623 | 10.4M | if (this != internal_default_instance()) delete tablet_report_10.4M ; |
5624 | 10.4M | if (this != internal_default_instance()) delete master_config_10.4M ; |
5625 | 10.4M | if (this != internal_default_instance()) delete universe_key_registry_10.4M ; |
5626 | 10.4M | if (this != internal_default_instance()) delete consumer_registry_10.4M ; |
5627 | 10.4M | if (this != internal_default_instance()) delete snapshots_info_10.4M ; |
5628 | 10.4M | } |
5629 | | |
5630 | 0 | void TSHeartbeatResponsePB::SetCachedSize(int size) const { |
5631 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5632 | 0 | _cached_size_ = size; |
5633 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5634 | 0 | } |
5635 | 0 | const ::google::protobuf::Descriptor* TSHeartbeatResponsePB::descriptor() { |
5636 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
5637 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5638 | 0 | } |
5639 | | |
5640 | 0 | const TSHeartbeatResponsePB& TSHeartbeatResponsePB::default_instance() { |
5641 | 0 | ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatResponsePB(); |
5642 | 0 | return *internal_default_instance(); |
5643 | 0 | } |
5644 | | |
5645 | 0 | TSHeartbeatResponsePB* TSHeartbeatResponsePB::New(::google::protobuf::Arena* arena) const { |
5646 | 0 | TSHeartbeatResponsePB* n = new TSHeartbeatResponsePB; |
5647 | 0 | if (arena != NULL) { |
5648 | 0 | arena->Own(n); |
5649 | 0 | } |
5650 | 0 | return n; |
5651 | 0 | } |
5652 | | |
5653 | 5.22M | void TSHeartbeatResponsePB::Clear() { |
5654 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSHeartbeatResponsePB) |
5655 | 5.22M | ::google::protobuf::uint32 cached_has_bits = 0; |
5656 | | // Prevent compiler warnings about cached_has_bits being unused |
5657 | 5.22M | (void) cached_has_bits; |
5658 | | |
5659 | 5.22M | tservers_.Clear(); |
5660 | 5.22M | cached_has_bits = _has_bits_[0]; |
5661 | 5.22M | if (cached_has_bits & 255u) { |
5662 | 0 | if (cached_has_bits & 0x00000001u) { |
5663 | 0 | GOOGLE_DCHECK(!cluster_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5664 | 0 | (*cluster_uuid_.UnsafeRawStringPointer())->clear(); |
5665 | 0 | } |
5666 | 0 | if (cached_has_bits & 0x00000002u) { |
5667 | 0 | GOOGLE_DCHECK(error_ != NULL); |
5668 | 0 | error_->Clear(); |
5669 | 0 | } |
5670 | 0 | if (cached_has_bits & 0x00000004u) { |
5671 | 0 | GOOGLE_DCHECK(master_instance_ != NULL); |
5672 | 0 | master_instance_->Clear(); |
5673 | 0 | } |
5674 | 0 | if (cached_has_bits & 0x00000008u) { |
5675 | 0 | GOOGLE_DCHECK(tablet_report_ != NULL); |
5676 | 0 | tablet_report_->Clear(); |
5677 | 0 | } |
5678 | 0 | if (cached_has_bits & 0x00000010u) { |
5679 | 0 | GOOGLE_DCHECK(master_config_ != NULL); |
5680 | 0 | master_config_->Clear(); |
5681 | 0 | } |
5682 | 0 | if (cached_has_bits & 0x00000020u) { |
5683 | 0 | GOOGLE_DCHECK(universe_key_registry_ != NULL); |
5684 | 0 | universe_key_registry_->Clear(); |
5685 | 0 | } |
5686 | 0 | if (cached_has_bits & 0x00000040u) { |
5687 | 0 | GOOGLE_DCHECK(consumer_registry_ != NULL); |
5688 | 0 | consumer_registry_->Clear(); |
5689 | 0 | } |
5690 | 0 | if (cached_has_bits & 0x00000080u) { |
5691 | 0 | GOOGLE_DCHECK(snapshots_info_ != NULL); |
5692 | 0 | snapshots_info_->Clear(); |
5693 | 0 | } |
5694 | 0 | } |
5695 | 5.22M | if (cached_has_bits & 65280u) { |
5696 | 0 | ::memset(&needs_reregister_, 0, static_cast<size_t>( |
5697 | 0 | reinterpret_cast<char*>(&transaction_tables_version_) - |
5698 | 0 | reinterpret_cast<char*>(&needs_reregister_)) + sizeof(transaction_tables_version_)); |
5699 | 0 | } |
5700 | 5.22M | tablet_report_limit_ = 0; |
5701 | 5.22M | _has_bits_.Clear(); |
5702 | 5.22M | _internal_metadata_.Clear(); |
5703 | 5.22M | } |
5704 | | |
5705 | | bool TSHeartbeatResponsePB::MergePartialFromCodedStream( |
5706 | 5.22M | ::google::protobuf::io::CodedInputStream* input) { |
5707 | 61.5M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5708 | 5.22M | ::google::protobuf::uint32 tag; |
5709 | | // @@protoc_insertion_point(parse_start:yb.master.TSHeartbeatResponsePB) |
5710 | 66.8M | for (;;) { |
5711 | 66.8M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
5712 | 66.8M | tag = p.first; |
5713 | 66.8M | if (!p.second) goto handle_unusual5.22M ; |
5714 | 61.5M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5715 | | // optional .yb.master.MasterErrorPB error = 1; |
5716 | 398k | case 1: { |
5717 | 398k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5718 | 398k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5719 | 398k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5720 | 398k | input, mutable_error())); |
5721 | 398k | } else { |
5722 | 0 | goto handle_unusual; |
5723 | 0 | } |
5724 | 398k | break; |
5725 | 398k | } |
5726 | | |
5727 | | // optional .yb.NodeInstancePB master_instance = 2; |
5728 | 4.83M | case 2: { |
5729 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5730 | 4.83M | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5731 | 4.83M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5732 | 4.83M | input, mutable_master_instance())); |
5733 | 4.83M | } else { |
5734 | 0 | goto handle_unusual; |
5735 | 0 | } |
5736 | 4.83M | break; |
5737 | 4.83M | } |
5738 | | |
5739 | | // optional bool needs_reregister = 3 [default = false]; |
5740 | 4.83M | case 3: { |
5741 | 201 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5742 | 201 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
5743 | 201 | set_has_needs_reregister(); |
5744 | 201 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5745 | 201 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5746 | 201 | input, &needs_reregister_))); |
5747 | 201 | } else { |
5748 | 0 | goto handle_unusual; |
5749 | 0 | } |
5750 | 201 | break; |
5751 | 201 | } |
5752 | | |
5753 | | // optional bool needs_full_tablet_report = 4 [default = false]; |
5754 | 8.22k | case 4: { |
5755 | 8.22k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5756 | 8.22k | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
5757 | 8.22k | set_has_needs_full_tablet_report(); |
5758 | 8.22k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5759 | 8.22k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5760 | 8.22k | input, &needs_full_tablet_report_))); |
5761 | 8.22k | } else { |
5762 | 0 | goto handle_unusual; |
5763 | 0 | } |
5764 | 8.22k | break; |
5765 | 8.22k | } |
5766 | | |
5767 | | // optional .yb.master.TabletReportUpdatesPB tablet_report = 5; |
5768 | 4.83M | case 5: { |
5769 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5770 | 4.83M | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
5771 | 4.83M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5772 | 4.83M | input, mutable_tablet_report())); |
5773 | 4.83M | } else { |
5774 | 0 | goto handle_unusual; |
5775 | 0 | } |
5776 | 4.83M | break; |
5777 | 4.83M | } |
5778 | | |
5779 | | // optional bool leader_master = 6; |
5780 | 4.83M | case 6: { |
5781 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5782 | 4.83M | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
5783 | 4.83M | set_has_leader_master(); |
5784 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5785 | 4.83M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5786 | 4.83M | input, &leader_master_))); |
5787 | 4.83M | } else { |
5788 | 0 | goto handle_unusual; |
5789 | 0 | } |
5790 | 4.83M | break; |
5791 | 4.83M | } |
5792 | | |
5793 | | // optional .yb.consensus.RaftConfigPB master_config = 7; |
5794 | 4.83M | case 7: { |
5795 | 224 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5796 | 224 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
5797 | 224 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5798 | 224 | input, mutable_master_config())); |
5799 | 224 | } else { |
5800 | 0 | goto handle_unusual; |
5801 | 0 | } |
5802 | 224 | break; |
5803 | 224 | } |
5804 | | |
5805 | | // repeated .yb.master.TSInformationPB tservers = 8; |
5806 | 17.6M | case 8: { |
5807 | 17.6M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5808 | 17.6M | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
5809 | 17.6M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tservers())); |
5810 | 17.6M | } else { |
5811 | 0 | goto handle_unusual; |
5812 | 0 | } |
5813 | 17.6M | break; |
5814 | 17.6M | } |
5815 | | |
5816 | | // optional string cluster_uuid = 9; |
5817 | 17.6M | case 9: { |
5818 | 8.17k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5819 | 8.17k | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
5820 | 8.17k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5821 | 8.17k | input, this->mutable_cluster_uuid())); |
5822 | 8.17k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5823 | 8.17k | this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()), |
5824 | 8.17k | ::google::protobuf::internal::WireFormat::PARSE, |
5825 | 8.17k | "yb.master.TSHeartbeatResponsePB.cluster_uuid"); |
5826 | 8.17k | } else { |
5827 | 0 | goto handle_unusual; |
5828 | 0 | } |
5829 | 8.17k | break; |
5830 | 8.17k | } |
5831 | | |
5832 | | // optional uint64 ysql_catalog_version = 10; |
5833 | 4.83M | case 10: { |
5834 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5835 | 4.83M | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
5836 | 4.83M | set_has_ysql_catalog_version(); |
5837 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5838 | 4.83M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5839 | 4.83M | input, &ysql_catalog_version_))); |
5840 | 4.83M | } else { |
5841 | 0 | goto handle_unusual; |
5842 | 0 | } |
5843 | 4.83M | break; |
5844 | 4.83M | } |
5845 | | |
5846 | | // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11; |
5847 | 4.83M | case 11: { |
5848 | 46 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5849 | 46 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
5850 | 46 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5851 | 46 | input, mutable_universe_key_registry())); |
5852 | 46 | } else { |
5853 | 0 | goto handle_unusual; |
5854 | 0 | } |
5855 | 46 | break; |
5856 | 46 | } |
5857 | | |
5858 | | // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12; |
5859 | 46 | case 12: { |
5860 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5861 | 0 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
5862 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5863 | 0 | input, mutable_consumer_registry())); |
5864 | 0 | } else { |
5865 | 0 | goto handle_unusual; |
5866 | 0 | } |
5867 | 0 | break; |
5868 | 0 | } |
5869 | | |
5870 | | // optional int32 cluster_config_version = 13; |
5871 | 4.83M | case 13: { |
5872 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5873 | 4.83M | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
5874 | 4.83M | set_has_cluster_config_version(); |
5875 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5876 | 4.83M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
5877 | 4.83M | input, &cluster_config_version_))); |
5878 | 4.83M | } else { |
5879 | 0 | goto handle_unusual; |
5880 | 0 | } |
5881 | 4.83M | break; |
5882 | 4.83M | } |
5883 | | |
5884 | | // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14; |
5885 | 4.83M | case 14: { |
5886 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5887 | 0 | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
5888 | 0 | set_has_deprecated_tablet_split_size_threshold_bytes(); |
5889 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5890 | 0 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
5891 | 0 | input, &deprecated_tablet_split_size_threshold_bytes_))); |
5892 | 0 | } else { |
5893 | 0 | goto handle_unusual; |
5894 | 0 | } |
5895 | 0 | break; |
5896 | 0 | } |
5897 | | |
5898 | | // optional uint64 ysql_last_breaking_catalog_version = 15; |
5899 | 4.83M | case 15: { |
5900 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5901 | 4.83M | static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { |
5902 | 4.83M | set_has_ysql_last_breaking_catalog_version(); |
5903 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5904 | 4.83M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5905 | 4.83M | input, &ysql_last_breaking_catalog_version_))); |
5906 | 4.83M | } else { |
5907 | 0 | goto handle_unusual; |
5908 | 0 | } |
5909 | 4.83M | break; |
5910 | 4.83M | } |
5911 | | |
5912 | | // optional int32 tablet_report_limit = 16; |
5913 | 4.83M | case 16: { |
5914 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5915 | 4.83M | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
5916 | 4.83M | set_has_tablet_report_limit(); |
5917 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5918 | 4.83M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
5919 | 4.83M | input, &tablet_report_limit_))); |
5920 | 4.83M | } else { |
5921 | 0 | goto handle_unusual; |
5922 | 0 | } |
5923 | 4.83M | break; |
5924 | 4.83M | } |
5925 | | |
5926 | | // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17; |
5927 | 4.83M | case 17: { |
5928 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5929 | 4.83M | static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { |
5930 | 4.83M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5931 | 4.83M | input, mutable_snapshots_info())); |
5932 | 4.83M | } else { |
5933 | 0 | goto handle_unusual; |
5934 | 0 | } |
5935 | 4.83M | break; |
5936 | 4.83M | } |
5937 | | |
5938 | | // optional uint64 transaction_tables_version = 18; |
5939 | 4.83M | case 18: { |
5940 | 4.83M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5941 | 4.83M | static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { |
5942 | 4.83M | set_has_transaction_tables_version(); |
5943 | 4.83M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5944 | 4.83M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5945 | 4.83M | input, &transaction_tables_version_))); |
5946 | 4.83M | } else { |
5947 | 0 | goto handle_unusual; |
5948 | 0 | } |
5949 | 4.83M | break; |
5950 | 4.83M | } |
5951 | | |
5952 | 4.83M | default: { |
5953 | 5.22M | handle_unusual: |
5954 | 5.22M | if (tag == 0) { |
5955 | 5.22M | goto success; |
5956 | 5.22M | } |
5957 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5958 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5959 | 0 | break; |
5960 | 0 | } |
5961 | 61.5M | } |
5962 | 61.5M | } |
5963 | 5.22M | success: |
5964 | | // @@protoc_insertion_point(parse_success:yb.master.TSHeartbeatResponsePB) |
5965 | 5.22M | return true; |
5966 | 0 | failure: |
5967 | | // @@protoc_insertion_point(parse_failure:yb.master.TSHeartbeatResponsePB) |
5968 | 0 | return false; |
5969 | 5.22M | #undef DO_ |
5970 | 5.22M | } |
5971 | | |
5972 | | void TSHeartbeatResponsePB::SerializeWithCachedSizes( |
5973 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5974 | | // @@protoc_insertion_point(serialize_start:yb.master.TSHeartbeatResponsePB) |
5975 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5976 | 0 | (void) cached_has_bits; |
5977 | |
|
5978 | 0 | cached_has_bits = _has_bits_[0]; |
5979 | | // optional .yb.master.MasterErrorPB error = 1; |
5980 | 0 | if (cached_has_bits & 0x00000002u) { |
5981 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5982 | 0 | 1, *this->error_, output); |
5983 | 0 | } |
5984 | | |
5985 | | // optional .yb.NodeInstancePB master_instance = 2; |
5986 | 0 | if (cached_has_bits & 0x00000004u) { |
5987 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5988 | 0 | 2, *this->master_instance_, output); |
5989 | 0 | } |
5990 | | |
5991 | | // optional bool needs_reregister = 3 [default = false]; |
5992 | 0 | if (cached_has_bits & 0x00000100u) { |
5993 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->needs_reregister(), output); |
5994 | 0 | } |
5995 | | |
5996 | | // optional bool needs_full_tablet_report = 4 [default = false]; |
5997 | 0 | if (cached_has_bits & 0x00000200u) { |
5998 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->needs_full_tablet_report(), output); |
5999 | 0 | } |
6000 | | |
6001 | | // optional .yb.master.TabletReportUpdatesPB tablet_report = 5; |
6002 | 0 | if (cached_has_bits & 0x00000008u) { |
6003 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6004 | 0 | 5, *this->tablet_report_, output); |
6005 | 0 | } |
6006 | | |
6007 | | // optional bool leader_master = 6; |
6008 | 0 | if (cached_has_bits & 0x00000400u) { |
6009 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->leader_master(), output); |
6010 | 0 | } |
6011 | | |
6012 | | // optional .yb.consensus.RaftConfigPB master_config = 7; |
6013 | 0 | if (cached_has_bits & 0x00000010u) { |
6014 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6015 | 0 | 7, *this->master_config_, output); |
6016 | 0 | } |
6017 | | |
6018 | | // repeated .yb.master.TSInformationPB tservers = 8; |
6019 | 0 | for (unsigned int i = 0, |
6020 | 0 | n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) { |
6021 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6022 | 0 | 8, this->tservers(static_cast<int>(i)), output); |
6023 | 0 | } |
6024 | | |
6025 | | // optional string cluster_uuid = 9; |
6026 | 0 | if (cached_has_bits & 0x00000001u) { |
6027 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6028 | 0 | this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()), |
6029 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6030 | 0 | "yb.master.TSHeartbeatResponsePB.cluster_uuid"); |
6031 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6032 | 0 | 9, this->cluster_uuid(), output); |
6033 | 0 | } |
6034 | | |
6035 | | // optional uint64 ysql_catalog_version = 10; |
6036 | 0 | if (cached_has_bits & 0x00001000u) { |
6037 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->ysql_catalog_version(), output); |
6038 | 0 | } |
6039 | | |
6040 | | // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11; |
6041 | 0 | if (cached_has_bits & 0x00000020u) { |
6042 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6043 | 0 | 11, *this->universe_key_registry_, output); |
6044 | 0 | } |
6045 | | |
6046 | | // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12; |
6047 | 0 | if (cached_has_bits & 0x00000040u) { |
6048 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6049 | 0 | 12, *this->consumer_registry_, output); |
6050 | 0 | } |
6051 | | |
6052 | | // optional int32 cluster_config_version = 13; |
6053 | 0 | if (cached_has_bits & 0x00000800u) { |
6054 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->cluster_config_version(), output); |
6055 | 0 | } |
6056 | | |
6057 | | // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14; |
6058 | 0 | if (cached_has_bits & 0x00002000u) { |
6059 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(14, this->deprecated_tablet_split_size_threshold_bytes(), output); |
6060 | 0 | } |
6061 | | |
6062 | | // optional uint64 ysql_last_breaking_catalog_version = 15; |
6063 | 0 | if (cached_has_bits & 0x00004000u) { |
6064 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->ysql_last_breaking_catalog_version(), output); |
6065 | 0 | } |
6066 | | |
6067 | | // optional int32 tablet_report_limit = 16; |
6068 | 0 | if (cached_has_bits & 0x00010000u) { |
6069 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->tablet_report_limit(), output); |
6070 | 0 | } |
6071 | | |
6072 | | // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17; |
6073 | 0 | if (cached_has_bits & 0x00000080u) { |
6074 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6075 | 0 | 17, *this->snapshots_info_, output); |
6076 | 0 | } |
6077 | | |
6078 | | // optional uint64 transaction_tables_version = 18; |
6079 | 0 | if (cached_has_bits & 0x00008000u) { |
6080 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->transaction_tables_version(), output); |
6081 | 0 | } |
6082 | |
|
6083 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6084 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6085 | 0 | _internal_metadata_.unknown_fields(), output); |
6086 | 0 | } |
6087 | | // @@protoc_insertion_point(serialize_end:yb.master.TSHeartbeatResponsePB) |
6088 | 0 | } |
6089 | | |
6090 | | ::google::protobuf::uint8* TSHeartbeatResponsePB::InternalSerializeWithCachedSizesToArray( |
6091 | 5.17M | bool deterministic, ::google::protobuf::uint8* target) const { |
6092 | 5.17M | (void)deterministic; // Unused |
6093 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSHeartbeatResponsePB) |
6094 | 5.17M | ::google::protobuf::uint32 cached_has_bits = 0; |
6095 | 5.17M | (void) cached_has_bits; |
6096 | | |
6097 | 5.17M | cached_has_bits = _has_bits_[0]; |
6098 | | // optional .yb.master.MasterErrorPB error = 1; |
6099 | 5.17M | if (cached_has_bits & 0x00000002u) { |
6100 | 368k | target = ::google::protobuf::internal::WireFormatLite:: |
6101 | 368k | InternalWriteMessageToArray( |
6102 | 368k | 1, *this->error_, deterministic, target); |
6103 | 368k | } |
6104 | | |
6105 | | // optional .yb.NodeInstancePB master_instance = 2; |
6106 | 5.17M | if (cached_has_bits & 0x00000004u) { |
6107 | 4.79M | target = ::google::protobuf::internal::WireFormatLite:: |
6108 | 4.79M | InternalWriteMessageToArray( |
6109 | 4.79M | 2, *this->master_instance_, deterministic, target); |
6110 | 4.79M | } |
6111 | | |
6112 | | // optional bool needs_reregister = 3 [default = false]; |
6113 | 5.17M | if (cached_has_bits & 0x00000100u) { |
6114 | 201 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->needs_reregister(), target); |
6115 | 201 | } |
6116 | | |
6117 | | // optional bool needs_full_tablet_report = 4 [default = false]; |
6118 | 5.17M | if (cached_has_bits & 0x00000200u) { |
6119 | 8.22k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->needs_full_tablet_report(), target); |
6120 | 8.22k | } |
6121 | | |
6122 | | // optional .yb.master.TabletReportUpdatesPB tablet_report = 5; |
6123 | 5.17M | if (cached_has_bits & 0x00000008u) { |
6124 | 4.80M | target = ::google::protobuf::internal::WireFormatLite:: |
6125 | 4.80M | InternalWriteMessageToArray( |
6126 | 4.80M | 5, *this->tablet_report_, deterministic, target); |
6127 | 4.80M | } |
6128 | | |
6129 | | // optional bool leader_master = 6; |
6130 | 5.17M | if (cached_has_bits & 0x00000400u) { |
6131 | 4.79M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->leader_master(), target); |
6132 | 4.79M | } |
6133 | | |
6134 | | // optional .yb.consensus.RaftConfigPB master_config = 7; |
6135 | 5.17M | if (cached_has_bits & 0x00000010u) { |
6136 | 223 | target = ::google::protobuf::internal::WireFormatLite:: |
6137 | 223 | InternalWriteMessageToArray( |
6138 | 223 | 7, *this->master_config_, deterministic, target); |
6139 | 223 | } |
6140 | | |
6141 | | // repeated .yb.master.TSInformationPB tservers = 8; |
6142 | 5.17M | for (unsigned int i = 0, |
6143 | 22.7M | n = static_cast<unsigned int>(this->tservers_size()); i < n; i++17.6M ) { |
6144 | 17.6M | target = ::google::protobuf::internal::WireFormatLite:: |
6145 | 17.6M | InternalWriteMessageToArray( |
6146 | 17.6M | 8, this->tservers(static_cast<int>(i)), deterministic, target); |
6147 | 17.6M | } |
6148 | | |
6149 | | // optional string cluster_uuid = 9; |
6150 | 5.17M | if (cached_has_bits & 0x00000001u) { |
6151 | 8.17k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6152 | 8.17k | this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()), |
6153 | 8.17k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6154 | 8.17k | "yb.master.TSHeartbeatResponsePB.cluster_uuid"); |
6155 | 8.17k | target = |
6156 | 8.17k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6157 | 8.17k | 9, this->cluster_uuid(), target); |
6158 | 8.17k | } |
6159 | | |
6160 | | // optional uint64 ysql_catalog_version = 10; |
6161 | 5.17M | if (cached_has_bits & 0x00001000u) { |
6162 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->ysql_catalog_version(), target); |
6163 | 4.80M | } |
6164 | | |
6165 | | // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11; |
6166 | 5.17M | if (cached_has_bits & 0x00000020u) { |
6167 | 46 | target = ::google::protobuf::internal::WireFormatLite:: |
6168 | 46 | InternalWriteMessageToArray( |
6169 | 46 | 11, *this->universe_key_registry_, deterministic, target); |
6170 | 46 | } |
6171 | | |
6172 | | // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12; |
6173 | 5.17M | if (cached_has_bits & 0x00000040u) { |
6174 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6175 | 0 | InternalWriteMessageToArray( |
6176 | 0 | 12, *this->consumer_registry_, deterministic, target); |
6177 | 0 | } |
6178 | | |
6179 | | // optional int32 cluster_config_version = 13; |
6180 | 5.17M | if (cached_has_bits & 0x00000800u) { |
6181 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->cluster_config_version(), target); |
6182 | 4.80M | } |
6183 | | |
6184 | | // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14; |
6185 | 5.17M | if (cached_has_bits & 0x00002000u) { |
6186 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(14, this->deprecated_tablet_split_size_threshold_bytes(), target); |
6187 | 0 | } |
6188 | | |
6189 | | // optional uint64 ysql_last_breaking_catalog_version = 15; |
6190 | 5.17M | if (cached_has_bits & 0x00004000u) { |
6191 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->ysql_last_breaking_catalog_version(), target); |
6192 | 4.80M | } |
6193 | | |
6194 | | // optional int32 tablet_report_limit = 16; |
6195 | 5.17M | if (cached_has_bits & 0x00010000u) { |
6196 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->tablet_report_limit(), target); |
6197 | 4.80M | } |
6198 | | |
6199 | | // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17; |
6200 | 5.17M | if (cached_has_bits & 0x00000080u) { |
6201 | 4.80M | target = ::google::protobuf::internal::WireFormatLite:: |
6202 | 4.80M | InternalWriteMessageToArray( |
6203 | 4.80M | 17, *this->snapshots_info_, deterministic, target); |
6204 | 4.80M | } |
6205 | | |
6206 | | // optional uint64 transaction_tables_version = 18; |
6207 | 5.17M | if (cached_has_bits & 0x00008000u) { |
6208 | 4.80M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(18, this->transaction_tables_version(), target); |
6209 | 4.80M | } |
6210 | | |
6211 | 5.17M | if (_internal_metadata_.have_unknown_fields()) { |
6212 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6213 | 0 | _internal_metadata_.unknown_fields(), target); |
6214 | 0 | } |
6215 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSHeartbeatResponsePB) |
6216 | 5.17M | return target; |
6217 | 5.17M | } |
6218 | | |
6219 | 10.3M | size_t TSHeartbeatResponsePB::ByteSizeLong() const { |
6220 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSHeartbeatResponsePB) |
6221 | 10.3M | size_t total_size = 0; |
6222 | | |
6223 | 10.3M | if (_internal_metadata_.have_unknown_fields()) { |
6224 | 0 | total_size += |
6225 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6226 | 0 | _internal_metadata_.unknown_fields()); |
6227 | 0 | } |
6228 | | // repeated .yb.master.TSInformationPB tservers = 8; |
6229 | 10.3M | { |
6230 | 10.3M | unsigned int count = static_cast<unsigned int>(this->tservers_size()); |
6231 | 10.3M | total_size += 1UL * count; |
6232 | 45.5M | for (unsigned int i = 0; i < count; i++35.2M ) { |
6233 | 35.2M | total_size += |
6234 | 35.2M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6235 | 35.2M | this->tservers(static_cast<int>(i))); |
6236 | 35.2M | } |
6237 | 10.3M | } |
6238 | | |
6239 | 10.3M | if (_has_bits_[0 / 32] & 255u) { |
6240 | | // optional string cluster_uuid = 9; |
6241 | 10.3M | if (has_cluster_uuid()) { |
6242 | 16.3k | total_size += 1 + |
6243 | 16.3k | ::google::protobuf::internal::WireFormatLite::StringSize( |
6244 | 16.3k | this->cluster_uuid()); |
6245 | 16.3k | } |
6246 | | |
6247 | | // optional .yb.master.MasterErrorPB error = 1; |
6248 | 10.3M | if (has_error()) { |
6249 | 736k | total_size += 1 + |
6250 | 736k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6251 | 736k | *this->error_); |
6252 | 736k | } |
6253 | | |
6254 | | // optional .yb.NodeInstancePB master_instance = 2; |
6255 | 10.3M | if (has_master_instance()) { |
6256 | 9.60M | total_size += 1 + |
6257 | 9.60M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6258 | 9.60M | *this->master_instance_); |
6259 | 9.60M | } |
6260 | | |
6261 | | // optional .yb.master.TabletReportUpdatesPB tablet_report = 5; |
6262 | 10.3M | if (has_tablet_report()) { |
6263 | 9.60M | total_size += 1 + |
6264 | 9.60M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6265 | 9.60M | *this->tablet_report_); |
6266 | 9.60M | } |
6267 | | |
6268 | | // optional .yb.consensus.RaftConfigPB master_config = 7; |
6269 | 10.3M | if (has_master_config()) { |
6270 | 446 | total_size += 1 + |
6271 | 446 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6272 | 446 | *this->master_config_); |
6273 | 446 | } |
6274 | | |
6275 | | // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11; |
6276 | 10.3M | if (has_universe_key_registry()) { |
6277 | 92 | total_size += 1 + |
6278 | 92 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6279 | 92 | *this->universe_key_registry_); |
6280 | 92 | } |
6281 | | |
6282 | | // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12; |
6283 | 10.3M | if (has_consumer_registry()) { |
6284 | 0 | total_size += 1 + |
6285 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6286 | 0 | *this->consumer_registry_); |
6287 | 0 | } |
6288 | | |
6289 | | // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17; |
6290 | 10.3M | if (has_snapshots_info()) { |
6291 | 9.61M | total_size += 2 + |
6292 | 9.61M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6293 | 9.61M | *this->snapshots_info_); |
6294 | 9.61M | } |
6295 | | |
6296 | 10.3M | } |
6297 | 10.3M | if (_has_bits_[8 / 32] & 65280u) { |
6298 | | // optional bool needs_reregister = 3 [default = false]; |
6299 | 9.60M | if (has_needs_reregister()) { |
6300 | 402 | total_size += 1 + 1; |
6301 | 402 | } |
6302 | | |
6303 | | // optional bool needs_full_tablet_report = 4 [default = false]; |
6304 | 9.60M | if (has_needs_full_tablet_report()) { |
6305 | 16.4k | total_size += 1 + 1; |
6306 | 16.4k | } |
6307 | | |
6308 | | // optional bool leader_master = 6; |
6309 | 9.60M | if (has_leader_master()9.60M ) { |
6310 | 9.60M | total_size += 1 + 1; |
6311 | 9.60M | } |
6312 | | |
6313 | | // optional int32 cluster_config_version = 13; |
6314 | 9.60M | if (has_cluster_config_version()9.60M ) { |
6315 | 9.60M | total_size += 1 + |
6316 | 9.60M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
6317 | 9.60M | this->cluster_config_version()); |
6318 | 9.60M | } |
6319 | | |
6320 | | // optional uint64 ysql_catalog_version = 10; |
6321 | 9.60M | if (has_ysql_catalog_version()9.60M ) { |
6322 | 9.60M | total_size += 1 + |
6323 | 9.60M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6324 | 9.60M | this->ysql_catalog_version()); |
6325 | 9.60M | } |
6326 | | |
6327 | | // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14; |
6328 | 9.60M | if (has_deprecated_tablet_split_size_threshold_bytes()) { |
6329 | 0 | total_size += 1 + |
6330 | 0 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
6331 | 0 | this->deprecated_tablet_split_size_threshold_bytes()); |
6332 | 0 | } |
6333 | | |
6334 | | // optional uint64 ysql_last_breaking_catalog_version = 15; |
6335 | 9.60M | if (has_ysql_last_breaking_catalog_version()9.60M ) { |
6336 | 9.60M | total_size += 1 + |
6337 | 9.60M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6338 | 9.60M | this->ysql_last_breaking_catalog_version()); |
6339 | 9.60M | } |
6340 | | |
6341 | | // optional uint64 transaction_tables_version = 18; |
6342 | 9.60M | if (has_transaction_tables_version()9.60M ) { |
6343 | 9.60M | total_size += 2 + |
6344 | 9.60M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6345 | 9.60M | this->transaction_tables_version()); |
6346 | 9.60M | } |
6347 | | |
6348 | 9.60M | } |
6349 | | // optional int32 tablet_report_limit = 16; |
6350 | 10.3M | if (has_tablet_report_limit()) { |
6351 | 9.60M | total_size += 2 + |
6352 | 9.60M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
6353 | 9.60M | this->tablet_report_limit()); |
6354 | 9.60M | } |
6355 | | |
6356 | 10.3M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6357 | 10.3M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6358 | 10.3M | _cached_size_ = cached_size; |
6359 | 10.3M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6360 | 10.3M | return total_size; |
6361 | 10.3M | } |
6362 | | |
6363 | 0 | void TSHeartbeatResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
6364 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSHeartbeatResponsePB) |
6365 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6366 | 0 | const TSHeartbeatResponsePB* source = |
6367 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSHeartbeatResponsePB>( |
6368 | 0 | &from); |
6369 | 0 | if (source == NULL) { |
6370 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSHeartbeatResponsePB) |
6371 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6372 | 0 | } else { |
6373 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSHeartbeatResponsePB) |
6374 | 0 | MergeFrom(*source); |
6375 | 0 | } |
6376 | 0 | } |
6377 | | |
6378 | 0 | void TSHeartbeatResponsePB::MergeFrom(const TSHeartbeatResponsePB& from) { |
6379 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSHeartbeatResponsePB) |
6380 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6381 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6382 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6383 | 0 | (void) cached_has_bits; |
6384 | |
|
6385 | 0 | tservers_.MergeFrom(from.tservers_); |
6386 | 0 | cached_has_bits = from._has_bits_[0]; |
6387 | 0 | if (cached_has_bits & 255u) { |
6388 | 0 | if (cached_has_bits & 0x00000001u) { |
6389 | 0 | set_has_cluster_uuid(); |
6390 | 0 | cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_); |
6391 | 0 | } |
6392 | 0 | if (cached_has_bits & 0x00000002u) { |
6393 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
6394 | 0 | } |
6395 | 0 | if (cached_has_bits & 0x00000004u) { |
6396 | 0 | mutable_master_instance()->::yb::NodeInstancePB::MergeFrom(from.master_instance()); |
6397 | 0 | } |
6398 | 0 | if (cached_has_bits & 0x00000008u) { |
6399 | 0 | mutable_tablet_report()->::yb::master::TabletReportUpdatesPB::MergeFrom(from.tablet_report()); |
6400 | 0 | } |
6401 | 0 | if (cached_has_bits & 0x00000010u) { |
6402 | 0 | mutable_master_config()->::yb::consensus::RaftConfigPB::MergeFrom(from.master_config()); |
6403 | 0 | } |
6404 | 0 | if (cached_has_bits & 0x00000020u) { |
6405 | 0 | mutable_universe_key_registry()->::yb::encryption::UniverseKeyRegistryPB::MergeFrom(from.universe_key_registry()); |
6406 | 0 | } |
6407 | 0 | if (cached_has_bits & 0x00000040u) { |
6408 | 0 | mutable_consumer_registry()->::yb::cdc::ConsumerRegistryPB::MergeFrom(from.consumer_registry()); |
6409 | 0 | } |
6410 | 0 | if (cached_has_bits & 0x00000080u) { |
6411 | 0 | mutable_snapshots_info()->::yb::master::TSSnapshotsInfoPB::MergeFrom(from.snapshots_info()); |
6412 | 0 | } |
6413 | 0 | } |
6414 | 0 | if (cached_has_bits & 65280u) { |
6415 | 0 | if (cached_has_bits & 0x00000100u) { |
6416 | 0 | needs_reregister_ = from.needs_reregister_; |
6417 | 0 | } |
6418 | 0 | if (cached_has_bits & 0x00000200u) { |
6419 | 0 | needs_full_tablet_report_ = from.needs_full_tablet_report_; |
6420 | 0 | } |
6421 | 0 | if (cached_has_bits & 0x00000400u) { |
6422 | 0 | leader_master_ = from.leader_master_; |
6423 | 0 | } |
6424 | 0 | if (cached_has_bits & 0x00000800u) { |
6425 | 0 | cluster_config_version_ = from.cluster_config_version_; |
6426 | 0 | } |
6427 | 0 | if (cached_has_bits & 0x00001000u) { |
6428 | 0 | ysql_catalog_version_ = from.ysql_catalog_version_; |
6429 | 0 | } |
6430 | 0 | if (cached_has_bits & 0x00002000u) { |
6431 | 0 | deprecated_tablet_split_size_threshold_bytes_ = from.deprecated_tablet_split_size_threshold_bytes_; |
6432 | 0 | } |
6433 | 0 | if (cached_has_bits & 0x00004000u) { |
6434 | 0 | ysql_last_breaking_catalog_version_ = from.ysql_last_breaking_catalog_version_; |
6435 | 0 | } |
6436 | 0 | if (cached_has_bits & 0x00008000u) { |
6437 | 0 | transaction_tables_version_ = from.transaction_tables_version_; |
6438 | 0 | } |
6439 | 0 | _has_bits_[0] |= cached_has_bits; |
6440 | 0 | } |
6441 | 0 | if (cached_has_bits & 0x00010000u) { |
6442 | 0 | set_tablet_report_limit(from.tablet_report_limit()); |
6443 | 0 | } |
6444 | 0 | } |
6445 | | |
6446 | 0 | void TSHeartbeatResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
6447 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSHeartbeatResponsePB) |
6448 | 0 | if (&from == this) return; |
6449 | 0 | Clear(); |
6450 | 0 | MergeFrom(from); |
6451 | 0 | } |
6452 | | |
6453 | 0 | void TSHeartbeatResponsePB::CopyFrom(const TSHeartbeatResponsePB& from) { |
6454 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSHeartbeatResponsePB) |
6455 | 0 | if (&from == this) return; |
6456 | 0 | Clear(); |
6457 | 0 | MergeFrom(from); |
6458 | 0 | } |
6459 | | |
6460 | 10.4M | bool TSHeartbeatResponsePB::IsInitialized() const { |
6461 | 10.4M | if (!::google::protobuf::internal::AllAreInitialized(this->tservers())) return false0 ; |
6462 | 10.4M | if (has_error()) { |
6463 | 766k | if (!this->error_->IsInitialized()) return false0 ; |
6464 | 766k | } |
6465 | 10.4M | if (has_master_instance()) { |
6466 | 9.63M | if (!this->master_instance_->IsInitialized()) return false0 ; |
6467 | 9.63M | } |
6468 | 10.4M | if (has_tablet_report()) { |
6469 | 9.63M | if (!this->tablet_report_->IsInitialized()) return false0 ; |
6470 | 9.63M | } |
6471 | 10.4M | if (has_master_config()) { |
6472 | 446 | if (!this->master_config_->IsInitialized()) return false0 ; |
6473 | 446 | } |
6474 | 10.4M | if (has_consumer_registry()) { |
6475 | 0 | if (!this->consumer_registry_->IsInitialized()) return false; |
6476 | 0 | } |
6477 | 10.4M | return true; |
6478 | 10.4M | } |
6479 | | |
6480 | 4.83M | void TSHeartbeatResponsePB::Swap(TSHeartbeatResponsePB* other) { |
6481 | 4.83M | if (other == this) return0 ; |
6482 | 4.83M | InternalSwap(other); |
6483 | 4.83M | } |
6484 | 4.83M | void TSHeartbeatResponsePB::InternalSwap(TSHeartbeatResponsePB* other) { |
6485 | 4.83M | using std::swap; |
6486 | 4.83M | tservers_.InternalSwap(&other->tservers_); |
6487 | 4.83M | cluster_uuid_.Swap(&other->cluster_uuid_); |
6488 | 4.83M | swap(error_, other->error_); |
6489 | 4.83M | swap(master_instance_, other->master_instance_); |
6490 | 4.83M | swap(tablet_report_, other->tablet_report_); |
6491 | 4.83M | swap(master_config_, other->master_config_); |
6492 | 4.83M | swap(universe_key_registry_, other->universe_key_registry_); |
6493 | 4.83M | swap(consumer_registry_, other->consumer_registry_); |
6494 | 4.83M | swap(snapshots_info_, other->snapshots_info_); |
6495 | 4.83M | swap(needs_reregister_, other->needs_reregister_); |
6496 | 4.83M | swap(needs_full_tablet_report_, other->needs_full_tablet_report_); |
6497 | 4.83M | swap(leader_master_, other->leader_master_); |
6498 | 4.83M | swap(cluster_config_version_, other->cluster_config_version_); |
6499 | 4.83M | swap(ysql_catalog_version_, other->ysql_catalog_version_); |
6500 | 4.83M | swap(deprecated_tablet_split_size_threshold_bytes_, other->deprecated_tablet_split_size_threshold_bytes_); |
6501 | 4.83M | swap(ysql_last_breaking_catalog_version_, other->ysql_last_breaking_catalog_version_); |
6502 | 4.83M | swap(transaction_tables_version_, other->transaction_tables_version_); |
6503 | 4.83M | swap(tablet_report_limit_, other->tablet_report_limit_); |
6504 | 4.83M | swap(_has_bits_[0], other->_has_bits_[0]); |
6505 | 4.83M | _internal_metadata_.Swap(&other->_internal_metadata_); |
6506 | 4.83M | swap(_cached_size_, other->_cached_size_); |
6507 | 4.83M | } |
6508 | | |
6509 | 448 | ::google::protobuf::Metadata TSHeartbeatResponsePB::GetMetadata() const { |
6510 | 448 | protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce(); |
6511 | 448 | return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages]; |
6512 | 448 | } |
6513 | | |
6514 | | |
6515 | | // @@protoc_insertion_point(namespace_scope) |
6516 | | } // namespace master |
6517 | | } // namespace yb |
6518 | | |
6519 | | // @@protoc_insertion_point(global_scope) |