/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/histogram.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/util/histogram.proto |
3 | | |
4 | | #include "yb/util/histogram.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 | | class HistogramSnapshotPBDefaultTypeInternal { |
25 | | public: |
26 | | ::google::protobuf::internal::ExplicitlyConstructed<HistogramSnapshotPB> |
27 | | _instance; |
28 | | } _HistogramSnapshotPB_default_instance_; |
29 | | class HistogramSnapshotsListPBDefaultTypeInternal { |
30 | | public: |
31 | | ::google::protobuf::internal::ExplicitlyConstructed<HistogramSnapshotsListPB> |
32 | | _instance; |
33 | | } _HistogramSnapshotsListPB_default_instance_; |
34 | | } // namespace yb |
35 | | namespace protobuf_yb_2futil_2fhistogram_2eproto { |
36 | 20.6k | void InitDefaultsHistogramSnapshotPBImpl() { |
37 | 20.6k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
38 | | |
39 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
40 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
41 | | #else |
42 | 20.6k | ::google::protobuf::internal::InitProtobufDefaults(); |
43 | 20.6k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
44 | 20.6k | { |
45 | 20.6k | void* ptr = &::yb::_HistogramSnapshotPB_default_instance_; |
46 | 20.6k | new (ptr) ::yb::HistogramSnapshotPB(); |
47 | 20.6k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
48 | 20.6k | } |
49 | 20.6k | ::yb::HistogramSnapshotPB::InitAsDefaultInstance(); |
50 | 20.6k | } |
51 | | |
52 | 4.96M | void InitDefaultsHistogramSnapshotPB() { |
53 | 4.96M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
54 | 4.96M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHistogramSnapshotPBImpl); |
55 | 4.96M | } |
56 | | |
57 | 20.6k | void InitDefaultsHistogramSnapshotsListPBImpl() { |
58 | 20.6k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
59 | | |
60 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
61 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
62 | | #else |
63 | 20.6k | ::google::protobuf::internal::InitProtobufDefaults(); |
64 | 20.6k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
65 | 20.6k | protobuf_yb_2futil_2fhistogram_2eproto::InitDefaultsHistogramSnapshotPB(); |
66 | 20.6k | { |
67 | 20.6k | void* ptr = &::yb::_HistogramSnapshotsListPB_default_instance_; |
68 | 20.6k | new (ptr) ::yb::HistogramSnapshotsListPB(); |
69 | 20.6k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
70 | 20.6k | } |
71 | 20.6k | ::yb::HistogramSnapshotsListPB::InitAsDefaultInstance(); |
72 | 20.6k | } |
73 | | |
74 | 20.6k | void InitDefaultsHistogramSnapshotsListPB() { |
75 | 20.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
76 | 20.6k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHistogramSnapshotsListPBImpl); |
77 | 20.6k | } |
78 | | |
79 | | ::google::protobuf::Metadata file_level_metadata[2]; |
80 | | |
81 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
82 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, _has_bits_), |
83 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, _internal_metadata_), |
84 | | ~0u, // no _extensions_ |
85 | | ~0u, // no _oneof_case_ |
86 | | ~0u, // no _weak_field_map_ |
87 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, type_), |
88 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, name_), |
89 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, description_), |
90 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, level_), |
91 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, unit_), |
92 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, label_), |
93 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, max_trackable_value_), |
94 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, num_significant_digits_), |
95 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, total_count_), |
96 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, total_sum_), |
97 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, min_), |
98 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, mean_), |
99 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, percentile_75_), |
100 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, percentile_95_), |
101 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, percentile_99_), |
102 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, percentile_99_9_), |
103 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, percentile_99_99_), |
104 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, max_), |
105 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, values_), |
106 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotPB, counts_), |
107 | | 0, |
108 | | 1, |
109 | | 2, |
110 | | 5, |
111 | | 3, |
112 | | 4, |
113 | | 6, |
114 | | 17, |
115 | | 7, |
116 | | 16, |
117 | | 8, |
118 | | 9, |
119 | | 10, |
120 | | 11, |
121 | | 12, |
122 | | 13, |
123 | | 14, |
124 | | 15, |
125 | | ~0u, |
126 | | ~0u, |
127 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotsListPB, _has_bits_), |
128 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotsListPB, _internal_metadata_), |
129 | | ~0u, // no _extensions_ |
130 | | ~0u, // no _oneof_case_ |
131 | | ~0u, // no _weak_field_map_ |
132 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::HistogramSnapshotsListPB, histograms_), |
133 | | ~0u, |
134 | | }; |
135 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
136 | | { 0, 25, sizeof(::yb::HistogramSnapshotPB)}, |
137 | | { 45, 51, sizeof(::yb::HistogramSnapshotsListPB)}, |
138 | | }; |
139 | | |
140 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
141 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_HistogramSnapshotPB_default_instance_), |
142 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_HistogramSnapshotsListPB_default_instance_), |
143 | | }; |
144 | | |
145 | 251 | void protobuf_AssignDescriptors() { |
146 | 251 | AddDescriptors(); |
147 | 251 | ::google::protobuf::MessageFactory* factory = NULL; |
148 | 251 | AssignDescriptors( |
149 | 251 | "yb/util/histogram.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
150 | 251 | file_level_metadata, NULL, NULL); |
151 | 251 | } |
152 | | |
153 | 59.0M | void protobuf_AssignDescriptorsOnce() { |
154 | 59.0M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
155 | 59.0M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
156 | 59.0M | } |
157 | | |
158 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
159 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
160 | 0 | protobuf_AssignDescriptorsOnce(); |
161 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); |
162 | 0 | } |
163 | | |
164 | 20.6k | void AddDescriptorsImpl() { |
165 | 20.6k | InitDefaults(); |
166 | 20.6k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
167 | 20.6k | "\n\027yb/util/histogram.proto\022\002yb\"\237\003\n\023Histog" |
168 | 20.6k | "ramSnapshotPB\022\014\n\004type\030\001 \002(\t\022\014\n\004name\030\002 \002(" |
169 | 20.6k | "\t\022\023\n\013description\030\003 \001(\t\022\r\n\005level\030\024 \001(\t\022\014\n" |
170 | 20.6k | "\004unit\030\004 \002(\t\022\r\n\005label\030\023 \001(\t\022\033\n\023max_tracka" |
171 | 20.6k | "ble_value\030\005 \002(\004\022\036\n\026num_significant_digit" |
172 | 20.6k | "s\030\006 \002(\005\022\023\n\013total_count\030\007 \002(\004\022\021\n\ttotal_su" |
173 | 20.6k | "m\030\022 \001(\004\022\013\n\003min\030\010 \002(\004\022\014\n\004mean\030\t \002(\001\022\025\n\rpe" |
174 | 20.6k | "rcentile_75\030\n \002(\004\022\025\n\rpercentile_95\030\013 \002(\004" |
175 | 20.6k | "\022\025\n\rpercentile_99\030\014 \002(\004\022\027\n\017percentile_99" |
176 | 20.6k | "_9\030\r \002(\004\022\030\n\020percentile_99_99\030\016 \002(\004\022\013\n\003ma" |
177 | 20.6k | "x\030\017 \002(\004\022\022\n\006values\030\020 \003(\004B\002\020\001\022\022\n\006counts\030\021 " |
178 | 20.6k | "\003(\004B\002\020\001\"G\n\030HistogramSnapshotsListPB\022+\n\nh" |
179 | 20.6k | "istograms\030\001 \003(\0132\027.yb.HistogramSnapshotPB" |
180 | 20.6k | "B\010\n\006org.yb" |
181 | 20.6k | }; |
182 | 20.6k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
183 | 20.6k | descriptor, 530); |
184 | 20.6k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
185 | 20.6k | "yb/util/histogram.proto", &protobuf_RegisterTypes); |
186 | 20.6k | } |
187 | | |
188 | 20.9k | void AddDescriptors() { |
189 | 20.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
190 | 20.9k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
191 | 20.9k | } |
192 | | // Force AddDescriptors() to be called at dynamic initialization time. |
193 | | struct StaticDescriptorInitializer { |
194 | 20.6k | StaticDescriptorInitializer() { |
195 | 20.6k | AddDescriptors(); |
196 | 20.6k | } |
197 | | } static_descriptor_initializer; |
198 | | } // namespace protobuf_yb_2futil_2fhistogram_2eproto |
199 | | namespace yb { |
200 | | |
201 | | // =================================================================== |
202 | | |
203 | 20.6k | void HistogramSnapshotPB::InitAsDefaultInstance() { |
204 | 20.6k | } |
205 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
206 | | const int HistogramSnapshotPB::kTypeFieldNumber; |
207 | | const int HistogramSnapshotPB::kNameFieldNumber; |
208 | | const int HistogramSnapshotPB::kDescriptionFieldNumber; |
209 | | const int HistogramSnapshotPB::kLevelFieldNumber; |
210 | | const int HistogramSnapshotPB::kUnitFieldNumber; |
211 | | const int HistogramSnapshotPB::kLabelFieldNumber; |
212 | | const int HistogramSnapshotPB::kMaxTrackableValueFieldNumber; |
213 | | const int HistogramSnapshotPB::kNumSignificantDigitsFieldNumber; |
214 | | const int HistogramSnapshotPB::kTotalCountFieldNumber; |
215 | | const int HistogramSnapshotPB::kTotalSumFieldNumber; |
216 | | const int HistogramSnapshotPB::kMinFieldNumber; |
217 | | const int HistogramSnapshotPB::kMeanFieldNumber; |
218 | | const int HistogramSnapshotPB::kPercentile75FieldNumber; |
219 | | const int HistogramSnapshotPB::kPercentile95FieldNumber; |
220 | | const int HistogramSnapshotPB::kPercentile99FieldNumber; |
221 | | const int HistogramSnapshotPB::kPercentile999FieldNumber; |
222 | | const int HistogramSnapshotPB::kPercentile9999FieldNumber; |
223 | | const int HistogramSnapshotPB::kMaxFieldNumber; |
224 | | const int HistogramSnapshotPB::kValuesFieldNumber; |
225 | | const int HistogramSnapshotPB::kCountsFieldNumber; |
226 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
227 | | |
228 | | HistogramSnapshotPB::HistogramSnapshotPB() |
229 | 4.94M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
230 | 4.92M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
231 | 4.92M | ::protobuf_yb_2futil_2fhistogram_2eproto::InitDefaultsHistogramSnapshotPB(); |
232 | 4.92M | } |
233 | 4.94M | SharedCtor(); |
234 | | // @@protoc_insertion_point(constructor:yb.HistogramSnapshotPB) |
235 | 4.94M | } |
236 | | HistogramSnapshotPB::HistogramSnapshotPB(const HistogramSnapshotPB& from) |
237 | | : ::google::protobuf::Message(), |
238 | | _internal_metadata_(NULL), |
239 | | _has_bits_(from._has_bits_), |
240 | | _cached_size_(0), |
241 | | values_(from.values_), |
242 | 0 | counts_(from.counts_) { |
243 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
244 | 0 | type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
245 | 0 | if (from.has_type()) { |
246 | 0 | type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); |
247 | 0 | } |
248 | 0 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
249 | 0 | if (from.has_name()) { |
250 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
251 | 0 | } |
252 | 0 | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
253 | 0 | if (from.has_description()) { |
254 | 0 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
255 | 0 | } |
256 | 0 | unit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
257 | 0 | if (from.has_unit()) { |
258 | 0 | unit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unit_); |
259 | 0 | } |
260 | 0 | label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
261 | 0 | if (from.has_label()) { |
262 | 0 | label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); |
263 | 0 | } |
264 | 0 | level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
265 | 0 | if (from.has_level()) { |
266 | 0 | level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_); |
267 | 0 | } |
268 | 0 | ::memcpy(&max_trackable_value_, &from.max_trackable_value_, |
269 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&num_significant_digits_) - |
270 | 0 | reinterpret_cast<char*>(&max_trackable_value_)) + sizeof(num_significant_digits_)); |
271 | | // @@protoc_insertion_point(copy_constructor:yb.HistogramSnapshotPB) |
272 | 0 | } |
273 | | |
274 | 4.94M | void HistogramSnapshotPB::SharedCtor() { |
275 | 4.94M | _cached_size_ = 0; |
276 | 4.94M | type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
277 | 4.94M | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
278 | 4.94M | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
279 | 4.94M | unit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
280 | 4.94M | label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
281 | 4.94M | level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
282 | 4.94M | ::memset(&max_trackable_value_, 0, static_cast<size_t>( |
283 | 4.94M | reinterpret_cast<char*>(&num_significant_digits_) - |
284 | 4.94M | reinterpret_cast<char*>(&max_trackable_value_)) + sizeof(num_significant_digits_)); |
285 | 4.94M | } |
286 | | |
287 | 4.92M | HistogramSnapshotPB::~HistogramSnapshotPB() { |
288 | | // @@protoc_insertion_point(destructor:yb.HistogramSnapshotPB) |
289 | 4.92M | SharedDtor(); |
290 | 4.92M | } |
291 | | |
292 | 4.92M | void HistogramSnapshotPB::SharedDtor() { |
293 | 4.92M | type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
294 | 4.92M | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
295 | 4.92M | description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
296 | 4.92M | unit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
297 | 4.92M | label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
298 | 4.92M | level_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
299 | 4.92M | } |
300 | | |
301 | 0 | void HistogramSnapshotPB::SetCachedSize(int size) const { |
302 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
303 | 0 | _cached_size_ = size; |
304 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
305 | 0 | } |
306 | 0 | const ::google::protobuf::Descriptor* HistogramSnapshotPB::descriptor() { |
307 | 0 | ::protobuf_yb_2futil_2fhistogram_2eproto::protobuf_AssignDescriptorsOnce(); |
308 | 0 | return ::protobuf_yb_2futil_2fhistogram_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
309 | 0 | } |
310 | | |
311 | 0 | const HistogramSnapshotPB& HistogramSnapshotPB::default_instance() { |
312 | 0 | ::protobuf_yb_2futil_2fhistogram_2eproto::InitDefaultsHistogramSnapshotPB(); |
313 | 0 | return *internal_default_instance(); |
314 | 0 | } |
315 | | |
316 | 0 | HistogramSnapshotPB* HistogramSnapshotPB::New(::google::protobuf::Arena* arena) const { |
317 | 0 | HistogramSnapshotPB* n = new HistogramSnapshotPB; |
318 | 0 | if (arena != NULL) { |
319 | 0 | arena->Own(n); |
320 | 0 | } |
321 | 0 | return n; |
322 | 0 | } |
323 | | |
324 | 0 | void HistogramSnapshotPB::Clear() { |
325 | | // @@protoc_insertion_point(message_clear_start:yb.HistogramSnapshotPB) |
326 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
327 | | // Prevent compiler warnings about cached_has_bits being unused |
328 | 0 | (void) cached_has_bits; |
329 | |
|
330 | 0 | values_.Clear(); |
331 | 0 | counts_.Clear(); |
332 | 0 | cached_has_bits = _has_bits_[0]; |
333 | 0 | if (cached_has_bits & 63u) { |
334 | 0 | if (cached_has_bits & 0x00000001u) { |
335 | 0 | GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
336 | 0 | (*type_.UnsafeRawStringPointer())->clear(); |
337 | 0 | } |
338 | 0 | if (cached_has_bits & 0x00000002u) { |
339 | 0 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
340 | 0 | (*name_.UnsafeRawStringPointer())->clear(); |
341 | 0 | } |
342 | 0 | if (cached_has_bits & 0x00000004u) { |
343 | 0 | GOOGLE_DCHECK(!description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
344 | 0 | (*description_.UnsafeRawStringPointer())->clear(); |
345 | 0 | } |
346 | 0 | if (cached_has_bits & 0x00000008u) { |
347 | 0 | GOOGLE_DCHECK(!unit_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
348 | 0 | (*unit_.UnsafeRawStringPointer())->clear(); |
349 | 0 | } |
350 | 0 | if (cached_has_bits & 0x00000010u) { |
351 | 0 | GOOGLE_DCHECK(!label_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
352 | 0 | (*label_.UnsafeRawStringPointer())->clear(); |
353 | 0 | } |
354 | 0 | if (cached_has_bits & 0x00000020u) { |
355 | 0 | GOOGLE_DCHECK(!level_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
356 | 0 | (*level_.UnsafeRawStringPointer())->clear(); |
357 | 0 | } |
358 | 0 | } |
359 | 0 | if (cached_has_bits & 192u) { |
360 | 0 | ::memset(&max_trackable_value_, 0, static_cast<size_t>( |
361 | 0 | reinterpret_cast<char*>(&total_count_) - |
362 | 0 | reinterpret_cast<char*>(&max_trackable_value_)) + sizeof(total_count_)); |
363 | 0 | } |
364 | 0 | if (cached_has_bits & 65280u) { |
365 | 0 | ::memset(&min_, 0, static_cast<size_t>( |
366 | 0 | reinterpret_cast<char*>(&max_) - |
367 | 0 | reinterpret_cast<char*>(&min_)) + sizeof(max_)); |
368 | 0 | } |
369 | 0 | if (cached_has_bits & 196608u) { |
370 | 0 | ::memset(&total_sum_, 0, static_cast<size_t>( |
371 | 0 | reinterpret_cast<char*>(&num_significant_digits_) - |
372 | 0 | reinterpret_cast<char*>(&total_sum_)) + sizeof(num_significant_digits_)); |
373 | 0 | } |
374 | 0 | _has_bits_.Clear(); |
375 | 0 | _internal_metadata_.Clear(); |
376 | 0 | } |
377 | | |
378 | | bool HistogramSnapshotPB::MergePartialFromCodedStream( |
379 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
380 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
381 | 0 | ::google::protobuf::uint32 tag; |
382 | | // @@protoc_insertion_point(parse_start:yb.HistogramSnapshotPB) |
383 | 0 | for (;;) { |
384 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
385 | 0 | tag = p.first; |
386 | 0 | if (!p.second) goto handle_unusual; |
387 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
388 | | // required string type = 1; |
389 | 0 | case 1: { |
390 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
391 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
392 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
393 | 0 | input, this->mutable_type())); |
394 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
395 | 0 | this->type().data(), static_cast<int>(this->type().length()), |
396 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
397 | 0 | "yb.HistogramSnapshotPB.type"); |
398 | 0 | } else { |
399 | 0 | goto handle_unusual; |
400 | 0 | } |
401 | 0 | break; |
402 | 0 | } |
403 | | |
404 | | // required string name = 2; |
405 | 0 | case 2: { |
406 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
407 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
408 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
409 | 0 | input, this->mutable_name())); |
410 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
411 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
412 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
413 | 0 | "yb.HistogramSnapshotPB.name"); |
414 | 0 | } else { |
415 | 0 | goto handle_unusual; |
416 | 0 | } |
417 | 0 | break; |
418 | 0 | } |
419 | | |
420 | | // optional string description = 3; |
421 | 0 | case 3: { |
422 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
423 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
424 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
425 | 0 | input, this->mutable_description())); |
426 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
427 | 0 | this->description().data(), static_cast<int>(this->description().length()), |
428 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
429 | 0 | "yb.HistogramSnapshotPB.description"); |
430 | 0 | } else { |
431 | 0 | goto handle_unusual; |
432 | 0 | } |
433 | 0 | break; |
434 | 0 | } |
435 | | |
436 | | // required string unit = 4; |
437 | 0 | case 4: { |
438 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
439 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
440 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
441 | 0 | input, this->mutable_unit())); |
442 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
443 | 0 | this->unit().data(), static_cast<int>(this->unit().length()), |
444 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
445 | 0 | "yb.HistogramSnapshotPB.unit"); |
446 | 0 | } else { |
447 | 0 | goto handle_unusual; |
448 | 0 | } |
449 | 0 | break; |
450 | 0 | } |
451 | | |
452 | | // required uint64 max_trackable_value = 5; |
453 | 0 | case 5: { |
454 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
455 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
456 | 0 | set_has_max_trackable_value(); |
457 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
458 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
459 | 0 | input, &max_trackable_value_))); |
460 | 0 | } else { |
461 | 0 | goto handle_unusual; |
462 | 0 | } |
463 | 0 | break; |
464 | 0 | } |
465 | | |
466 | | // required int32 num_significant_digits = 6; |
467 | 0 | case 6: { |
468 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
469 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
470 | 0 | set_has_num_significant_digits(); |
471 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
472 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
473 | 0 | input, &num_significant_digits_))); |
474 | 0 | } else { |
475 | 0 | goto handle_unusual; |
476 | 0 | } |
477 | 0 | break; |
478 | 0 | } |
479 | | |
480 | | // required uint64 total_count = 7; |
481 | 0 | case 7: { |
482 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
483 | 0 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
484 | 0 | set_has_total_count(); |
485 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
486 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
487 | 0 | input, &total_count_))); |
488 | 0 | } else { |
489 | 0 | goto handle_unusual; |
490 | 0 | } |
491 | 0 | break; |
492 | 0 | } |
493 | | |
494 | | // required uint64 min = 8; |
495 | 0 | case 8: { |
496 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
497 | 0 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
498 | 0 | set_has_min(); |
499 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
500 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
501 | 0 | input, &min_))); |
502 | 0 | } else { |
503 | 0 | goto handle_unusual; |
504 | 0 | } |
505 | 0 | break; |
506 | 0 | } |
507 | | |
508 | | // required double mean = 9; |
509 | 0 | case 9: { |
510 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
511 | 0 | static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { |
512 | 0 | set_has_mean(); |
513 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
514 | 0 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
515 | 0 | input, &mean_))); |
516 | 0 | } else { |
517 | 0 | goto handle_unusual; |
518 | 0 | } |
519 | 0 | break; |
520 | 0 | } |
521 | | |
522 | | // required uint64 percentile_75 = 10; |
523 | 0 | case 10: { |
524 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
525 | 0 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
526 | 0 | set_has_percentile_75(); |
527 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
528 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
529 | 0 | input, &percentile_75_))); |
530 | 0 | } else { |
531 | 0 | goto handle_unusual; |
532 | 0 | } |
533 | 0 | break; |
534 | 0 | } |
535 | | |
536 | | // required uint64 percentile_95 = 11; |
537 | 0 | case 11: { |
538 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
539 | 0 | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
540 | 0 | set_has_percentile_95(); |
541 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
542 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
543 | 0 | input, &percentile_95_))); |
544 | 0 | } else { |
545 | 0 | goto handle_unusual; |
546 | 0 | } |
547 | 0 | break; |
548 | 0 | } |
549 | | |
550 | | // required uint64 percentile_99 = 12; |
551 | 0 | case 12: { |
552 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
553 | 0 | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
554 | 0 | set_has_percentile_99(); |
555 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
556 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
557 | 0 | input, &percentile_99_))); |
558 | 0 | } else { |
559 | 0 | goto handle_unusual; |
560 | 0 | } |
561 | 0 | break; |
562 | 0 | } |
563 | | |
564 | | // required uint64 percentile_99_9 = 13; |
565 | 0 | case 13: { |
566 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
567 | 0 | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
568 | 0 | set_has_percentile_99_9(); |
569 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
570 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
571 | 0 | input, &percentile_99_9_))); |
572 | 0 | } else { |
573 | 0 | goto handle_unusual; |
574 | 0 | } |
575 | 0 | break; |
576 | 0 | } |
577 | | |
578 | | // required uint64 percentile_99_99 = 14; |
579 | 0 | case 14: { |
580 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
581 | 0 | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
582 | 0 | set_has_percentile_99_99(); |
583 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
584 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
585 | 0 | input, &percentile_99_99_))); |
586 | 0 | } else { |
587 | 0 | goto handle_unusual; |
588 | 0 | } |
589 | 0 | break; |
590 | 0 | } |
591 | | |
592 | | // required uint64 max = 15; |
593 | 0 | case 15: { |
594 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
595 | 0 | static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { |
596 | 0 | set_has_max(); |
597 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
598 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
599 | 0 | input, &max_))); |
600 | 0 | } else { |
601 | 0 | goto handle_unusual; |
602 | 0 | } |
603 | 0 | break; |
604 | 0 | } |
605 | | |
606 | | // repeated uint64 values = 16 [packed = true]; |
607 | 0 | case 16: { |
608 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
609 | 0 | static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { |
610 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
611 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
612 | 0 | input, this->mutable_values()))); |
613 | 0 | } else if ( |
614 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
615 | 0 | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
616 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
617 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
618 | 0 | 2, 130u, input, this->mutable_values()))); |
619 | 0 | } else { |
620 | 0 | goto handle_unusual; |
621 | 0 | } |
622 | 0 | break; |
623 | 0 | } |
624 | | |
625 | | // repeated uint64 counts = 17 [packed = true]; |
626 | 0 | case 17: { |
627 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
628 | 0 | static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { |
629 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
630 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
631 | 0 | input, this->mutable_counts()))); |
632 | 0 | } else if ( |
633 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
634 | 0 | static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { |
635 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
636 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
637 | 0 | 2, 138u, input, this->mutable_counts()))); |
638 | 0 | } else { |
639 | 0 | goto handle_unusual; |
640 | 0 | } |
641 | 0 | break; |
642 | 0 | } |
643 | | |
644 | | // optional uint64 total_sum = 18; |
645 | 0 | case 18: { |
646 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
647 | 0 | static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { |
648 | 0 | set_has_total_sum(); |
649 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
650 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
651 | 0 | input, &total_sum_))); |
652 | 0 | } else { |
653 | 0 | goto handle_unusual; |
654 | 0 | } |
655 | 0 | break; |
656 | 0 | } |
657 | | |
658 | | // optional string label = 19; |
659 | 0 | case 19: { |
660 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
661 | 0 | static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) { |
662 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
663 | 0 | input, this->mutable_label())); |
664 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
665 | 0 | this->label().data(), static_cast<int>(this->label().length()), |
666 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
667 | 0 | "yb.HistogramSnapshotPB.label"); |
668 | 0 | } else { |
669 | 0 | goto handle_unusual; |
670 | 0 | } |
671 | 0 | break; |
672 | 0 | } |
673 | | |
674 | | // optional string level = 20; |
675 | 0 | case 20: { |
676 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
677 | 0 | static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { |
678 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
679 | 0 | input, this->mutable_level())); |
680 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
681 | 0 | this->level().data(), static_cast<int>(this->level().length()), |
682 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
683 | 0 | "yb.HistogramSnapshotPB.level"); |
684 | 0 | } else { |
685 | 0 | goto handle_unusual; |
686 | 0 | } |
687 | 0 | break; |
688 | 0 | } |
689 | | |
690 | 0 | default: { |
691 | 0 | handle_unusual: |
692 | 0 | if (tag == 0) { |
693 | 0 | goto success; |
694 | 0 | } |
695 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
696 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
697 | 0 | break; |
698 | 0 | } |
699 | 0 | } |
700 | 0 | } |
701 | 0 | success: |
702 | | // @@protoc_insertion_point(parse_success:yb.HistogramSnapshotPB) |
703 | 0 | return true; |
704 | 0 | failure: |
705 | | // @@protoc_insertion_point(parse_failure:yb.HistogramSnapshotPB) |
706 | 0 | return false; |
707 | 0 | #undef DO_ |
708 | 0 | } |
709 | | |
710 | | void HistogramSnapshotPB::SerializeWithCachedSizes( |
711 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
712 | | // @@protoc_insertion_point(serialize_start:yb.HistogramSnapshotPB) |
713 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
714 | 0 | (void) cached_has_bits; |
715 | |
|
716 | 0 | cached_has_bits = _has_bits_[0]; |
717 | | // required string type = 1; |
718 | 0 | if (cached_has_bits & 0x00000001u) { |
719 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
720 | 0 | this->type().data(), static_cast<int>(this->type().length()), |
721 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
722 | 0 | "yb.HistogramSnapshotPB.type"); |
723 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
724 | 0 | 1, this->type(), output); |
725 | 0 | } |
726 | | |
727 | | // required string name = 2; |
728 | 0 | if (cached_has_bits & 0x00000002u) { |
729 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
730 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
731 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
732 | 0 | "yb.HistogramSnapshotPB.name"); |
733 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
734 | 0 | 2, this->name(), output); |
735 | 0 | } |
736 | | |
737 | | // optional string description = 3; |
738 | 0 | if (cached_has_bits & 0x00000004u) { |
739 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
740 | 0 | this->description().data(), static_cast<int>(this->description().length()), |
741 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
742 | 0 | "yb.HistogramSnapshotPB.description"); |
743 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
744 | 0 | 3, this->description(), output); |
745 | 0 | } |
746 | | |
747 | | // required string unit = 4; |
748 | 0 | if (cached_has_bits & 0x00000008u) { |
749 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
750 | 0 | this->unit().data(), static_cast<int>(this->unit().length()), |
751 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
752 | 0 | "yb.HistogramSnapshotPB.unit"); |
753 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
754 | 0 | 4, this->unit(), output); |
755 | 0 | } |
756 | | |
757 | | // required uint64 max_trackable_value = 5; |
758 | 0 | if (cached_has_bits & 0x00000040u) { |
759 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->max_trackable_value(), output); |
760 | 0 | } |
761 | | |
762 | | // required int32 num_significant_digits = 6; |
763 | 0 | if (cached_has_bits & 0x00020000u) { |
764 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->num_significant_digits(), output); |
765 | 0 | } |
766 | | |
767 | | // required uint64 total_count = 7; |
768 | 0 | if (cached_has_bits & 0x00000080u) { |
769 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->total_count(), output); |
770 | 0 | } |
771 | | |
772 | | // required uint64 min = 8; |
773 | 0 | if (cached_has_bits & 0x00000100u) { |
774 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min(), output); |
775 | 0 | } |
776 | | |
777 | | // required double mean = 9; |
778 | 0 | if (cached_has_bits & 0x00000200u) { |
779 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->mean(), output); |
780 | 0 | } |
781 | | |
782 | | // required uint64 percentile_75 = 10; |
783 | 0 | if (cached_has_bits & 0x00000400u) { |
784 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->percentile_75(), output); |
785 | 0 | } |
786 | | |
787 | | // required uint64 percentile_95 = 11; |
788 | 0 | if (cached_has_bits & 0x00000800u) { |
789 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->percentile_95(), output); |
790 | 0 | } |
791 | | |
792 | | // required uint64 percentile_99 = 12; |
793 | 0 | if (cached_has_bits & 0x00001000u) { |
794 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->percentile_99(), output); |
795 | 0 | } |
796 | | |
797 | | // required uint64 percentile_99_9 = 13; |
798 | 0 | if (cached_has_bits & 0x00002000u) { |
799 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->percentile_99_9(), output); |
800 | 0 | } |
801 | | |
802 | | // required uint64 percentile_99_99 = 14; |
803 | 0 | if (cached_has_bits & 0x00004000u) { |
804 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->percentile_99_99(), output); |
805 | 0 | } |
806 | | |
807 | | // required uint64 max = 15; |
808 | 0 | if (cached_has_bits & 0x00008000u) { |
809 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->max(), output); |
810 | 0 | } |
811 | | |
812 | | // repeated uint64 values = 16 [packed = true]; |
813 | 0 | if (this->values_size() > 0) { |
814 | 0 | ::google::protobuf::internal::WireFormatLite::WriteTag(16, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
815 | 0 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
816 | 0 | _values_cached_byte_size_)); |
817 | 0 | } |
818 | 0 | for (int i = 0, n = this->values_size(); i < n; i++) { |
819 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag( |
820 | 0 | this->values(i), output); |
821 | 0 | } |
822 | | |
823 | | // repeated uint64 counts = 17 [packed = true]; |
824 | 0 | if (this->counts_size() > 0) { |
825 | 0 | ::google::protobuf::internal::WireFormatLite::WriteTag(17, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
826 | 0 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
827 | 0 | _counts_cached_byte_size_)); |
828 | 0 | } |
829 | 0 | for (int i = 0, n = this->counts_size(); i < n; i++) { |
830 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag( |
831 | 0 | this->counts(i), output); |
832 | 0 | } |
833 | | |
834 | | // optional uint64 total_sum = 18; |
835 | 0 | if (cached_has_bits & 0x00010000u) { |
836 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->total_sum(), output); |
837 | 0 | } |
838 | | |
839 | | // optional string label = 19; |
840 | 0 | if (cached_has_bits & 0x00000010u) { |
841 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
842 | 0 | this->label().data(), static_cast<int>(this->label().length()), |
843 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
844 | 0 | "yb.HistogramSnapshotPB.label"); |
845 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
846 | 0 | 19, this->label(), output); |
847 | 0 | } |
848 | | |
849 | | // optional string level = 20; |
850 | 0 | if (cached_has_bits & 0x00000020u) { |
851 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
852 | 0 | this->level().data(), static_cast<int>(this->level().length()), |
853 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
854 | 0 | "yb.HistogramSnapshotPB.level"); |
855 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
856 | 0 | 20, this->level(), output); |
857 | 0 | } |
858 | |
|
859 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
860 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
861 | 0 | _internal_metadata_.unknown_fields(), output); |
862 | 0 | } |
863 | | // @@protoc_insertion_point(serialize_end:yb.HistogramSnapshotPB) |
864 | 0 | } |
865 | | |
866 | | ::google::protobuf::uint8* HistogramSnapshotPB::InternalSerializeWithCachedSizesToArray( |
867 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
868 | 0 | (void)deterministic; // Unused |
869 | | // @@protoc_insertion_point(serialize_to_array_start:yb.HistogramSnapshotPB) |
870 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
871 | 0 | (void) cached_has_bits; |
872 | |
|
873 | 0 | cached_has_bits = _has_bits_[0]; |
874 | | // required string type = 1; |
875 | 0 | if (cached_has_bits & 0x00000001u) { |
876 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
877 | 0 | this->type().data(), static_cast<int>(this->type().length()), |
878 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
879 | 0 | "yb.HistogramSnapshotPB.type"); |
880 | 0 | target = |
881 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
882 | 0 | 1, this->type(), target); |
883 | 0 | } |
884 | | |
885 | | // required string name = 2; |
886 | 0 | if (cached_has_bits & 0x00000002u) { |
887 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
888 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
889 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
890 | 0 | "yb.HistogramSnapshotPB.name"); |
891 | 0 | target = |
892 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
893 | 0 | 2, this->name(), target); |
894 | 0 | } |
895 | | |
896 | | // optional string description = 3; |
897 | 0 | if (cached_has_bits & 0x00000004u) { |
898 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
899 | 0 | this->description().data(), static_cast<int>(this->description().length()), |
900 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
901 | 0 | "yb.HistogramSnapshotPB.description"); |
902 | 0 | target = |
903 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
904 | 0 | 3, this->description(), target); |
905 | 0 | } |
906 | | |
907 | | // required string unit = 4; |
908 | 0 | if (cached_has_bits & 0x00000008u) { |
909 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
910 | 0 | this->unit().data(), static_cast<int>(this->unit().length()), |
911 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
912 | 0 | "yb.HistogramSnapshotPB.unit"); |
913 | 0 | target = |
914 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
915 | 0 | 4, this->unit(), target); |
916 | 0 | } |
917 | | |
918 | | // required uint64 max_trackable_value = 5; |
919 | 0 | if (cached_has_bits & 0x00000040u) { |
920 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->max_trackable_value(), target); |
921 | 0 | } |
922 | | |
923 | | // required int32 num_significant_digits = 6; |
924 | 0 | if (cached_has_bits & 0x00020000u) { |
925 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->num_significant_digits(), target); |
926 | 0 | } |
927 | | |
928 | | // required uint64 total_count = 7; |
929 | 0 | if (cached_has_bits & 0x00000080u) { |
930 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->total_count(), target); |
931 | 0 | } |
932 | | |
933 | | // required uint64 min = 8; |
934 | 0 | if (cached_has_bits & 0x00000100u) { |
935 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min(), target); |
936 | 0 | } |
937 | | |
938 | | // required double mean = 9; |
939 | 0 | if (cached_has_bits & 0x00000200u) { |
940 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->mean(), target); |
941 | 0 | } |
942 | | |
943 | | // required uint64 percentile_75 = 10; |
944 | 0 | if (cached_has_bits & 0x00000400u) { |
945 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->percentile_75(), target); |
946 | 0 | } |
947 | | |
948 | | // required uint64 percentile_95 = 11; |
949 | 0 | if (cached_has_bits & 0x00000800u) { |
950 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->percentile_95(), target); |
951 | 0 | } |
952 | | |
953 | | // required uint64 percentile_99 = 12; |
954 | 0 | if (cached_has_bits & 0x00001000u) { |
955 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->percentile_99(), target); |
956 | 0 | } |
957 | | |
958 | | // required uint64 percentile_99_9 = 13; |
959 | 0 | if (cached_has_bits & 0x00002000u) { |
960 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->percentile_99_9(), target); |
961 | 0 | } |
962 | | |
963 | | // required uint64 percentile_99_99 = 14; |
964 | 0 | if (cached_has_bits & 0x00004000u) { |
965 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->percentile_99_99(), target); |
966 | 0 | } |
967 | | |
968 | | // required uint64 max = 15; |
969 | 0 | if (cached_has_bits & 0x00008000u) { |
970 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->max(), target); |
971 | 0 | } |
972 | | |
973 | | // repeated uint64 values = 16 [packed = true]; |
974 | 0 | if (this->values_size() > 0) { |
975 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
976 | 0 | 16, |
977 | 0 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
978 | 0 | target); |
979 | 0 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
980 | 0 | static_cast< ::google::protobuf::int32>( |
981 | 0 | _values_cached_byte_size_), target); |
982 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
983 | 0 | WriteUInt64NoTagToArray(this->values_, target); |
984 | 0 | } |
985 | | |
986 | | // repeated uint64 counts = 17 [packed = true]; |
987 | 0 | if (this->counts_size() > 0) { |
988 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
989 | 0 | 17, |
990 | 0 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
991 | 0 | target); |
992 | 0 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
993 | 0 | static_cast< ::google::protobuf::int32>( |
994 | 0 | _counts_cached_byte_size_), target); |
995 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
996 | 0 | WriteUInt64NoTagToArray(this->counts_, target); |
997 | 0 | } |
998 | | |
999 | | // optional uint64 total_sum = 18; |
1000 | 0 | if (cached_has_bits & 0x00010000u) { |
1001 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(18, this->total_sum(), target); |
1002 | 0 | } |
1003 | | |
1004 | | // optional string label = 19; |
1005 | 0 | if (cached_has_bits & 0x00000010u) { |
1006 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1007 | 0 | this->label().data(), static_cast<int>(this->label().length()), |
1008 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1009 | 0 | "yb.HistogramSnapshotPB.label"); |
1010 | 0 | target = |
1011 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1012 | 0 | 19, this->label(), target); |
1013 | 0 | } |
1014 | | |
1015 | | // optional string level = 20; |
1016 | 0 | if (cached_has_bits & 0x00000020u) { |
1017 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1018 | 0 | this->level().data(), static_cast<int>(this->level().length()), |
1019 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1020 | 0 | "yb.HistogramSnapshotPB.level"); |
1021 | 0 | target = |
1022 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1023 | 0 | 20, this->level(), target); |
1024 | 0 | } |
1025 | |
|
1026 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1027 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1028 | 0 | _internal_metadata_.unknown_fields(), target); |
1029 | 0 | } |
1030 | | // @@protoc_insertion_point(serialize_to_array_end:yb.HistogramSnapshotPB) |
1031 | 0 | return target; |
1032 | 0 | } |
1033 | | |
1034 | 0 | size_t HistogramSnapshotPB::RequiredFieldsByteSizeFallback() const { |
1035 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.HistogramSnapshotPB) |
1036 | 0 | size_t total_size = 0; |
1037 | |
|
1038 | 0 | if (has_type()) { |
1039 | | // required string type = 1; |
1040 | 0 | total_size += 1 + |
1041 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1042 | 0 | this->type()); |
1043 | 0 | } |
1044 | |
|
1045 | 0 | if (has_name()) { |
1046 | | // required string name = 2; |
1047 | 0 | total_size += 1 + |
1048 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1049 | 0 | this->name()); |
1050 | 0 | } |
1051 | |
|
1052 | 0 | if (has_unit()) { |
1053 | | // required string unit = 4; |
1054 | 0 | total_size += 1 + |
1055 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1056 | 0 | this->unit()); |
1057 | 0 | } |
1058 | |
|
1059 | 0 | if (has_max_trackable_value()) { |
1060 | | // required uint64 max_trackable_value = 5; |
1061 | 0 | total_size += 1 + |
1062 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1063 | 0 | this->max_trackable_value()); |
1064 | 0 | } |
1065 | |
|
1066 | 0 | if (has_total_count()) { |
1067 | | // required uint64 total_count = 7; |
1068 | 0 | total_size += 1 + |
1069 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1070 | 0 | this->total_count()); |
1071 | 0 | } |
1072 | |
|
1073 | 0 | if (has_min()) { |
1074 | | // required uint64 min = 8; |
1075 | 0 | total_size += 1 + |
1076 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1077 | 0 | this->min()); |
1078 | 0 | } |
1079 | |
|
1080 | 0 | if (has_mean()) { |
1081 | | // required double mean = 9; |
1082 | 0 | total_size += 1 + 8; |
1083 | 0 | } |
1084 | |
|
1085 | 0 | if (has_percentile_75()) { |
1086 | | // required uint64 percentile_75 = 10; |
1087 | 0 | total_size += 1 + |
1088 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1089 | 0 | this->percentile_75()); |
1090 | 0 | } |
1091 | |
|
1092 | 0 | if (has_percentile_95()) { |
1093 | | // required uint64 percentile_95 = 11; |
1094 | 0 | total_size += 1 + |
1095 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1096 | 0 | this->percentile_95()); |
1097 | 0 | } |
1098 | |
|
1099 | 0 | if (has_percentile_99()) { |
1100 | | // required uint64 percentile_99 = 12; |
1101 | 0 | total_size += 1 + |
1102 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1103 | 0 | this->percentile_99()); |
1104 | 0 | } |
1105 | |
|
1106 | 0 | if (has_percentile_99_9()) { |
1107 | | // required uint64 percentile_99_9 = 13; |
1108 | 0 | total_size += 1 + |
1109 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1110 | 0 | this->percentile_99_9()); |
1111 | 0 | } |
1112 | |
|
1113 | 0 | if (has_percentile_99_99()) { |
1114 | | // required uint64 percentile_99_99 = 14; |
1115 | 0 | total_size += 1 + |
1116 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1117 | 0 | this->percentile_99_99()); |
1118 | 0 | } |
1119 | |
|
1120 | 0 | if (has_max()) { |
1121 | | // required uint64 max = 15; |
1122 | 0 | total_size += 1 + |
1123 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1124 | 0 | this->max()); |
1125 | 0 | } |
1126 | |
|
1127 | 0 | if (has_num_significant_digits()) { |
1128 | | // required int32 num_significant_digits = 6; |
1129 | 0 | total_size += 1 + |
1130 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1131 | 0 | this->num_significant_digits()); |
1132 | 0 | } |
1133 | |
|
1134 | 0 | return total_size; |
1135 | 0 | } |
1136 | 0 | size_t HistogramSnapshotPB::ByteSizeLong() const { |
1137 | | // @@protoc_insertion_point(message_byte_size_start:yb.HistogramSnapshotPB) |
1138 | 0 | size_t total_size = 0; |
1139 | |
|
1140 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1141 | 0 | total_size += |
1142 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1143 | 0 | _internal_metadata_.unknown_fields()); |
1144 | 0 | } |
1145 | 0 | if (((_has_bits_[0] & 0x0002ffcb) ^ 0x0002ffcb) == 0) { // All required fields are present. |
1146 | | // required string type = 1; |
1147 | 0 | total_size += 1 + |
1148 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1149 | 0 | this->type()); |
1150 | | |
1151 | | // required string name = 2; |
1152 | 0 | total_size += 1 + |
1153 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1154 | 0 | this->name()); |
1155 | | |
1156 | | // required string unit = 4; |
1157 | 0 | total_size += 1 + |
1158 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1159 | 0 | this->unit()); |
1160 | | |
1161 | | // required uint64 max_trackable_value = 5; |
1162 | 0 | total_size += 1 + |
1163 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1164 | 0 | this->max_trackable_value()); |
1165 | | |
1166 | | // required uint64 total_count = 7; |
1167 | 0 | total_size += 1 + |
1168 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1169 | 0 | this->total_count()); |
1170 | | |
1171 | | // required uint64 min = 8; |
1172 | 0 | total_size += 1 + |
1173 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1174 | 0 | this->min()); |
1175 | | |
1176 | | // required double mean = 9; |
1177 | 0 | total_size += 1 + 8; |
1178 | | |
1179 | | // required uint64 percentile_75 = 10; |
1180 | 0 | total_size += 1 + |
1181 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1182 | 0 | this->percentile_75()); |
1183 | | |
1184 | | // required uint64 percentile_95 = 11; |
1185 | 0 | total_size += 1 + |
1186 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1187 | 0 | this->percentile_95()); |
1188 | | |
1189 | | // required uint64 percentile_99 = 12; |
1190 | 0 | total_size += 1 + |
1191 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1192 | 0 | this->percentile_99()); |
1193 | | |
1194 | | // required uint64 percentile_99_9 = 13; |
1195 | 0 | total_size += 1 + |
1196 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1197 | 0 | this->percentile_99_9()); |
1198 | | |
1199 | | // required uint64 percentile_99_99 = 14; |
1200 | 0 | total_size += 1 + |
1201 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1202 | 0 | this->percentile_99_99()); |
1203 | | |
1204 | | // required uint64 max = 15; |
1205 | 0 | total_size += 1 + |
1206 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1207 | 0 | this->max()); |
1208 | | |
1209 | | // required int32 num_significant_digits = 6; |
1210 | 0 | total_size += 1 + |
1211 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1212 | 0 | this->num_significant_digits()); |
1213 | |
|
1214 | 0 | } else { |
1215 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
1216 | 0 | } |
1217 | | // repeated uint64 values = 16 [packed = true]; |
1218 | 0 | { |
1219 | 0 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
1220 | 0 | UInt64Size(this->values_); |
1221 | 0 | if (data_size > 0) { |
1222 | 0 | total_size += 2 + |
1223 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1224 | 0 | static_cast< ::google::protobuf::int32>(data_size)); |
1225 | 0 | } |
1226 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
1227 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1228 | 0 | _values_cached_byte_size_ = cached_size; |
1229 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1230 | 0 | total_size += data_size; |
1231 | 0 | } |
1232 | | |
1233 | | // repeated uint64 counts = 17 [packed = true]; |
1234 | 0 | { |
1235 | 0 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
1236 | 0 | UInt64Size(this->counts_); |
1237 | 0 | if (data_size > 0) { |
1238 | 0 | total_size += 2 + |
1239 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1240 | 0 | static_cast< ::google::protobuf::int32>(data_size)); |
1241 | 0 | } |
1242 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
1243 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1244 | 0 | _counts_cached_byte_size_ = cached_size; |
1245 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1246 | 0 | total_size += data_size; |
1247 | 0 | } |
1248 | | |
1249 | | // optional string description = 3; |
1250 | 0 | if (has_description()) { |
1251 | 0 | total_size += 1 + |
1252 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1253 | 0 | this->description()); |
1254 | 0 | } |
1255 | |
|
1256 | 0 | if (_has_bits_[0 / 32] & 48u) { |
1257 | | // optional string label = 19; |
1258 | 0 | if (has_label()) { |
1259 | 0 | total_size += 2 + |
1260 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1261 | 0 | this->label()); |
1262 | 0 | } |
1263 | | |
1264 | | // optional string level = 20; |
1265 | 0 | if (has_level()) { |
1266 | 0 | total_size += 2 + |
1267 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1268 | 0 | this->level()); |
1269 | 0 | } |
1270 | |
|
1271 | 0 | } |
1272 | | // optional uint64 total_sum = 18; |
1273 | 0 | if (has_total_sum()) { |
1274 | 0 | total_size += 2 + |
1275 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1276 | 0 | this->total_sum()); |
1277 | 0 | } |
1278 | |
|
1279 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1280 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1281 | 0 | _cached_size_ = cached_size; |
1282 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1283 | 0 | return total_size; |
1284 | 0 | } |
1285 | | |
1286 | 0 | void HistogramSnapshotPB::MergeFrom(const ::google::protobuf::Message& from) { |
1287 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.HistogramSnapshotPB) |
1288 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1289 | 0 | const HistogramSnapshotPB* source = |
1290 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const HistogramSnapshotPB>( |
1291 | 0 | &from); |
1292 | 0 | if (source == NULL) { |
1293 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.HistogramSnapshotPB) |
1294 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1295 | 0 | } else { |
1296 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.HistogramSnapshotPB) |
1297 | 0 | MergeFrom(*source); |
1298 | 0 | } |
1299 | 0 | } |
1300 | | |
1301 | 0 | void HistogramSnapshotPB::MergeFrom(const HistogramSnapshotPB& from) { |
1302 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.HistogramSnapshotPB) |
1303 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1304 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1305 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1306 | 0 | (void) cached_has_bits; |
1307 | |
|
1308 | 0 | values_.MergeFrom(from.values_); |
1309 | 0 | counts_.MergeFrom(from.counts_); |
1310 | 0 | cached_has_bits = from._has_bits_[0]; |
1311 | 0 | if (cached_has_bits & 255u) { |
1312 | 0 | if (cached_has_bits & 0x00000001u) { |
1313 | 0 | set_has_type(); |
1314 | 0 | type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); |
1315 | 0 | } |
1316 | 0 | if (cached_has_bits & 0x00000002u) { |
1317 | 0 | set_has_name(); |
1318 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
1319 | 0 | } |
1320 | 0 | if (cached_has_bits & 0x00000004u) { |
1321 | 0 | set_has_description(); |
1322 | 0 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
1323 | 0 | } |
1324 | 0 | if (cached_has_bits & 0x00000008u) { |
1325 | 0 | set_has_unit(); |
1326 | 0 | unit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unit_); |
1327 | 0 | } |
1328 | 0 | if (cached_has_bits & 0x00000010u) { |
1329 | 0 | set_has_label(); |
1330 | 0 | label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_); |
1331 | 0 | } |
1332 | 0 | if (cached_has_bits & 0x00000020u) { |
1333 | 0 | set_has_level(); |
1334 | 0 | level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_); |
1335 | 0 | } |
1336 | 0 | if (cached_has_bits & 0x00000040u) { |
1337 | 0 | max_trackable_value_ = from.max_trackable_value_; |
1338 | 0 | } |
1339 | 0 | if (cached_has_bits & 0x00000080u) { |
1340 | 0 | total_count_ = from.total_count_; |
1341 | 0 | } |
1342 | 0 | _has_bits_[0] |= cached_has_bits; |
1343 | 0 | } |
1344 | 0 | if (cached_has_bits & 65280u) { |
1345 | 0 | if (cached_has_bits & 0x00000100u) { |
1346 | 0 | min_ = from.min_; |
1347 | 0 | } |
1348 | 0 | if (cached_has_bits & 0x00000200u) { |
1349 | 0 | mean_ = from.mean_; |
1350 | 0 | } |
1351 | 0 | if (cached_has_bits & 0x00000400u) { |
1352 | 0 | percentile_75_ = from.percentile_75_; |
1353 | 0 | } |
1354 | 0 | if (cached_has_bits & 0x00000800u) { |
1355 | 0 | percentile_95_ = from.percentile_95_; |
1356 | 0 | } |
1357 | 0 | if (cached_has_bits & 0x00001000u) { |
1358 | 0 | percentile_99_ = from.percentile_99_; |
1359 | 0 | } |
1360 | 0 | if (cached_has_bits & 0x00002000u) { |
1361 | 0 | percentile_99_9_ = from.percentile_99_9_; |
1362 | 0 | } |
1363 | 0 | if (cached_has_bits & 0x00004000u) { |
1364 | 0 | percentile_99_99_ = from.percentile_99_99_; |
1365 | 0 | } |
1366 | 0 | if (cached_has_bits & 0x00008000u) { |
1367 | 0 | max_ = from.max_; |
1368 | 0 | } |
1369 | 0 | _has_bits_[0] |= cached_has_bits; |
1370 | 0 | } |
1371 | 0 | if (cached_has_bits & 196608u) { |
1372 | 0 | if (cached_has_bits & 0x00010000u) { |
1373 | 0 | total_sum_ = from.total_sum_; |
1374 | 0 | } |
1375 | 0 | if (cached_has_bits & 0x00020000u) { |
1376 | 0 | num_significant_digits_ = from.num_significant_digits_; |
1377 | 0 | } |
1378 | 0 | _has_bits_[0] |= cached_has_bits; |
1379 | 0 | } |
1380 | 0 | } |
1381 | | |
1382 | 0 | void HistogramSnapshotPB::CopyFrom(const ::google::protobuf::Message& from) { |
1383 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.HistogramSnapshotPB) |
1384 | 0 | if (&from == this) return; |
1385 | 0 | Clear(); |
1386 | 0 | MergeFrom(from); |
1387 | 0 | } |
1388 | | |
1389 | 0 | void HistogramSnapshotPB::CopyFrom(const HistogramSnapshotPB& from) { |
1390 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.HistogramSnapshotPB) |
1391 | 0 | if (&from == this) return; |
1392 | 0 | Clear(); |
1393 | 0 | MergeFrom(from); |
1394 | 0 | } |
1395 | | |
1396 | 0 | bool HistogramSnapshotPB::IsInitialized() const { |
1397 | 0 | if ((_has_bits_[0] & 0x0002ffcb) != 0x0002ffcb) return false; |
1398 | 0 | return true; |
1399 | 0 | } |
1400 | | |
1401 | 0 | void HistogramSnapshotPB::Swap(HistogramSnapshotPB* other) { |
1402 | 0 | if (other == this) return; |
1403 | 0 | InternalSwap(other); |
1404 | 0 | } |
1405 | 0 | void HistogramSnapshotPB::InternalSwap(HistogramSnapshotPB* other) { |
1406 | 0 | using std::swap; |
1407 | 0 | values_.InternalSwap(&other->values_); |
1408 | 0 | counts_.InternalSwap(&other->counts_); |
1409 | 0 | type_.Swap(&other->type_); |
1410 | 0 | name_.Swap(&other->name_); |
1411 | 0 | description_.Swap(&other->description_); |
1412 | 0 | unit_.Swap(&other->unit_); |
1413 | 0 | label_.Swap(&other->label_); |
1414 | 0 | level_.Swap(&other->level_); |
1415 | 0 | swap(max_trackable_value_, other->max_trackable_value_); |
1416 | 0 | swap(total_count_, other->total_count_); |
1417 | 0 | swap(min_, other->min_); |
1418 | 0 | swap(mean_, other->mean_); |
1419 | 0 | swap(percentile_75_, other->percentile_75_); |
1420 | 0 | swap(percentile_95_, other->percentile_95_); |
1421 | 0 | swap(percentile_99_, other->percentile_99_); |
1422 | 0 | swap(percentile_99_9_, other->percentile_99_9_); |
1423 | 0 | swap(percentile_99_99_, other->percentile_99_99_); |
1424 | 0 | swap(max_, other->max_); |
1425 | 0 | swap(total_sum_, other->total_sum_); |
1426 | 0 | swap(num_significant_digits_, other->num_significant_digits_); |
1427 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1428 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1429 | 0 | swap(_cached_size_, other->_cached_size_); |
1430 | 0 | } |
1431 | | |
1432 | 59.0M | ::google::protobuf::Metadata HistogramSnapshotPB::GetMetadata() const { |
1433 | 59.0M | protobuf_yb_2futil_2fhistogram_2eproto::protobuf_AssignDescriptorsOnce(); |
1434 | 59.0M | return ::protobuf_yb_2futil_2fhistogram_2eproto::file_level_metadata[kIndexInFileMessages]; |
1435 | 59.0M | } |
1436 | | |
1437 | | |
1438 | | // =================================================================== |
1439 | | |
1440 | 20.6k | void HistogramSnapshotsListPB::InitAsDefaultInstance() { |
1441 | 20.6k | } |
1442 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1443 | | const int HistogramSnapshotsListPB::kHistogramsFieldNumber; |
1444 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1445 | | |
1446 | | HistogramSnapshotsListPB::HistogramSnapshotsListPB() |
1447 | 20.6k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1448 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1449 | 0 | ::protobuf_yb_2futil_2fhistogram_2eproto::InitDefaultsHistogramSnapshotsListPB(); |
1450 | 0 | } |
1451 | 20.6k | SharedCtor(); |
1452 | | // @@protoc_insertion_point(constructor:yb.HistogramSnapshotsListPB) |
1453 | 20.6k | } |
1454 | | HistogramSnapshotsListPB::HistogramSnapshotsListPB(const HistogramSnapshotsListPB& from) |
1455 | | : ::google::protobuf::Message(), |
1456 | | _internal_metadata_(NULL), |
1457 | | _has_bits_(from._has_bits_), |
1458 | | _cached_size_(0), |
1459 | 0 | histograms_(from.histograms_) { |
1460 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1461 | | // @@protoc_insertion_point(copy_constructor:yb.HistogramSnapshotsListPB) |
1462 | 0 | } |
1463 | | |
1464 | 20.6k | void HistogramSnapshotsListPB::SharedCtor() { |
1465 | 20.6k | _cached_size_ = 0; |
1466 | 20.6k | } |
1467 | | |
1468 | 0 | HistogramSnapshotsListPB::~HistogramSnapshotsListPB() { |
1469 | | // @@protoc_insertion_point(destructor:yb.HistogramSnapshotsListPB) |
1470 | 0 | SharedDtor(); |
1471 | 0 | } |
1472 | | |
1473 | 0 | void HistogramSnapshotsListPB::SharedDtor() { |
1474 | 0 | } |
1475 | | |
1476 | 0 | void HistogramSnapshotsListPB::SetCachedSize(int size) const { |
1477 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1478 | 0 | _cached_size_ = size; |
1479 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1480 | 0 | } |
1481 | 0 | const ::google::protobuf::Descriptor* HistogramSnapshotsListPB::descriptor() { |
1482 | 0 | ::protobuf_yb_2futil_2fhistogram_2eproto::protobuf_AssignDescriptorsOnce(); |
1483 | 0 | return ::protobuf_yb_2futil_2fhistogram_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1484 | 0 | } |
1485 | | |
1486 | 0 | const HistogramSnapshotsListPB& HistogramSnapshotsListPB::default_instance() { |
1487 | 0 | ::protobuf_yb_2futil_2fhistogram_2eproto::InitDefaultsHistogramSnapshotsListPB(); |
1488 | 0 | return *internal_default_instance(); |
1489 | 0 | } |
1490 | | |
1491 | 0 | HistogramSnapshotsListPB* HistogramSnapshotsListPB::New(::google::protobuf::Arena* arena) const { |
1492 | 0 | HistogramSnapshotsListPB* n = new HistogramSnapshotsListPB; |
1493 | 0 | if (arena != NULL) { |
1494 | 0 | arena->Own(n); |
1495 | 0 | } |
1496 | 0 | return n; |
1497 | 0 | } |
1498 | | |
1499 | 0 | void HistogramSnapshotsListPB::Clear() { |
1500 | | // @@protoc_insertion_point(message_clear_start:yb.HistogramSnapshotsListPB) |
1501 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1502 | | // Prevent compiler warnings about cached_has_bits being unused |
1503 | 0 | (void) cached_has_bits; |
1504 | |
|
1505 | 0 | histograms_.Clear(); |
1506 | 0 | _has_bits_.Clear(); |
1507 | 0 | _internal_metadata_.Clear(); |
1508 | 0 | } |
1509 | | |
1510 | | bool HistogramSnapshotsListPB::MergePartialFromCodedStream( |
1511 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1512 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1513 | 0 | ::google::protobuf::uint32 tag; |
1514 | | // @@protoc_insertion_point(parse_start:yb.HistogramSnapshotsListPB) |
1515 | 0 | for (;;) { |
1516 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1517 | 0 | tag = p.first; |
1518 | 0 | if (!p.second) goto handle_unusual; |
1519 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1520 | | // repeated .yb.HistogramSnapshotPB histograms = 1; |
1521 | 0 | case 1: { |
1522 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1523 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1524 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_histograms())); |
1525 | 0 | } else { |
1526 | 0 | goto handle_unusual; |
1527 | 0 | } |
1528 | 0 | break; |
1529 | 0 | } |
1530 | | |
1531 | 0 | default: { |
1532 | 0 | handle_unusual: |
1533 | 0 | if (tag == 0) { |
1534 | 0 | goto success; |
1535 | 0 | } |
1536 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1537 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1538 | 0 | break; |
1539 | 0 | } |
1540 | 0 | } |
1541 | 0 | } |
1542 | 0 | success: |
1543 | | // @@protoc_insertion_point(parse_success:yb.HistogramSnapshotsListPB) |
1544 | 0 | return true; |
1545 | 0 | failure: |
1546 | | // @@protoc_insertion_point(parse_failure:yb.HistogramSnapshotsListPB) |
1547 | 0 | return false; |
1548 | 0 | #undef DO_ |
1549 | 0 | } |
1550 | | |
1551 | | void HistogramSnapshotsListPB::SerializeWithCachedSizes( |
1552 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1553 | | // @@protoc_insertion_point(serialize_start:yb.HistogramSnapshotsListPB) |
1554 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1555 | 0 | (void) cached_has_bits; |
1556 | | |
1557 | | // repeated .yb.HistogramSnapshotPB histograms = 1; |
1558 | 0 | for (unsigned int i = 0, |
1559 | 0 | n = static_cast<unsigned int>(this->histograms_size()); i < n; i++) { |
1560 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1561 | 0 | 1, this->histograms(static_cast<int>(i)), output); |
1562 | 0 | } |
1563 | |
|
1564 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1565 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1566 | 0 | _internal_metadata_.unknown_fields(), output); |
1567 | 0 | } |
1568 | | // @@protoc_insertion_point(serialize_end:yb.HistogramSnapshotsListPB) |
1569 | 0 | } |
1570 | | |
1571 | | ::google::protobuf::uint8* HistogramSnapshotsListPB::InternalSerializeWithCachedSizesToArray( |
1572 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
1573 | 0 | (void)deterministic; // Unused |
1574 | | // @@protoc_insertion_point(serialize_to_array_start:yb.HistogramSnapshotsListPB) |
1575 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1576 | 0 | (void) cached_has_bits; |
1577 | | |
1578 | | // repeated .yb.HistogramSnapshotPB histograms = 1; |
1579 | 0 | for (unsigned int i = 0, |
1580 | 0 | n = static_cast<unsigned int>(this->histograms_size()); i < n; i++) { |
1581 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1582 | 0 | InternalWriteMessageToArray( |
1583 | 0 | 1, this->histograms(static_cast<int>(i)), deterministic, target); |
1584 | 0 | } |
1585 | |
|
1586 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1587 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1588 | 0 | _internal_metadata_.unknown_fields(), target); |
1589 | 0 | } |
1590 | | // @@protoc_insertion_point(serialize_to_array_end:yb.HistogramSnapshotsListPB) |
1591 | 0 | return target; |
1592 | 0 | } |
1593 | | |
1594 | 0 | size_t HistogramSnapshotsListPB::ByteSizeLong() const { |
1595 | | // @@protoc_insertion_point(message_byte_size_start:yb.HistogramSnapshotsListPB) |
1596 | 0 | size_t total_size = 0; |
1597 | |
|
1598 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1599 | 0 | total_size += |
1600 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1601 | 0 | _internal_metadata_.unknown_fields()); |
1602 | 0 | } |
1603 | | // repeated .yb.HistogramSnapshotPB histograms = 1; |
1604 | 0 | { |
1605 | 0 | unsigned int count = static_cast<unsigned int>(this->histograms_size()); |
1606 | 0 | total_size += 1UL * count; |
1607 | 0 | for (unsigned int i = 0; i < count; i++) { |
1608 | 0 | total_size += |
1609 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1610 | 0 | this->histograms(static_cast<int>(i))); |
1611 | 0 | } |
1612 | 0 | } |
1613 | |
|
1614 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1615 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1616 | 0 | _cached_size_ = cached_size; |
1617 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1618 | 0 | return total_size; |
1619 | 0 | } |
1620 | | |
1621 | 0 | void HistogramSnapshotsListPB::MergeFrom(const ::google::protobuf::Message& from) { |
1622 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.HistogramSnapshotsListPB) |
1623 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1624 | 0 | const HistogramSnapshotsListPB* source = |
1625 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const HistogramSnapshotsListPB>( |
1626 | 0 | &from); |
1627 | 0 | if (source == NULL) { |
1628 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.HistogramSnapshotsListPB) |
1629 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1630 | 0 | } else { |
1631 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.HistogramSnapshotsListPB) |
1632 | 0 | MergeFrom(*source); |
1633 | 0 | } |
1634 | 0 | } |
1635 | | |
1636 | 0 | void HistogramSnapshotsListPB::MergeFrom(const HistogramSnapshotsListPB& from) { |
1637 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.HistogramSnapshotsListPB) |
1638 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1639 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1640 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1641 | 0 | (void) cached_has_bits; |
1642 | |
|
1643 | 0 | histograms_.MergeFrom(from.histograms_); |
1644 | 0 | } |
1645 | | |
1646 | 0 | void HistogramSnapshotsListPB::CopyFrom(const ::google::protobuf::Message& from) { |
1647 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.HistogramSnapshotsListPB) |
1648 | 0 | if (&from == this) return; |
1649 | 0 | Clear(); |
1650 | 0 | MergeFrom(from); |
1651 | 0 | } |
1652 | | |
1653 | 0 | void HistogramSnapshotsListPB::CopyFrom(const HistogramSnapshotsListPB& from) { |
1654 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.HistogramSnapshotsListPB) |
1655 | 0 | if (&from == this) return; |
1656 | 0 | Clear(); |
1657 | 0 | MergeFrom(from); |
1658 | 0 | } |
1659 | | |
1660 | 0 | bool HistogramSnapshotsListPB::IsInitialized() const { |
1661 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->histograms())) return false; |
1662 | 0 | return true; |
1663 | 0 | } |
1664 | | |
1665 | 0 | void HistogramSnapshotsListPB::Swap(HistogramSnapshotsListPB* other) { |
1666 | 0 | if (other == this) return; |
1667 | 0 | InternalSwap(other); |
1668 | 0 | } |
1669 | 0 | void HistogramSnapshotsListPB::InternalSwap(HistogramSnapshotsListPB* other) { |
1670 | 0 | using std::swap; |
1671 | 0 | histograms_.InternalSwap(&other->histograms_); |
1672 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1673 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1674 | 0 | swap(_cached_size_, other->_cached_size_); |
1675 | 0 | } |
1676 | | |
1677 | 0 | ::google::protobuf::Metadata HistogramSnapshotsListPB::GetMetadata() const { |
1678 | 0 | protobuf_yb_2futil_2fhistogram_2eproto::protobuf_AssignDescriptorsOnce(); |
1679 | 0 | return ::protobuf_yb_2futil_2fhistogram_2eproto::file_level_metadata[kIndexInFileMessages]; |
1680 | 0 | } |
1681 | | |
1682 | | |
1683 | | // @@protoc_insertion_point(namespace_scope) |
1684 | | } // namespace yb |
1685 | | |
1686 | | // @@protoc_insertion_point(global_scope) |