/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_types.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_types.proto |
3 | | |
4 | | #include "yb/master/master_types.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 MasterErrorPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<MasterErrorPB> |
28 | | _instance; |
29 | | } _MasterErrorPB_default_instance_; |
30 | | class NamespaceIdentifierPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<NamespaceIdentifierPB> |
33 | | _instance; |
34 | | } _NamespaceIdentifierPB_default_instance_; |
35 | | class TableIdentifierPBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<TableIdentifierPB> |
38 | | _instance; |
39 | | } _TableIdentifierPB_default_instance_; |
40 | | class TSRegistrationPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<TSRegistrationPB> |
43 | | _instance; |
44 | | } _TSRegistrationPB_default_instance_; |
45 | | class TServerMetricsPB_PathMetricsDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<TServerMetricsPB_PathMetrics> |
48 | | _instance; |
49 | | } _TServerMetricsPB_PathMetrics_default_instance_; |
50 | | class TServerMetricsPBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<TServerMetricsPB> |
53 | | _instance; |
54 | | } _TServerMetricsPB_default_instance_; |
55 | | } // namespace master |
56 | | } // namespace yb |
57 | | namespace protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto { |
58 | 26.8k | void InitDefaultsMasterErrorPBImpl() { |
59 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
60 | | |
61 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
62 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
63 | | #else |
64 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
65 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
66 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
67 | 26.8k | { |
68 | 26.8k | void* ptr = &::yb::master::_MasterErrorPB_default_instance_; |
69 | 26.8k | new (ptr) ::yb::master::MasterErrorPB(); |
70 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
71 | 26.8k | } |
72 | 26.8k | ::yb::master::MasterErrorPB::InitAsDefaultInstance(); |
73 | 26.8k | } |
74 | | |
75 | 4.50M | void InitDefaultsMasterErrorPB() { |
76 | 4.50M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
77 | 4.50M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMasterErrorPBImpl); |
78 | 4.50M | } |
79 | | |
80 | 26.8k | void InitDefaultsNamespaceIdentifierPBImpl() { |
81 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
82 | | |
83 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
84 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
85 | | #else |
86 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
87 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
88 | 26.8k | { |
89 | 26.8k | void* ptr = &::yb::master::_NamespaceIdentifierPB_default_instance_; |
90 | 26.8k | new (ptr) ::yb::master::NamespaceIdentifierPB(); |
91 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
92 | 26.8k | } |
93 | 26.8k | ::yb::master::NamespaceIdentifierPB::InitAsDefaultInstance(); |
94 | 26.8k | } |
95 | | |
96 | 1.71M | void InitDefaultsNamespaceIdentifierPB() { |
97 | 1.71M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
98 | 1.71M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNamespaceIdentifierPBImpl); |
99 | 1.71M | } |
100 | | |
101 | 26.8k | void InitDefaultsTableIdentifierPBImpl() { |
102 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
103 | | |
104 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
105 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
106 | | #else |
107 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
108 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
109 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsNamespaceIdentifierPB(); |
110 | 26.8k | { |
111 | 26.8k | void* ptr = &::yb::master::_TableIdentifierPB_default_instance_; |
112 | 26.8k | new (ptr) ::yb::master::TableIdentifierPB(); |
113 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
114 | 26.8k | } |
115 | 26.8k | ::yb::master::TableIdentifierPB::InitAsDefaultInstance(); |
116 | 26.8k | } |
117 | | |
118 | 2.22M | void InitDefaultsTableIdentifierPB() { |
119 | 2.22M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
120 | 2.22M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTableIdentifierPBImpl); |
121 | 2.22M | } |
122 | | |
123 | 26.8k | void InitDefaultsTSRegistrationPBImpl() { |
124 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
125 | | |
126 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
127 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
128 | | #else |
129 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
130 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
131 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerRegistrationPB(); |
132 | 26.8k | { |
133 | 26.8k | void* ptr = &::yb::master::_TSRegistrationPB_default_instance_; |
134 | 26.8k | new (ptr) ::yb::master::TSRegistrationPB(); |
135 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
136 | 26.8k | } |
137 | 26.8k | ::yb::master::TSRegistrationPB::InitAsDefaultInstance(); |
138 | 26.8k | } |
139 | | |
140 | 35.8M | void InitDefaultsTSRegistrationPB() { |
141 | 35.8M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
142 | 35.8M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSRegistrationPBImpl); |
143 | 35.8M | } |
144 | | |
145 | 26.8k | void InitDefaultsTServerMetricsPB_PathMetricsImpl() { |
146 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
147 | | |
148 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
149 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
150 | | #else |
151 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
152 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
153 | 26.8k | { |
154 | 26.8k | void* ptr = &::yb::master::_TServerMetricsPB_PathMetrics_default_instance_; |
155 | 26.8k | new (ptr) ::yb::master::TServerMetricsPB_PathMetrics(); |
156 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
157 | 26.8k | } |
158 | 26.8k | ::yb::master::TServerMetricsPB_PathMetrics::InitAsDefaultInstance(); |
159 | 26.8k | } |
160 | | |
161 | 532k | void InitDefaultsTServerMetricsPB_PathMetrics() { |
162 | 532k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
163 | 532k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTServerMetricsPB_PathMetricsImpl); |
164 | 532k | } |
165 | | |
166 | 26.8k | void InitDefaultsTServerMetricsPBImpl() { |
167 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
168 | | |
169 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
170 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
171 | | #else |
172 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
173 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
174 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB_PathMetrics(); |
175 | 26.8k | { |
176 | 26.8k | void* ptr = &::yb::master::_TServerMetricsPB_default_instance_; |
177 | 26.8k | new (ptr) ::yb::master::TServerMetricsPB(); |
178 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
179 | 26.8k | } |
180 | 26.8k | ::yb::master::TServerMetricsPB::InitAsDefaultInstance(); |
181 | 26.8k | } |
182 | | |
183 | 2.26M | void InitDefaultsTServerMetricsPB() { |
184 | 2.26M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
185 | 2.26M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTServerMetricsPBImpl); |
186 | 2.26M | } |
187 | | |
188 | | ::google::protobuf::Metadata file_level_metadata[6]; |
189 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; |
190 | | |
191 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
192 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::MasterErrorPB, _has_bits_), |
193 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::MasterErrorPB, _internal_metadata_), |
194 | | ~0u, // no _extensions_ |
195 | | ~0u, // no _oneof_case_ |
196 | | ~0u, // no _weak_field_map_ |
197 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::MasterErrorPB, code_), |
198 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::MasterErrorPB, status_), |
199 | | 1, |
200 | | 0, |
201 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::NamespaceIdentifierPB, _has_bits_), |
202 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::NamespaceIdentifierPB, _internal_metadata_), |
203 | | ~0u, // no _extensions_ |
204 | | ~0u, // no _oneof_case_ |
205 | | ~0u, // no _weak_field_map_ |
206 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::NamespaceIdentifierPB, id_), |
207 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::NamespaceIdentifierPB, name_), |
208 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::NamespaceIdentifierPB, database_type_), |
209 | | 0, |
210 | | 1, |
211 | | 2, |
212 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TableIdentifierPB, _has_bits_), |
213 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TableIdentifierPB, _internal_metadata_), |
214 | | ~0u, // no _extensions_ |
215 | | ~0u, // no _oneof_case_ |
216 | | ~0u, // no _weak_field_map_ |
217 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TableIdentifierPB, table_id_), |
218 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TableIdentifierPB, table_name_), |
219 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TableIdentifierPB, namespace__), |
220 | | 0, |
221 | | 1, |
222 | | 2, |
223 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSRegistrationPB, _has_bits_), |
224 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSRegistrationPB, _internal_metadata_), |
225 | | ~0u, // no _extensions_ |
226 | | ~0u, // no _oneof_case_ |
227 | | ~0u, // no _weak_field_map_ |
228 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSRegistrationPB, common_), |
229 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSRegistrationPB, capabilities_), |
230 | | 0, |
231 | | ~0u, |
232 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB_PathMetrics, _has_bits_), |
233 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB_PathMetrics, _internal_metadata_), |
234 | | ~0u, // no _extensions_ |
235 | | ~0u, // no _oneof_case_ |
236 | | ~0u, // no _weak_field_map_ |
237 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB_PathMetrics, path_id_), |
238 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB_PathMetrics, used_space_), |
239 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB_PathMetrics, total_space_), |
240 | | 0, |
241 | | 1, |
242 | | 2, |
243 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, _has_bits_), |
244 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, _internal_metadata_), |
245 | | ~0u, // no _extensions_ |
246 | | ~0u, // no _oneof_case_ |
247 | | ~0u, // no _weak_field_map_ |
248 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, total_sst_file_size_), |
249 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, total_ram_usage_), |
250 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, read_ops_per_sec_), |
251 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, write_ops_per_sec_), |
252 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, uncompressed_sst_file_size_), |
253 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, uptime_seconds_), |
254 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, num_sst_files_), |
255 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, path_metrics_), |
256 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TServerMetricsPB, disable_tablet_split_if_default_ttl_), |
257 | | 0, |
258 | | 1, |
259 | | 2, |
260 | | 3, |
261 | | 4, |
262 | | 5, |
263 | | 6, |
264 | | ~0u, |
265 | | 7, |
266 | | }; |
267 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
268 | | { 0, 7, sizeof(::yb::master::MasterErrorPB)}, |
269 | | { 9, 17, sizeof(::yb::master::NamespaceIdentifierPB)}, |
270 | | { 20, 28, sizeof(::yb::master::TableIdentifierPB)}, |
271 | | { 31, 38, sizeof(::yb::master::TSRegistrationPB)}, |
272 | | { 40, 48, sizeof(::yb::master::TServerMetricsPB_PathMetrics)}, |
273 | | { 51, 65, sizeof(::yb::master::TServerMetricsPB)}, |
274 | | }; |
275 | | |
276 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
277 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_MasterErrorPB_default_instance_), |
278 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_NamespaceIdentifierPB_default_instance_), |
279 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TableIdentifierPB_default_instance_), |
280 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSRegistrationPB_default_instance_), |
281 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TServerMetricsPB_PathMetrics_default_instance_), |
282 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TServerMetricsPB_default_instance_), |
283 | | }; |
284 | | |
285 | 5.10k | void protobuf_AssignDescriptors() { |
286 | 5.10k | AddDescriptors(); |
287 | 5.10k | ::google::protobuf::MessageFactory* factory = NULL; |
288 | 5.10k | AssignDescriptors( |
289 | 5.10k | "yb/master/master_types.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
290 | 5.10k | file_level_metadata, file_level_enum_descriptors, NULL); |
291 | 5.10k | } |
292 | | |
293 | 2.87M | void protobuf_AssignDescriptorsOnce() { |
294 | 2.87M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
295 | 2.87M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
296 | 2.87M | } |
297 | | |
298 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
299 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
300 | 0 | protobuf_AssignDescriptorsOnce(); |
301 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); |
302 | 0 | } |
303 | | |
304 | 26.8k | void AddDescriptorsImpl() { |
305 | 26.8k | InitDefaults(); |
306 | 26.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
307 | 26.8k | "\n\034yb/master/master_types.proto\022\tyb.maste" |
308 | 26.8k | "r\032\034yb/common/common_types.proto\032\035yb/comm" |
309 | 26.8k | "on/wire_protocol.proto\"\372\010\n\rMasterErrorPB" |
310 | 26.8k | "\022+\n\004code\030\001 \002(\0162\035.yb.master.MasterErrorPB" |
311 | 26.8k | ".Code\022\037\n\006status\030\002 \002(\0132\017.yb.AppStatusPB\"\232" |
312 | 26.8k | "\010\n\004Code\022\021\n\rUNKNOWN_ERROR\020\001\022\022\n\016INVALID_SC" |
313 | 26.8k | "HEMA\020\002\022\024\n\020OBJECT_NOT_FOUND\020\003\022\032\n\026OBJECT_A" |
314 | 26.8k | "LREADY_PRESENT\020\004\022\024\n\020TOO_MANY_TABLETS\020\005\022#" |
315 | 26.8k | "\n\037CATALOG_MANAGER_NOT_INITIALIZED\020\006\022\022\n\016N" |
316 | 26.8k | "OT_THE_LEADER\020\007\022\037\n\033REPLICATION_FACTOR_TO" |
317 | 26.8k | "O_HIGH\020\010\022\033\n\027CONFIG_VERSION_MISMATCH\020\t\022\033\n" |
318 | 26.8k | "\027IN_TRANSITION_CAN_RETRY\020\n\022\027\n\023NAMESPACE_" |
319 | 26.8k | "NOT_FOUND\020\013\022\035\n\031NAMESPACE_ALREADY_PRESENT" |
320 | 26.8k | "\020\014\022\025\n\021NO_NAMESPACE_USED\020\r\022\032\n\026NAMESPACE_I" |
321 | 26.8k | "S_NOT_EMPTY\020\016\022\032\n\026INVALID_CLUSTER_CONFIG\020" |
322 | 26.8k | "\017\022 \n\034CAN_RETRY_LOAD_BALANCE_CHECK\020\020\022\022\n\016T" |
323 | 26.8k | "YPE_NOT_FOUND\020\021\022\020\n\014INVALID_TYPE\020\022\022\030\n\024TYP" |
324 | 26.8k | "E_ALREADY_PRESENT\020\023\022\026\n\022INVALID_TABLE_TYP" |
325 | 26.8k | "E\020\024\022!\n\035TABLE_CREATION_IS_IN_PROGRESS\020\025\022\026" |
326 | 26.8k | "\n\022SNAPSHOT_NOT_FOUND\020\026\022\023\n\017SNAPSHOT_FAILE" |
327 | 26.8k | "D\020\027\022\026\n\022SNAPSHOT_CANCELLED\020\030\022\037\n\033PARALLEL_" |
328 | 26.8k | "SNAPSHOT_OPERATION\020\031\022\031\n\025SNAPSHOT_IS_NOT_" |
329 | 26.8k | "READY\020\032\022\030\n\024ROLE_ALREADY_PRESENT\020\033\022\022\n\016ROL" |
330 | 26.8k | "E_NOT_FOUND\020\034\022\023\n\017INVALID_REQUEST\020\035\022\022\n\016NO" |
331 | 26.8k | "T_AUTHORIZED\020 \0221\n-CAN_RETRY_ARE_LEADERS_" |
332 | 26.8k | "ON_PREFERRED_ONLY_CHECK\020\036\022\032\n\026REDIS_CONFI" |
333 | 26.8k | "G_NOT_FOUND\020\037\022!\n\035LOAD_BALANCER_RECENTLY_" |
334 | 26.8k | "ACTIVE\020!\022\022\n\016INTERNAL_ERROR\020\"\022\"\n\036INVALID_" |
335 | 26.8k | "TABLE_REPLICATION_INFO\020#\022\027\n\023REACHED_SPLI" |
336 | 26.8k | "T_LIMIT\020$\022!\n\035SPLIT_OR_BACKFILL_IN_PROGRE" |
337 | 26.8k | "SS\020%\022\026\n\022TABLET_NOT_RUNNING\020&\022\025\n\021TABLE_NO" |
338 | 26.8k | "T_RUNNING\020\'\"k\n\025NamespaceIdentifierPB\022\n\n\002" |
339 | 26.8k | "id\030\001 \001(\014\022\014\n\004name\030\002 \001(\t\0228\n\rdatabase_type\030" |
340 | 26.8k | "\003 \001(\0162\017.yb.YQLDatabase:\020YQL_DATABASE_CQL" |
341 | 26.8k | "\"n\n\021TableIdentifierPB\022\020\n\010table_id\030\001 \001(\014\022" |
342 | 26.8k | "\022\n\ntable_name\030\002 \001(\t\0223\n\tnamespace\030\003 \001(\0132 " |
343 | 26.8k | ".yb.master.NamespaceIdentifierPB\"R\n\020TSRe" |
344 | 26.8k | "gistrationPB\022(\n\006common\030\001 \001(\0132\030.yb.Server" |
345 | 26.8k | "RegistrationPB\022\024\n\014capabilities\030\002 \003(\007\"\205\003\n" |
346 | 26.8k | "\020TServerMetricsPB\022\033\n\023total_sst_file_size" |
347 | 26.8k | "\030\001 \001(\003\022\027\n\017total_ram_usage\030\002 \001(\003\022\030\n\020read_" |
348 | 26.8k | "ops_per_sec\030\003 \001(\001\022\031\n\021write_ops_per_sec\030\004" |
349 | 26.8k | " \001(\001\022\"\n\032uncompressed_sst_file_size\030\005 \001(\003" |
350 | 26.8k | "\022\026\n\016uptime_seconds\030\006 \001(\004\022\025\n\rnum_sst_file" |
351 | 26.8k | "s\030\007 \001(\004\022=\n\014path_metrics\030\010 \003(\0132\'.yb.maste" |
352 | 26.8k | "r.TServerMetricsPB.PathMetrics\022+\n#disabl" |
353 | 26.8k | "e_tablet_split_if_default_ttl\030\t \001(\010\032G\n\013P" |
354 | 26.8k | "athMetrics\022\017\n\007path_id\030\001 \002(\014\022\022\n\nused_spac" |
355 | 26.8k | "e\030\002 \001(\004\022\023\n\013total_space\030\003 \001(\004*\\\n\014Relation" |
356 | 26.8k | "Type\022\031\n\025SYSTEM_TABLE_RELATION\020\001\022\027\n\023USER_" |
357 | 26.8k | "TABLE_RELATION\020\002\022\030\n\024INDEX_TABLE_RELATION" |
358 | 26.8k | "\020\003*\362\001\n\017SysRowEntryType\022\013\n\007UNKNOWN\020\000\022\t\n\005T" |
359 | 26.8k | "ABLE\020\001\022\n\n\006TABLET\020\002\022\022\n\016CLUSTER_CONFIG\020\003\022\r" |
360 | 26.8k | "\n\tNAMESPACE\020\004\022\n\n\006UDTYPE\020\005\022\010\n\004ROLE\020\006\022\014\n\010S" |
361 | 26.8k | "NAPSHOT\020\007\022\020\n\014REDIS_CONFIG\020\010\022\016\n\nSYS_CONFI" |
362 | 26.8k | "G\020\t\022\016\n\nCDC_STREAM\020\n\022\030\n\024UNIVERSE_REPLICAT" |
363 | 26.8k | "ION\020\013\022\025\n\021SNAPSHOT_SCHEDULE\020\014\022\021\n\rDDL_LOG_" |
364 | 26.8k | "ENTRY\020\rB\017\n\rorg.yb.master" |
365 | 26.8k | }; |
366 | 26.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
367 | 26.8k | descriptor, 2304); |
368 | 26.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
369 | 26.8k | "yb/master/master_types.proto", &protobuf_RegisterTypes); |
370 | 26.8k | ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors(); |
371 | 26.8k | ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors(); |
372 | 26.8k | } |
373 | | |
374 | 327k | void AddDescriptors() { |
375 | 327k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
376 | 327k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
377 | 327k | } |
378 | | // Force AddDescriptors() to be called at dynamic initialization time. |
379 | | struct StaticDescriptorInitializer { |
380 | 26.8k | StaticDescriptorInitializer() { |
381 | 26.8k | AddDescriptors(); |
382 | 26.8k | } |
383 | | } static_descriptor_initializer; |
384 | | } // namespace protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto |
385 | | namespace yb { |
386 | | namespace master { |
387 | 9.50k | const ::google::protobuf::EnumDescriptor* MasterErrorPB_Code_descriptor() { |
388 | 9.50k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
389 | 9.50k | return protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_enum_descriptors[0]; |
390 | 9.50k | } |
391 | 2.79M | bool MasterErrorPB_Code_IsValid(int value) { |
392 | 2.79M | switch (value) { |
393 | 231 | case 1: |
394 | 248 | case 2: |
395 | 37.9k | case 3: |
396 | 37.9k | case 4: |
397 | 37.9k | case 5: |
398 | 1.57M | case 6: |
399 | 2.78M | case 7: |
400 | 2.78M | case 8: |
401 | 2.78M | case 9: |
402 | 2.78M | case 10: |
403 | 2.78M | case 11: |
404 | 2.78M | case 12: |
405 | 2.78M | case 13: |
406 | 2.78M | case 14: |
407 | 2.78M | case 15: |
408 | 2.78M | case 16: |
409 | 2.78M | case 17: |
410 | 2.78M | case 18: |
411 | 2.78M | case 19: |
412 | 2.78M | case 20: |
413 | 2.78M | case 21: |
414 | 2.78M | case 22: |
415 | 2.78M | case 23: |
416 | 2.78M | case 24: |
417 | 2.78M | case 25: |
418 | 2.78M | case 26: |
419 | 2.78M | case 27: |
420 | 2.78M | case 28: |
421 | 2.78M | case 29: |
422 | 2.78M | case 30: |
423 | 2.79M | case 31: |
424 | 2.79M | case 32: |
425 | 2.79M | case 33: |
426 | 2.79M | case 34: |
427 | 2.79M | case 35: |
428 | 2.79M | case 36: |
429 | 2.79M | case 37: |
430 | 2.79M | case 38: |
431 | 2.79M | case 39: |
432 | 2.79M | return true; |
433 | 0 | default: |
434 | 0 | return false; |
435 | 2.79M | } |
436 | 2.79M | } |
437 | | |
438 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
439 | | const MasterErrorPB_Code MasterErrorPB::UNKNOWN_ERROR; |
440 | | const MasterErrorPB_Code MasterErrorPB::INVALID_SCHEMA; |
441 | | const MasterErrorPB_Code MasterErrorPB::OBJECT_NOT_FOUND; |
442 | | const MasterErrorPB_Code MasterErrorPB::OBJECT_ALREADY_PRESENT; |
443 | | const MasterErrorPB_Code MasterErrorPB::TOO_MANY_TABLETS; |
444 | | const MasterErrorPB_Code MasterErrorPB::CATALOG_MANAGER_NOT_INITIALIZED; |
445 | | const MasterErrorPB_Code MasterErrorPB::NOT_THE_LEADER; |
446 | | const MasterErrorPB_Code MasterErrorPB::REPLICATION_FACTOR_TOO_HIGH; |
447 | | const MasterErrorPB_Code MasterErrorPB::CONFIG_VERSION_MISMATCH; |
448 | | const MasterErrorPB_Code MasterErrorPB::IN_TRANSITION_CAN_RETRY; |
449 | | const MasterErrorPB_Code MasterErrorPB::NAMESPACE_NOT_FOUND; |
450 | | const MasterErrorPB_Code MasterErrorPB::NAMESPACE_ALREADY_PRESENT; |
451 | | const MasterErrorPB_Code MasterErrorPB::NO_NAMESPACE_USED; |
452 | | const MasterErrorPB_Code MasterErrorPB::NAMESPACE_IS_NOT_EMPTY; |
453 | | const MasterErrorPB_Code MasterErrorPB::INVALID_CLUSTER_CONFIG; |
454 | | const MasterErrorPB_Code MasterErrorPB::CAN_RETRY_LOAD_BALANCE_CHECK; |
455 | | const MasterErrorPB_Code MasterErrorPB::TYPE_NOT_FOUND; |
456 | | const MasterErrorPB_Code MasterErrorPB::INVALID_TYPE; |
457 | | const MasterErrorPB_Code MasterErrorPB::TYPE_ALREADY_PRESENT; |
458 | | const MasterErrorPB_Code MasterErrorPB::INVALID_TABLE_TYPE; |
459 | | const MasterErrorPB_Code MasterErrorPB::TABLE_CREATION_IS_IN_PROGRESS; |
460 | | const MasterErrorPB_Code MasterErrorPB::SNAPSHOT_NOT_FOUND; |
461 | | const MasterErrorPB_Code MasterErrorPB::SNAPSHOT_FAILED; |
462 | | const MasterErrorPB_Code MasterErrorPB::SNAPSHOT_CANCELLED; |
463 | | const MasterErrorPB_Code MasterErrorPB::PARALLEL_SNAPSHOT_OPERATION; |
464 | | const MasterErrorPB_Code MasterErrorPB::SNAPSHOT_IS_NOT_READY; |
465 | | const MasterErrorPB_Code MasterErrorPB::ROLE_ALREADY_PRESENT; |
466 | | const MasterErrorPB_Code MasterErrorPB::ROLE_NOT_FOUND; |
467 | | const MasterErrorPB_Code MasterErrorPB::INVALID_REQUEST; |
468 | | const MasterErrorPB_Code MasterErrorPB::NOT_AUTHORIZED; |
469 | | const MasterErrorPB_Code MasterErrorPB::CAN_RETRY_ARE_LEADERS_ON_PREFERRED_ONLY_CHECK; |
470 | | const MasterErrorPB_Code MasterErrorPB::REDIS_CONFIG_NOT_FOUND; |
471 | | const MasterErrorPB_Code MasterErrorPB::LOAD_BALANCER_RECENTLY_ACTIVE; |
472 | | const MasterErrorPB_Code MasterErrorPB::INTERNAL_ERROR; |
473 | | const MasterErrorPB_Code MasterErrorPB::INVALID_TABLE_REPLICATION_INFO; |
474 | | const MasterErrorPB_Code MasterErrorPB::REACHED_SPLIT_LIMIT; |
475 | | const MasterErrorPB_Code MasterErrorPB::SPLIT_OR_BACKFILL_IN_PROGRESS; |
476 | | const MasterErrorPB_Code MasterErrorPB::TABLET_NOT_RUNNING; |
477 | | const MasterErrorPB_Code MasterErrorPB::TABLE_NOT_RUNNING; |
478 | | const MasterErrorPB_Code MasterErrorPB::Code_MIN; |
479 | | const MasterErrorPB_Code MasterErrorPB::Code_MAX; |
480 | | const int MasterErrorPB::Code_ARRAYSIZE; |
481 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
482 | 0 | const ::google::protobuf::EnumDescriptor* RelationType_descriptor() { |
483 | 0 | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
484 | 0 | return protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_enum_descriptors[1]; |
485 | 0 | } |
486 | 167k | bool RelationType_IsValid(int value) { |
487 | 167k | switch (value) { |
488 | 141k | case 1: |
489 | 167k | case 2: |
490 | 167k | case 3: |
491 | 167k | return true; |
492 | 0 | default: |
493 | 0 | return false; |
494 | 167k | } |
495 | 167k | } |
496 | | |
497 | 0 | const ::google::protobuf::EnumDescriptor* SysRowEntryType_descriptor() { |
498 | 0 | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
499 | 0 | return protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_enum_descriptors[2]; |
500 | 0 | } |
501 | 1.22k | bool SysRowEntryType_IsValid(int value) { |
502 | 1.22k | switch (value) { |
503 | 0 | case 0: |
504 | 248 | case 1: |
505 | 816 | case 2: |
506 | 816 | case 3: |
507 | 1.22k | case 4: |
508 | 1.22k | case 5: |
509 | 1.22k | case 6: |
510 | 1.22k | case 7: |
511 | 1.22k | case 8: |
512 | 1.22k | case 9: |
513 | 1.22k | case 10: |
514 | 1.22k | case 11: |
515 | 1.22k | case 12: |
516 | 1.22k | case 13: |
517 | 1.22k | return true; |
518 | 0 | default: |
519 | 0 | return false; |
520 | 1.22k | } |
521 | 1.22k | } |
522 | | |
523 | | |
524 | | // =================================================================== |
525 | | |
526 | 26.8k | void MasterErrorPB::InitAsDefaultInstance() { |
527 | 26.8k | ::yb::master::_MasterErrorPB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>( |
528 | 26.8k | ::yb::AppStatusPB::internal_default_instance()); |
529 | 26.8k | } |
530 | 0 | void MasterErrorPB::clear_status() { |
531 | 0 | if (status_ != NULL) status_->Clear(); |
532 | 0 | clear_has_status(); |
533 | 0 | } |
534 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
535 | | const int MasterErrorPB::kCodeFieldNumber; |
536 | | const int MasterErrorPB::kStatusFieldNumber; |
537 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
538 | | |
539 | | MasterErrorPB::MasterErrorPB() |
540 | 1.87M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
541 | 1.87M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
542 | 1.84M | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
543 | 1.84M | } |
544 | 1.87M | SharedCtor(); |
545 | | // @@protoc_insertion_point(constructor:yb.master.MasterErrorPB) |
546 | 1.87M | } |
547 | | MasterErrorPB::MasterErrorPB(const MasterErrorPB& from) |
548 | | : ::google::protobuf::Message(), |
549 | | _internal_metadata_(NULL), |
550 | | _has_bits_(from._has_bits_), |
551 | 0 | _cached_size_(0) { |
552 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
553 | 0 | if (from.has_status()) { |
554 | 0 | status_ = new ::yb::AppStatusPB(*from.status_); |
555 | 0 | } else { |
556 | 0 | status_ = NULL; |
557 | 0 | } |
558 | 0 | code_ = from.code_; |
559 | | // @@protoc_insertion_point(copy_constructor:yb.master.MasterErrorPB) |
560 | 0 | } |
561 | | |
562 | 1.87M | void MasterErrorPB::SharedCtor() { |
563 | 1.87M | _cached_size_ = 0; |
564 | 1.87M | status_ = NULL; |
565 | 1.87M | code_ = 1; |
566 | 1.87M | } |
567 | | |
568 | 1.84M | MasterErrorPB::~MasterErrorPB() { |
569 | | // @@protoc_insertion_point(destructor:yb.master.MasterErrorPB) |
570 | 1.84M | SharedDtor(); |
571 | 1.84M | } |
572 | | |
573 | 1.84M | void MasterErrorPB::SharedDtor() { |
574 | 1.84M | if (this != internal_default_instance()) delete status_1.84M ; |
575 | 1.84M | } |
576 | | |
577 | 0 | void MasterErrorPB::SetCachedSize(int size) const { |
578 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
579 | 0 | _cached_size_ = size; |
580 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
581 | 0 | } |
582 | 0 | const ::google::protobuf::Descriptor* MasterErrorPB::descriptor() { |
583 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
584 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
585 | 0 | } |
586 | | |
587 | 0 | const MasterErrorPB& MasterErrorPB::default_instance() { |
588 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
589 | 0 | return *internal_default_instance(); |
590 | 0 | } |
591 | | |
592 | 0 | MasterErrorPB* MasterErrorPB::New(::google::protobuf::Arena* arena) const { |
593 | 0 | MasterErrorPB* n = new MasterErrorPB; |
594 | 0 | if (arena != NULL) { |
595 | 0 | arena->Own(n); |
596 | 0 | } |
597 | 0 | return n; |
598 | 0 | } |
599 | | |
600 | 9.59k | void MasterErrorPB::Clear() { |
601 | | // @@protoc_insertion_point(message_clear_start:yb.master.MasterErrorPB) |
602 | 9.59k | ::google::protobuf::uint32 cached_has_bits = 0; |
603 | | // Prevent compiler warnings about cached_has_bits being unused |
604 | 9.59k | (void) cached_has_bits; |
605 | | |
606 | 9.59k | cached_has_bits = _has_bits_[0]; |
607 | 9.59k | if (cached_has_bits & 3u) { |
608 | 9.59k | if (cached_has_bits & 0x00000001u) { |
609 | 9.59k | GOOGLE_DCHECK(status_ != NULL); |
610 | 9.59k | status_->Clear(); |
611 | 9.59k | } |
612 | 9.59k | code_ = 1; |
613 | 9.59k | } |
614 | 9.59k | _has_bits_.Clear(); |
615 | 9.59k | _internal_metadata_.Clear(); |
616 | 9.59k | } |
617 | | |
618 | | bool MasterErrorPB::MergePartialFromCodedStream( |
619 | 942k | ::google::protobuf::io::CodedInputStream* input) { |
620 | 1.88M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
621 | 942k | ::google::protobuf::uint32 tag; |
622 | | // @@protoc_insertion_point(parse_start:yb.master.MasterErrorPB) |
623 | 2.82M | for (;;) { |
624 | 2.82M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
625 | 2.82M | tag = p.first; |
626 | 2.82M | if (!p.second) goto handle_unusual942k ; |
627 | 1.88M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
628 | | // required .yb.master.MasterErrorPB.Code code = 1; |
629 | 941k | case 1: { |
630 | 941k | if (static_cast< ::google::protobuf::uint8>(tag) == |
631 | 941k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
632 | 941k | int value; |
633 | 941k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
634 | 941k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
635 | 941k | input, &value))); |
636 | 941k | if (::yb::master::MasterErrorPB_Code_IsValid(value)) { |
637 | 940k | set_code(static_cast< ::yb::master::MasterErrorPB_Code >(value)); |
638 | 940k | } else { |
639 | 900 | mutable_unknown_fields()->AddVarint( |
640 | 900 | 1, static_cast< ::google::protobuf::uint64>(value)); |
641 | 900 | } |
642 | 18.4E | } else { |
643 | 18.4E | goto handle_unusual; |
644 | 18.4E | } |
645 | 941k | break; |
646 | 941k | } |
647 | | |
648 | | // required .yb.AppStatusPB status = 2; |
649 | 941k | case 2: { |
650 | 941k | if (static_cast< ::google::protobuf::uint8>(tag) == |
651 | 942k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
652 | 942k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
653 | 942k | input, mutable_status())); |
654 | 18.4E | } else { |
655 | 18.4E | goto handle_unusual; |
656 | 18.4E | } |
657 | 942k | break; |
658 | 941k | } |
659 | | |
660 | 942k | default: { |
661 | 942k | handle_unusual: |
662 | 942k | if (tag == 0942k ) { |
663 | 942k | goto success; |
664 | 942k | } |
665 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
666 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
667 | 18.4E | break; |
668 | 18.4E | } |
669 | 1.88M | } |
670 | 1.88M | } |
671 | 942k | success: |
672 | | // @@protoc_insertion_point(parse_success:yb.master.MasterErrorPB) |
673 | 942k | return true; |
674 | 0 | failure: |
675 | | // @@protoc_insertion_point(parse_failure:yb.master.MasterErrorPB) |
676 | 0 | return false; |
677 | 942k | #undef DO_ |
678 | 942k | } |
679 | | |
680 | | void MasterErrorPB::SerializeWithCachedSizes( |
681 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
682 | | // @@protoc_insertion_point(serialize_start:yb.master.MasterErrorPB) |
683 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
684 | 0 | (void) cached_has_bits; |
685 | |
|
686 | 0 | cached_has_bits = _has_bits_[0]; |
687 | | // required .yb.master.MasterErrorPB.Code code = 1; |
688 | 0 | if (cached_has_bits & 0x00000002u) { |
689 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
690 | 0 | 1, this->code(), output); |
691 | 0 | } |
692 | | |
693 | | // required .yb.AppStatusPB status = 2; |
694 | 0 | if (cached_has_bits & 0x00000001u) { |
695 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
696 | 0 | 2, *this->status_, output); |
697 | 0 | } |
698 | |
|
699 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
700 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
701 | 0 | _internal_metadata_.unknown_fields(), output); |
702 | 0 | } |
703 | | // @@protoc_insertion_point(serialize_end:yb.master.MasterErrorPB) |
704 | 0 | } |
705 | | |
706 | | ::google::protobuf::uint8* MasterErrorPB::InternalSerializeWithCachedSizesToArray( |
707 | 910k | bool deterministic, ::google::protobuf::uint8* target) const { |
708 | 910k | (void)deterministic; // Unused |
709 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.MasterErrorPB) |
710 | 910k | ::google::protobuf::uint32 cached_has_bits = 0; |
711 | 910k | (void) cached_has_bits; |
712 | | |
713 | 910k | cached_has_bits = _has_bits_[0]; |
714 | | // required .yb.master.MasterErrorPB.Code code = 1; |
715 | 910k | if (cached_has_bits & 0x00000002u) { |
716 | 910k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
717 | 910k | 1, this->code(), target); |
718 | 910k | } |
719 | | |
720 | | // required .yb.AppStatusPB status = 2; |
721 | 910k | if (cached_has_bits & 0x00000001u) { |
722 | 909k | target = ::google::protobuf::internal::WireFormatLite:: |
723 | 909k | InternalWriteMessageToArray( |
724 | 909k | 2, *this->status_, deterministic, target); |
725 | 909k | } |
726 | | |
727 | 910k | if (_internal_metadata_.have_unknown_fields()) { |
728 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
729 | 0 | _internal_metadata_.unknown_fields(), target); |
730 | 0 | } |
731 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.MasterErrorPB) |
732 | 910k | return target; |
733 | 910k | } |
734 | | |
735 | 0 | size_t MasterErrorPB::RequiredFieldsByteSizeFallback() const { |
736 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.MasterErrorPB) |
737 | 0 | size_t total_size = 0; |
738 | |
|
739 | 0 | if (has_status()) { |
740 | | // required .yb.AppStatusPB status = 2; |
741 | 0 | total_size += 1 + |
742 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
743 | 0 | *this->status_); |
744 | 0 | } |
745 | |
|
746 | 0 | if (has_code()) { |
747 | | // required .yb.master.MasterErrorPB.Code code = 1; |
748 | 0 | total_size += 1 + |
749 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); |
750 | 0 | } |
751 | |
|
752 | 0 | return total_size; |
753 | 0 | } |
754 | 1.82M | size_t MasterErrorPB::ByteSizeLong() const { |
755 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.MasterErrorPB) |
756 | 1.82M | size_t total_size = 0; |
757 | | |
758 | 1.82M | if (_internal_metadata_.have_unknown_fields()) { |
759 | 0 | total_size += |
760 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
761 | 0 | _internal_metadata_.unknown_fields()); |
762 | 0 | } |
763 | 1.82M | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
764 | | // required .yb.AppStatusPB status = 2; |
765 | 1.82M | total_size += 1 + |
766 | 1.82M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
767 | 1.82M | *this->status_); |
768 | | |
769 | | // required .yb.master.MasterErrorPB.Code code = 1; |
770 | 1.82M | total_size += 1 + |
771 | 1.82M | ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); |
772 | | |
773 | 1.82M | } else { |
774 | 3.21k | total_size += RequiredFieldsByteSizeFallback(); |
775 | 3.21k | } |
776 | 1.82M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
777 | 1.82M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
778 | 1.82M | _cached_size_ = cached_size; |
779 | 1.82M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
780 | 1.82M | return total_size; |
781 | 1.82M | } |
782 | | |
783 | 0 | void MasterErrorPB::MergeFrom(const ::google::protobuf::Message& from) { |
784 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.MasterErrorPB) |
785 | 0 | GOOGLE_DCHECK_NE(&from, this); |
786 | 0 | const MasterErrorPB* source = |
787 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const MasterErrorPB>( |
788 | 0 | &from); |
789 | 0 | if (source == NULL) { |
790 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.MasterErrorPB) |
791 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
792 | 0 | } else { |
793 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.MasterErrorPB) |
794 | 0 | MergeFrom(*source); |
795 | 0 | } |
796 | 0 | } |
797 | | |
798 | 0 | void MasterErrorPB::MergeFrom(const MasterErrorPB& from) { |
799 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.MasterErrorPB) |
800 | 0 | GOOGLE_DCHECK_NE(&from, this); |
801 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
802 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
803 | 0 | (void) cached_has_bits; |
804 | |
|
805 | 0 | cached_has_bits = from._has_bits_[0]; |
806 | 0 | if (cached_has_bits & 3u) { |
807 | 0 | if (cached_has_bits & 0x00000001u) { |
808 | 0 | mutable_status()->::yb::AppStatusPB::MergeFrom(from.status()); |
809 | 0 | } |
810 | 0 | if (cached_has_bits & 0x00000002u) { |
811 | 0 | code_ = from.code_; |
812 | 0 | } |
813 | 0 | _has_bits_[0] |= cached_has_bits; |
814 | 0 | } |
815 | 0 | } |
816 | | |
817 | 0 | void MasterErrorPB::CopyFrom(const ::google::protobuf::Message& from) { |
818 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.MasterErrorPB) |
819 | 0 | if (&from == this) return; |
820 | 0 | Clear(); |
821 | 0 | MergeFrom(from); |
822 | 0 | } |
823 | | |
824 | 0 | void MasterErrorPB::CopyFrom(const MasterErrorPB& from) { |
825 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.MasterErrorPB) |
826 | 0 | if (&from == this) return; |
827 | 0 | Clear(); |
828 | 0 | MergeFrom(from); |
829 | 0 | } |
830 | | |
831 | 1.85M | bool MasterErrorPB::IsInitialized() const { |
832 | 1.85M | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false0 ; |
833 | 1.85M | if (has_status()) { |
834 | 1.84M | if (!this->status_->IsInitialized()) return false0 ; |
835 | 1.84M | } |
836 | 1.85M | return true; |
837 | 1.85M | } |
838 | | |
839 | 0 | void MasterErrorPB::Swap(MasterErrorPB* other) { |
840 | 0 | if (other == this) return; |
841 | 0 | InternalSwap(other); |
842 | 0 | } |
843 | 0 | void MasterErrorPB::InternalSwap(MasterErrorPB* other) { |
844 | 0 | using std::swap; |
845 | 0 | swap(status_, other->status_); |
846 | 0 | swap(code_, other->code_); |
847 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
848 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
849 | 0 | swap(_cached_size_, other->_cached_size_); |
850 | 0 | } |
851 | | |
852 | 797k | ::google::protobuf::Metadata MasterErrorPB::GetMetadata() const { |
853 | 797k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
854 | 797k | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
855 | 797k | } |
856 | | |
857 | | |
858 | | // =================================================================== |
859 | | |
860 | 26.8k | void NamespaceIdentifierPB::InitAsDefaultInstance() { |
861 | 26.8k | } |
862 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
863 | | const int NamespaceIdentifierPB::kIdFieldNumber; |
864 | | const int NamespaceIdentifierPB::kNameFieldNumber; |
865 | | const int NamespaceIdentifierPB::kDatabaseTypeFieldNumber; |
866 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
867 | | |
868 | | NamespaceIdentifierPB::NamespaceIdentifierPB() |
869 | 1.25M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
870 | 1.25M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
871 | 1.22M | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsNamespaceIdentifierPB(); |
872 | 1.22M | } |
873 | 1.25M | SharedCtor(); |
874 | | // @@protoc_insertion_point(constructor:yb.master.NamespaceIdentifierPB) |
875 | 1.25M | } |
876 | | NamespaceIdentifierPB::NamespaceIdentifierPB(const NamespaceIdentifierPB& from) |
877 | | : ::google::protobuf::Message(), |
878 | | _internal_metadata_(NULL), |
879 | | _has_bits_(from._has_bits_), |
880 | 261k | _cached_size_(0) { |
881 | 261k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
882 | 261k | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
883 | 261k | if (from.has_id()) { |
884 | 206k | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
885 | 206k | } |
886 | 261k | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
887 | 261k | if (from.has_name()) { |
888 | 261k | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
889 | 261k | } |
890 | 261k | database_type_ = from.database_type_; |
891 | | // @@protoc_insertion_point(copy_constructor:yb.master.NamespaceIdentifierPB) |
892 | 261k | } |
893 | | |
894 | 1.25M | void NamespaceIdentifierPB::SharedCtor() { |
895 | 1.25M | _cached_size_ = 0; |
896 | 1.25M | id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
897 | 1.25M | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
898 | 1.25M | database_type_ = 2; |
899 | 1.25M | } |
900 | | |
901 | 1.44M | NamespaceIdentifierPB::~NamespaceIdentifierPB() { |
902 | | // @@protoc_insertion_point(destructor:yb.master.NamespaceIdentifierPB) |
903 | 1.44M | SharedDtor(); |
904 | 1.44M | } |
905 | | |
906 | 1.44M | void NamespaceIdentifierPB::SharedDtor() { |
907 | 1.44M | id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
908 | 1.44M | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
909 | 1.44M | } |
910 | | |
911 | 0 | void NamespaceIdentifierPB::SetCachedSize(int size) const { |
912 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
913 | 0 | _cached_size_ = size; |
914 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
915 | 0 | } |
916 | 0 | const ::google::protobuf::Descriptor* NamespaceIdentifierPB::descriptor() { |
917 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
918 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
919 | 0 | } |
920 | | |
921 | 0 | const NamespaceIdentifierPB& NamespaceIdentifierPB::default_instance() { |
922 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsNamespaceIdentifierPB(); |
923 | 0 | return *internal_default_instance(); |
924 | 0 | } |
925 | | |
926 | 0 | NamespaceIdentifierPB* NamespaceIdentifierPB::New(::google::protobuf::Arena* arena) const { |
927 | 0 | NamespaceIdentifierPB* n = new NamespaceIdentifierPB; |
928 | 0 | if (arena != NULL) { |
929 | 0 | arena->Own(n); |
930 | 0 | } |
931 | 0 | return n; |
932 | 0 | } |
933 | | |
934 | 448 | void NamespaceIdentifierPB::Clear() { |
935 | | // @@protoc_insertion_point(message_clear_start:yb.master.NamespaceIdentifierPB) |
936 | 448 | ::google::protobuf::uint32 cached_has_bits = 0; |
937 | | // Prevent compiler warnings about cached_has_bits being unused |
938 | 448 | (void) cached_has_bits; |
939 | | |
940 | 448 | cached_has_bits = _has_bits_[0]; |
941 | 448 | if (cached_has_bits & 7u) { |
942 | 446 | if (cached_has_bits & 0x00000001u) { |
943 | 443 | GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
944 | 443 | (*id_.UnsafeRawStringPointer())->clear(); |
945 | 443 | } |
946 | 446 | if (cached_has_bits & 0x00000002u) { |
947 | 442 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
948 | 442 | (*name_.UnsafeRawStringPointer())->clear(); |
949 | 442 | } |
950 | 446 | database_type_ = 2; |
951 | 446 | } |
952 | 448 | _has_bits_.Clear(); |
953 | 448 | _internal_metadata_.Clear(); |
954 | 448 | } |
955 | | |
956 | | bool NamespaceIdentifierPB::MergePartialFromCodedStream( |
957 | 517k | ::google::protobuf::io::CodedInputStream* input) { |
958 | 1.11M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
959 | 517k | ::google::protobuf::uint32 tag; |
960 | | // @@protoc_insertion_point(parse_start:yb.master.NamespaceIdentifierPB) |
961 | 1.63M | for (;;) { |
962 | 1.63M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
963 | 1.63M | tag = p.first; |
964 | 1.63M | if (!p.second) goto handle_unusual517k ; |
965 | 1.11M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
966 | | // optional bytes id = 1; |
967 | 450k | case 1: { |
968 | 450k | if (static_cast< ::google::protobuf::uint8>(tag) == |
969 | 450k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
970 | 450k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
971 | 450k | input, this->mutable_id())); |
972 | 450k | } else { |
973 | 0 | goto handle_unusual; |
974 | 0 | } |
975 | 450k | break; |
976 | 450k | } |
977 | | |
978 | | // optional string name = 2; |
979 | 511k | case 2: { |
980 | 511k | if (static_cast< ::google::protobuf::uint8>(tag) == |
981 | 511k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
982 | 511k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
983 | 511k | input, this->mutable_name())); |
984 | 511k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
985 | 511k | this->name().data(), static_cast<int>(this->name().length()), |
986 | 511k | ::google::protobuf::internal::WireFormat::PARSE, |
987 | 511k | "yb.master.NamespaceIdentifierPB.name"); |
988 | 18.4E | } else { |
989 | 18.4E | goto handle_unusual; |
990 | 18.4E | } |
991 | 511k | break; |
992 | 511k | } |
993 | | |
994 | | // optional .yb.YQLDatabase database_type = 3 [default = YQL_DATABASE_CQL]; |
995 | 511k | case 3: { |
996 | 154k | if (static_cast< ::google::protobuf::uint8>(tag) == |
997 | 154k | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
998 | 154k | int value; |
999 | 154k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1000 | 154k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
1001 | 154k | input, &value))); |
1002 | 154k | if (::yb::YQLDatabase_IsValid(value)) { |
1003 | 154k | set_database_type(static_cast< ::yb::YQLDatabase >(value)); |
1004 | 154k | } else { |
1005 | 436 | mutable_unknown_fields()->AddVarint( |
1006 | 436 | 3, static_cast< ::google::protobuf::uint64>(value)); |
1007 | 436 | } |
1008 | 18.4E | } else { |
1009 | 18.4E | goto handle_unusual; |
1010 | 18.4E | } |
1011 | 154k | break; |
1012 | 154k | } |
1013 | | |
1014 | 154k | default: { |
1015 | 517k | handle_unusual: |
1016 | 517k | if (tag == 0517k ) { |
1017 | 517k | goto success; |
1018 | 517k | } |
1019 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1020 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1021 | 18.4E | break; |
1022 | 18.4E | } |
1023 | 1.11M | } |
1024 | 1.11M | } |
1025 | 517k | success: |
1026 | | // @@protoc_insertion_point(parse_success:yb.master.NamespaceIdentifierPB) |
1027 | 517k | return true; |
1028 | 0 | failure: |
1029 | | // @@protoc_insertion_point(parse_failure:yb.master.NamespaceIdentifierPB) |
1030 | 0 | return false; |
1031 | 517k | #undef DO_ |
1032 | 517k | } |
1033 | | |
1034 | | void NamespaceIdentifierPB::SerializeWithCachedSizes( |
1035 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1036 | | // @@protoc_insertion_point(serialize_start:yb.master.NamespaceIdentifierPB) |
1037 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1038 | 0 | (void) cached_has_bits; |
1039 | |
|
1040 | 0 | cached_has_bits = _has_bits_[0]; |
1041 | | // optional bytes id = 1; |
1042 | 0 | if (cached_has_bits & 0x00000001u) { |
1043 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1044 | 0 | 1, this->id(), output); |
1045 | 0 | } |
1046 | | |
1047 | | // optional string name = 2; |
1048 | 0 | if (cached_has_bits & 0x00000002u) { |
1049 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1050 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
1051 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1052 | 0 | "yb.master.NamespaceIdentifierPB.name"); |
1053 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1054 | 0 | 2, this->name(), output); |
1055 | 0 | } |
1056 | | |
1057 | | // optional .yb.YQLDatabase database_type = 3 [default = YQL_DATABASE_CQL]; |
1058 | 0 | if (cached_has_bits & 0x00000004u) { |
1059 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
1060 | 0 | 3, this->database_type(), output); |
1061 | 0 | } |
1062 | |
|
1063 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1064 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1065 | 0 | _internal_metadata_.unknown_fields(), output); |
1066 | 0 | } |
1067 | | // @@protoc_insertion_point(serialize_end:yb.master.NamespaceIdentifierPB) |
1068 | 0 | } |
1069 | | |
1070 | | ::google::protobuf::uint8* NamespaceIdentifierPB::InternalSerializeWithCachedSizesToArray( |
1071 | 540k | bool deterministic, ::google::protobuf::uint8* target) const { |
1072 | 540k | (void)deterministic; // Unused |
1073 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.NamespaceIdentifierPB) |
1074 | 540k | ::google::protobuf::uint32 cached_has_bits = 0; |
1075 | 540k | (void) cached_has_bits; |
1076 | | |
1077 | 540k | cached_has_bits = _has_bits_[0]; |
1078 | | // optional bytes id = 1; |
1079 | 540k | if (cached_has_bits & 0x00000001u) { |
1080 | 479k | target = |
1081 | 479k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1082 | 479k | 1, this->id(), target); |
1083 | 479k | } |
1084 | | |
1085 | | // optional string name = 2; |
1086 | 540k | if (cached_has_bits & 0x00000002u) { |
1087 | 534k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1088 | 534k | this->name().data(), static_cast<int>(this->name().length()), |
1089 | 534k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1090 | 534k | "yb.master.NamespaceIdentifierPB.name"); |
1091 | 534k | target = |
1092 | 534k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1093 | 534k | 2, this->name(), target); |
1094 | 534k | } |
1095 | | |
1096 | | // optional .yb.YQLDatabase database_type = 3 [default = YQL_DATABASE_CQL]; |
1097 | 540k | if (cached_has_bits & 0x00000004u) { |
1098 | 174k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
1099 | 174k | 3, this->database_type(), target); |
1100 | 174k | } |
1101 | | |
1102 | 540k | if (_internal_metadata_.have_unknown_fields()) { |
1103 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1104 | 0 | _internal_metadata_.unknown_fields(), target); |
1105 | 0 | } |
1106 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.NamespaceIdentifierPB) |
1107 | 540k | return target; |
1108 | 540k | } |
1109 | | |
1110 | 1.08M | size_t NamespaceIdentifierPB::ByteSizeLong() const { |
1111 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.NamespaceIdentifierPB) |
1112 | 1.08M | size_t total_size = 0; |
1113 | | |
1114 | 1.08M | if (_internal_metadata_.have_unknown_fields()) { |
1115 | 0 | total_size += |
1116 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1117 | 0 | _internal_metadata_.unknown_fields()); |
1118 | 0 | } |
1119 | 1.08M | if (_has_bits_[0 / 32] & 7u) { |
1120 | | // optional bytes id = 1; |
1121 | 1.08M | if (has_id()) { |
1122 | 958k | total_size += 1 + |
1123 | 958k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1124 | 958k | this->id()); |
1125 | 958k | } |
1126 | | |
1127 | | // optional string name = 2; |
1128 | 1.08M | if (has_name()) { |
1129 | 1.06M | total_size += 1 + |
1130 | 1.06M | ::google::protobuf::internal::WireFormatLite::StringSize( |
1131 | 1.06M | this->name()); |
1132 | 1.06M | } |
1133 | | |
1134 | | // optional .yb.YQLDatabase database_type = 3 [default = YQL_DATABASE_CQL]; |
1135 | 1.08M | if (has_database_type()) { |
1136 | 348k | total_size += 1 + |
1137 | 348k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_type()); |
1138 | 348k | } |
1139 | | |
1140 | 1.08M | } |
1141 | 1.08M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1142 | 1.08M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1143 | 1.08M | _cached_size_ = cached_size; |
1144 | 1.08M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1145 | 1.08M | return total_size; |
1146 | 1.08M | } |
1147 | | |
1148 | 0 | void NamespaceIdentifierPB::MergeFrom(const ::google::protobuf::Message& from) { |
1149 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.NamespaceIdentifierPB) |
1150 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1151 | 0 | const NamespaceIdentifierPB* source = |
1152 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const NamespaceIdentifierPB>( |
1153 | 0 | &from); |
1154 | 0 | if (source == NULL) { |
1155 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.NamespaceIdentifierPB) |
1156 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1157 | 0 | } else { |
1158 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.NamespaceIdentifierPB) |
1159 | 0 | MergeFrom(*source); |
1160 | 0 | } |
1161 | 0 | } |
1162 | | |
1163 | 242k | void NamespaceIdentifierPB::MergeFrom(const NamespaceIdentifierPB& from) { |
1164 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.NamespaceIdentifierPB) |
1165 | 242k | GOOGLE_DCHECK_NE(&from, this); |
1166 | 242k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1167 | 242k | ::google::protobuf::uint32 cached_has_bits = 0; |
1168 | 242k | (void) cached_has_bits; |
1169 | | |
1170 | 242k | cached_has_bits = from._has_bits_[0]; |
1171 | 242k | if (cached_has_bits & 7u) { |
1172 | 242k | if (cached_has_bits & 0x00000001u) { |
1173 | 191k | set_has_id(); |
1174 | 191k | id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); |
1175 | 191k | } |
1176 | 242k | if (cached_has_bits & 0x00000002u242k ) { |
1177 | 242k | set_has_name(); |
1178 | 242k | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
1179 | 242k | } |
1180 | 242k | if (cached_has_bits & 0x00000004u) { |
1181 | 50.6k | database_type_ = from.database_type_; |
1182 | 50.6k | } |
1183 | 242k | _has_bits_[0] |= cached_has_bits; |
1184 | 242k | } |
1185 | 242k | } |
1186 | | |
1187 | 0 | void NamespaceIdentifierPB::CopyFrom(const ::google::protobuf::Message& from) { |
1188 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.NamespaceIdentifierPB) |
1189 | 0 | if (&from == this) return; |
1190 | 0 | Clear(); |
1191 | 0 | MergeFrom(from); |
1192 | 0 | } |
1193 | | |
1194 | 0 | void NamespaceIdentifierPB::CopyFrom(const NamespaceIdentifierPB& from) { |
1195 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.NamespaceIdentifierPB) |
1196 | 0 | if (&from == this) return; |
1197 | 0 | Clear(); |
1198 | 0 | MergeFrom(from); |
1199 | 0 | } |
1200 | | |
1201 | 0 | bool NamespaceIdentifierPB::IsInitialized() const { |
1202 | 0 | return true; |
1203 | 0 | } |
1204 | | |
1205 | 0 | void NamespaceIdentifierPB::Swap(NamespaceIdentifierPB* other) { |
1206 | 0 | if (other == this) return; |
1207 | 0 | InternalSwap(other); |
1208 | 0 | } |
1209 | 23.0k | void NamespaceIdentifierPB::InternalSwap(NamespaceIdentifierPB* other) { |
1210 | 23.0k | using std::swap; |
1211 | 23.0k | id_.Swap(&other->id_); |
1212 | 23.0k | name_.Swap(&other->name_); |
1213 | 23.0k | swap(database_type_, other->database_type_); |
1214 | 23.0k | swap(_has_bits_[0], other->_has_bits_[0]); |
1215 | 23.0k | _internal_metadata_.Swap(&other->_internal_metadata_); |
1216 | 23.0k | swap(_cached_size_, other->_cached_size_); |
1217 | 23.0k | } |
1218 | | |
1219 | 134k | ::google::protobuf::Metadata NamespaceIdentifierPB::GetMetadata() const { |
1220 | 134k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1221 | 134k | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
1222 | 134k | } |
1223 | | |
1224 | | |
1225 | | // =================================================================== |
1226 | | |
1227 | 26.8k | void TableIdentifierPB::InitAsDefaultInstance() { |
1228 | 26.8k | ::yb::master::_TableIdentifierPB_default_instance_._instance.get_mutable()->namespace__ = const_cast< ::yb::master::NamespaceIdentifierPB*>( |
1229 | 26.8k | ::yb::master::NamespaceIdentifierPB::internal_default_instance()); |
1230 | 26.8k | } |
1231 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1232 | | const int TableIdentifierPB::kTableIdFieldNumber; |
1233 | | const int TableIdentifierPB::kTableNameFieldNumber; |
1234 | | const int TableIdentifierPB::kNamespaceFieldNumber; |
1235 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1236 | | |
1237 | | TableIdentifierPB::TableIdentifierPB() |
1238 | 1.76M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1239 | 1.76M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1240 | 1.73M | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTableIdentifierPB(); |
1241 | 1.73M | } |
1242 | 1.76M | SharedCtor(); |
1243 | | // @@protoc_insertion_point(constructor:yb.master.TableIdentifierPB) |
1244 | 1.76M | } |
1245 | | TableIdentifierPB::TableIdentifierPB(const TableIdentifierPB& from) |
1246 | | : ::google::protobuf::Message(), |
1247 | | _internal_metadata_(NULL), |
1248 | | _has_bits_(from._has_bits_), |
1249 | 335k | _cached_size_(0) { |
1250 | 335k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1251 | 335k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1252 | 335k | if (from.has_table_id()) { |
1253 | 284k | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
1254 | 284k | } |
1255 | 335k | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1256 | 335k | if (from.has_table_name()) { |
1257 | 242k | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
1258 | 242k | } |
1259 | 335k | if (from.has_namespace_()) { |
1260 | 242k | namespace__ = new ::yb::master::NamespaceIdentifierPB(*from.namespace__); |
1261 | 242k | } else { |
1262 | 93.6k | namespace__ = NULL; |
1263 | 93.6k | } |
1264 | | // @@protoc_insertion_point(copy_constructor:yb.master.TableIdentifierPB) |
1265 | 335k | } |
1266 | | |
1267 | 1.76M | void TableIdentifierPB::SharedCtor() { |
1268 | 1.76M | _cached_size_ = 0; |
1269 | 1.76M | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1270 | 1.76M | table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1271 | 1.76M | namespace__ = NULL; |
1272 | 1.76M | } |
1273 | | |
1274 | 2.03M | TableIdentifierPB::~TableIdentifierPB() { |
1275 | | // @@protoc_insertion_point(destructor:yb.master.TableIdentifierPB) |
1276 | 2.03M | SharedDtor(); |
1277 | 2.03M | } |
1278 | | |
1279 | 2.03M | void TableIdentifierPB::SharedDtor() { |
1280 | 2.03M | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1281 | 2.03M | table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1282 | 2.03M | if (this != internal_default_instance()) delete namespace__2.03M ; |
1283 | 2.03M | } |
1284 | | |
1285 | 0 | void TableIdentifierPB::SetCachedSize(int size) const { |
1286 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1287 | 0 | _cached_size_ = size; |
1288 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1289 | 0 | } |
1290 | 0 | const ::google::protobuf::Descriptor* TableIdentifierPB::descriptor() { |
1291 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1292 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1293 | 0 | } |
1294 | | |
1295 | 0 | const TableIdentifierPB& TableIdentifierPB::default_instance() { |
1296 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTableIdentifierPB(); |
1297 | 0 | return *internal_default_instance(); |
1298 | 0 | } |
1299 | | |
1300 | 0 | TableIdentifierPB* TableIdentifierPB::New(::google::protobuf::Arena* arena) const { |
1301 | 0 | TableIdentifierPB* n = new TableIdentifierPB; |
1302 | 0 | if (arena != NULL) { |
1303 | 0 | arena->Own(n); |
1304 | 0 | } |
1305 | 0 | return n; |
1306 | 0 | } |
1307 | | |
1308 | 144k | void TableIdentifierPB::Clear() { |
1309 | | // @@protoc_insertion_point(message_clear_start:yb.master.TableIdentifierPB) |
1310 | 144k | ::google::protobuf::uint32 cached_has_bits = 0; |
1311 | | // Prevent compiler warnings about cached_has_bits being unused |
1312 | 144k | (void) cached_has_bits; |
1313 | | |
1314 | 144k | cached_has_bits = _has_bits_[0]; |
1315 | 144k | if (cached_has_bits & 7u) { |
1316 | 3 | if (cached_has_bits & 0x00000001u) { |
1317 | 2 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1318 | 2 | (*table_id_.UnsafeRawStringPointer())->clear(); |
1319 | 2 | } |
1320 | 3 | if (cached_has_bits & 0x00000002u) { |
1321 | 1 | GOOGLE_DCHECK(!table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1322 | 1 | (*table_name_.UnsafeRawStringPointer())->clear(); |
1323 | 1 | } |
1324 | 3 | if (cached_has_bits & 0x00000004u) { |
1325 | 1 | GOOGLE_DCHECK(namespace__ != NULL); |
1326 | 1 | namespace__->Clear(); |
1327 | 1 | } |
1328 | 3 | } |
1329 | 144k | _has_bits_.Clear(); |
1330 | 144k | _internal_metadata_.Clear(); |
1331 | 144k | } |
1332 | | |
1333 | | bool TableIdentifierPB::MergePartialFromCodedStream( |
1334 | 791k | ::google::protobuf::io::CodedInputStream* input) { |
1335 | 1.55M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1336 | 791k | ::google::protobuf::uint32 tag; |
1337 | | // @@protoc_insertion_point(parse_start:yb.master.TableIdentifierPB) |
1338 | 2.34M | for (;;) { |
1339 | 2.34M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1340 | 2.34M | tag = p.first; |
1341 | 2.34M | if (!p.second) goto handle_unusual788k ; |
1342 | 1.55M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1343 | | // optional bytes table_id = 1; |
1344 | 730k | case 1: { |
1345 | 730k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1346 | 730k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1347 | 730k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1348 | 730k | input, this->mutable_table_id())); |
1349 | 730k | } else { |
1350 | 22 | goto handle_unusual; |
1351 | 22 | } |
1352 | 730k | break; |
1353 | 730k | } |
1354 | | |
1355 | | // optional string table_name = 2; |
1356 | 730k | case 2: { |
1357 | 411k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1358 | 411k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1359 | 411k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1360 | 411k | input, this->mutable_table_name())); |
1361 | 411k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1362 | 411k | this->table_name().data(), static_cast<int>(this->table_name().length()), |
1363 | 411k | ::google::protobuf::internal::WireFormat::PARSE, |
1364 | 411k | "yb.master.TableIdentifierPB.table_name"); |
1365 | 411k | } else { |
1366 | 63 | goto handle_unusual; |
1367 | 63 | } |
1368 | 411k | break; |
1369 | 411k | } |
1370 | | |
1371 | | // optional .yb.master.NamespaceIdentifierPB namespace = 3; |
1372 | 411k | case 3: { |
1373 | 411k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1374 | 411k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1375 | 411k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1376 | 411k | input, mutable_namespace_())); |
1377 | 411k | } else { |
1378 | 2 | goto handle_unusual; |
1379 | 2 | } |
1380 | 411k | break; |
1381 | 411k | } |
1382 | | |
1383 | 411k | default: { |
1384 | 788k | handle_unusual: |
1385 | 788k | if (tag == 0) { |
1386 | 788k | goto success; |
1387 | 788k | } |
1388 | 50 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1389 | 50 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1390 | 50 | break; |
1391 | 50 | } |
1392 | 1.55M | } |
1393 | 1.55M | } |
1394 | 789k | success: |
1395 | | // @@protoc_insertion_point(parse_success:yb.master.TableIdentifierPB) |
1396 | 789k | return true; |
1397 | 0 | failure: |
1398 | | // @@protoc_insertion_point(parse_failure:yb.master.TableIdentifierPB) |
1399 | 0 | return false; |
1400 | 791k | #undef DO_ |
1401 | 791k | } |
1402 | | |
1403 | | void TableIdentifierPB::SerializeWithCachedSizes( |
1404 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1405 | | // @@protoc_insertion_point(serialize_start:yb.master.TableIdentifierPB) |
1406 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1407 | 0 | (void) cached_has_bits; |
1408 | |
|
1409 | 0 | cached_has_bits = _has_bits_[0]; |
1410 | | // optional bytes table_id = 1; |
1411 | 0 | if (cached_has_bits & 0x00000001u) { |
1412 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1413 | 0 | 1, this->table_id(), output); |
1414 | 0 | } |
1415 | | |
1416 | | // optional string table_name = 2; |
1417 | 0 | if (cached_has_bits & 0x00000002u) { |
1418 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1419 | 0 | this->table_name().data(), static_cast<int>(this->table_name().length()), |
1420 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1421 | 0 | "yb.master.TableIdentifierPB.table_name"); |
1422 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1423 | 0 | 2, this->table_name(), output); |
1424 | 0 | } |
1425 | | |
1426 | | // optional .yb.master.NamespaceIdentifierPB namespace = 3; |
1427 | 0 | if (cached_has_bits & 0x00000004u) { |
1428 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1429 | 0 | 3, *this->namespace__, output); |
1430 | 0 | } |
1431 | |
|
1432 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1433 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1434 | 0 | _internal_metadata_.unknown_fields(), output); |
1435 | 0 | } |
1436 | | // @@protoc_insertion_point(serialize_end:yb.master.TableIdentifierPB) |
1437 | 0 | } |
1438 | | |
1439 | | ::google::protobuf::uint8* TableIdentifierPB::InternalSerializeWithCachedSizesToArray( |
1440 | 784k | bool deterministic, ::google::protobuf::uint8* target) const { |
1441 | 784k | (void)deterministic; // Unused |
1442 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TableIdentifierPB) |
1443 | 784k | ::google::protobuf::uint32 cached_has_bits = 0; |
1444 | 784k | (void) cached_has_bits; |
1445 | | |
1446 | 784k | cached_has_bits = _has_bits_[0]; |
1447 | | // optional bytes table_id = 1; |
1448 | 784k | if (cached_has_bits & 0x00000001u) { |
1449 | 730k | target = |
1450 | 730k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1451 | 730k | 1, this->table_id(), target); |
1452 | 730k | } |
1453 | | |
1454 | | // optional string table_name = 2; |
1455 | 784k | if (cached_has_bits & 0x00000002u) { |
1456 | 415k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1457 | 415k | this->table_name().data(), static_cast<int>(this->table_name().length()), |
1458 | 415k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1459 | 415k | "yb.master.TableIdentifierPB.table_name"); |
1460 | 415k | target = |
1461 | 415k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1462 | 415k | 2, this->table_name(), target); |
1463 | 415k | } |
1464 | | |
1465 | | // optional .yb.master.NamespaceIdentifierPB namespace = 3; |
1466 | 784k | if (cached_has_bits & 0x00000004u) { |
1467 | 415k | target = ::google::protobuf::internal::WireFormatLite:: |
1468 | 415k | InternalWriteMessageToArray( |
1469 | 415k | 3, *this->namespace__, deterministic, target); |
1470 | 415k | } |
1471 | | |
1472 | 784k | if (_internal_metadata_.have_unknown_fields()) { |
1473 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1474 | 0 | _internal_metadata_.unknown_fields(), target); |
1475 | 0 | } |
1476 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TableIdentifierPB) |
1477 | 784k | return target; |
1478 | 784k | } |
1479 | | |
1480 | 1.56M | size_t TableIdentifierPB::ByteSizeLong() const { |
1481 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TableIdentifierPB) |
1482 | 1.56M | size_t total_size = 0; |
1483 | | |
1484 | 1.56M | if (_internal_metadata_.have_unknown_fields()) { |
1485 | 0 | total_size += |
1486 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1487 | 0 | _internal_metadata_.unknown_fields()); |
1488 | 0 | } |
1489 | 1.56M | if (_has_bits_[0 / 32] & 7u1.56M ) { |
1490 | | // optional bytes table_id = 1; |
1491 | 1.56M | if (has_table_id()) { |
1492 | 1.46M | total_size += 1 + |
1493 | 1.46M | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1494 | 1.46M | this->table_id()); |
1495 | 1.46M | } |
1496 | | |
1497 | | // optional string table_name = 2; |
1498 | 1.56M | if (has_table_name()) { |
1499 | 831k | total_size += 1 + |
1500 | 831k | ::google::protobuf::internal::WireFormatLite::StringSize( |
1501 | 831k | this->table_name()); |
1502 | 831k | } |
1503 | | |
1504 | | // optional .yb.master.NamespaceIdentifierPB namespace = 3; |
1505 | 1.56M | if (has_namespace_()) { |
1506 | 831k | total_size += 1 + |
1507 | 831k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1508 | 831k | *this->namespace__); |
1509 | 831k | } |
1510 | | |
1511 | 1.56M | } |
1512 | 1.56M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1513 | 1.56M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1514 | 1.56M | _cached_size_ = cached_size; |
1515 | 1.56M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1516 | 1.56M | return total_size; |
1517 | 1.56M | } |
1518 | | |
1519 | 0 | void TableIdentifierPB::MergeFrom(const ::google::protobuf::Message& from) { |
1520 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TableIdentifierPB) |
1521 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1522 | 0 | const TableIdentifierPB* source = |
1523 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TableIdentifierPB>( |
1524 | 0 | &from); |
1525 | 0 | if (source == NULL) { |
1526 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TableIdentifierPB) |
1527 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1528 | 0 | } else { |
1529 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TableIdentifierPB) |
1530 | 0 | MergeFrom(*source); |
1531 | 0 | } |
1532 | 0 | } |
1533 | | |
1534 | 335k | void TableIdentifierPB::MergeFrom(const TableIdentifierPB& from) { |
1535 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TableIdentifierPB) |
1536 | 335k | GOOGLE_DCHECK_NE(&from, this); |
1537 | 335k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1538 | 335k | ::google::protobuf::uint32 cached_has_bits = 0; |
1539 | 335k | (void) cached_has_bits; |
1540 | | |
1541 | 335k | cached_has_bits = from._has_bits_[0]; |
1542 | 335k | if (cached_has_bits & 7u) { |
1543 | 335k | if (cached_has_bits & 0x00000001u) { |
1544 | 284k | set_has_table_id(); |
1545 | 284k | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
1546 | 284k | } |
1547 | 335k | if (cached_has_bits & 0x00000002u) { |
1548 | 242k | set_has_table_name(); |
1549 | 242k | table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); |
1550 | 242k | } |
1551 | 335k | if (cached_has_bits & 0x00000004u) { |
1552 | 242k | mutable_namespace_()->::yb::master::NamespaceIdentifierPB::MergeFrom(from.namespace_()); |
1553 | 242k | } |
1554 | 335k | } |
1555 | 335k | } |
1556 | | |
1557 | 0 | void TableIdentifierPB::CopyFrom(const ::google::protobuf::Message& from) { |
1558 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TableIdentifierPB) |
1559 | 0 | if (&from == this) return; |
1560 | 0 | Clear(); |
1561 | 0 | MergeFrom(from); |
1562 | 0 | } |
1563 | | |
1564 | 143k | void TableIdentifierPB::CopyFrom(const TableIdentifierPB& from) { |
1565 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TableIdentifierPB) |
1566 | 143k | if (&from == this) return0 ; |
1567 | 143k | Clear(); |
1568 | 143k | MergeFrom(from); |
1569 | 143k | } |
1570 | | |
1571 | 0 | bool TableIdentifierPB::IsInitialized() const { |
1572 | 0 | return true; |
1573 | 0 | } |
1574 | | |
1575 | 0 | void TableIdentifierPB::Swap(TableIdentifierPB* other) { |
1576 | 0 | if (other == this) return; |
1577 | 0 | InternalSwap(other); |
1578 | 0 | } |
1579 | 0 | void TableIdentifierPB::InternalSwap(TableIdentifierPB* other) { |
1580 | 0 | using std::swap; |
1581 | 0 | table_id_.Swap(&other->table_id_); |
1582 | 0 | table_name_.Swap(&other->table_name_); |
1583 | 0 | swap(namespace__, other->namespace__); |
1584 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1585 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1586 | 0 | swap(_cached_size_, other->_cached_size_); |
1587 | 0 | } |
1588 | | |
1589 | 484k | ::google::protobuf::Metadata TableIdentifierPB::GetMetadata() const { |
1590 | 484k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1591 | 484k | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
1592 | 484k | } |
1593 | | |
1594 | | |
1595 | | // =================================================================== |
1596 | | |
1597 | 26.8k | void TSRegistrationPB::InitAsDefaultInstance() { |
1598 | 26.8k | ::yb::master::_TSRegistrationPB_default_instance_._instance.get_mutable()->common_ = const_cast< ::yb::ServerRegistrationPB*>( |
1599 | 26.8k | ::yb::ServerRegistrationPB::internal_default_instance()); |
1600 | 26.8k | } |
1601 | 0 | void TSRegistrationPB::clear_common() { |
1602 | 0 | if (common_ != NULL) common_->Clear(); |
1603 | 0 | clear_has_common(); |
1604 | 0 | } |
1605 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1606 | | const int TSRegistrationPB::kCommonFieldNumber; |
1607 | | const int TSRegistrationPB::kCapabilitiesFieldNumber; |
1608 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1609 | | |
1610 | | TSRegistrationPB::TSRegistrationPB() |
1611 | 35.7M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1612 | 35.7M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1613 | 35.6M | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB(); |
1614 | 35.6M | } |
1615 | 35.7M | SharedCtor(); |
1616 | | // @@protoc_insertion_point(constructor:yb.master.TSRegistrationPB) |
1617 | 35.7M | } |
1618 | | TSRegistrationPB::TSRegistrationPB(const TSRegistrationPB& from) |
1619 | | : ::google::protobuf::Message(), |
1620 | | _internal_metadata_(NULL), |
1621 | | _has_bits_(from._has_bits_), |
1622 | | _cached_size_(0), |
1623 | 1.87M | capabilities_(from.capabilities_) { |
1624 | 1.87M | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1625 | 1.87M | if (from.has_common()) { |
1626 | 1.87M | common_ = new ::yb::ServerRegistrationPB(*from.common_); |
1627 | 1.87M | } else { |
1628 | 1.79k | common_ = NULL; |
1629 | 1.79k | } |
1630 | | // @@protoc_insertion_point(copy_constructor:yb.master.TSRegistrationPB) |
1631 | 1.87M | } |
1632 | | |
1633 | 35.7M | void TSRegistrationPB::SharedCtor() { |
1634 | 35.7M | _cached_size_ = 0; |
1635 | 35.7M | common_ = NULL; |
1636 | 35.7M | } |
1637 | | |
1638 | 37.5M | TSRegistrationPB::~TSRegistrationPB() { |
1639 | | // @@protoc_insertion_point(destructor:yb.master.TSRegistrationPB) |
1640 | 37.5M | SharedDtor(); |
1641 | 37.5M | } |
1642 | | |
1643 | 37.5M | void TSRegistrationPB::SharedDtor() { |
1644 | 37.5M | if (this != internal_default_instance()) delete common_37.5M ; |
1645 | 37.5M | } |
1646 | | |
1647 | 0 | void TSRegistrationPB::SetCachedSize(int size) const { |
1648 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1649 | 0 | _cached_size_ = size; |
1650 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1651 | 0 | } |
1652 | 0 | const ::google::protobuf::Descriptor* TSRegistrationPB::descriptor() { |
1653 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1654 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1655 | 0 | } |
1656 | | |
1657 | 0 | const TSRegistrationPB& TSRegistrationPB::default_instance() { |
1658 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB(); |
1659 | 0 | return *internal_default_instance(); |
1660 | 0 | } |
1661 | | |
1662 | 0 | TSRegistrationPB* TSRegistrationPB::New(::google::protobuf::Arena* arena) const { |
1663 | 0 | TSRegistrationPB* n = new TSRegistrationPB; |
1664 | 0 | if (arena != NULL) { |
1665 | 0 | arena->Own(n); |
1666 | 0 | } |
1667 | 0 | return n; |
1668 | 0 | } |
1669 | | |
1670 | 17.6M | void TSRegistrationPB::Clear() { |
1671 | | // @@protoc_insertion_point(message_clear_start:yb.master.TSRegistrationPB) |
1672 | 17.6M | ::google::protobuf::uint32 cached_has_bits = 0; |
1673 | | // Prevent compiler warnings about cached_has_bits being unused |
1674 | 17.6M | (void) cached_has_bits; |
1675 | | |
1676 | 17.6M | capabilities_.Clear(); |
1677 | 17.6M | cached_has_bits = _has_bits_[0]; |
1678 | 17.6M | if (cached_has_bits & 0x00000001u) { |
1679 | 17.6M | GOOGLE_DCHECK(common_ != NULL); |
1680 | 17.6M | common_->Clear(); |
1681 | 17.6M | } |
1682 | 17.6M | _has_bits_.Clear(); |
1683 | 17.6M | _internal_metadata_.Clear(); |
1684 | 17.6M | } |
1685 | | |
1686 | | bool TSRegistrationPB::MergePartialFromCodedStream( |
1687 | 17.7M | ::google::protobuf::io::CodedInputStream* input) { |
1688 | 35.4M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1689 | 17.7M | ::google::protobuf::uint32 tag; |
1690 | | // @@protoc_insertion_point(parse_start:yb.master.TSRegistrationPB) |
1691 | 53.1M | for (;;) { |
1692 | 53.1M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1693 | 53.1M | tag = p.first; |
1694 | 53.1M | if (!p.second) goto handle_unusual17.7M ; |
1695 | 35.4M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1696 | | // optional .yb.ServerRegistrationPB common = 1; |
1697 | 17.7M | case 1: { |
1698 | 17.7M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1699 | 17.7M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1700 | 17.7M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1701 | 17.7M | input, mutable_common())); |
1702 | 17.7M | } else { |
1703 | 0 | goto handle_unusual; |
1704 | 0 | } |
1705 | 17.7M | break; |
1706 | 17.7M | } |
1707 | | |
1708 | | // repeated fixed32 capabilities = 2; |
1709 | 17.7M | case 2: { |
1710 | 17.7M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1711 | 17.7M | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
1712 | 17.7M | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
1713 | 17.7M | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
1714 | 17.7M | 1, 21u, input, this->mutable_capabilities()))); |
1715 | 17.7M | } else if ( |
1716 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
1717 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1718 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
1719 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
1720 | 0 | input, this->mutable_capabilities()))); |
1721 | 0 | } else { |
1722 | 0 | goto handle_unusual; |
1723 | 0 | } |
1724 | 17.7M | break; |
1725 | 17.7M | } |
1726 | | |
1727 | 17.7M | default: { |
1728 | 17.7M | handle_unusual: |
1729 | 17.7M | if (tag == 0) { |
1730 | 17.7M | goto success; |
1731 | 17.7M | } |
1732 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1733 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1734 | 0 | break; |
1735 | 0 | } |
1736 | 35.4M | } |
1737 | 35.4M | } |
1738 | 18.4E | success: |
1739 | | // @@protoc_insertion_point(parse_success:yb.master.TSRegistrationPB) |
1740 | 17.7M | return true; |
1741 | 0 | failure: |
1742 | | // @@protoc_insertion_point(parse_failure:yb.master.TSRegistrationPB) |
1743 | 0 | return false; |
1744 | 17.7M | #undef DO_ |
1745 | 17.7M | } |
1746 | | |
1747 | | void TSRegistrationPB::SerializeWithCachedSizes( |
1748 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1749 | | // @@protoc_insertion_point(serialize_start:yb.master.TSRegistrationPB) |
1750 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1751 | 0 | (void) cached_has_bits; |
1752 | |
|
1753 | 0 | cached_has_bits = _has_bits_[0]; |
1754 | | // optional .yb.ServerRegistrationPB common = 1; |
1755 | 0 | if (cached_has_bits & 0x00000001u) { |
1756 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1757 | 0 | 1, *this->common_, output); |
1758 | 0 | } |
1759 | | |
1760 | | // repeated fixed32 capabilities = 2; |
1761 | 0 | for (int i = 0, n = this->capabilities_size(); i < n; i++) { |
1762 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed32( |
1763 | 0 | 2, this->capabilities(i), output); |
1764 | 0 | } |
1765 | |
|
1766 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1767 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1768 | 0 | _internal_metadata_.unknown_fields(), output); |
1769 | 0 | } |
1770 | | // @@protoc_insertion_point(serialize_end:yb.master.TSRegistrationPB) |
1771 | 0 | } |
1772 | | |
1773 | | ::google::protobuf::uint8* TSRegistrationPB::InternalSerializeWithCachedSizesToArray( |
1774 | 17.6M | bool deterministic, ::google::protobuf::uint8* target) const { |
1775 | 17.6M | (void)deterministic; // Unused |
1776 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSRegistrationPB) |
1777 | 17.6M | ::google::protobuf::uint32 cached_has_bits = 0; |
1778 | 17.6M | (void) cached_has_bits; |
1779 | | |
1780 | 17.6M | cached_has_bits = _has_bits_[0]; |
1781 | | // optional .yb.ServerRegistrationPB common = 1; |
1782 | 17.6M | if (cached_has_bits & 0x00000001u17.6M ) { |
1783 | 17.6M | target = ::google::protobuf::internal::WireFormatLite:: |
1784 | 17.6M | InternalWriteMessageToArray( |
1785 | 17.6M | 1, *this->common_, deterministic, target); |
1786 | 17.6M | } |
1787 | | |
1788 | | // repeated fixed32 capabilities = 2; |
1789 | 17.6M | target = ::google::protobuf::internal::WireFormatLite:: |
1790 | 17.6M | WriteFixed32ToArray(2, this->capabilities_, target); |
1791 | | |
1792 | 17.6M | if (_internal_metadata_.have_unknown_fields()) { |
1793 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1794 | 0 | _internal_metadata_.unknown_fields(), target); |
1795 | 0 | } |
1796 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSRegistrationPB) |
1797 | 17.6M | return target; |
1798 | 17.6M | } |
1799 | | |
1800 | 35.3M | size_t TSRegistrationPB::ByteSizeLong() const { |
1801 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TSRegistrationPB) |
1802 | 35.3M | size_t total_size = 0; |
1803 | | |
1804 | 35.3M | if (_internal_metadata_.have_unknown_fields()) { |
1805 | 0 | total_size += |
1806 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1807 | 0 | _internal_metadata_.unknown_fields()); |
1808 | 0 | } |
1809 | | // repeated fixed32 capabilities = 2; |
1810 | 35.3M | { |
1811 | 35.3M | unsigned int count = static_cast<unsigned int>(this->capabilities_size()); |
1812 | 35.3M | size_t data_size = 4UL * count; |
1813 | 35.3M | total_size += 1 * |
1814 | 35.3M | ::google::protobuf::internal::FromIntSize(this->capabilities_size()); |
1815 | 35.3M | total_size += data_size; |
1816 | 35.3M | } |
1817 | | |
1818 | | // optional .yb.ServerRegistrationPB common = 1; |
1819 | 35.3M | if (has_common()) { |
1820 | 35.2M | total_size += 1 + |
1821 | 35.2M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1822 | 35.2M | *this->common_); |
1823 | 35.2M | } |
1824 | | |
1825 | 35.3M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1826 | 35.3M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1827 | 35.3M | _cached_size_ = cached_size; |
1828 | 35.3M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1829 | 35.3M | return total_size; |
1830 | 35.3M | } |
1831 | | |
1832 | 0 | void TSRegistrationPB::MergeFrom(const ::google::protobuf::Message& from) { |
1833 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSRegistrationPB) |
1834 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1835 | 0 | const TSRegistrationPB* source = |
1836 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TSRegistrationPB>( |
1837 | 0 | &from); |
1838 | 0 | if (source == NULL) { |
1839 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSRegistrationPB) |
1840 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1841 | 0 | } else { |
1842 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSRegistrationPB) |
1843 | 0 | MergeFrom(*source); |
1844 | 0 | } |
1845 | 0 | } |
1846 | | |
1847 | 35.2M | void TSRegistrationPB::MergeFrom(const TSRegistrationPB& from) { |
1848 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSRegistrationPB) |
1849 | 35.2M | GOOGLE_DCHECK_NE(&from, this); |
1850 | 35.2M | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1851 | 35.2M | ::google::protobuf::uint32 cached_has_bits = 0; |
1852 | 35.2M | (void) cached_has_bits; |
1853 | | |
1854 | 35.2M | capabilities_.MergeFrom(from.capabilities_); |
1855 | 35.2M | if (from.has_common()) { |
1856 | 35.2M | mutable_common()->::yb::ServerRegistrationPB::MergeFrom(from.common()); |
1857 | 35.2M | } |
1858 | 35.2M | } |
1859 | | |
1860 | 0 | void TSRegistrationPB::CopyFrom(const ::google::protobuf::Message& from) { |
1861 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSRegistrationPB) |
1862 | 0 | if (&from == this) return; |
1863 | 0 | Clear(); |
1864 | 0 | MergeFrom(from); |
1865 | 0 | } |
1866 | | |
1867 | 9.08k | void TSRegistrationPB::CopyFrom(const TSRegistrationPB& from) { |
1868 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSRegistrationPB) |
1869 | 9.08k | if (&from == this) return0 ; |
1870 | 9.08k | Clear(); |
1871 | 9.08k | MergeFrom(from); |
1872 | 9.08k | } |
1873 | | |
1874 | 35.3M | bool TSRegistrationPB::IsInitialized() const { |
1875 | 35.3M | if (has_common()) { |
1876 | 35.3M | if (!this->common_->IsInitialized()) return false0 ; |
1877 | 35.3M | } |
1878 | 35.3M | return true; |
1879 | 35.3M | } |
1880 | | |
1881 | 0 | void TSRegistrationPB::Swap(TSRegistrationPB* other) { |
1882 | 0 | if (other == this) return; |
1883 | 0 | InternalSwap(other); |
1884 | 0 | } |
1885 | 34.5k | void TSRegistrationPB::InternalSwap(TSRegistrationPB* other) { |
1886 | 34.5k | using std::swap; |
1887 | 34.5k | capabilities_.InternalSwap(&other->capabilities_); |
1888 | 34.5k | swap(common_, other->common_); |
1889 | 34.5k | swap(_has_bits_[0], other->_has_bits_[0]); |
1890 | 34.5k | _internal_metadata_.Swap(&other->_internal_metadata_); |
1891 | 34.5k | swap(_cached_size_, other->_cached_size_); |
1892 | 34.5k | } |
1893 | | |
1894 | 185k | ::google::protobuf::Metadata TSRegistrationPB::GetMetadata() const { |
1895 | 185k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1896 | 185k | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
1897 | 185k | } |
1898 | | |
1899 | | |
1900 | | // =================================================================== |
1901 | | |
1902 | 26.8k | void TServerMetricsPB_PathMetrics::InitAsDefaultInstance() { |
1903 | 26.8k | } |
1904 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1905 | | const int TServerMetricsPB_PathMetrics::kPathIdFieldNumber; |
1906 | | const int TServerMetricsPB_PathMetrics::kUsedSpaceFieldNumber; |
1907 | | const int TServerMetricsPB_PathMetrics::kTotalSpaceFieldNumber; |
1908 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1909 | | |
1910 | | TServerMetricsPB_PathMetrics::TServerMetricsPB_PathMetrics() |
1911 | 505k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1912 | 505k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1913 | 479k | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB_PathMetrics(); |
1914 | 479k | } |
1915 | 505k | SharedCtor(); |
1916 | | // @@protoc_insertion_point(constructor:yb.master.TServerMetricsPB.PathMetrics) |
1917 | 505k | } |
1918 | | TServerMetricsPB_PathMetrics::TServerMetricsPB_PathMetrics(const TServerMetricsPB_PathMetrics& from) |
1919 | | : ::google::protobuf::Message(), |
1920 | | _internal_metadata_(NULL), |
1921 | | _has_bits_(from._has_bits_), |
1922 | 0 | _cached_size_(0) { |
1923 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1924 | 0 | path_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1925 | 0 | if (from.has_path_id()) { |
1926 | 0 | path_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_id_); |
1927 | 0 | } |
1928 | 0 | ::memcpy(&used_space_, &from.used_space_, |
1929 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&total_space_) - |
1930 | 0 | reinterpret_cast<char*>(&used_space_)) + sizeof(total_space_)); |
1931 | | // @@protoc_insertion_point(copy_constructor:yb.master.TServerMetricsPB.PathMetrics) |
1932 | 0 | } |
1933 | | |
1934 | 505k | void TServerMetricsPB_PathMetrics::SharedCtor() { |
1935 | 505k | _cached_size_ = 0; |
1936 | 505k | path_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1937 | 505k | ::memset(&used_space_, 0, static_cast<size_t>( |
1938 | 505k | reinterpret_cast<char*>(&total_space_) - |
1939 | 505k | reinterpret_cast<char*>(&used_space_)) + sizeof(total_space_)); |
1940 | 505k | } |
1941 | | |
1942 | 479k | TServerMetricsPB_PathMetrics::~TServerMetricsPB_PathMetrics() { |
1943 | | // @@protoc_insertion_point(destructor:yb.master.TServerMetricsPB.PathMetrics) |
1944 | 479k | SharedDtor(); |
1945 | 479k | } |
1946 | | |
1947 | 479k | void TServerMetricsPB_PathMetrics::SharedDtor() { |
1948 | 479k | path_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1949 | 479k | } |
1950 | | |
1951 | 0 | void TServerMetricsPB_PathMetrics::SetCachedSize(int size) const { |
1952 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1953 | 0 | _cached_size_ = size; |
1954 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1955 | 0 | } |
1956 | 0 | const ::google::protobuf::Descriptor* TServerMetricsPB_PathMetrics::descriptor() { |
1957 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
1958 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1959 | 0 | } |
1960 | | |
1961 | 0 | const TServerMetricsPB_PathMetrics& TServerMetricsPB_PathMetrics::default_instance() { |
1962 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB_PathMetrics(); |
1963 | 0 | return *internal_default_instance(); |
1964 | 0 | } |
1965 | | |
1966 | 0 | TServerMetricsPB_PathMetrics* TServerMetricsPB_PathMetrics::New(::google::protobuf::Arena* arena) const { |
1967 | 0 | TServerMetricsPB_PathMetrics* n = new TServerMetricsPB_PathMetrics; |
1968 | 0 | if (arena != NULL) { |
1969 | 0 | arena->Own(n); |
1970 | 0 | } |
1971 | 0 | return n; |
1972 | 0 | } |
1973 | | |
1974 | 258 | void TServerMetricsPB_PathMetrics::Clear() { |
1975 | | // @@protoc_insertion_point(message_clear_start:yb.master.TServerMetricsPB.PathMetrics) |
1976 | 258 | ::google::protobuf::uint32 cached_has_bits = 0; |
1977 | | // Prevent compiler warnings about cached_has_bits being unused |
1978 | 258 | (void) cached_has_bits; |
1979 | | |
1980 | 258 | cached_has_bits = _has_bits_[0]; |
1981 | 258 | if (cached_has_bits & 0x00000001u) { |
1982 | 258 | GOOGLE_DCHECK(!path_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1983 | 258 | (*path_id_.UnsafeRawStringPointer())->clear(); |
1984 | 258 | } |
1985 | 258 | if (cached_has_bits & 6u) { |
1986 | 258 | ::memset(&used_space_, 0, static_cast<size_t>( |
1987 | 258 | reinterpret_cast<char*>(&total_space_) - |
1988 | 258 | reinterpret_cast<char*>(&used_space_)) + sizeof(total_space_)); |
1989 | 258 | } |
1990 | 258 | _has_bits_.Clear(); |
1991 | 258 | _internal_metadata_.Clear(); |
1992 | 258 | } |
1993 | | |
1994 | | bool TServerMetricsPB_PathMetrics::MergePartialFromCodedStream( |
1995 | 233k | ::google::protobuf::io::CodedInputStream* input) { |
1996 | 700k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1997 | 233k | ::google::protobuf::uint32 tag; |
1998 | | // @@protoc_insertion_point(parse_start:yb.master.TServerMetricsPB.PathMetrics) |
1999 | 933k | for (;;) { |
2000 | 933k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2001 | 933k | tag = p.first; |
2002 | 933k | if (!p.second) goto handle_unusual233k ; |
2003 | 700k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2004 | | // required bytes path_id = 1; |
2005 | 233k | case 1: { |
2006 | 233k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2007 | 233k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2008 | 233k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2009 | 233k | input, this->mutable_path_id())); |
2010 | 18.4E | } else { |
2011 | 18.4E | goto handle_unusual; |
2012 | 18.4E | } |
2013 | 233k | break; |
2014 | 233k | } |
2015 | | |
2016 | | // optional uint64 used_space = 2; |
2017 | 233k | case 2: { |
2018 | 233k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2019 | 233k | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2020 | 233k | set_has_used_space(); |
2021 | 233k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2022 | 233k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2023 | 233k | input, &used_space_))); |
2024 | 18.4E | } else { |
2025 | 18.4E | goto handle_unusual; |
2026 | 18.4E | } |
2027 | 233k | break; |
2028 | 233k | } |
2029 | | |
2030 | | // optional uint64 total_space = 3; |
2031 | 233k | case 3: { |
2032 | 233k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2033 | 233k | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2034 | 233k | set_has_total_space(); |
2035 | 233k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2036 | 233k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2037 | 233k | input, &total_space_))); |
2038 | 18.4E | } else { |
2039 | 18.4E | goto handle_unusual; |
2040 | 18.4E | } |
2041 | 233k | break; |
2042 | 233k | } |
2043 | | |
2044 | 233k | default: { |
2045 | 233k | handle_unusual: |
2046 | 233k | if (tag == 0233k ) { |
2047 | 233k | goto success; |
2048 | 233k | } |
2049 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2050 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2051 | 18.4E | break; |
2052 | 18.4E | } |
2053 | 700k | } |
2054 | 700k | } |
2055 | 233k | success: |
2056 | | // @@protoc_insertion_point(parse_success:yb.master.TServerMetricsPB.PathMetrics) |
2057 | 233k | return true; |
2058 | 0 | failure: |
2059 | | // @@protoc_insertion_point(parse_failure:yb.master.TServerMetricsPB.PathMetrics) |
2060 | 0 | return false; |
2061 | 233k | #undef DO_ |
2062 | 233k | } |
2063 | | |
2064 | | void TServerMetricsPB_PathMetrics::SerializeWithCachedSizes( |
2065 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2066 | | // @@protoc_insertion_point(serialize_start:yb.master.TServerMetricsPB.PathMetrics) |
2067 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2068 | 0 | (void) cached_has_bits; |
2069 | |
|
2070 | 0 | cached_has_bits = _has_bits_[0]; |
2071 | | // required bytes path_id = 1; |
2072 | 0 | if (cached_has_bits & 0x00000001u) { |
2073 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2074 | 0 | 1, this->path_id(), output); |
2075 | 0 | } |
2076 | | |
2077 | | // optional uint64 used_space = 2; |
2078 | 0 | if (cached_has_bits & 0x00000002u) { |
2079 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->used_space(), output); |
2080 | 0 | } |
2081 | | |
2082 | | // optional uint64 total_space = 3; |
2083 | 0 | if (cached_has_bits & 0x00000004u) { |
2084 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->total_space(), output); |
2085 | 0 | } |
2086 | |
|
2087 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2088 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2089 | 0 | _internal_metadata_.unknown_fields(), output); |
2090 | 0 | } |
2091 | | // @@protoc_insertion_point(serialize_end:yb.master.TServerMetricsPB.PathMetrics) |
2092 | 0 | } |
2093 | | |
2094 | | ::google::protobuf::uint8* TServerMetricsPB_PathMetrics::InternalSerializeWithCachedSizesToArray( |
2095 | 245k | bool deterministic, ::google::protobuf::uint8* target) const { |
2096 | 245k | (void)deterministic; // Unused |
2097 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TServerMetricsPB.PathMetrics) |
2098 | 245k | ::google::protobuf::uint32 cached_has_bits = 0; |
2099 | 245k | (void) cached_has_bits; |
2100 | | |
2101 | 245k | cached_has_bits = _has_bits_[0]; |
2102 | | // required bytes path_id = 1; |
2103 | 245k | if (cached_has_bits & 0x00000001u) { |
2104 | 245k | target = |
2105 | 245k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2106 | 245k | 1, this->path_id(), target); |
2107 | 245k | } |
2108 | | |
2109 | | // optional uint64 used_space = 2; |
2110 | 245k | if (cached_has_bits & 0x00000002u) { |
2111 | 245k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->used_space(), target); |
2112 | 245k | } |
2113 | | |
2114 | | // optional uint64 total_space = 3; |
2115 | 245k | if (cached_has_bits & 0x00000004u) { |
2116 | 245k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->total_space(), target); |
2117 | 245k | } |
2118 | | |
2119 | 245k | if (_internal_metadata_.have_unknown_fields()) { |
2120 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2121 | 0 | _internal_metadata_.unknown_fields(), target); |
2122 | 0 | } |
2123 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TServerMetricsPB.PathMetrics) |
2124 | 245k | return target; |
2125 | 245k | } |
2126 | | |
2127 | 491k | size_t TServerMetricsPB_PathMetrics::ByteSizeLong() const { |
2128 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TServerMetricsPB.PathMetrics) |
2129 | 491k | size_t total_size = 0; |
2130 | | |
2131 | 491k | if (_internal_metadata_.have_unknown_fields()) { |
2132 | 0 | total_size += |
2133 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2134 | 0 | _internal_metadata_.unknown_fields()); |
2135 | 0 | } |
2136 | | // required bytes path_id = 1; |
2137 | 491k | if (has_path_id()) { |
2138 | 491k | total_size += 1 + |
2139 | 491k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2140 | 491k | this->path_id()); |
2141 | 491k | } |
2142 | 491k | if (_has_bits_[0 / 32] & 6u) { |
2143 | | // optional uint64 used_space = 2; |
2144 | 491k | if (has_used_space()) { |
2145 | 491k | total_size += 1 + |
2146 | 491k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2147 | 491k | this->used_space()); |
2148 | 491k | } |
2149 | | |
2150 | | // optional uint64 total_space = 3; |
2151 | 491k | if (has_total_space()) { |
2152 | 491k | total_size += 1 + |
2153 | 491k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2154 | 491k | this->total_space()); |
2155 | 491k | } |
2156 | | |
2157 | 491k | } |
2158 | 491k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2159 | 491k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2160 | 491k | _cached_size_ = cached_size; |
2161 | 491k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2162 | 491k | return total_size; |
2163 | 491k | } |
2164 | | |
2165 | 0 | void TServerMetricsPB_PathMetrics::MergeFrom(const ::google::protobuf::Message& from) { |
2166 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TServerMetricsPB.PathMetrics) |
2167 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2168 | 0 | const TServerMetricsPB_PathMetrics* source = |
2169 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TServerMetricsPB_PathMetrics>( |
2170 | 0 | &from); |
2171 | 0 | if (source == NULL) { |
2172 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TServerMetricsPB.PathMetrics) |
2173 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2174 | 0 | } else { |
2175 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TServerMetricsPB.PathMetrics) |
2176 | 0 | MergeFrom(*source); |
2177 | 0 | } |
2178 | 0 | } |
2179 | | |
2180 | 0 | void TServerMetricsPB_PathMetrics::MergeFrom(const TServerMetricsPB_PathMetrics& from) { |
2181 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TServerMetricsPB.PathMetrics) |
2182 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2183 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2184 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2185 | 0 | (void) cached_has_bits; |
2186 | |
|
2187 | 0 | cached_has_bits = from._has_bits_[0]; |
2188 | 0 | if (cached_has_bits & 7u) { |
2189 | 0 | if (cached_has_bits & 0x00000001u) { |
2190 | 0 | set_has_path_id(); |
2191 | 0 | path_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_id_); |
2192 | 0 | } |
2193 | 0 | if (cached_has_bits & 0x00000002u) { |
2194 | 0 | used_space_ = from.used_space_; |
2195 | 0 | } |
2196 | 0 | if (cached_has_bits & 0x00000004u) { |
2197 | 0 | total_space_ = from.total_space_; |
2198 | 0 | } |
2199 | 0 | _has_bits_[0] |= cached_has_bits; |
2200 | 0 | } |
2201 | 0 | } |
2202 | | |
2203 | 0 | void TServerMetricsPB_PathMetrics::CopyFrom(const ::google::protobuf::Message& from) { |
2204 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TServerMetricsPB.PathMetrics) |
2205 | 0 | if (&from == this) return; |
2206 | 0 | Clear(); |
2207 | 0 | MergeFrom(from); |
2208 | 0 | } |
2209 | | |
2210 | 0 | void TServerMetricsPB_PathMetrics::CopyFrom(const TServerMetricsPB_PathMetrics& from) { |
2211 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TServerMetricsPB.PathMetrics) |
2212 | 0 | if (&from == this) return; |
2213 | 0 | Clear(); |
2214 | 0 | MergeFrom(from); |
2215 | 0 | } |
2216 | | |
2217 | 479k | bool TServerMetricsPB_PathMetrics::IsInitialized() const { |
2218 | 479k | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
2219 | 479k | return true; |
2220 | 479k | } |
2221 | | |
2222 | 0 | void TServerMetricsPB_PathMetrics::Swap(TServerMetricsPB_PathMetrics* other) { |
2223 | 0 | if (other == this) return; |
2224 | 0 | InternalSwap(other); |
2225 | 0 | } |
2226 | 0 | void TServerMetricsPB_PathMetrics::InternalSwap(TServerMetricsPB_PathMetrics* other) { |
2227 | 0 | using std::swap; |
2228 | 0 | path_id_.Swap(&other->path_id_); |
2229 | 0 | swap(used_space_, other->used_space_); |
2230 | 0 | swap(total_space_, other->total_space_); |
2231 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2232 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2233 | 0 | swap(_cached_size_, other->_cached_size_); |
2234 | 0 | } |
2235 | | |
2236 | 209k | ::google::protobuf::Metadata TServerMetricsPB_PathMetrics::GetMetadata() const { |
2237 | 209k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
2238 | 209k | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
2239 | 209k | } |
2240 | | |
2241 | | |
2242 | | // =================================================================== |
2243 | | |
2244 | 26.8k | void TServerMetricsPB::InitAsDefaultInstance() { |
2245 | 26.8k | } |
2246 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2247 | | const int TServerMetricsPB::kTotalSstFileSizeFieldNumber; |
2248 | | const int TServerMetricsPB::kTotalRamUsageFieldNumber; |
2249 | | const int TServerMetricsPB::kReadOpsPerSecFieldNumber; |
2250 | | const int TServerMetricsPB::kWriteOpsPerSecFieldNumber; |
2251 | | const int TServerMetricsPB::kUncompressedSstFileSizeFieldNumber; |
2252 | | const int TServerMetricsPB::kUptimeSecondsFieldNumber; |
2253 | | const int TServerMetricsPB::kNumSstFilesFieldNumber; |
2254 | | const int TServerMetricsPB::kPathMetricsFieldNumber; |
2255 | | const int TServerMetricsPB::kDisableTabletSplitIfDefaultTtlFieldNumber; |
2256 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2257 | | |
2258 | | TServerMetricsPB::TServerMetricsPB() |
2259 | 2.21M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2260 | 2.21M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2261 | 2.18M | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB(); |
2262 | 2.18M | } |
2263 | 2.21M | SharedCtor(); |
2264 | | // @@protoc_insertion_point(constructor:yb.master.TServerMetricsPB) |
2265 | 2.21M | } |
2266 | | TServerMetricsPB::TServerMetricsPB(const TServerMetricsPB& from) |
2267 | | : ::google::protobuf::Message(), |
2268 | | _internal_metadata_(NULL), |
2269 | | _has_bits_(from._has_bits_), |
2270 | | _cached_size_(0), |
2271 | 0 | path_metrics_(from.path_metrics_) { |
2272 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2273 | 0 | ::memcpy(&total_sst_file_size_, &from.total_sst_file_size_, |
2274 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&disable_tablet_split_if_default_ttl_) - |
2275 | 0 | reinterpret_cast<char*>(&total_sst_file_size_)) + sizeof(disable_tablet_split_if_default_ttl_)); |
2276 | | // @@protoc_insertion_point(copy_constructor:yb.master.TServerMetricsPB) |
2277 | 0 | } |
2278 | | |
2279 | 2.21M | void TServerMetricsPB::SharedCtor() { |
2280 | 2.21M | _cached_size_ = 0; |
2281 | 2.21M | ::memset(&total_sst_file_size_, 0, static_cast<size_t>( |
2282 | 2.21M | reinterpret_cast<char*>(&disable_tablet_split_if_default_ttl_) - |
2283 | 2.21M | reinterpret_cast<char*>(&total_sst_file_size_)) + sizeof(disable_tablet_split_if_default_ttl_)); |
2284 | 2.21M | } |
2285 | | |
2286 | 2.18M | TServerMetricsPB::~TServerMetricsPB() { |
2287 | | // @@protoc_insertion_point(destructor:yb.master.TServerMetricsPB) |
2288 | 2.18M | SharedDtor(); |
2289 | 2.18M | } |
2290 | | |
2291 | 2.18M | void TServerMetricsPB::SharedDtor() { |
2292 | 2.18M | } |
2293 | | |
2294 | 0 | void TServerMetricsPB::SetCachedSize(int size) const { |
2295 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2296 | 0 | _cached_size_ = size; |
2297 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2298 | 0 | } |
2299 | 0 | const ::google::protobuf::Descriptor* TServerMetricsPB::descriptor() { |
2300 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
2301 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2302 | 0 | } |
2303 | | |
2304 | 0 | const TServerMetricsPB& TServerMetricsPB::default_instance() { |
2305 | 0 | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB(); |
2306 | 0 | return *internal_default_instance(); |
2307 | 0 | } |
2308 | | |
2309 | 0 | TServerMetricsPB* TServerMetricsPB::New(::google::protobuf::Arena* arena) const { |
2310 | 0 | TServerMetricsPB* n = new TServerMetricsPB; |
2311 | 0 | if (arena != NULL) { |
2312 | 0 | arena->Own(n); |
2313 | 0 | } |
2314 | 0 | return n; |
2315 | 0 | } |
2316 | | |
2317 | 258 | void TServerMetricsPB::Clear() { |
2318 | | // @@protoc_insertion_point(message_clear_start:yb.master.TServerMetricsPB) |
2319 | 258 | ::google::protobuf::uint32 cached_has_bits = 0; |
2320 | | // Prevent compiler warnings about cached_has_bits being unused |
2321 | 258 | (void) cached_has_bits; |
2322 | | |
2323 | 258 | path_metrics_.Clear(); |
2324 | 258 | cached_has_bits = _has_bits_[0]; |
2325 | 258 | if (cached_has_bits & 255u) { |
2326 | 258 | ::memset(&total_sst_file_size_, 0, static_cast<size_t>( |
2327 | 258 | reinterpret_cast<char*>(&disable_tablet_split_if_default_ttl_) - |
2328 | 258 | reinterpret_cast<char*>(&total_sst_file_size_)) + sizeof(disable_tablet_split_if_default_ttl_)); |
2329 | 258 | } |
2330 | 258 | _has_bits_.Clear(); |
2331 | 258 | _internal_metadata_.Clear(); |
2332 | 258 | } |
2333 | | |
2334 | | bool TServerMetricsPB::MergePartialFromCodedStream( |
2335 | 1.08M | ::google::protobuf::io::CodedInputStream* input) { |
2336 | 8.88M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2337 | 1.08M | ::google::protobuf::uint32 tag; |
2338 | | // @@protoc_insertion_point(parse_start:yb.master.TServerMetricsPB) |
2339 | 9.96M | for (;;) { |
2340 | 9.96M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2341 | 9.96M | tag = p.first; |
2342 | 9.96M | if (!p.second) goto handle_unusual1.08M ; |
2343 | 8.88M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2344 | | // optional int64 total_sst_file_size = 1; |
2345 | 1.08M | case 1: { |
2346 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2347 | 1.08M | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2348 | 1.08M | set_has_total_sst_file_size(); |
2349 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2350 | 1.08M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
2351 | 1.08M | input, &total_sst_file_size_))); |
2352 | 18.4E | } else { |
2353 | 18.4E | goto handle_unusual; |
2354 | 18.4E | } |
2355 | 1.08M | break; |
2356 | 1.08M | } |
2357 | | |
2358 | | // optional int64 total_ram_usage = 2; |
2359 | 1.08M | case 2: { |
2360 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2361 | 1.08M | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2362 | 1.08M | set_has_total_ram_usage(); |
2363 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2364 | 1.08M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
2365 | 1.08M | input, &total_ram_usage_))); |
2366 | 1.08M | } else { |
2367 | 34 | goto handle_unusual; |
2368 | 34 | } |
2369 | 1.08M | break; |
2370 | 1.08M | } |
2371 | | |
2372 | | // optional double read_ops_per_sec = 3; |
2373 | 1.08M | case 3: { |
2374 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2375 | 1.08M | static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { |
2376 | 1.08M | set_has_read_ops_per_sec(); |
2377 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2378 | 1.08M | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
2379 | 1.08M | input, &read_ops_per_sec_))); |
2380 | 18.4E | } else { |
2381 | 18.4E | goto handle_unusual; |
2382 | 18.4E | } |
2383 | 1.08M | break; |
2384 | 1.08M | } |
2385 | | |
2386 | | // optional double write_ops_per_sec = 4; |
2387 | 1.08M | case 4: { |
2388 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2389 | 1.08M | static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { |
2390 | 1.08M | set_has_write_ops_per_sec(); |
2391 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2392 | 1.08M | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
2393 | 1.08M | input, &write_ops_per_sec_))); |
2394 | 18.4E | } else { |
2395 | 18.4E | goto handle_unusual; |
2396 | 18.4E | } |
2397 | 1.08M | break; |
2398 | 1.08M | } |
2399 | | |
2400 | | // optional int64 uncompressed_sst_file_size = 5; |
2401 | 1.08M | case 5: { |
2402 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2403 | 1.08M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2404 | 1.08M | set_has_uncompressed_sst_file_size(); |
2405 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2406 | 1.08M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
2407 | 1.08M | input, &uncompressed_sst_file_size_))); |
2408 | 18.4E | } else { |
2409 | 18.4E | goto handle_unusual; |
2410 | 18.4E | } |
2411 | 1.08M | break; |
2412 | 1.08M | } |
2413 | | |
2414 | | // optional uint64 uptime_seconds = 6; |
2415 | 1.08M | case 6: { |
2416 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2417 | 1.08M | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
2418 | 1.08M | set_has_uptime_seconds(); |
2419 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2420 | 1.08M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2421 | 1.08M | input, &uptime_seconds_))); |
2422 | 18.4E | } else { |
2423 | 18.4E | goto handle_unusual; |
2424 | 18.4E | } |
2425 | 1.08M | break; |
2426 | 1.08M | } |
2427 | | |
2428 | | // optional uint64 num_sst_files = 7; |
2429 | 1.08M | case 7: { |
2430 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2431 | 1.08M | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
2432 | 1.08M | set_has_num_sst_files(); |
2433 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2434 | 1.08M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2435 | 1.08M | input, &num_sst_files_))); |
2436 | 18.4E | } else { |
2437 | 18.4E | goto handle_unusual; |
2438 | 18.4E | } |
2439 | 1.08M | break; |
2440 | 1.08M | } |
2441 | | |
2442 | | // repeated .yb.master.TServerMetricsPB.PathMetrics path_metrics = 8; |
2443 | 1.08M | case 8: { |
2444 | 233k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2445 | 233k | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
2446 | 233k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_path_metrics())); |
2447 | 18.4E | } else { |
2448 | 18.4E | goto handle_unusual; |
2449 | 18.4E | } |
2450 | 233k | break; |
2451 | 233k | } |
2452 | | |
2453 | | // optional bool disable_tablet_split_if_default_ttl = 9; |
2454 | 1.08M | case 9: { |
2455 | 1.08M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2456 | 1.08M | static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { |
2457 | 1.08M | set_has_disable_tablet_split_if_default_ttl(); |
2458 | 1.08M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2459 | 1.08M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2460 | 1.08M | input, &disable_tablet_split_if_default_ttl_))); |
2461 | 18.4E | } else { |
2462 | 18.4E | goto handle_unusual; |
2463 | 18.4E | } |
2464 | 1.08M | break; |
2465 | 1.08M | } |
2466 | | |
2467 | 1.08M | default: { |
2468 | 1.08M | handle_unusual: |
2469 | 1.08M | if (tag == 01.08M ) { |
2470 | 1.08M | goto success; |
2471 | 1.08M | } |
2472 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2473 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2474 | 18.4E | break; |
2475 | 18.4E | } |
2476 | 8.88M | } |
2477 | 8.88M | } |
2478 | 1.08M | success: |
2479 | | // @@protoc_insertion_point(parse_success:yb.master.TServerMetricsPB) |
2480 | 1.08M | return true; |
2481 | 0 | failure: |
2482 | | // @@protoc_insertion_point(parse_failure:yb.master.TServerMetricsPB) |
2483 | 0 | return false; |
2484 | 1.08M | #undef DO_ |
2485 | 1.08M | } |
2486 | | |
2487 | | void TServerMetricsPB::SerializeWithCachedSizes( |
2488 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2489 | | // @@protoc_insertion_point(serialize_start:yb.master.TServerMetricsPB) |
2490 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2491 | 0 | (void) cached_has_bits; |
2492 | |
|
2493 | 0 | cached_has_bits = _has_bits_[0]; |
2494 | | // optional int64 total_sst_file_size = 1; |
2495 | 0 | if (cached_has_bits & 0x00000001u) { |
2496 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->total_sst_file_size(), output); |
2497 | 0 | } |
2498 | | |
2499 | | // optional int64 total_ram_usage = 2; |
2500 | 0 | if (cached_has_bits & 0x00000002u) { |
2501 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->total_ram_usage(), output); |
2502 | 0 | } |
2503 | | |
2504 | | // optional double read_ops_per_sec = 3; |
2505 | 0 | if (cached_has_bits & 0x00000004u) { |
2506 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->read_ops_per_sec(), output); |
2507 | 0 | } |
2508 | | |
2509 | | // optional double write_ops_per_sec = 4; |
2510 | 0 | if (cached_has_bits & 0x00000008u) { |
2511 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->write_ops_per_sec(), output); |
2512 | 0 | } |
2513 | | |
2514 | | // optional int64 uncompressed_sst_file_size = 5; |
2515 | 0 | if (cached_has_bits & 0x00000010u) { |
2516 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->uncompressed_sst_file_size(), output); |
2517 | 0 | } |
2518 | | |
2519 | | // optional uint64 uptime_seconds = 6; |
2520 | 0 | if (cached_has_bits & 0x00000020u) { |
2521 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->uptime_seconds(), output); |
2522 | 0 | } |
2523 | | |
2524 | | // optional uint64 num_sst_files = 7; |
2525 | 0 | if (cached_has_bits & 0x00000040u) { |
2526 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->num_sst_files(), output); |
2527 | 0 | } |
2528 | | |
2529 | | // repeated .yb.master.TServerMetricsPB.PathMetrics path_metrics = 8; |
2530 | 0 | for (unsigned int i = 0, |
2531 | 0 | n = static_cast<unsigned int>(this->path_metrics_size()); i < n; i++) { |
2532 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2533 | 0 | 8, this->path_metrics(static_cast<int>(i)), output); |
2534 | 0 | } |
2535 | | |
2536 | | // optional bool disable_tablet_split_if_default_ttl = 9; |
2537 | 0 | if (cached_has_bits & 0x00000080u) { |
2538 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->disable_tablet_split_if_default_ttl(), output); |
2539 | 0 | } |
2540 | |
|
2541 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2542 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2543 | 0 | _internal_metadata_.unknown_fields(), output); |
2544 | 0 | } |
2545 | | // @@protoc_insertion_point(serialize_end:yb.master.TServerMetricsPB) |
2546 | 0 | } |
2547 | | |
2548 | | ::google::protobuf::uint8* TServerMetricsPB::InternalSerializeWithCachedSizesToArray( |
2549 | 1.10M | bool deterministic, ::google::protobuf::uint8* target) const { |
2550 | 1.10M | (void)deterministic; // Unused |
2551 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.TServerMetricsPB) |
2552 | 1.10M | ::google::protobuf::uint32 cached_has_bits = 0; |
2553 | 1.10M | (void) cached_has_bits; |
2554 | | |
2555 | 1.10M | cached_has_bits = _has_bits_[0]; |
2556 | | // optional int64 total_sst_file_size = 1; |
2557 | 1.10M | if (cached_has_bits & 0x00000001u) { |
2558 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->total_sst_file_size(), target); |
2559 | 1.10M | } |
2560 | | |
2561 | | // optional int64 total_ram_usage = 2; |
2562 | 1.10M | if (cached_has_bits & 0x00000002u) { |
2563 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->total_ram_usage(), target); |
2564 | 1.10M | } |
2565 | | |
2566 | | // optional double read_ops_per_sec = 3; |
2567 | 1.10M | if (cached_has_bits & 0x00000004u) { |
2568 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->read_ops_per_sec(), target); |
2569 | 1.10M | } |
2570 | | |
2571 | | // optional double write_ops_per_sec = 4; |
2572 | 1.10M | if (cached_has_bits & 0x00000008u) { |
2573 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->write_ops_per_sec(), target); |
2574 | 1.10M | } |
2575 | | |
2576 | | // optional int64 uncompressed_sst_file_size = 5; |
2577 | 1.10M | if (cached_has_bits & 0x00000010u) { |
2578 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->uncompressed_sst_file_size(), target); |
2579 | 1.10M | } |
2580 | | |
2581 | | // optional uint64 uptime_seconds = 6; |
2582 | 1.10M | if (cached_has_bits & 0x00000020u) { |
2583 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->uptime_seconds(), target); |
2584 | 1.10M | } |
2585 | | |
2586 | | // optional uint64 num_sst_files = 7; |
2587 | 1.10M | if (cached_has_bits & 0x00000040u) { |
2588 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->num_sst_files(), target); |
2589 | 1.10M | } |
2590 | | |
2591 | | // repeated .yb.master.TServerMetricsPB.PathMetrics path_metrics = 8; |
2592 | 1.10M | for (unsigned int i = 0, |
2593 | 1.35M | n = static_cast<unsigned int>(this->path_metrics_size()); i < n; i++245k ) { |
2594 | 245k | target = ::google::protobuf::internal::WireFormatLite:: |
2595 | 245k | InternalWriteMessageToArray( |
2596 | 245k | 8, this->path_metrics(static_cast<int>(i)), deterministic, target); |
2597 | 245k | } |
2598 | | |
2599 | | // optional bool disable_tablet_split_if_default_ttl = 9; |
2600 | 1.10M | if (cached_has_bits & 0x00000080u) { |
2601 | 1.10M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->disable_tablet_split_if_default_ttl(), target); |
2602 | 1.10M | } |
2603 | | |
2604 | 1.10M | if (_internal_metadata_.have_unknown_fields()) { |
2605 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2606 | 0 | _internal_metadata_.unknown_fields(), target); |
2607 | 0 | } |
2608 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.TServerMetricsPB) |
2609 | 1.10M | return target; |
2610 | 1.10M | } |
2611 | | |
2612 | 2.21M | size_t TServerMetricsPB::ByteSizeLong() const { |
2613 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.TServerMetricsPB) |
2614 | 2.21M | size_t total_size = 0; |
2615 | | |
2616 | 2.21M | if (_internal_metadata_.have_unknown_fields()) { |
2617 | 0 | total_size += |
2618 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2619 | 0 | _internal_metadata_.unknown_fields()); |
2620 | 0 | } |
2621 | | // repeated .yb.master.TServerMetricsPB.PathMetrics path_metrics = 8; |
2622 | 2.21M | { |
2623 | 2.21M | unsigned int count = static_cast<unsigned int>(this->path_metrics_size()); |
2624 | 2.21M | total_size += 1UL * count; |
2625 | 2.70M | for (unsigned int i = 0; i < count; i++491k ) { |
2626 | 491k | total_size += |
2627 | 491k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2628 | 491k | this->path_metrics(static_cast<int>(i))); |
2629 | 491k | } |
2630 | 2.21M | } |
2631 | | |
2632 | 2.21M | if (_has_bits_[0 / 32] & 255u) { |
2633 | | // optional int64 total_sst_file_size = 1; |
2634 | 2.21M | if (has_total_sst_file_size()) { |
2635 | 2.21M | total_size += 1 + |
2636 | 2.21M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
2637 | 2.21M | this->total_sst_file_size()); |
2638 | 2.21M | } |
2639 | | |
2640 | | // optional int64 total_ram_usage = 2; |
2641 | 2.21M | if (has_total_ram_usage()) { |
2642 | 2.21M | total_size += 1 + |
2643 | 2.21M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
2644 | 2.21M | this->total_ram_usage()); |
2645 | 2.21M | } |
2646 | | |
2647 | | // optional double read_ops_per_sec = 3; |
2648 | 2.21M | if (has_read_ops_per_sec()) { |
2649 | 2.21M | total_size += 1 + 8; |
2650 | 2.21M | } |
2651 | | |
2652 | | // optional double write_ops_per_sec = 4; |
2653 | 2.21M | if (has_write_ops_per_sec()) { |
2654 | 2.21M | total_size += 1 + 8; |
2655 | 2.21M | } |
2656 | | |
2657 | | // optional int64 uncompressed_sst_file_size = 5; |
2658 | 2.21M | if (has_uncompressed_sst_file_size()) { |
2659 | 2.21M | total_size += 1 + |
2660 | 2.21M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
2661 | 2.21M | this->uncompressed_sst_file_size()); |
2662 | 2.21M | } |
2663 | | |
2664 | | // optional uint64 uptime_seconds = 6; |
2665 | 2.21M | if (has_uptime_seconds()) { |
2666 | 2.21M | total_size += 1 + |
2667 | 2.21M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2668 | 2.21M | this->uptime_seconds()); |
2669 | 2.21M | } |
2670 | | |
2671 | | // optional uint64 num_sst_files = 7; |
2672 | 2.21M | if (has_num_sst_files()) { |
2673 | 2.21M | total_size += 1 + |
2674 | 2.21M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
2675 | 2.21M | this->num_sst_files()); |
2676 | 2.21M | } |
2677 | | |
2678 | | // optional bool disable_tablet_split_if_default_ttl = 9; |
2679 | 2.21M | if (has_disable_tablet_split_if_default_ttl()) { |
2680 | 2.21M | total_size += 1 + 1; |
2681 | 2.21M | } |
2682 | | |
2683 | 2.21M | } |
2684 | 2.21M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2685 | 2.21M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2686 | 2.21M | _cached_size_ = cached_size; |
2687 | 2.21M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2688 | 2.21M | return total_size; |
2689 | 2.21M | } |
2690 | | |
2691 | 0 | void TServerMetricsPB::MergeFrom(const ::google::protobuf::Message& from) { |
2692 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.TServerMetricsPB) |
2693 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2694 | 0 | const TServerMetricsPB* source = |
2695 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TServerMetricsPB>( |
2696 | 0 | &from); |
2697 | 0 | if (source == NULL) { |
2698 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TServerMetricsPB) |
2699 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2700 | 0 | } else { |
2701 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TServerMetricsPB) |
2702 | 0 | MergeFrom(*source); |
2703 | 0 | } |
2704 | 0 | } |
2705 | | |
2706 | 0 | void TServerMetricsPB::MergeFrom(const TServerMetricsPB& from) { |
2707 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TServerMetricsPB) |
2708 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2709 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2710 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2711 | 0 | (void) cached_has_bits; |
2712 | |
|
2713 | 0 | path_metrics_.MergeFrom(from.path_metrics_); |
2714 | 0 | cached_has_bits = from._has_bits_[0]; |
2715 | 0 | if (cached_has_bits & 255u) { |
2716 | 0 | if (cached_has_bits & 0x00000001u) { |
2717 | 0 | total_sst_file_size_ = from.total_sst_file_size_; |
2718 | 0 | } |
2719 | 0 | if (cached_has_bits & 0x00000002u) { |
2720 | 0 | total_ram_usage_ = from.total_ram_usage_; |
2721 | 0 | } |
2722 | 0 | if (cached_has_bits & 0x00000004u) { |
2723 | 0 | read_ops_per_sec_ = from.read_ops_per_sec_; |
2724 | 0 | } |
2725 | 0 | if (cached_has_bits & 0x00000008u) { |
2726 | 0 | write_ops_per_sec_ = from.write_ops_per_sec_; |
2727 | 0 | } |
2728 | 0 | if (cached_has_bits & 0x00000010u) { |
2729 | 0 | uncompressed_sst_file_size_ = from.uncompressed_sst_file_size_; |
2730 | 0 | } |
2731 | 0 | if (cached_has_bits & 0x00000020u) { |
2732 | 0 | uptime_seconds_ = from.uptime_seconds_; |
2733 | 0 | } |
2734 | 0 | if (cached_has_bits & 0x00000040u) { |
2735 | 0 | num_sst_files_ = from.num_sst_files_; |
2736 | 0 | } |
2737 | 0 | if (cached_has_bits & 0x00000080u) { |
2738 | 0 | disable_tablet_split_if_default_ttl_ = from.disable_tablet_split_if_default_ttl_; |
2739 | 0 | } |
2740 | 0 | _has_bits_[0] |= cached_has_bits; |
2741 | 0 | } |
2742 | 0 | } |
2743 | | |
2744 | 0 | void TServerMetricsPB::CopyFrom(const ::google::protobuf::Message& from) { |
2745 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.TServerMetricsPB) |
2746 | 0 | if (&from == this) return; |
2747 | 0 | Clear(); |
2748 | 0 | MergeFrom(from); |
2749 | 0 | } |
2750 | | |
2751 | 0 | void TServerMetricsPB::CopyFrom(const TServerMetricsPB& from) { |
2752 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TServerMetricsPB) |
2753 | 0 | if (&from == this) return; |
2754 | 0 | Clear(); |
2755 | 0 | MergeFrom(from); |
2756 | 0 | } |
2757 | | |
2758 | 2.18M | bool TServerMetricsPB::IsInitialized() const { |
2759 | 2.18M | if (!::google::protobuf::internal::AllAreInitialized(this->path_metrics())) return false0 ; |
2760 | 2.18M | return true; |
2761 | 2.18M | } |
2762 | | |
2763 | 0 | void TServerMetricsPB::Swap(TServerMetricsPB* other) { |
2764 | 0 | if (other == this) return; |
2765 | 0 | InternalSwap(other); |
2766 | 0 | } |
2767 | 0 | void TServerMetricsPB::InternalSwap(TServerMetricsPB* other) { |
2768 | 0 | using std::swap; |
2769 | 0 | path_metrics_.InternalSwap(&other->path_metrics_); |
2770 | 0 | swap(total_sst_file_size_, other->total_sst_file_size_); |
2771 | 0 | swap(total_ram_usage_, other->total_ram_usage_); |
2772 | 0 | swap(read_ops_per_sec_, other->read_ops_per_sec_); |
2773 | 0 | swap(write_ops_per_sec_, other->write_ops_per_sec_); |
2774 | 0 | swap(uncompressed_sst_file_size_, other->uncompressed_sst_file_size_); |
2775 | 0 | swap(uptime_seconds_, other->uptime_seconds_); |
2776 | 0 | swap(num_sst_files_, other->num_sst_files_); |
2777 | 0 | swap(disable_tablet_split_if_default_ttl_, other->disable_tablet_split_if_default_ttl_); |
2778 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2779 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2780 | 0 | swap(_cached_size_, other->_cached_size_); |
2781 | 0 | } |
2782 | | |
2783 | 1.05M | ::google::protobuf::Metadata TServerMetricsPB::GetMetadata() const { |
2784 | 1.05M | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
2785 | 1.05M | return ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; |
2786 | 1.05M | } |
2787 | | |
2788 | | |
2789 | | // @@protoc_insertion_point(namespace_scope) |
2790 | | } // namespace master |
2791 | | } // namespace yb |
2792 | | |
2793 | | // @@protoc_insertion_point(global_scope) |