/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tserver/tserver.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/tserver/tserver.proto |
3 | | |
4 | | #include "yb/tserver/tserver.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 tserver { |
25 | | class WriteRequestPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<WriteRequestPB> |
28 | | _instance; |
29 | | } _WriteRequestPB_default_instance_; |
30 | | class WriteResponsePB_PerRowErrorPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<WriteResponsePB_PerRowErrorPB> |
33 | | _instance; |
34 | | } _WriteResponsePB_PerRowErrorPB_default_instance_; |
35 | | class WriteResponsePBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<WriteResponsePB> |
38 | | _instance; |
39 | | } _WriteResponsePB_default_instance_; |
40 | | class ListTabletsRequestPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<ListTabletsRequestPB> |
43 | | _instance; |
44 | | } _ListTabletsRequestPB_default_instance_; |
45 | | class ListTabletsResponsePB_StatusAndSchemaPBDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<ListTabletsResponsePB_StatusAndSchemaPB> |
48 | | _instance; |
49 | | } _ListTabletsResponsePB_StatusAndSchemaPB_default_instance_; |
50 | | class ListTabletsResponsePBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<ListTabletsResponsePB> |
53 | | _instance; |
54 | | } _ListTabletsResponsePB_default_instance_; |
55 | | class NoOpRequestPBDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<NoOpRequestPB> |
58 | | _instance; |
59 | | } _NoOpRequestPB_default_instance_; |
60 | | class NoOpResponsePBDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<NoOpResponsePB> |
63 | | _instance; |
64 | | } _NoOpResponsePB_default_instance_; |
65 | | class VerifyTableRowRangeRequestPBDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<VerifyTableRowRangeRequestPB> |
68 | | _instance; |
69 | | } _VerifyTableRowRangeRequestPB_default_instance_; |
70 | | class VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUseDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> |
73 | | _instance; |
74 | | } _VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse_default_instance_; |
75 | | class VerifyTableRowRangeResponsePBDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<VerifyTableRowRangeResponsePB> |
78 | | _instance; |
79 | | } _VerifyTableRowRangeResponsePB_default_instance_; |
80 | | class ReadRequestPBDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<ReadRequestPB> |
83 | | _instance; |
84 | | } _ReadRequestPB_default_instance_; |
85 | | class ReadResponsePBDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<ReadResponsePB> |
88 | | _instance; |
89 | | } _ReadResponsePB_default_instance_; |
90 | | class TruncateRequestPBDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<TruncateRequestPB> |
93 | | _instance; |
94 | | } _TruncateRequestPB_default_instance_; |
95 | | class TruncateResponsePBDefaultTypeInternal { |
96 | | public: |
97 | | ::google::protobuf::internal::ExplicitlyConstructed<TruncateResponsePB> |
98 | | _instance; |
99 | | } _TruncateResponsePB_default_instance_; |
100 | | class GetTabletStatusRequestPBDefaultTypeInternal { |
101 | | public: |
102 | | ::google::protobuf::internal::ExplicitlyConstructed<GetTabletStatusRequestPB> |
103 | | _instance; |
104 | | } _GetTabletStatusRequestPB_default_instance_; |
105 | | class GetTabletStatusResponsePBDefaultTypeInternal { |
106 | | public: |
107 | | ::google::protobuf::internal::ExplicitlyConstructed<GetTabletStatusResponsePB> |
108 | | _instance; |
109 | | } _GetTabletStatusResponsePB_default_instance_; |
110 | | class GetMasterAddressesRequestPBDefaultTypeInternal { |
111 | | public: |
112 | | ::google::protobuf::internal::ExplicitlyConstructed<GetMasterAddressesRequestPB> |
113 | | _instance; |
114 | | } _GetMasterAddressesRequestPB_default_instance_; |
115 | | class GetMasterAddressesResponsePBDefaultTypeInternal { |
116 | | public: |
117 | | ::google::protobuf::internal::ExplicitlyConstructed<GetMasterAddressesResponsePB> |
118 | | _instance; |
119 | | } _GetMasterAddressesResponsePB_default_instance_; |
120 | | class PublishRequestPBDefaultTypeInternal { |
121 | | public: |
122 | | ::google::protobuf::internal::ExplicitlyConstructed<PublishRequestPB> |
123 | | _instance; |
124 | | } _PublishRequestPB_default_instance_; |
125 | | class PublishResponsePBDefaultTypeInternal { |
126 | | public: |
127 | | ::google::protobuf::internal::ExplicitlyConstructed<PublishResponsePB> |
128 | | _instance; |
129 | | } _PublishResponsePB_default_instance_; |
130 | | class IsTabletServerReadyRequestPBDefaultTypeInternal { |
131 | | public: |
132 | | ::google::protobuf::internal::ExplicitlyConstructed<IsTabletServerReadyRequestPB> |
133 | | _instance; |
134 | | } _IsTabletServerReadyRequestPB_default_instance_; |
135 | | class IsTabletServerReadyResponsePBDefaultTypeInternal { |
136 | | public: |
137 | | ::google::protobuf::internal::ExplicitlyConstructed<IsTabletServerReadyResponsePB> |
138 | | _instance; |
139 | | } _IsTabletServerReadyResponsePB_default_instance_; |
140 | | } // namespace tserver |
141 | | } // namespace yb |
142 | | namespace protobuf_yb_2ftserver_2ftserver_2eproto { |
143 | 26.8k | void InitDefaultsWriteRequestPBImpl() { |
144 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
145 | | |
146 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
147 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
148 | | #else |
149 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
150 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
151 | 26.8k | protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValueWriteBatchPB(); |
152 | 26.8k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisWriteRequestPB(); |
153 | 26.8k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLWriteRequestPB(); |
154 | 26.8k | protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlWriteRequestPB(); |
155 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB(); |
156 | 26.8k | { |
157 | 26.8k | void* ptr = &::yb::tserver::_WriteRequestPB_default_instance_; |
158 | 26.8k | new (ptr) ::yb::tserver::WriteRequestPB(); |
159 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
160 | 26.8k | } |
161 | 26.8k | ::yb::tserver::WriteRequestPB::InitAsDefaultInstance(); |
162 | 26.8k | } |
163 | | |
164 | 3.85M | void InitDefaultsWriteRequestPB() { |
165 | 3.85M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
166 | 3.85M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteRequestPBImpl); |
167 | 3.85M | } |
168 | | |
169 | 26.8k | void InitDefaultsWriteResponsePB_PerRowErrorPBImpl() { |
170 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
171 | | |
172 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
173 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
174 | | #else |
175 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
176 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
177 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
178 | 26.8k | { |
179 | 26.8k | void* ptr = &::yb::tserver::_WriteResponsePB_PerRowErrorPB_default_instance_; |
180 | 26.8k | new (ptr) ::yb::tserver::WriteResponsePB_PerRowErrorPB(); |
181 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
182 | 26.8k | } |
183 | 26.8k | ::yb::tserver::WriteResponsePB_PerRowErrorPB::InitAsDefaultInstance(); |
184 | 26.8k | } |
185 | | |
186 | 53.7k | void InitDefaultsWriteResponsePB_PerRowErrorPB() { |
187 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
188 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteResponsePB_PerRowErrorPBImpl); |
189 | 53.7k | } |
190 | | |
191 | 26.8k | void InitDefaultsWriteResponsePBImpl() { |
192 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
193 | | |
194 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
195 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
196 | | #else |
197 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
198 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
199 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
200 | 26.8k | protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteResponsePB_PerRowErrorPB(); |
201 | 26.8k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisResponsePB(); |
202 | 26.8k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLResponsePB(); |
203 | 26.8k | protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB(); |
204 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB(); |
205 | 26.8k | { |
206 | 26.8k | void* ptr = &::yb::tserver::_WriteResponsePB_default_instance_; |
207 | 26.8k | new (ptr) ::yb::tserver::WriteResponsePB(); |
208 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
209 | 26.8k | } |
210 | 26.8k | ::yb::tserver::WriteResponsePB::InitAsDefaultInstance(); |
211 | 26.8k | } |
212 | | |
213 | 3.84M | void InitDefaultsWriteResponsePB() { |
214 | 3.84M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
215 | 3.84M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteResponsePBImpl); |
216 | 3.84M | } |
217 | | |
218 | 26.8k | void InitDefaultsListTabletsRequestPBImpl() { |
219 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
220 | | |
221 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
222 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
223 | | #else |
224 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
225 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
226 | 26.8k | { |
227 | 26.8k | void* ptr = &::yb::tserver::_ListTabletsRequestPB_default_instance_; |
228 | 26.8k | new (ptr) ::yb::tserver::ListTabletsRequestPB(); |
229 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
230 | 26.8k | } |
231 | 26.8k | ::yb::tserver::ListTabletsRequestPB::InitAsDefaultInstance(); |
232 | 26.8k | } |
233 | | |
234 | 27.2k | void InitDefaultsListTabletsRequestPB() { |
235 | 27.2k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
236 | 27.2k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsRequestPBImpl); |
237 | 27.2k | } |
238 | | |
239 | 26.8k | void InitDefaultsListTabletsResponsePB_StatusAndSchemaPBImpl() { |
240 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
241 | | |
242 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
243 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
244 | | #else |
245 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
246 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
247 | 26.8k | protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsTabletStatusPB(); |
248 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB(); |
249 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB(); |
250 | 26.8k | { |
251 | 26.8k | void* ptr = &::yb::tserver::_ListTabletsResponsePB_StatusAndSchemaPB_default_instance_; |
252 | 26.8k | new (ptr) ::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB(); |
253 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
254 | 26.8k | } |
255 | 26.8k | ::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB::InitAsDefaultInstance(); |
256 | 26.8k | } |
257 | | |
258 | 60.0k | void InitDefaultsListTabletsResponsePB_StatusAndSchemaPB() { |
259 | 60.0k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
260 | 60.0k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsResponsePB_StatusAndSchemaPBImpl); |
261 | 60.0k | } |
262 | | |
263 | 26.8k | void InitDefaultsListTabletsResponsePBImpl() { |
264 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
265 | | |
266 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
267 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
268 | | #else |
269 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
270 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
271 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
272 | 26.8k | protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsResponsePB_StatusAndSchemaPB(); |
273 | 26.8k | { |
274 | 26.8k | void* ptr = &::yb::tserver::_ListTabletsResponsePB_default_instance_; |
275 | 26.8k | new (ptr) ::yb::tserver::ListTabletsResponsePB(); |
276 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
277 | 26.8k | } |
278 | 26.8k | ::yb::tserver::ListTabletsResponsePB::InitAsDefaultInstance(); |
279 | 26.8k | } |
280 | | |
281 | 27.2k | void InitDefaultsListTabletsResponsePB() { |
282 | 27.2k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
283 | 27.2k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsResponsePBImpl); |
284 | 27.2k | } |
285 | | |
286 | 26.8k | void InitDefaultsNoOpRequestPBImpl() { |
287 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
288 | | |
289 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
290 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
291 | | #else |
292 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
293 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
294 | 26.8k | { |
295 | 26.8k | void* ptr = &::yb::tserver::_NoOpRequestPB_default_instance_; |
296 | 26.8k | new (ptr) ::yb::tserver::NoOpRequestPB(); |
297 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
298 | 26.8k | } |
299 | 26.8k | ::yb::tserver::NoOpRequestPB::InitAsDefaultInstance(); |
300 | 26.8k | } |
301 | | |
302 | 26.8k | void InitDefaultsNoOpRequestPB() { |
303 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
304 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNoOpRequestPBImpl); |
305 | 26.8k | } |
306 | | |
307 | 26.8k | void InitDefaultsNoOpResponsePBImpl() { |
308 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
309 | | |
310 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
311 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
312 | | #else |
313 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
314 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
315 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
316 | 26.8k | { |
317 | 26.8k | void* ptr = &::yb::tserver::_NoOpResponsePB_default_instance_; |
318 | 26.8k | new (ptr) ::yb::tserver::NoOpResponsePB(); |
319 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
320 | 26.8k | } |
321 | 26.8k | ::yb::tserver::NoOpResponsePB::InitAsDefaultInstance(); |
322 | 26.8k | } |
323 | | |
324 | 26.8k | void InitDefaultsNoOpResponsePB() { |
325 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
326 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNoOpResponsePBImpl); |
327 | 26.8k | } |
328 | | |
329 | 26.8k | void InitDefaultsVerifyTableRowRangeRequestPBImpl() { |
330 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
331 | | |
332 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
333 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
334 | | #else |
335 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
336 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
337 | 26.8k | { |
338 | 26.8k | void* ptr = &::yb::tserver::_VerifyTableRowRangeRequestPB_default_instance_; |
339 | 26.8k | new (ptr) ::yb::tserver::VerifyTableRowRangeRequestPB(); |
340 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
341 | 26.8k | } |
342 | 26.8k | ::yb::tserver::VerifyTableRowRangeRequestPB::InitAsDefaultInstance(); |
343 | 26.8k | } |
344 | | |
345 | 26.8k | void InitDefaultsVerifyTableRowRangeRequestPB() { |
346 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
347 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVerifyTableRowRangeRequestPBImpl); |
348 | 26.8k | } |
349 | | |
350 | 26.8k | void InitDefaultsVerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUseImpl() { |
351 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
352 | | |
353 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
354 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
355 | | #else |
356 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
357 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
358 | 26.8k | { |
359 | 26.8k | void* ptr = &::yb::tserver::_VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse_default_instance_; |
360 | 26.8k | new (ptr) ::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse(); |
361 | 26.8k | } |
362 | 26.8k | ::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::InitAsDefaultInstance(); |
363 | 26.8k | } |
364 | | |
365 | 53.7k | void InitDefaultsVerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse() { |
366 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
367 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUseImpl); |
368 | 53.7k | } |
369 | | |
370 | 26.8k | void InitDefaultsVerifyTableRowRangeResponsePBImpl() { |
371 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
372 | | |
373 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
374 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
375 | | #else |
376 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
377 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
378 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
379 | 26.8k | protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsVerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse(); |
380 | 26.8k | { |
381 | 26.8k | void* ptr = &::yb::tserver::_VerifyTableRowRangeResponsePB_default_instance_; |
382 | 26.8k | new (ptr) ::yb::tserver::VerifyTableRowRangeResponsePB(); |
383 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
384 | 26.8k | } |
385 | 26.8k | ::yb::tserver::VerifyTableRowRangeResponsePB::InitAsDefaultInstance(); |
386 | 26.8k | } |
387 | | |
388 | 26.8k | void InitDefaultsVerifyTableRowRangeResponsePB() { |
389 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
390 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVerifyTableRowRangeResponsePBImpl); |
391 | 26.8k | } |
392 | | |
393 | 26.8k | void InitDefaultsReadRequestPBImpl() { |
394 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
395 | | |
396 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
397 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
398 | | #else |
399 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
400 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
401 | 26.8k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisReadRequestPB(); |
402 | 26.8k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReadRequestPB(); |
403 | 26.8k | protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlReadRequestPB(); |
404 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB(); |
405 | 26.8k | protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsSubTransactionMetadataPB(); |
406 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB(); |
407 | 26.8k | { |
408 | 26.8k | void* ptr = &::yb::tserver::_ReadRequestPB_default_instance_; |
409 | 26.8k | new (ptr) ::yb::tserver::ReadRequestPB(); |
410 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
411 | 26.8k | } |
412 | 26.8k | ::yb::tserver::ReadRequestPB::InitAsDefaultInstance(); |
413 | 26.8k | } |
414 | | |
415 | 11.7M | void InitDefaultsReadRequestPB() { |
416 | 11.7M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
417 | 11.7M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReadRequestPBImpl); |
418 | 11.7M | } |
419 | | |
420 | 26.8k | void InitDefaultsReadResponsePBImpl() { |
421 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
422 | | |
423 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
424 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
425 | | #else |
426 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
427 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
428 | 26.8k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisResponsePB(); |
429 | 26.8k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLResponsePB(); |
430 | 26.8k | protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB(); |
431 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
432 | 26.8k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB(); |
433 | 26.8k | { |
434 | 26.8k | void* ptr = &::yb::tserver::_ReadResponsePB_default_instance_; |
435 | 26.8k | new (ptr) ::yb::tserver::ReadResponsePB(); |
436 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
437 | 26.8k | } |
438 | 26.8k | ::yb::tserver::ReadResponsePB::InitAsDefaultInstance(); |
439 | 26.8k | } |
440 | | |
441 | 11.6M | void InitDefaultsReadResponsePB() { |
442 | 11.6M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
443 | 11.6M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReadResponsePBImpl); |
444 | 11.6M | } |
445 | | |
446 | 26.8k | void InitDefaultsTruncateRequestPBImpl() { |
447 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
448 | | |
449 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
450 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
451 | | #else |
452 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
453 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
454 | 26.8k | protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTruncatePB(); |
455 | 26.8k | { |
456 | 26.8k | void* ptr = &::yb::tserver::_TruncateRequestPB_default_instance_; |
457 | 26.8k | new (ptr) ::yb::tserver::TruncateRequestPB(); |
458 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
459 | 26.8k | } |
460 | 26.8k | ::yb::tserver::TruncateRequestPB::InitAsDefaultInstance(); |
461 | 26.8k | } |
462 | | |
463 | 157k | void InitDefaultsTruncateRequestPB() { |
464 | 157k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
465 | 157k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTruncateRequestPBImpl); |
466 | 157k | } |
467 | | |
468 | 26.8k | void InitDefaultsTruncateResponsePBImpl() { |
469 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
470 | | |
471 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
472 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
473 | | #else |
474 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
475 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
476 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
477 | 26.8k | { |
478 | 26.8k | void* ptr = &::yb::tserver::_TruncateResponsePB_default_instance_; |
479 | 26.8k | new (ptr) ::yb::tserver::TruncateResponsePB(); |
480 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
481 | 26.8k | } |
482 | 26.8k | ::yb::tserver::TruncateResponsePB::InitAsDefaultInstance(); |
483 | 26.8k | } |
484 | | |
485 | 141k | void InitDefaultsTruncateResponsePB() { |
486 | 141k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
487 | 141k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTruncateResponsePBImpl); |
488 | 141k | } |
489 | | |
490 | 26.8k | void InitDefaultsGetTabletStatusRequestPBImpl() { |
491 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
492 | | |
493 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
494 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
495 | | #else |
496 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
497 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
498 | 26.8k | { |
499 | 26.8k | void* ptr = &::yb::tserver::_GetTabletStatusRequestPB_default_instance_; |
500 | 26.8k | new (ptr) ::yb::tserver::GetTabletStatusRequestPB(); |
501 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
502 | 26.8k | } |
503 | 26.8k | ::yb::tserver::GetTabletStatusRequestPB::InitAsDefaultInstance(); |
504 | 26.8k | } |
505 | | |
506 | 27.9k | void InitDefaultsGetTabletStatusRequestPB() { |
507 | 27.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
508 | 27.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTabletStatusRequestPBImpl); |
509 | 27.9k | } |
510 | | |
511 | 26.8k | void InitDefaultsGetTabletStatusResponsePBImpl() { |
512 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
513 | | |
514 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
515 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
516 | | #else |
517 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
518 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
519 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
520 | 26.8k | protobuf_yb_2ftablet_2ftablet_2eproto::InitDefaultsTabletStatusPB(); |
521 | 26.8k | { |
522 | 26.8k | void* ptr = &::yb::tserver::_GetTabletStatusResponsePB_default_instance_; |
523 | 26.8k | new (ptr) ::yb::tserver::GetTabletStatusResponsePB(); |
524 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
525 | 26.8k | } |
526 | 26.8k | ::yb::tserver::GetTabletStatusResponsePB::InitAsDefaultInstance(); |
527 | 26.8k | } |
528 | | |
529 | 27.9k | void InitDefaultsGetTabletStatusResponsePB() { |
530 | 27.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
531 | 27.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTabletStatusResponsePBImpl); |
532 | 27.9k | } |
533 | | |
534 | 26.8k | void InitDefaultsGetMasterAddressesRequestPBImpl() { |
535 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
536 | | |
537 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
538 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
539 | | #else |
540 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
541 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
542 | 26.8k | { |
543 | 26.8k | void* ptr = &::yb::tserver::_GetMasterAddressesRequestPB_default_instance_; |
544 | 26.8k | new (ptr) ::yb::tserver::GetMasterAddressesRequestPB(); |
545 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
546 | 26.8k | } |
547 | 26.8k | ::yb::tserver::GetMasterAddressesRequestPB::InitAsDefaultInstance(); |
548 | 26.8k | } |
549 | | |
550 | 26.8k | void InitDefaultsGetMasterAddressesRequestPB() { |
551 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
552 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetMasterAddressesRequestPBImpl); |
553 | 26.8k | } |
554 | | |
555 | 26.8k | void InitDefaultsGetMasterAddressesResponsePBImpl() { |
556 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
557 | | |
558 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
559 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
560 | | #else |
561 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
562 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
563 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
564 | 26.8k | { |
565 | 26.8k | void* ptr = &::yb::tserver::_GetMasterAddressesResponsePB_default_instance_; |
566 | 26.8k | new (ptr) ::yb::tserver::GetMasterAddressesResponsePB(); |
567 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
568 | 26.8k | } |
569 | 26.8k | ::yb::tserver::GetMasterAddressesResponsePB::InitAsDefaultInstance(); |
570 | 26.8k | } |
571 | | |
572 | 26.8k | void InitDefaultsGetMasterAddressesResponsePB() { |
573 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
574 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetMasterAddressesResponsePBImpl); |
575 | 26.8k | } |
576 | | |
577 | 26.8k | void InitDefaultsPublishRequestPBImpl() { |
578 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
579 | | |
580 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
581 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
582 | | #else |
583 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
584 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
585 | 26.8k | { |
586 | 26.8k | void* ptr = &::yb::tserver::_PublishRequestPB_default_instance_; |
587 | 26.8k | new (ptr) ::yb::tserver::PublishRequestPB(); |
588 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
589 | 26.8k | } |
590 | 26.8k | ::yb::tserver::PublishRequestPB::InitAsDefaultInstance(); |
591 | 26.8k | } |
592 | | |
593 | 28.2k | void InitDefaultsPublishRequestPB() { |
594 | 28.2k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
595 | 28.2k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPublishRequestPBImpl); |
596 | 28.2k | } |
597 | | |
598 | 26.8k | void InitDefaultsPublishResponsePBImpl() { |
599 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
600 | | |
601 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
602 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
603 | | #else |
604 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
605 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
606 | 26.8k | { |
607 | 26.8k | void* ptr = &::yb::tserver::_PublishResponsePB_default_instance_; |
608 | 26.8k | new (ptr) ::yb::tserver::PublishResponsePB(); |
609 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
610 | 26.8k | } |
611 | 26.8k | ::yb::tserver::PublishResponsePB::InitAsDefaultInstance(); |
612 | 26.8k | } |
613 | | |
614 | 28.2k | void InitDefaultsPublishResponsePB() { |
615 | 28.2k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
616 | 28.2k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPublishResponsePBImpl); |
617 | 28.2k | } |
618 | | |
619 | 26.8k | void InitDefaultsIsTabletServerReadyRequestPBImpl() { |
620 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
621 | | |
622 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
623 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
624 | | #else |
625 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
626 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
627 | 26.8k | { |
628 | 26.8k | void* ptr = &::yb::tserver::_IsTabletServerReadyRequestPB_default_instance_; |
629 | 26.8k | new (ptr) ::yb::tserver::IsTabletServerReadyRequestPB(); |
630 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
631 | 26.8k | } |
632 | 26.8k | ::yb::tserver::IsTabletServerReadyRequestPB::InitAsDefaultInstance(); |
633 | 26.8k | } |
634 | | |
635 | 26.8k | void InitDefaultsIsTabletServerReadyRequestPB() { |
636 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
637 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsTabletServerReadyRequestPBImpl); |
638 | 26.8k | } |
639 | | |
640 | 26.8k | void InitDefaultsIsTabletServerReadyResponsePBImpl() { |
641 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
642 | | |
643 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
644 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
645 | | #else |
646 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
647 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
648 | 26.8k | protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB(); |
649 | 26.8k | { |
650 | 26.8k | void* ptr = &::yb::tserver::_IsTabletServerReadyResponsePB_default_instance_; |
651 | 26.8k | new (ptr) ::yb::tserver::IsTabletServerReadyResponsePB(); |
652 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
653 | 26.8k | } |
654 | 26.8k | ::yb::tserver::IsTabletServerReadyResponsePB::InitAsDefaultInstance(); |
655 | 26.8k | } |
656 | | |
657 | 26.8k | void InitDefaultsIsTabletServerReadyResponsePB() { |
658 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
659 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsTabletServerReadyResponsePBImpl); |
660 | 26.8k | } |
661 | | |
662 | | ::google::protobuf::Metadata file_level_metadata[23]; |
663 | | |
664 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
665 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, _has_bits_), |
666 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, _internal_metadata_), |
667 | | ~0u, // no _extensions_ |
668 | | ~0u, // no _oneof_case_ |
669 | | ~0u, // no _weak_field_map_ |
670 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, tablet_id_), |
671 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, write_batch_), |
672 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, redis_write_batch_), |
673 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, ql_write_batch_), |
674 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, pgsql_write_batch_), |
675 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, propagated_hybrid_time_), |
676 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, include_trace_), |
677 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, read_time_), |
678 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, client_id1_), |
679 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, client_id2_), |
680 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, request_id_), |
681 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, min_running_request_id_), |
682 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, rejection_score_), |
683 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, external_hybrid_time_), |
684 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteRequestPB, batch_idx_), |
685 | | 0, |
686 | | 1, |
687 | | ~0u, |
688 | | ~0u, |
689 | | ~0u, |
690 | | 3, |
691 | | 7, |
692 | | 2, |
693 | | 4, |
694 | | 5, |
695 | | 6, |
696 | | 8, |
697 | | 9, |
698 | | 10, |
699 | | 11, |
700 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB_PerRowErrorPB, _has_bits_), |
701 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB_PerRowErrorPB, _internal_metadata_), |
702 | | ~0u, // no _extensions_ |
703 | | ~0u, // no _oneof_case_ |
704 | | ~0u, // no _weak_field_map_ |
705 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB_PerRowErrorPB, row_index_), |
706 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB_PerRowErrorPB, error_), |
707 | | 1, |
708 | | 0, |
709 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, _has_bits_), |
710 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, _internal_metadata_), |
711 | | ~0u, // no _extensions_ |
712 | | ~0u, // no _oneof_case_ |
713 | | ~0u, // no _weak_field_map_ |
714 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, error_), |
715 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, per_row_errors_), |
716 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, redis_response_batch_), |
717 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, ql_response_batch_), |
718 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, pgsql_response_batch_), |
719 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, propagated_hybrid_time_), |
720 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, trace_buffer_), |
721 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, restart_read_time_), |
722 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, used_read_time_), |
723 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::WriteResponsePB, local_limit_ht_), |
724 | | 1, |
725 | | ~0u, |
726 | | ~0u, |
727 | | ~0u, |
728 | | ~0u, |
729 | | 4, |
730 | | 0, |
731 | | 2, |
732 | | 3, |
733 | | 5, |
734 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsRequestPB, _has_bits_), |
735 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsRequestPB, _internal_metadata_), |
736 | | ~0u, // no _extensions_ |
737 | | ~0u, // no _oneof_case_ |
738 | | ~0u, // no _weak_field_map_ |
739 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB, _has_bits_), |
740 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB, _internal_metadata_), |
741 | | ~0u, // no _extensions_ |
742 | | ~0u, // no _oneof_case_ |
743 | | ~0u, // no _weak_field_map_ |
744 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB, tablet_status_), |
745 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB, schema_), |
746 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB, partition_schema_), |
747 | | 0, |
748 | | 1, |
749 | | 2, |
750 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB, _has_bits_), |
751 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB, _internal_metadata_), |
752 | | ~0u, // no _extensions_ |
753 | | ~0u, // no _oneof_case_ |
754 | | ~0u, // no _weak_field_map_ |
755 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB, error_), |
756 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ListTabletsResponsePB, status_and_schema_), |
757 | | 0, |
758 | | ~0u, |
759 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpRequestPB, _has_bits_), |
760 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpRequestPB, _internal_metadata_), |
761 | | ~0u, // no _extensions_ |
762 | | ~0u, // no _oneof_case_ |
763 | | ~0u, // no _weak_field_map_ |
764 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpRequestPB, tablet_id_), |
765 | | 0, |
766 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpResponsePB, _has_bits_), |
767 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpResponsePB, _internal_metadata_), |
768 | | ~0u, // no _extensions_ |
769 | | ~0u, // no _oneof_case_ |
770 | | ~0u, // no _weak_field_map_ |
771 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::NoOpResponsePB, error_), |
772 | | 0, |
773 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, _has_bits_), |
774 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, _internal_metadata_), |
775 | | ~0u, // no _extensions_ |
776 | | ~0u, // no _oneof_case_ |
777 | | ~0u, // no _weak_field_map_ |
778 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, tablet_id_), |
779 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, index_ids_), |
780 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, start_key_), |
781 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, num_rows_), |
782 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, read_time_), |
783 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeRequestPB, propagated_hybrid_time_), |
784 | | 0, |
785 | | ~0u, |
786 | | 1, |
787 | | 4, |
788 | | 2, |
789 | | 3, |
790 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse, _has_bits_), |
791 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse, _internal_metadata_), |
792 | | ~0u, // no _extensions_ |
793 | | ~0u, // no _oneof_case_ |
794 | | ~0u, // no _weak_field_map_ |
795 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse, key_), |
796 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse, value_), |
797 | | 0, |
798 | | 1, |
799 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, _has_bits_), |
800 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, _internal_metadata_), |
801 | | ~0u, // no _extensions_ |
802 | | ~0u, // no _oneof_case_ |
803 | | ~0u, // no _weak_field_map_ |
804 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, error_), |
805 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, consistency_stats_), |
806 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, verified_until_), |
807 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::VerifyTableRowRangeResponsePB, propagated_hybrid_time_), |
808 | | 1, |
809 | | ~0u, |
810 | | 0, |
811 | | 2, |
812 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, _has_bits_), |
813 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, _internal_metadata_), |
814 | | ~0u, // no _extensions_ |
815 | | ~0u, // no _oneof_case_ |
816 | | ~0u, // no _weak_field_map_ |
817 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, tablet_id_), |
818 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, redis_batch_), |
819 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, ql_batch_), |
820 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, pgsql_batch_), |
821 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, cache_blocks_), |
822 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, include_trace_), |
823 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, consistency_level_), |
824 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, transaction_), |
825 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, subtransaction_), |
826 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, propagated_hybrid_time_), |
827 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, read_time_), |
828 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, proxy_uuid_), |
829 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, deprecated_may_have_metadata_), |
830 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, rejection_score_), |
831 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadRequestPB, batch_idx_), |
832 | | 0, |
833 | | ~0u, |
834 | | ~0u, |
835 | | ~0u, |
836 | | 10, |
837 | | 8, |
838 | | 11, |
839 | | 2, |
840 | | 4, |
841 | | 5, |
842 | | 3, |
843 | | 1, |
844 | | 9, |
845 | | 6, |
846 | | 7, |
847 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, _has_bits_), |
848 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, _internal_metadata_), |
849 | | ~0u, // no _extensions_ |
850 | | ~0u, // no _oneof_case_ |
851 | | ~0u, // no _weak_field_map_ |
852 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, redis_batch_), |
853 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, ql_batch_), |
854 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, pgsql_batch_), |
855 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, error_), |
856 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, trace_buffer_), |
857 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, propagated_hybrid_time_), |
858 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, restart_read_time_), |
859 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, used_read_time_), |
860 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::ReadResponsePB, local_limit_ht_), |
861 | | ~0u, |
862 | | ~0u, |
863 | | ~0u, |
864 | | 1, |
865 | | 0, |
866 | | 4, |
867 | | 2, |
868 | | 3, |
869 | | 5, |
870 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateRequestPB, _has_bits_), |
871 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateRequestPB, _internal_metadata_), |
872 | | ~0u, // no _extensions_ |
873 | | ~0u, // no _oneof_case_ |
874 | | ~0u, // no _weak_field_map_ |
875 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateRequestPB, tablet_id_), |
876 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateRequestPB, propagated_hybrid_time_), |
877 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateRequestPB, truncate_), |
878 | | 0, |
879 | | 2, |
880 | | 1, |
881 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateResponsePB, _has_bits_), |
882 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateResponsePB, _internal_metadata_), |
883 | | ~0u, // no _extensions_ |
884 | | ~0u, // no _oneof_case_ |
885 | | ~0u, // no _weak_field_map_ |
886 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateResponsePB, error_), |
887 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TruncateResponsePB, propagated_hybrid_time_), |
888 | | 0, |
889 | | 1, |
890 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusRequestPB, _has_bits_), |
891 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusRequestPB, _internal_metadata_), |
892 | | ~0u, // no _extensions_ |
893 | | ~0u, // no _oneof_case_ |
894 | | ~0u, // no _weak_field_map_ |
895 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusRequestPB, tablet_id_), |
896 | | 0, |
897 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusResponsePB, _has_bits_), |
898 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusResponsePB, _internal_metadata_), |
899 | | ~0u, // no _extensions_ |
900 | | ~0u, // no _oneof_case_ |
901 | | ~0u, // no _weak_field_map_ |
902 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusResponsePB, error_), |
903 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetTabletStatusResponsePB, tablet_status_), |
904 | | 0, |
905 | | 1, |
906 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesRequestPB, _has_bits_), |
907 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesRequestPB, _internal_metadata_), |
908 | | ~0u, // no _extensions_ |
909 | | ~0u, // no _oneof_case_ |
910 | | ~0u, // no _weak_field_map_ |
911 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesResponsePB, _has_bits_), |
912 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesResponsePB, _internal_metadata_), |
913 | | ~0u, // no _extensions_ |
914 | | ~0u, // no _oneof_case_ |
915 | | ~0u, // no _weak_field_map_ |
916 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesResponsePB, error_), |
917 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::GetMasterAddressesResponsePB, master_addresses_), |
918 | | 1, |
919 | | 0, |
920 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishRequestPB, _has_bits_), |
921 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishRequestPB, _internal_metadata_), |
922 | | ~0u, // no _extensions_ |
923 | | ~0u, // no _oneof_case_ |
924 | | ~0u, // no _weak_field_map_ |
925 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishRequestPB, channel_), |
926 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishRequestPB, message_), |
927 | | 0, |
928 | | 1, |
929 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishResponsePB, _has_bits_), |
930 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishResponsePB, _internal_metadata_), |
931 | | ~0u, // no _extensions_ |
932 | | ~0u, // no _oneof_case_ |
933 | | ~0u, // no _weak_field_map_ |
934 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::PublishResponsePB, num_clients_forwarded_to_), |
935 | | 0, |
936 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyRequestPB, _has_bits_), |
937 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyRequestPB, _internal_metadata_), |
938 | | ~0u, // no _extensions_ |
939 | | ~0u, // no _oneof_case_ |
940 | | ~0u, // no _weak_field_map_ |
941 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyResponsePB, _has_bits_), |
942 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyResponsePB, _internal_metadata_), |
943 | | ~0u, // no _extensions_ |
944 | | ~0u, // no _oneof_case_ |
945 | | ~0u, // no _weak_field_map_ |
946 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyResponsePB, error_), |
947 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyResponsePB, num_tablets_not_running_), |
948 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::IsTabletServerReadyResponsePB, total_tablets_), |
949 | | 0, |
950 | | 1, |
951 | | 2, |
952 | | }; |
953 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
954 | | { 0, 20, sizeof(::yb::tserver::WriteRequestPB)}, |
955 | | { 35, 42, sizeof(::yb::tserver::WriteResponsePB_PerRowErrorPB)}, |
956 | | { 44, 59, sizeof(::yb::tserver::WriteResponsePB)}, |
957 | | { 69, 74, sizeof(::yb::tserver::ListTabletsRequestPB)}, |
958 | | { 74, 82, sizeof(::yb::tserver::ListTabletsResponsePB_StatusAndSchemaPB)}, |
959 | | { 85, 92, sizeof(::yb::tserver::ListTabletsResponsePB)}, |
960 | | { 94, 100, sizeof(::yb::tserver::NoOpRequestPB)}, |
961 | | { 101, 107, sizeof(::yb::tserver::NoOpResponsePB)}, |
962 | | { 108, 119, sizeof(::yb::tserver::VerifyTableRowRangeRequestPB)}, |
963 | | { 125, 132, sizeof(::yb::tserver::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse)}, |
964 | | { 134, 143, sizeof(::yb::tserver::VerifyTableRowRangeResponsePB)}, |
965 | | { 147, 167, sizeof(::yb::tserver::ReadRequestPB)}, |
966 | | { 182, 196, sizeof(::yb::tserver::ReadResponsePB)}, |
967 | | { 205, 213, sizeof(::yb::tserver::TruncateRequestPB)}, |
968 | | { 216, 223, sizeof(::yb::tserver::TruncateResponsePB)}, |
969 | | { 225, 231, sizeof(::yb::tserver::GetTabletStatusRequestPB)}, |
970 | | { 232, 239, sizeof(::yb::tserver::GetTabletStatusResponsePB)}, |
971 | | { 241, 246, sizeof(::yb::tserver::GetMasterAddressesRequestPB)}, |
972 | | { 246, 253, sizeof(::yb::tserver::GetMasterAddressesResponsePB)}, |
973 | | { 255, 262, sizeof(::yb::tserver::PublishRequestPB)}, |
974 | | { 264, 270, sizeof(::yb::tserver::PublishResponsePB)}, |
975 | | { 271, 276, sizeof(::yb::tserver::IsTabletServerReadyRequestPB)}, |
976 | | { 276, 284, sizeof(::yb::tserver::IsTabletServerReadyResponsePB)}, |
977 | | }; |
978 | | |
979 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
980 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_WriteRequestPB_default_instance_), |
981 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_WriteResponsePB_PerRowErrorPB_default_instance_), |
982 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_WriteResponsePB_default_instance_), |
983 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_ListTabletsRequestPB_default_instance_), |
984 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_ListTabletsResponsePB_StatusAndSchemaPB_default_instance_), |
985 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_ListTabletsResponsePB_default_instance_), |
986 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_NoOpRequestPB_default_instance_), |
987 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_NoOpResponsePB_default_instance_), |
988 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_VerifyTableRowRangeRequestPB_default_instance_), |
989 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse_default_instance_), |
990 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_VerifyTableRowRangeResponsePB_default_instance_), |
991 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_ReadRequestPB_default_instance_), |
992 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_ReadResponsePB_default_instance_), |
993 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_TruncateRequestPB_default_instance_), |
994 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_TruncateResponsePB_default_instance_), |
995 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_GetTabletStatusRequestPB_default_instance_), |
996 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_GetTabletStatusResponsePB_default_instance_), |
997 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_GetMasterAddressesRequestPB_default_instance_), |
998 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_GetMasterAddressesResponsePB_default_instance_), |
999 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_PublishRequestPB_default_instance_), |
1000 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_PublishResponsePB_default_instance_), |
1001 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_IsTabletServerReadyRequestPB_default_instance_), |
1002 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_IsTabletServerReadyResponsePB_default_instance_), |
1003 | | }; |
1004 | | |
1005 | 5.15k | void protobuf_AssignDescriptors() { |
1006 | 5.15k | AddDescriptors(); |
1007 | 5.15k | ::google::protobuf::MessageFactory* factory = NULL; |
1008 | 5.15k | AssignDescriptors( |
1009 | 5.15k | "yb/tserver/tserver.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
1010 | 5.15k | file_level_metadata, NULL, NULL); |
1011 | 5.15k | } |
1012 | | |
1013 | 2.98M | void protobuf_AssignDescriptorsOnce() { |
1014 | 2.98M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1015 | 2.98M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
1016 | 2.98M | } |
1017 | | |
1018 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
1019 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
1020 | 0 | protobuf_AssignDescriptorsOnce(); |
1021 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 23); |
1022 | 0 | } |
1023 | | |
1024 | 26.8k | void AddDescriptorsImpl() { |
1025 | 26.8k | InitDefaults(); |
1026 | 26.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1027 | 26.8k | "\n\030yb/tserver/tserver.proto\022\nyb.tserver\032\026" |
1028 | 26.8k | "yb/common/common.proto\032\034yb/common/common" |
1029 | 26.8k | "_types.proto\032\036yb/common/redis_protocol.p" |
1030 | 26.8k | "roto\032\033yb/common/ql_protocol.proto\032\036yb/co" |
1031 | 26.8k | "mmon/pgsql_protocol.proto\032\033yb/common/tra" |
1032 | 26.8k | "nsaction.proto\032\035yb/common/wire_protocol." |
1033 | 26.8k | "proto\032\024yb/docdb/docdb.proto\032\032yb/tablet/o" |
1034 | 26.8k | "perations.proto\032\026yb/tablet/tablet.proto\032" |
1035 | 26.8k | "\036yb/tserver/tserver_types.proto\"\373\003\n\016Writ" |
1036 | 26.8k | "eRequestPB\022\021\n\ttablet_id\030\001 \002(\014\0223\n\013write_b" |
1037 | 26.8k | "atch\030\007 \001(\0132\036.yb.docdb.KeyValueWriteBatch" |
1038 | 26.8k | "PB\0222\n\021redis_write_batch\030\010 \003(\0132\027.yb.Redis" |
1039 | 26.8k | "WriteRequestPB\022,\n\016ql_write_batch\030\n \003(\0132\024" |
1040 | 26.8k | ".yb.QLWriteRequestPB\0222\n\021pgsql_write_batc" |
1041 | 26.8k | "h\030\r \003(\0132\027.yb.PgsqlWriteRequestPB\022\036\n\026prop" |
1042 | 26.8k | "agated_hybrid_time\030\005 \001(\006\022\034\n\rinclude_trac" |
1043 | 26.8k | "e\030\006 \001(\010:\005false\022\'\n\tread_time\030\014 \001(\0132\024.yb.R" |
1044 | 26.8k | "eadHybridTimePB\022\022\n\nclient_id1\030\016 \001(\006\022\022\n\nc" |
1045 | 26.8k | "lient_id2\030\017 \001(\006\022\022\n\nrequest_id\030\020 \001(\003\022\036\n\026m" |
1046 | 26.8k | "in_running_request_id\030\021 \001(\003\022\027\n\017rejection" |
1047 | 26.8k | "_score\030\022 \001(\001\022\034\n\024external_hybrid_time\030\023 \001" |
1048 | 26.8k | "(\006\022\021\n\tbatch_idx\030\024 \001(\004\"\210\004\n\017WriteResponseP" |
1049 | 26.8k | "B\022.\n\005error\030\001 \001(\0132\037.yb.tserver.TabletServ" |
1050 | 26.8k | "erErrorPB\022A\n\016per_row_errors\030\002 \003(\0132).yb.t" |
1051 | 26.8k | "server.WriteResponsePB.PerRowErrorPB\0221\n\024" |
1052 | 26.8k | "redis_response_batch\030\010 \003(\0132\023.yb.RedisRes" |
1053 | 26.8k | "ponsePB\022+\n\021ql_response_batch\030\t \003(\0132\020.yb." |
1054 | 26.8k | "QLResponsePB\0221\n\024pgsql_response_batch\030\014 \003" |
1055 | 26.8k | "(\0132\023.yb.PgsqlResponsePB\022\036\n\026propagated_hy" |
1056 | 26.8k | "brid_time\030\003 \001(\006\022\024\n\014trace_buffer\030\n \001(\t\022/\n" |
1057 | 26.8k | "\021restart_read_time\030\013 \001(\0132\024.yb.ReadHybrid" |
1058 | 26.8k | "TimePB\022,\n\016used_read_time\030\r \001(\0132\024.yb.Read" |
1059 | 26.8k | "HybridTimePB\022\026\n\016local_limit_ht\030\016 \001(\006\032B\n\r" |
1060 | 26.8k | "PerRowErrorPB\022\021\n\trow_index\030\001 \002(\005\022\036\n\005erro" |
1061 | 26.8k | "r\030\002 \002(\0132\017.yb.AppStatusPB\"\026\n\024ListTabletsR" |
1062 | 26.8k | "equestPB\"\256\002\n\025ListTabletsResponsePB\022.\n\005er" |
1063 | 26.8k | "ror\030\001 \001(\0132\037.yb.tserver.TabletServerError" |
1064 | 26.8k | "PB\022N\n\021status_and_schema\030\002 \003(\01323.yb.tserv" |
1065 | 26.8k | "er.ListTabletsResponsePB.StatusAndSchema" |
1066 | 26.8k | "PB\032\224\001\n\021StatusAndSchemaPB\0220\n\rtablet_statu" |
1067 | 26.8k | "s\030\001 \002(\0132\031.yb.tablet.TabletStatusPB\022\034\n\006sc" |
1068 | 26.8k | "hema\030\002 \002(\0132\014.yb.SchemaPB\022/\n\020partition_sc" |
1069 | 26.8k | "hema\030\003 \001(\0132\025.yb.PartitionSchemaPB\"\"\n\rNoO" |
1070 | 26.8k | "pRequestPB\022\021\n\ttablet_id\030\001 \001(\014\"@\n\016NoOpRes" |
1071 | 26.8k | "ponsePB\022.\n\005error\030\001 \001(\0132\037.yb.tserver.Tabl" |
1072 | 26.8k | "etServerErrorPB\"\234\001\n\034VerifyTableRowRangeR" |
1073 | 26.8k | "equestPB\022\021\n\ttablet_id\030\001 \002(\014\022\021\n\tindex_ids" |
1074 | 26.8k | "\030\002 \003(\014\022\021\n\tstart_key\030\003 \001(\014\022\020\n\010num_rows\030\004 " |
1075 | 26.8k | "\001(\r\022\021\n\tread_time\030\005 \001(\006\022\036\n\026propagated_hyb" |
1076 | 26.8k | "rid_time\030\006 \001(\006\"\234\002\n\035VerifyTableRowRangeRe" |
1077 | 26.8k | "sponsePB\022.\n\005error\030\001 \001(\0132\037.yb.tserver.Tab" |
1078 | 26.8k | "letServerErrorPB\022Z\n\021consistency_stats\030\002 " |
1079 | 26.8k | "\003(\0132\?.yb.tserver.VerifyTableRowRangeResp" |
1080 | 26.8k | "onsePB.ConsistencyStatsEntry\022\026\n\016verified" |
1081 | 26.8k | "_until\030\003 \001(\014\022\036\n\026propagated_hybrid_time\030\004" |
1082 | 26.8k | " \001(\006\0327\n\025ConsistencyStatsEntry\022\013\n\003key\030\001 \001" |
1083 | 26.8k | "(\t\022\r\n\005value\030\002 \001(\004:\0028\001\"\255\004\n\rReadRequestPB\022" |
1084 | 26.8k | "\021\n\ttablet_id\030\001 \001(\014\022+\n\013redis_batch\030\002 \003(\0132" |
1085 | 26.8k | "\026.yb.RedisReadRequestPB\022%\n\010ql_batch\030\004 \003(" |
1086 | 26.8k | "\0132\023.yb.QLReadRequestPB\022+\n\013pgsql_batch\030\n " |
1087 | 26.8k | "\003(\0132\026.yb.PgsqlReadRequestPB\022\032\n\014cache_blo" |
1088 | 26.8k | "cks\030\003 \001(\010:\004true\022\034\n\rinclude_trace\030\005 \001(\010:\005" |
1089 | 26.8k | "false\0229\n\021consistency_level\030\006 \001(\0162\026.yb.YB" |
1090 | 26.8k | "ConsistencyLevel:\006STRONG\022.\n\013transaction\030" |
1091 | 26.8k | "\007 \001(\0132\031.yb.TransactionMetadataPB\0224\n\016subt" |
1092 | 26.8k | "ransaction\030\017 \001(\0132\034.yb.SubTransactionMeta" |
1093 | 26.8k | "dataPB\022\036\n\026propagated_hybrid_time\030\010 \001(\006\022\'" |
1094 | 26.8k | "\n\tread_time\030\t \001(\0132\024.yb.ReadHybridTimePB\022" |
1095 | 26.8k | "\022\n\nproxy_uuid\030\013 \001(\t\022$\n\034DEPRECATED_may_ha" |
1096 | 26.8k | "ve_metadata\030\014 \001(\010\022\027\n\017rejection_score\030\r \001" |
1097 | 26.8k | "(\001\022\021\n\tbatch_idx\030\016 \001(\004\"\353\002\n\016ReadResponsePB" |
1098 | 26.8k | "\022(\n\013redis_batch\030\001 \003(\0132\023.yb.RedisResponse" |
1099 | 26.8k | "PB\022\"\n\010ql_batch\030\004 \003(\0132\020.yb.QLResponsePB\022(" |
1100 | 26.8k | "\n\013pgsql_batch\030\010 \003(\0132\023.yb.PgsqlResponsePB" |
1101 | 26.8k | "\022.\n\005error\030\003 \001(\0132\037.yb.tserver.TabletServe" |
1102 | 26.8k | "rErrorPB\022\024\n\014trace_buffer\030\005 \001(\t\022\036\n\026propag" |
1103 | 26.8k | "ated_hybrid_time\030\006 \001(\006\022/\n\021restart_read_t" |
1104 | 26.8k | "ime\030\007 \001(\0132\024.yb.ReadHybridTimePB\022,\n\016used_" |
1105 | 26.8k | "read_time\030\t \001(\0132\024.yb.ReadHybridTimePB\022\026\n" |
1106 | 26.8k | "\016local_limit_ht\030\n \001(\006J\004\010\002\020\003\"o\n\021TruncateR" |
1107 | 26.8k | "equestPB\022\021\n\ttablet_id\030\001 \001(\014\022\036\n\026propagate" |
1108 | 26.8k | "d_hybrid_time\030\002 \001(\006\022\'\n\010truncate\030\003 \001(\0132\025." |
1109 | 26.8k | "yb.tablet.TruncatePB\"d\n\022TruncateResponse" |
1110 | 26.8k | "PB\022.\n\005error\030\001 \001(\0132\037.yb.tserver.TabletSer" |
1111 | 26.8k | "verErrorPB\022\036\n\026propagated_hybrid_time\030\002 \001" |
1112 | 26.8k | "(\006\"-\n\030GetTabletStatusRequestPB\022\021\n\ttablet" |
1113 | 26.8k | "_id\030\001 \001(\014\"}\n\031GetTabletStatusResponsePB\022." |
1114 | 26.8k | "\n\005error\030\001 \001(\0132\037.yb.tserver.TabletServerE" |
1115 | 26.8k | "rrorPB\0220\n\rtablet_status\030\002 \001(\0132\031.yb.table" |
1116 | 26.8k | "t.TabletStatusPB\"\035\n\033GetMasterAddressesRe" |
1117 | 26.8k | "questPB\"h\n\034GetMasterAddressesResponsePB\022" |
1118 | 26.8k | ".\n\005error\030\001 \001(\0132\037.yb.tserver.TabletServer" |
1119 | 26.8k | "ErrorPB\022\030\n\020master_addresses\030\002 \001(\t\"4\n\020Pub" |
1120 | 26.8k | "lishRequestPB\022\017\n\007channel\030\001 \002(\014\022\017\n\007messag" |
1121 | 26.8k | "e\030\002 \002(\014\"5\n\021PublishResponsePB\022 \n\030num_clie" |
1122 | 26.8k | "nts_forwarded_to\030\001 \002(\005\"\036\n\034IsTabletServer" |
1123 | 26.8k | "ReadyRequestPB\"\212\001\n\035IsTabletServerReadyRe" |
1124 | 26.8k | "sponsePB\022.\n\005error\030\001 \001(\0132\037.yb.tserver.Tab" |
1125 | 26.8k | "letServerErrorPB\022\037\n\027num_tablets_not_runn" |
1126 | 26.8k | "ing\030\002 \001(\005\022\030\n\rtotal_tablets\030\003 \001(\005:\0010B\020\n\016o" |
1127 | 26.8k | "rg.yb.tserver" |
1128 | 26.8k | }; |
1129 | 26.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
1130 | 26.8k | descriptor, 4013); |
1131 | 26.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
1132 | 26.8k | "yb/tserver/tserver.proto", &protobuf_RegisterTypes); |
1133 | 26.8k | ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors(); |
1134 | 26.8k | ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors(); |
1135 | 26.8k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::AddDescriptors(); |
1136 | 26.8k | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::AddDescriptors(); |
1137 | 26.8k | ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::AddDescriptors(); |
1138 | 26.8k | ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors(); |
1139 | 26.8k | ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors(); |
1140 | 26.8k | ::protobuf_yb_2fdocdb_2fdocdb_2eproto::AddDescriptors(); |
1141 | 26.8k | ::protobuf_yb_2ftablet_2foperations_2eproto::AddDescriptors(); |
1142 | 26.8k | ::protobuf_yb_2ftablet_2ftablet_2eproto::AddDescriptors(); |
1143 | 26.8k | ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::AddDescriptors(); |
1144 | 26.8k | } |
1145 | | |
1146 | 102k | void AddDescriptors() { |
1147 | 102k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1148 | 102k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
1149 | 102k | } |
1150 | | // Force AddDescriptors() to be called at dynamic initialization time. |
1151 | | struct StaticDescriptorInitializer { |
1152 | 26.8k | StaticDescriptorInitializer() { |
1153 | 26.8k | AddDescriptors(); |
1154 | 26.8k | } |
1155 | | } static_descriptor_initializer; |
1156 | | } // namespace protobuf_yb_2ftserver_2ftserver_2eproto |
1157 | | namespace yb { |
1158 | | namespace tserver { |
1159 | | |
1160 | | // =================================================================== |
1161 | | |
1162 | 26.8k | void WriteRequestPB::InitAsDefaultInstance() { |
1163 | 26.8k | ::yb::tserver::_WriteRequestPB_default_instance_._instance.get_mutable()->write_batch_ = const_cast< ::yb::docdb::KeyValueWriteBatchPB*>( |
1164 | 26.8k | ::yb::docdb::KeyValueWriteBatchPB::internal_default_instance()); |
1165 | 26.8k | ::yb::tserver::_WriteRequestPB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
1166 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
1167 | 26.8k | } |
1168 | 0 | void WriteRequestPB::clear_write_batch() { |
1169 | 0 | if (write_batch_ != NULL) write_batch_->Clear(); |
1170 | 0 | clear_has_write_batch(); |
1171 | 0 | } |
1172 | 0 | void WriteRequestPB::clear_redis_write_batch() { |
1173 | 0 | redis_write_batch_.Clear(); |
1174 | 0 | } |
1175 | 9.22k | void WriteRequestPB::clear_ql_write_batch() { |
1176 | 9.22k | ql_write_batch_.Clear(); |
1177 | 9.22k | } |
1178 | 0 | void WriteRequestPB::clear_pgsql_write_batch() { |
1179 | 0 | pgsql_write_batch_.Clear(); |
1180 | 0 | } |
1181 | 0 | void WriteRequestPB::clear_read_time() { |
1182 | 0 | if (read_time_ != NULL) read_time_->Clear(); |
1183 | 0 | clear_has_read_time(); |
1184 | 0 | } |
1185 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1186 | | const int WriteRequestPB::kTabletIdFieldNumber; |
1187 | | const int WriteRequestPB::kWriteBatchFieldNumber; |
1188 | | const int WriteRequestPB::kRedisWriteBatchFieldNumber; |
1189 | | const int WriteRequestPB::kQlWriteBatchFieldNumber; |
1190 | | const int WriteRequestPB::kPgsqlWriteBatchFieldNumber; |
1191 | | const int WriteRequestPB::kPropagatedHybridTimeFieldNumber; |
1192 | | const int WriteRequestPB::kIncludeTraceFieldNumber; |
1193 | | const int WriteRequestPB::kReadTimeFieldNumber; |
1194 | | const int WriteRequestPB::kClientId1FieldNumber; |
1195 | | const int WriteRequestPB::kClientId2FieldNumber; |
1196 | | const int WriteRequestPB::kRequestIdFieldNumber; |
1197 | | const int WriteRequestPB::kMinRunningRequestIdFieldNumber; |
1198 | | const int WriteRequestPB::kRejectionScoreFieldNumber; |
1199 | | const int WriteRequestPB::kExternalHybridTimeFieldNumber; |
1200 | | const int WriteRequestPB::kBatchIdxFieldNumber; |
1201 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1202 | | |
1203 | | WriteRequestPB::WriteRequestPB() |
1204 | 3.85M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1205 | 3.85M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1206 | 3.82M | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteRequestPB(); |
1207 | 3.82M | } |
1208 | 3.85M | SharedCtor(); |
1209 | | // @@protoc_insertion_point(constructor:yb.tserver.WriteRequestPB) |
1210 | 3.85M | } |
1211 | | WriteRequestPB::WriteRequestPB(const WriteRequestPB& from) |
1212 | | : ::google::protobuf::Message(), |
1213 | | _internal_metadata_(NULL), |
1214 | | _has_bits_(from._has_bits_), |
1215 | | _cached_size_(0), |
1216 | | redis_write_batch_(from.redis_write_batch_), |
1217 | | ql_write_batch_(from.ql_write_batch_), |
1218 | 0 | pgsql_write_batch_(from.pgsql_write_batch_) { |
1219 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1220 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1221 | 0 | if (from.has_tablet_id()) { |
1222 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
1223 | 0 | } |
1224 | 0 | if (from.has_write_batch()) { |
1225 | 0 | write_batch_ = new ::yb::docdb::KeyValueWriteBatchPB(*from.write_batch_); |
1226 | 0 | } else { |
1227 | 0 | write_batch_ = NULL; |
1228 | 0 | } |
1229 | 0 | if (from.has_read_time()) { |
1230 | 0 | read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_); |
1231 | 0 | } else { |
1232 | 0 | read_time_ = NULL; |
1233 | 0 | } |
1234 | 0 | ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_, |
1235 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&batch_idx_) - |
1236 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(batch_idx_)); |
1237 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.WriteRequestPB) |
1238 | 0 | } |
1239 | | |
1240 | 3.85M | void WriteRequestPB::SharedCtor() { |
1241 | 3.85M | _cached_size_ = 0; |
1242 | 3.85M | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1243 | 3.85M | ::memset(&write_batch_, 0, static_cast<size_t>( |
1244 | 3.85M | reinterpret_cast<char*>(&batch_idx_) - |
1245 | 3.85M | reinterpret_cast<char*>(&write_batch_)) + sizeof(batch_idx_)); |
1246 | 3.85M | } |
1247 | | |
1248 | 3.82M | WriteRequestPB::~WriteRequestPB() { |
1249 | | // @@protoc_insertion_point(destructor:yb.tserver.WriteRequestPB) |
1250 | 3.82M | SharedDtor(); |
1251 | 3.82M | } |
1252 | | |
1253 | 3.82M | void WriteRequestPB::SharedDtor() { |
1254 | 3.82M | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1255 | 3.82M | if (this != internal_default_instance()) delete write_batch_3.82M ; |
1256 | 3.82M | if (this != internal_default_instance()) delete read_time_3.82M ; |
1257 | 3.82M | } |
1258 | | |
1259 | 0 | void WriteRequestPB::SetCachedSize(int size) const { |
1260 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1261 | 0 | _cached_size_ = size; |
1262 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1263 | 0 | } |
1264 | 0 | const ::google::protobuf::Descriptor* WriteRequestPB::descriptor() { |
1265 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
1266 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1267 | 0 | } |
1268 | | |
1269 | 0 | const WriteRequestPB& WriteRequestPB::default_instance() { |
1270 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteRequestPB(); |
1271 | 0 | return *internal_default_instance(); |
1272 | 0 | } |
1273 | | |
1274 | 0 | WriteRequestPB* WriteRequestPB::New(::google::protobuf::Arena* arena) const { |
1275 | 0 | WriteRequestPB* n = new WriteRequestPB; |
1276 | 0 | if (arena != NULL) { |
1277 | 0 | arena->Own(n); |
1278 | 0 | } |
1279 | 0 | return n; |
1280 | 0 | } |
1281 | | |
1282 | 897k | void WriteRequestPB::Clear() { |
1283 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.WriteRequestPB) |
1284 | 897k | ::google::protobuf::uint32 cached_has_bits = 0; |
1285 | | // Prevent compiler warnings about cached_has_bits being unused |
1286 | 897k | (void) cached_has_bits; |
1287 | | |
1288 | 897k | redis_write_batch_.Clear(); |
1289 | 897k | ql_write_batch_.Clear(); |
1290 | 897k | pgsql_write_batch_.Clear(); |
1291 | 897k | cached_has_bits = _has_bits_[0]; |
1292 | 897k | if (cached_has_bits & 7u) { |
1293 | 4.02k | if (cached_has_bits & 0x00000001u) { |
1294 | 4.02k | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1295 | 4.02k | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
1296 | 4.02k | } |
1297 | 4.02k | if (cached_has_bits & 0x00000002u) { |
1298 | 0 | GOOGLE_DCHECK(write_batch_ != NULL); |
1299 | 0 | write_batch_->Clear(); |
1300 | 0 | } |
1301 | 4.02k | if (cached_has_bits & 0x00000004u) { |
1302 | 0 | GOOGLE_DCHECK(read_time_ != NULL); |
1303 | 0 | read_time_->Clear(); |
1304 | 0 | } |
1305 | 4.02k | } |
1306 | 897k | if (cached_has_bits & 248u) { |
1307 | 0 | ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>( |
1308 | 0 | reinterpret_cast<char*>(&include_trace_) - |
1309 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(include_trace_)); |
1310 | 0 | } |
1311 | 897k | if (cached_has_bits & 3840u) { |
1312 | 0 | ::memset(&min_running_request_id_, 0, static_cast<size_t>( |
1313 | 0 | reinterpret_cast<char*>(&batch_idx_) - |
1314 | 0 | reinterpret_cast<char*>(&min_running_request_id_)) + sizeof(batch_idx_)); |
1315 | 0 | } |
1316 | 897k | _has_bits_.Clear(); |
1317 | 897k | _internal_metadata_.Clear(); |
1318 | 897k | } |
1319 | | |
1320 | | bool WriteRequestPB::MergePartialFromCodedStream( |
1321 | 796k | ::google::protobuf::io::CodedInputStream* input) { |
1322 | 14.5M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1323 | 796k | ::google::protobuf::uint32 tag; |
1324 | | // @@protoc_insertion_point(parse_start:yb.tserver.WriteRequestPB) |
1325 | 15.3M | for (;;) { |
1326 | 15.3M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
1327 | 15.3M | tag = p.first; |
1328 | 15.3M | if (!p.second) goto handle_unusual796k ; |
1329 | 14.5M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1330 | | // required bytes tablet_id = 1; |
1331 | 796k | case 1: { |
1332 | 796k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1333 | 796k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1334 | 796k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1335 | 796k | input, this->mutable_tablet_id())); |
1336 | 18.4E | } else { |
1337 | 18.4E | goto handle_unusual; |
1338 | 18.4E | } |
1339 | 796k | break; |
1340 | 796k | } |
1341 | | |
1342 | | // optional fixed64 propagated_hybrid_time = 5; |
1343 | 796k | case 5: { |
1344 | 659k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1345 | 659k | static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { |
1346 | 659k | set_has_propagated_hybrid_time(); |
1347 | 659k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1348 | 659k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
1349 | 659k | input, &propagated_hybrid_time_))); |
1350 | 18.4E | } else { |
1351 | 18.4E | goto handle_unusual; |
1352 | 18.4E | } |
1353 | 659k | break; |
1354 | 659k | } |
1355 | | |
1356 | | // optional bool include_trace = 6 [default = false]; |
1357 | 734k | case 6: { |
1358 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1359 | 734k | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
1360 | 734k | set_has_include_trace(); |
1361 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1362 | 734k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1363 | 734k | input, &include_trace_))); |
1364 | 18.4E | } else { |
1365 | 18.4E | goto handle_unusual; |
1366 | 18.4E | } |
1367 | 734k | break; |
1368 | 734k | } |
1369 | | |
1370 | | // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7; |
1371 | 734k | case 7: { |
1372 | 478k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1373 | 478k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
1374 | 478k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1375 | 478k | input, mutable_write_batch())); |
1376 | 18.4E | } else { |
1377 | 18.4E | goto handle_unusual; |
1378 | 18.4E | } |
1379 | 478k | break; |
1380 | 478k | } |
1381 | | |
1382 | | // repeated .yb.RedisWriteRequestPB redis_write_batch = 8; |
1383 | 478k | case 8: { |
1384 | 43.4k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1385 | 43.4k | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
1386 | 43.4k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_redis_write_batch())); |
1387 | 43.4k | } else { |
1388 | 0 | goto handle_unusual; |
1389 | 0 | } |
1390 | 43.4k | break; |
1391 | 43.4k | } |
1392 | | |
1393 | | // repeated .yb.QLWriteRequestPB ql_write_batch = 10; |
1394 | 2.39M | case 10: { |
1395 | 2.39M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1396 | 2.39M | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
1397 | 2.39M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ql_write_batch())); |
1398 | 18.4E | } else { |
1399 | 18.4E | goto handle_unusual; |
1400 | 18.4E | } |
1401 | 2.39M | break; |
1402 | 2.39M | } |
1403 | | |
1404 | | // optional .yb.ReadHybridTimePB read_time = 12; |
1405 | 2.39M | case 12: { |
1406 | 437k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1407 | 437k | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
1408 | 437k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1409 | 437k | input, mutable_read_time())); |
1410 | 18.4E | } else { |
1411 | 18.4E | goto handle_unusual; |
1412 | 18.4E | } |
1413 | 437k | break; |
1414 | 437k | } |
1415 | | |
1416 | | // repeated .yb.PgsqlWriteRequestPB pgsql_write_batch = 13; |
1417 | 4.56M | case 13: { |
1418 | 4.56M | if (static_cast< ::google::protobuf::uint8>(tag) == |
1419 | 4.56M | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
1420 | 4.56M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pgsql_write_batch())); |
1421 | 18.4E | } else { |
1422 | 18.4E | goto handle_unusual; |
1423 | 18.4E | } |
1424 | 4.56M | break; |
1425 | 4.56M | } |
1426 | | |
1427 | | // optional fixed64 client_id1 = 14; |
1428 | 4.56M | case 14: { |
1429 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1430 | 734k | static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) { |
1431 | 734k | set_has_client_id1(); |
1432 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1433 | 734k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
1434 | 734k | input, &client_id1_))); |
1435 | 734k | } else { |
1436 | 53 | goto handle_unusual; |
1437 | 53 | } |
1438 | 734k | break; |
1439 | 734k | } |
1440 | | |
1441 | | // optional fixed64 client_id2 = 15; |
1442 | 734k | case 15: { |
1443 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1444 | 734k | static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) { |
1445 | 734k | set_has_client_id2(); |
1446 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1447 | 734k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
1448 | 734k | input, &client_id2_))); |
1449 | 18.4E | } else { |
1450 | 18.4E | goto handle_unusual; |
1451 | 18.4E | } |
1452 | 734k | break; |
1453 | 734k | } |
1454 | | |
1455 | | // optional int64 request_id = 16; |
1456 | 734k | case 16: { |
1457 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1458 | 734k | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
1459 | 734k | set_has_request_id(); |
1460 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1461 | 734k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1462 | 734k | input, &request_id_))); |
1463 | 18.4E | } else { |
1464 | 18.4E | goto handle_unusual; |
1465 | 18.4E | } |
1466 | 734k | break; |
1467 | 734k | } |
1468 | | |
1469 | | // optional int64 min_running_request_id = 17; |
1470 | 734k | case 17: { |
1471 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1472 | 734k | static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { |
1473 | 734k | set_has_min_running_request_id(); |
1474 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1475 | 734k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1476 | 734k | input, &min_running_request_id_))); |
1477 | 734k | } else { |
1478 | 58 | goto handle_unusual; |
1479 | 58 | } |
1480 | 734k | break; |
1481 | 734k | } |
1482 | | |
1483 | | // optional double rejection_score = 18; |
1484 | 734k | case 18: { |
1485 | 734k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1486 | 734k | static_cast< ::google::protobuf::uint8>(145u /* 145 & 0xFF */)) { |
1487 | 734k | set_has_rejection_score(); |
1488 | 734k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1489 | 734k | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
1490 | 734k | input, &rejection_score_))); |
1491 | 18.4E | } else { |
1492 | 18.4E | goto handle_unusual; |
1493 | 18.4E | } |
1494 | 734k | break; |
1495 | 734k | } |
1496 | | |
1497 | | // optional fixed64 external_hybrid_time = 19; |
1498 | 734k | case 19: { |
1499 | 1.28k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1500 | 1.28k | static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) { |
1501 | 1.28k | set_has_external_hybrid_time(); |
1502 | 1.28k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1503 | 1.28k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
1504 | 1.28k | input, &external_hybrid_time_))); |
1505 | 1.28k | } else { |
1506 | 0 | goto handle_unusual; |
1507 | 0 | } |
1508 | 1.28k | break; |
1509 | 1.28k | } |
1510 | | |
1511 | | // optional uint64 batch_idx = 20; |
1512 | 733k | case 20: { |
1513 | 733k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1514 | 733k | static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { |
1515 | 733k | set_has_batch_idx(); |
1516 | 733k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1517 | 733k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1518 | 733k | input, &batch_idx_))); |
1519 | 18.4E | } else { |
1520 | 18.4E | goto handle_unusual; |
1521 | 18.4E | } |
1522 | 733k | break; |
1523 | 733k | } |
1524 | | |
1525 | 733k | default: { |
1526 | 796k | handle_unusual: |
1527 | 796k | if (tag == 0796k ) { |
1528 | 796k | goto success; |
1529 | 796k | } |
1530 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1531 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1532 | 18.4E | break; |
1533 | 18.4E | } |
1534 | 14.5M | } |
1535 | 14.5M | } |
1536 | 18.4E | success: |
1537 | | // @@protoc_insertion_point(parse_success:yb.tserver.WriteRequestPB) |
1538 | 796k | return true; |
1539 | 0 | failure: |
1540 | | // @@protoc_insertion_point(parse_failure:yb.tserver.WriteRequestPB) |
1541 | 0 | return false; |
1542 | 796k | #undef DO_ |
1543 | 796k | } |
1544 | | |
1545 | | void WriteRequestPB::SerializeWithCachedSizes( |
1546 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1547 | | // @@protoc_insertion_point(serialize_start:yb.tserver.WriteRequestPB) |
1548 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1549 | 0 | (void) cached_has_bits; |
1550 | |
|
1551 | 0 | cached_has_bits = _has_bits_[0]; |
1552 | | // required bytes tablet_id = 1; |
1553 | 0 | if (cached_has_bits & 0x00000001u) { |
1554 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1555 | 0 | 1, this->tablet_id(), output); |
1556 | 0 | } |
1557 | | |
1558 | | // optional fixed64 propagated_hybrid_time = 5; |
1559 | 0 | if (cached_has_bits & 0x00000008u) { |
1560 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->propagated_hybrid_time(), output); |
1561 | 0 | } |
1562 | | |
1563 | | // optional bool include_trace = 6 [default = false]; |
1564 | 0 | if (cached_has_bits & 0x00000080u) { |
1565 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->include_trace(), output); |
1566 | 0 | } |
1567 | | |
1568 | | // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7; |
1569 | 0 | if (cached_has_bits & 0x00000002u) { |
1570 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1571 | 0 | 7, *this->write_batch_, output); |
1572 | 0 | } |
1573 | | |
1574 | | // repeated .yb.RedisWriteRequestPB redis_write_batch = 8; |
1575 | 0 | for (unsigned int i = 0, |
1576 | 0 | n = static_cast<unsigned int>(this->redis_write_batch_size()); i < n; i++) { |
1577 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1578 | 0 | 8, this->redis_write_batch(static_cast<int>(i)), output); |
1579 | 0 | } |
1580 | | |
1581 | | // repeated .yb.QLWriteRequestPB ql_write_batch = 10; |
1582 | 0 | for (unsigned int i = 0, |
1583 | 0 | n = static_cast<unsigned int>(this->ql_write_batch_size()); i < n; i++) { |
1584 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1585 | 0 | 10, this->ql_write_batch(static_cast<int>(i)), output); |
1586 | 0 | } |
1587 | | |
1588 | | // optional .yb.ReadHybridTimePB read_time = 12; |
1589 | 0 | if (cached_has_bits & 0x00000004u) { |
1590 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1591 | 0 | 12, *this->read_time_, output); |
1592 | 0 | } |
1593 | | |
1594 | | // repeated .yb.PgsqlWriteRequestPB pgsql_write_batch = 13; |
1595 | 0 | for (unsigned int i = 0, |
1596 | 0 | n = static_cast<unsigned int>(this->pgsql_write_batch_size()); i < n; i++) { |
1597 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1598 | 0 | 13, this->pgsql_write_batch(static_cast<int>(i)), output); |
1599 | 0 | } |
1600 | | |
1601 | | // optional fixed64 client_id1 = 14; |
1602 | 0 | if (cached_has_bits & 0x00000010u) { |
1603 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(14, this->client_id1(), output); |
1604 | 0 | } |
1605 | | |
1606 | | // optional fixed64 client_id2 = 15; |
1607 | 0 | if (cached_has_bits & 0x00000020u) { |
1608 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(15, this->client_id2(), output); |
1609 | 0 | } |
1610 | | |
1611 | | // optional int64 request_id = 16; |
1612 | 0 | if (cached_has_bits & 0x00000040u) { |
1613 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(16, this->request_id(), output); |
1614 | 0 | } |
1615 | | |
1616 | | // optional int64 min_running_request_id = 17; |
1617 | 0 | if (cached_has_bits & 0x00000100u) { |
1618 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(17, this->min_running_request_id(), output); |
1619 | 0 | } |
1620 | | |
1621 | | // optional double rejection_score = 18; |
1622 | 0 | if (cached_has_bits & 0x00000200u) { |
1623 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->rejection_score(), output); |
1624 | 0 | } |
1625 | | |
1626 | | // optional fixed64 external_hybrid_time = 19; |
1627 | 0 | if (cached_has_bits & 0x00000400u) { |
1628 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(19, this->external_hybrid_time(), output); |
1629 | 0 | } |
1630 | | |
1631 | | // optional uint64 batch_idx = 20; |
1632 | 0 | if (cached_has_bits & 0x00000800u) { |
1633 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(20, this->batch_idx(), output); |
1634 | 0 | } |
1635 | |
|
1636 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1637 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1638 | 0 | _internal_metadata_.unknown_fields(), output); |
1639 | 0 | } |
1640 | | // @@protoc_insertion_point(serialize_end:yb.tserver.WriteRequestPB) |
1641 | 0 | } |
1642 | | |
1643 | | ::google::protobuf::uint8* WriteRequestPB::InternalSerializeWithCachedSizesToArray( |
1644 | 797k | bool deterministic, ::google::protobuf::uint8* target) const { |
1645 | 797k | (void)deterministic; // Unused |
1646 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.WriteRequestPB) |
1647 | 797k | ::google::protobuf::uint32 cached_has_bits = 0; |
1648 | 797k | (void) cached_has_bits; |
1649 | | |
1650 | 797k | cached_has_bits = _has_bits_[0]; |
1651 | | // required bytes tablet_id = 1; |
1652 | 797k | if (cached_has_bits & 0x00000001u797k ) { |
1653 | 797k | target = |
1654 | 797k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1655 | 797k | 1, this->tablet_id(), target); |
1656 | 797k | } |
1657 | | |
1658 | | // optional fixed64 propagated_hybrid_time = 5; |
1659 | 797k | if (cached_has_bits & 0x00000008u) { |
1660 | 660k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->propagated_hybrid_time(), target); |
1661 | 660k | } |
1662 | | |
1663 | | // optional bool include_trace = 6 [default = false]; |
1664 | 797k | if (cached_has_bits & 0x00000080u) { |
1665 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->include_trace(), target); |
1666 | 734k | } |
1667 | | |
1668 | | // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7; |
1669 | 797k | if (cached_has_bits & 0x00000002u) { |
1670 | 477k | target = ::google::protobuf::internal::WireFormatLite:: |
1671 | 477k | InternalWriteMessageToArray( |
1672 | 477k | 7, *this->write_batch_, deterministic, target); |
1673 | 477k | } |
1674 | | |
1675 | | // repeated .yb.RedisWriteRequestPB redis_write_batch = 8; |
1676 | 797k | for (unsigned int i = 0, |
1677 | 841k | n = static_cast<unsigned int>(this->redis_write_batch_size()); i < n; i++43.4k ) { |
1678 | 43.4k | target = ::google::protobuf::internal::WireFormatLite:: |
1679 | 43.4k | InternalWriteMessageToArray( |
1680 | 43.4k | 8, this->redis_write_batch(static_cast<int>(i)), deterministic, target); |
1681 | 43.4k | } |
1682 | | |
1683 | | // repeated .yb.QLWriteRequestPB ql_write_batch = 10; |
1684 | 797k | for (unsigned int i = 0, |
1685 | 3.24M | n = static_cast<unsigned int>(this->ql_write_batch_size()); i < n; i++2.44M ) { |
1686 | 2.44M | target = ::google::protobuf::internal::WireFormatLite:: |
1687 | 2.44M | InternalWriteMessageToArray( |
1688 | 2.44M | 10, this->ql_write_batch(static_cast<int>(i)), deterministic, target); |
1689 | 2.44M | } |
1690 | | |
1691 | | // optional .yb.ReadHybridTimePB read_time = 12; |
1692 | 797k | if (cached_has_bits & 0x00000004u) { |
1693 | 437k | target = ::google::protobuf::internal::WireFormatLite:: |
1694 | 437k | InternalWriteMessageToArray( |
1695 | 437k | 12, *this->read_time_, deterministic, target); |
1696 | 437k | } |
1697 | | |
1698 | | // repeated .yb.PgsqlWriteRequestPB pgsql_write_batch = 13; |
1699 | 797k | for (unsigned int i = 0, |
1700 | 5.36M | n = static_cast<unsigned int>(this->pgsql_write_batch_size()); i < n; i++4.56M ) { |
1701 | 4.56M | target = ::google::protobuf::internal::WireFormatLite:: |
1702 | 4.56M | InternalWriteMessageToArray( |
1703 | 4.56M | 13, this->pgsql_write_batch(static_cast<int>(i)), deterministic, target); |
1704 | 4.56M | } |
1705 | | |
1706 | | // optional fixed64 client_id1 = 14; |
1707 | 797k | if (cached_has_bits & 0x00000010u) { |
1708 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(14, this->client_id1(), target); |
1709 | 734k | } |
1710 | | |
1711 | | // optional fixed64 client_id2 = 15; |
1712 | 797k | if (cached_has_bits & 0x00000020u) { |
1713 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->client_id2(), target); |
1714 | 734k | } |
1715 | | |
1716 | | // optional int64 request_id = 16; |
1717 | 797k | if (cached_has_bits & 0x00000040u) { |
1718 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(16, this->request_id(), target); |
1719 | 734k | } |
1720 | | |
1721 | | // optional int64 min_running_request_id = 17; |
1722 | 797k | if (cached_has_bits & 0x00000100u) { |
1723 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(17, this->min_running_request_id(), target); |
1724 | 734k | } |
1725 | | |
1726 | | // optional double rejection_score = 18; |
1727 | 797k | if (cached_has_bits & 0x00000200u) { |
1728 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->rejection_score(), target); |
1729 | 734k | } |
1730 | | |
1731 | | // optional fixed64 external_hybrid_time = 19; |
1732 | 797k | if (cached_has_bits & 0x00000400u) { |
1733 | 1.28k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(19, this->external_hybrid_time(), target); |
1734 | 1.28k | } |
1735 | | |
1736 | | // optional uint64 batch_idx = 20; |
1737 | 797k | if (cached_has_bits & 0x00000800u) { |
1738 | 734k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(20, this->batch_idx(), target); |
1739 | 734k | } |
1740 | | |
1741 | 797k | if (_internal_metadata_.have_unknown_fields()) { |
1742 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1743 | 0 | _internal_metadata_.unknown_fields(), target); |
1744 | 0 | } |
1745 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.WriteRequestPB) |
1746 | 797k | return target; |
1747 | 797k | } |
1748 | | |
1749 | 1.63M | size_t WriteRequestPB::ByteSizeLong() const { |
1750 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.WriteRequestPB) |
1751 | 1.63M | size_t total_size = 0; |
1752 | | |
1753 | 1.63M | if (_internal_metadata_.have_unknown_fields()) { |
1754 | 0 | total_size += |
1755 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1756 | 0 | _internal_metadata_.unknown_fields()); |
1757 | 0 | } |
1758 | | // required bytes tablet_id = 1; |
1759 | 1.63M | if (has_tablet_id()) { |
1760 | 1.59M | total_size += 1 + |
1761 | 1.59M | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1762 | 1.59M | this->tablet_id()); |
1763 | 1.59M | } |
1764 | | // repeated .yb.RedisWriteRequestPB redis_write_batch = 8; |
1765 | 1.63M | { |
1766 | 1.63M | unsigned int count = static_cast<unsigned int>(this->redis_write_batch_size()); |
1767 | 1.63M | total_size += 1UL * count; |
1768 | 1.72M | for (unsigned int i = 0; i < count; i++86.9k ) { |
1769 | 86.9k | total_size += |
1770 | 86.9k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1771 | 86.9k | this->redis_write_batch(static_cast<int>(i))); |
1772 | 86.9k | } |
1773 | 1.63M | } |
1774 | | |
1775 | | // repeated .yb.QLWriteRequestPB ql_write_batch = 10; |
1776 | 1.63M | { |
1777 | 1.63M | unsigned int count = static_cast<unsigned int>(this->ql_write_batch_size()); |
1778 | 1.63M | total_size += 1UL * count; |
1779 | 6.53M | for (unsigned int i = 0; i < count; i++4.89M ) { |
1780 | 4.89M | total_size += |
1781 | 4.89M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1782 | 4.89M | this->ql_write_batch(static_cast<int>(i))); |
1783 | 4.89M | } |
1784 | 1.63M | } |
1785 | | |
1786 | | // repeated .yb.PgsqlWriteRequestPB pgsql_write_batch = 13; |
1787 | 1.63M | { |
1788 | 1.63M | unsigned int count = static_cast<unsigned int>(this->pgsql_write_batch_size()); |
1789 | 1.63M | total_size += 1UL * count; |
1790 | 105M | for (unsigned int i = 0; i < count; i++103M ) { |
1791 | 103M | total_size += |
1792 | 103M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1793 | 103M | this->pgsql_write_batch(static_cast<int>(i))); |
1794 | 103M | } |
1795 | 1.63M | } |
1796 | | |
1797 | 1.63M | if (_has_bits_[0 / 32] & 254u) { |
1798 | | // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7; |
1799 | 1.46M | if (has_write_batch()) { |
1800 | 956k | total_size += 1 + |
1801 | 956k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1802 | 956k | *this->write_batch_); |
1803 | 956k | } |
1804 | | |
1805 | | // optional .yb.ReadHybridTimePB read_time = 12; |
1806 | 1.46M | if (has_read_time()) { |
1807 | 874k | total_size += 1 + |
1808 | 874k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1809 | 874k | *this->read_time_); |
1810 | 874k | } |
1811 | | |
1812 | | // optional fixed64 propagated_hybrid_time = 5; |
1813 | 1.46M | if (has_propagated_hybrid_time()) { |
1814 | 1.31M | total_size += 1 + 8; |
1815 | 1.31M | } |
1816 | | |
1817 | | // optional fixed64 client_id1 = 14; |
1818 | 1.46M | if (has_client_id1()) { |
1819 | 1.46M | total_size += 1 + 8; |
1820 | 1.46M | } |
1821 | | |
1822 | | // optional fixed64 client_id2 = 15; |
1823 | 1.46M | if (has_client_id2()) { |
1824 | 1.46M | total_size += 1 + 8; |
1825 | 1.46M | } |
1826 | | |
1827 | | // optional int64 request_id = 16; |
1828 | 1.46M | if (has_request_id()) { |
1829 | 1.46M | total_size += 2 + |
1830 | 1.46M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1831 | 1.46M | this->request_id()); |
1832 | 1.46M | } |
1833 | | |
1834 | | // optional bool include_trace = 6 [default = false]; |
1835 | 1.46M | if (has_include_trace()) { |
1836 | 1.46M | total_size += 1 + 1; |
1837 | 1.46M | } |
1838 | | |
1839 | 1.46M | } |
1840 | 1.63M | if (_has_bits_[8 / 32] & 3840u) { |
1841 | | // optional int64 min_running_request_id = 17; |
1842 | 1.46M | if (has_min_running_request_id()1.46M ) { |
1843 | 1.46M | total_size += 2 + |
1844 | 1.46M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1845 | 1.46M | this->min_running_request_id()); |
1846 | 1.46M | } |
1847 | | |
1848 | | // optional double rejection_score = 18; |
1849 | 1.46M | if (has_rejection_score()1.46M ) { |
1850 | 1.46M | total_size += 2 + 8; |
1851 | 1.46M | } |
1852 | | |
1853 | | // optional fixed64 external_hybrid_time = 19; |
1854 | 1.46M | if (has_external_hybrid_time()) { |
1855 | 2.57k | total_size += 2 + 8; |
1856 | 2.57k | } |
1857 | | |
1858 | | // optional uint64 batch_idx = 20; |
1859 | 1.46M | if (has_batch_idx()1.46M ) { |
1860 | 1.46M | total_size += 2 + |
1861 | 1.46M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1862 | 1.46M | this->batch_idx()); |
1863 | 1.46M | } |
1864 | | |
1865 | 1.46M | } |
1866 | 1.63M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1867 | 1.63M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1868 | 1.63M | _cached_size_ = cached_size; |
1869 | 1.63M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1870 | 1.63M | return total_size; |
1871 | 1.63M | } |
1872 | | |
1873 | 0 | void WriteRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
1874 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.WriteRequestPB) |
1875 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1876 | 0 | const WriteRequestPB* source = |
1877 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const WriteRequestPB>( |
1878 | 0 | &from); |
1879 | 0 | if (source == NULL) { |
1880 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.WriteRequestPB) |
1881 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1882 | 0 | } else { |
1883 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.WriteRequestPB) |
1884 | 0 | MergeFrom(*source); |
1885 | 0 | } |
1886 | 0 | } |
1887 | | |
1888 | 0 | void WriteRequestPB::MergeFrom(const WriteRequestPB& from) { |
1889 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.WriteRequestPB) |
1890 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1891 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1892 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1893 | 0 | (void) cached_has_bits; |
1894 | |
|
1895 | 0 | redis_write_batch_.MergeFrom(from.redis_write_batch_); |
1896 | 0 | ql_write_batch_.MergeFrom(from.ql_write_batch_); |
1897 | 0 | pgsql_write_batch_.MergeFrom(from.pgsql_write_batch_); |
1898 | 0 | cached_has_bits = from._has_bits_[0]; |
1899 | 0 | if (cached_has_bits & 255u) { |
1900 | 0 | if (cached_has_bits & 0x00000001u) { |
1901 | 0 | set_has_tablet_id(); |
1902 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
1903 | 0 | } |
1904 | 0 | if (cached_has_bits & 0x00000002u) { |
1905 | 0 | mutable_write_batch()->::yb::docdb::KeyValueWriteBatchPB::MergeFrom(from.write_batch()); |
1906 | 0 | } |
1907 | 0 | if (cached_has_bits & 0x00000004u) { |
1908 | 0 | mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time()); |
1909 | 0 | } |
1910 | 0 | if (cached_has_bits & 0x00000008u) { |
1911 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
1912 | 0 | } |
1913 | 0 | if (cached_has_bits & 0x00000010u) { |
1914 | 0 | client_id1_ = from.client_id1_; |
1915 | 0 | } |
1916 | 0 | if (cached_has_bits & 0x00000020u) { |
1917 | 0 | client_id2_ = from.client_id2_; |
1918 | 0 | } |
1919 | 0 | if (cached_has_bits & 0x00000040u) { |
1920 | 0 | request_id_ = from.request_id_; |
1921 | 0 | } |
1922 | 0 | if (cached_has_bits & 0x00000080u) { |
1923 | 0 | include_trace_ = from.include_trace_; |
1924 | 0 | } |
1925 | 0 | _has_bits_[0] |= cached_has_bits; |
1926 | 0 | } |
1927 | 0 | if (cached_has_bits & 3840u) { |
1928 | 0 | if (cached_has_bits & 0x00000100u) { |
1929 | 0 | min_running_request_id_ = from.min_running_request_id_; |
1930 | 0 | } |
1931 | 0 | if (cached_has_bits & 0x00000200u) { |
1932 | 0 | rejection_score_ = from.rejection_score_; |
1933 | 0 | } |
1934 | 0 | if (cached_has_bits & 0x00000400u) { |
1935 | 0 | external_hybrid_time_ = from.external_hybrid_time_; |
1936 | 0 | } |
1937 | 0 | if (cached_has_bits & 0x00000800u) { |
1938 | 0 | batch_idx_ = from.batch_idx_; |
1939 | 0 | } |
1940 | 0 | _has_bits_[0] |= cached_has_bits; |
1941 | 0 | } |
1942 | 0 | } |
1943 | | |
1944 | 0 | void WriteRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
1945 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.WriteRequestPB) |
1946 | 0 | if (&from == this) return; |
1947 | 0 | Clear(); |
1948 | 0 | MergeFrom(from); |
1949 | 0 | } |
1950 | | |
1951 | 0 | void WriteRequestPB::CopyFrom(const WriteRequestPB& from) { |
1952 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.WriteRequestPB) |
1953 | 0 | if (&from == this) return; |
1954 | 0 | Clear(); |
1955 | 0 | MergeFrom(from); |
1956 | 0 | } |
1957 | | |
1958 | 1.59M | bool WriteRequestPB::IsInitialized() const { |
1959 | 1.59M | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
1960 | 1.59M | if (!::google::protobuf::internal::AllAreInitialized(this->ql_write_batch())) return false0 ; |
1961 | 1.59M | return true; |
1962 | 1.59M | } |
1963 | | |
1964 | 0 | void WriteRequestPB::Swap(WriteRequestPB* other) { |
1965 | 0 | if (other == this) return; |
1966 | 0 | InternalSwap(other); |
1967 | 0 | } |
1968 | 0 | void WriteRequestPB::InternalSwap(WriteRequestPB* other) { |
1969 | 0 | using std::swap; |
1970 | 0 | redis_write_batch_.InternalSwap(&other->redis_write_batch_); |
1971 | 0 | ql_write_batch_.InternalSwap(&other->ql_write_batch_); |
1972 | 0 | pgsql_write_batch_.InternalSwap(&other->pgsql_write_batch_); |
1973 | 0 | tablet_id_.Swap(&other->tablet_id_); |
1974 | 0 | swap(write_batch_, other->write_batch_); |
1975 | 0 | swap(read_time_, other->read_time_); |
1976 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
1977 | 0 | swap(client_id1_, other->client_id1_); |
1978 | 0 | swap(client_id2_, other->client_id2_); |
1979 | 0 | swap(request_id_, other->request_id_); |
1980 | 0 | swap(include_trace_, other->include_trace_); |
1981 | 0 | swap(min_running_request_id_, other->min_running_request_id_); |
1982 | 0 | swap(rejection_score_, other->rejection_score_); |
1983 | 0 | swap(external_hybrid_time_, other->external_hybrid_time_); |
1984 | 0 | swap(batch_idx_, other->batch_idx_); |
1985 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1986 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1987 | 0 | swap(_cached_size_, other->_cached_size_); |
1988 | 0 | } |
1989 | | |
1990 | 797k | ::google::protobuf::Metadata WriteRequestPB::GetMetadata() const { |
1991 | 797k | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
1992 | 797k | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
1993 | 797k | } |
1994 | | |
1995 | | |
1996 | | // =================================================================== |
1997 | | |
1998 | 26.8k | void WriteResponsePB_PerRowErrorPB::InitAsDefaultInstance() { |
1999 | 26.8k | ::yb::tserver::_WriteResponsePB_PerRowErrorPB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::AppStatusPB*>( |
2000 | 26.8k | ::yb::AppStatusPB::internal_default_instance()); |
2001 | 26.8k | } |
2002 | 0 | void WriteResponsePB_PerRowErrorPB::clear_error() { |
2003 | 0 | if (error_ != NULL) error_->Clear(); |
2004 | 0 | clear_has_error(); |
2005 | 0 | } |
2006 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2007 | | const int WriteResponsePB_PerRowErrorPB::kRowIndexFieldNumber; |
2008 | | const int WriteResponsePB_PerRowErrorPB::kErrorFieldNumber; |
2009 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2010 | | |
2011 | | WriteResponsePB_PerRowErrorPB::WriteResponsePB_PerRowErrorPB() |
2012 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2013 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2014 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteResponsePB_PerRowErrorPB(); |
2015 | 0 | } |
2016 | 26.8k | SharedCtor(); |
2017 | | // @@protoc_insertion_point(constructor:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2018 | 26.8k | } |
2019 | | WriteResponsePB_PerRowErrorPB::WriteResponsePB_PerRowErrorPB(const WriteResponsePB_PerRowErrorPB& from) |
2020 | | : ::google::protobuf::Message(), |
2021 | | _internal_metadata_(NULL), |
2022 | | _has_bits_(from._has_bits_), |
2023 | 0 | _cached_size_(0) { |
2024 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2025 | 0 | if (from.has_error()) { |
2026 | 0 | error_ = new ::yb::AppStatusPB(*from.error_); |
2027 | 0 | } else { |
2028 | 0 | error_ = NULL; |
2029 | 0 | } |
2030 | 0 | row_index_ = from.row_index_; |
2031 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2032 | 0 | } |
2033 | | |
2034 | 26.8k | void WriteResponsePB_PerRowErrorPB::SharedCtor() { |
2035 | 26.8k | _cached_size_ = 0; |
2036 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
2037 | 26.8k | reinterpret_cast<char*>(&row_index_) - |
2038 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(row_index_)); |
2039 | 26.8k | } |
2040 | | |
2041 | 0 | WriteResponsePB_PerRowErrorPB::~WriteResponsePB_PerRowErrorPB() { |
2042 | | // @@protoc_insertion_point(destructor:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2043 | 0 | SharedDtor(); |
2044 | 0 | } |
2045 | | |
2046 | 0 | void WriteResponsePB_PerRowErrorPB::SharedDtor() { |
2047 | 0 | if (this != internal_default_instance()) delete error_; |
2048 | 0 | } |
2049 | | |
2050 | 0 | void WriteResponsePB_PerRowErrorPB::SetCachedSize(int size) const { |
2051 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2052 | 0 | _cached_size_ = size; |
2053 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2054 | 0 | } |
2055 | 0 | const ::google::protobuf::Descriptor* WriteResponsePB_PerRowErrorPB::descriptor() { |
2056 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
2057 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2058 | 0 | } |
2059 | | |
2060 | 0 | const WriteResponsePB_PerRowErrorPB& WriteResponsePB_PerRowErrorPB::default_instance() { |
2061 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteResponsePB_PerRowErrorPB(); |
2062 | 0 | return *internal_default_instance(); |
2063 | 0 | } |
2064 | | |
2065 | 0 | WriteResponsePB_PerRowErrorPB* WriteResponsePB_PerRowErrorPB::New(::google::protobuf::Arena* arena) const { |
2066 | 0 | WriteResponsePB_PerRowErrorPB* n = new WriteResponsePB_PerRowErrorPB; |
2067 | 0 | if (arena != NULL) { |
2068 | 0 | arena->Own(n); |
2069 | 0 | } |
2070 | 0 | return n; |
2071 | 0 | } |
2072 | | |
2073 | 0 | void WriteResponsePB_PerRowErrorPB::Clear() { |
2074 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2075 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2076 | | // Prevent compiler warnings about cached_has_bits being unused |
2077 | 0 | (void) cached_has_bits; |
2078 | |
|
2079 | 0 | cached_has_bits = _has_bits_[0]; |
2080 | 0 | if (cached_has_bits & 0x00000001u) { |
2081 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2082 | 0 | error_->Clear(); |
2083 | 0 | } |
2084 | 0 | row_index_ = 0; |
2085 | 0 | _has_bits_.Clear(); |
2086 | 0 | _internal_metadata_.Clear(); |
2087 | 0 | } |
2088 | | |
2089 | | bool WriteResponsePB_PerRowErrorPB::MergePartialFromCodedStream( |
2090 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2091 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2092 | 0 | ::google::protobuf::uint32 tag; |
2093 | | // @@protoc_insertion_point(parse_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2094 | 0 | for (;;) { |
2095 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2096 | 0 | tag = p.first; |
2097 | 0 | if (!p.second) goto handle_unusual; |
2098 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2099 | | // required int32 row_index = 1; |
2100 | 0 | case 1: { |
2101 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2102 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2103 | 0 | set_has_row_index(); |
2104 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2105 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2106 | 0 | input, &row_index_))); |
2107 | 0 | } else { |
2108 | 0 | goto handle_unusual; |
2109 | 0 | } |
2110 | 0 | break; |
2111 | 0 | } |
2112 | | |
2113 | | // required .yb.AppStatusPB error = 2; |
2114 | 0 | case 2: { |
2115 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2116 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2117 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2118 | 0 | input, mutable_error())); |
2119 | 0 | } else { |
2120 | 0 | goto handle_unusual; |
2121 | 0 | } |
2122 | 0 | break; |
2123 | 0 | } |
2124 | | |
2125 | 0 | default: { |
2126 | 0 | handle_unusual: |
2127 | 0 | if (tag == 0) { |
2128 | 0 | goto success; |
2129 | 0 | } |
2130 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2131 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2132 | 0 | break; |
2133 | 0 | } |
2134 | 0 | } |
2135 | 0 | } |
2136 | 0 | success: |
2137 | | // @@protoc_insertion_point(parse_success:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2138 | 0 | return true; |
2139 | 0 | failure: |
2140 | | // @@protoc_insertion_point(parse_failure:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2141 | 0 | return false; |
2142 | 0 | #undef DO_ |
2143 | 0 | } |
2144 | | |
2145 | | void WriteResponsePB_PerRowErrorPB::SerializeWithCachedSizes( |
2146 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2147 | | // @@protoc_insertion_point(serialize_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2148 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2149 | 0 | (void) cached_has_bits; |
2150 | |
|
2151 | 0 | cached_has_bits = _has_bits_[0]; |
2152 | | // required int32 row_index = 1; |
2153 | 0 | if (cached_has_bits & 0x00000002u) { |
2154 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->row_index(), output); |
2155 | 0 | } |
2156 | | |
2157 | | // required .yb.AppStatusPB error = 2; |
2158 | 0 | if (cached_has_bits & 0x00000001u) { |
2159 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2160 | 0 | 2, *this->error_, output); |
2161 | 0 | } |
2162 | |
|
2163 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2164 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2165 | 0 | _internal_metadata_.unknown_fields(), output); |
2166 | 0 | } |
2167 | | // @@protoc_insertion_point(serialize_end:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2168 | 0 | } |
2169 | | |
2170 | | ::google::protobuf::uint8* WriteResponsePB_PerRowErrorPB::InternalSerializeWithCachedSizesToArray( |
2171 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2172 | 0 | (void)deterministic; // Unused |
2173 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2174 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2175 | 0 | (void) cached_has_bits; |
2176 | |
|
2177 | 0 | cached_has_bits = _has_bits_[0]; |
2178 | | // required int32 row_index = 1; |
2179 | 0 | if (cached_has_bits & 0x00000002u) { |
2180 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->row_index(), target); |
2181 | 0 | } |
2182 | | |
2183 | | // required .yb.AppStatusPB error = 2; |
2184 | 0 | if (cached_has_bits & 0x00000001u) { |
2185 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2186 | 0 | InternalWriteMessageToArray( |
2187 | 0 | 2, *this->error_, deterministic, target); |
2188 | 0 | } |
2189 | |
|
2190 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2191 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2192 | 0 | _internal_metadata_.unknown_fields(), target); |
2193 | 0 | } |
2194 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2195 | 0 | return target; |
2196 | 0 | } |
2197 | | |
2198 | 0 | size_t WriteResponsePB_PerRowErrorPB::RequiredFieldsByteSizeFallback() const { |
2199 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2200 | 0 | size_t total_size = 0; |
2201 | |
|
2202 | 0 | if (has_error()) { |
2203 | | // required .yb.AppStatusPB error = 2; |
2204 | 0 | total_size += 1 + |
2205 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2206 | 0 | *this->error_); |
2207 | 0 | } |
2208 | |
|
2209 | 0 | if (has_row_index()) { |
2210 | | // required int32 row_index = 1; |
2211 | 0 | total_size += 1 + |
2212 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2213 | 0 | this->row_index()); |
2214 | 0 | } |
2215 | |
|
2216 | 0 | return total_size; |
2217 | 0 | } |
2218 | 0 | size_t WriteResponsePB_PerRowErrorPB::ByteSizeLong() const { |
2219 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2220 | 0 | size_t total_size = 0; |
2221 | |
|
2222 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2223 | 0 | total_size += |
2224 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2225 | 0 | _internal_metadata_.unknown_fields()); |
2226 | 0 | } |
2227 | 0 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
2228 | | // required .yb.AppStatusPB error = 2; |
2229 | 0 | total_size += 1 + |
2230 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2231 | 0 | *this->error_); |
2232 | | |
2233 | | // required int32 row_index = 1; |
2234 | 0 | total_size += 1 + |
2235 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2236 | 0 | this->row_index()); |
2237 | |
|
2238 | 0 | } else { |
2239 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
2240 | 0 | } |
2241 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2242 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2243 | 0 | _cached_size_ = cached_size; |
2244 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2245 | 0 | return total_size; |
2246 | 0 | } |
2247 | | |
2248 | 0 | void WriteResponsePB_PerRowErrorPB::MergeFrom(const ::google::protobuf::Message& from) { |
2249 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2250 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2251 | 0 | const WriteResponsePB_PerRowErrorPB* source = |
2252 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const WriteResponsePB_PerRowErrorPB>( |
2253 | 0 | &from); |
2254 | 0 | if (source == NULL) { |
2255 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2256 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2257 | 0 | } else { |
2258 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2259 | 0 | MergeFrom(*source); |
2260 | 0 | } |
2261 | 0 | } |
2262 | | |
2263 | 0 | void WriteResponsePB_PerRowErrorPB::MergeFrom(const WriteResponsePB_PerRowErrorPB& from) { |
2264 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2265 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2266 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2267 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2268 | 0 | (void) cached_has_bits; |
2269 | |
|
2270 | 0 | cached_has_bits = from._has_bits_[0]; |
2271 | 0 | if (cached_has_bits & 3u) { |
2272 | 0 | if (cached_has_bits & 0x00000001u) { |
2273 | 0 | mutable_error()->::yb::AppStatusPB::MergeFrom(from.error()); |
2274 | 0 | } |
2275 | 0 | if (cached_has_bits & 0x00000002u) { |
2276 | 0 | row_index_ = from.row_index_; |
2277 | 0 | } |
2278 | 0 | _has_bits_[0] |= cached_has_bits; |
2279 | 0 | } |
2280 | 0 | } |
2281 | | |
2282 | 0 | void WriteResponsePB_PerRowErrorPB::CopyFrom(const ::google::protobuf::Message& from) { |
2283 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2284 | 0 | if (&from == this) return; |
2285 | 0 | Clear(); |
2286 | 0 | MergeFrom(from); |
2287 | 0 | } |
2288 | | |
2289 | 0 | void WriteResponsePB_PerRowErrorPB::CopyFrom(const WriteResponsePB_PerRowErrorPB& from) { |
2290 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.WriteResponsePB.PerRowErrorPB) |
2291 | 0 | if (&from == this) return; |
2292 | 0 | Clear(); |
2293 | 0 | MergeFrom(from); |
2294 | 0 | } |
2295 | | |
2296 | 0 | bool WriteResponsePB_PerRowErrorPB::IsInitialized() const { |
2297 | 0 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
2298 | 0 | if (has_error()) { |
2299 | 0 | if (!this->error_->IsInitialized()) return false; |
2300 | 0 | } |
2301 | 0 | return true; |
2302 | 0 | } |
2303 | | |
2304 | 0 | void WriteResponsePB_PerRowErrorPB::Swap(WriteResponsePB_PerRowErrorPB* other) { |
2305 | 0 | if (other == this) return; |
2306 | 0 | InternalSwap(other); |
2307 | 0 | } |
2308 | 0 | void WriteResponsePB_PerRowErrorPB::InternalSwap(WriteResponsePB_PerRowErrorPB* other) { |
2309 | 0 | using std::swap; |
2310 | 0 | swap(error_, other->error_); |
2311 | 0 | swap(row_index_, other->row_index_); |
2312 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2313 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2314 | 0 | swap(_cached_size_, other->_cached_size_); |
2315 | 0 | } |
2316 | | |
2317 | 0 | ::google::protobuf::Metadata WriteResponsePB_PerRowErrorPB::GetMetadata() const { |
2318 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
2319 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
2320 | 0 | } |
2321 | | |
2322 | | |
2323 | | // =================================================================== |
2324 | | |
2325 | 26.8k | void WriteResponsePB::InitAsDefaultInstance() { |
2326 | 26.8k | ::yb::tserver::_WriteResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
2327 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
2328 | 26.8k | ::yb::tserver::_WriteResponsePB_default_instance_._instance.get_mutable()->restart_read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
2329 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
2330 | 26.8k | ::yb::tserver::_WriteResponsePB_default_instance_._instance.get_mutable()->used_read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
2331 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
2332 | 26.8k | } |
2333 | 2.56M | void WriteResponsePB::clear_error() { |
2334 | 2.56M | if (error_ != NULL) error_->Clear()462 ; |
2335 | 2.56M | clear_has_error(); |
2336 | 2.56M | } |
2337 | 0 | void WriteResponsePB::clear_redis_response_batch() { |
2338 | 0 | redis_response_batch_.Clear(); |
2339 | 0 | } |
2340 | 0 | void WriteResponsePB::clear_ql_response_batch() { |
2341 | 0 | ql_response_batch_.Clear(); |
2342 | 0 | } |
2343 | 0 | void WriteResponsePB::clear_pgsql_response_batch() { |
2344 | 0 | pgsql_response_batch_.Clear(); |
2345 | 0 | } |
2346 | 0 | void WriteResponsePB::clear_restart_read_time() { |
2347 | 0 | if (restart_read_time_ != NULL) restart_read_time_->Clear(); |
2348 | 0 | clear_has_restart_read_time(); |
2349 | 0 | } |
2350 | 0 | void WriteResponsePB::clear_used_read_time() { |
2351 | 0 | if (used_read_time_ != NULL) used_read_time_->Clear(); |
2352 | 0 | clear_has_used_read_time(); |
2353 | 0 | } |
2354 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2355 | | const int WriteResponsePB::kErrorFieldNumber; |
2356 | | const int WriteResponsePB::kPerRowErrorsFieldNumber; |
2357 | | const int WriteResponsePB::kRedisResponseBatchFieldNumber; |
2358 | | const int WriteResponsePB::kQlResponseBatchFieldNumber; |
2359 | | const int WriteResponsePB::kPgsqlResponseBatchFieldNumber; |
2360 | | const int WriteResponsePB::kPropagatedHybridTimeFieldNumber; |
2361 | | const int WriteResponsePB::kTraceBufferFieldNumber; |
2362 | | const int WriteResponsePB::kRestartReadTimeFieldNumber; |
2363 | | const int WriteResponsePB::kUsedReadTimeFieldNumber; |
2364 | | const int WriteResponsePB::kLocalLimitHtFieldNumber; |
2365 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2366 | | |
2367 | | WriteResponsePB::WriteResponsePB() |
2368 | 3.84M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2369 | 3.84M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2370 | 3.81M | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteResponsePB(); |
2371 | 3.81M | } |
2372 | 3.84M | SharedCtor(); |
2373 | | // @@protoc_insertion_point(constructor:yb.tserver.WriteResponsePB) |
2374 | 3.84M | } |
2375 | | WriteResponsePB::WriteResponsePB(const WriteResponsePB& from) |
2376 | | : ::google::protobuf::Message(), |
2377 | | _internal_metadata_(NULL), |
2378 | | _has_bits_(from._has_bits_), |
2379 | | _cached_size_(0), |
2380 | | per_row_errors_(from.per_row_errors_), |
2381 | | redis_response_batch_(from.redis_response_batch_), |
2382 | | ql_response_batch_(from.ql_response_batch_), |
2383 | 0 | pgsql_response_batch_(from.pgsql_response_batch_) { |
2384 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2385 | 0 | trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2386 | 0 | if (from.has_trace_buffer()) { |
2387 | 0 | trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_); |
2388 | 0 | } |
2389 | 0 | if (from.has_error()) { |
2390 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
2391 | 0 | } else { |
2392 | 0 | error_ = NULL; |
2393 | 0 | } |
2394 | 0 | if (from.has_restart_read_time()) { |
2395 | 0 | restart_read_time_ = new ::yb::ReadHybridTimePB(*from.restart_read_time_); |
2396 | 0 | } else { |
2397 | 0 | restart_read_time_ = NULL; |
2398 | 0 | } |
2399 | 0 | if (from.has_used_read_time()) { |
2400 | 0 | used_read_time_ = new ::yb::ReadHybridTimePB(*from.used_read_time_); |
2401 | 0 | } else { |
2402 | 0 | used_read_time_ = NULL; |
2403 | 0 | } |
2404 | 0 | ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_, |
2405 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&local_limit_ht_) - |
2406 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(local_limit_ht_)); |
2407 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.WriteResponsePB) |
2408 | 0 | } |
2409 | | |
2410 | 3.84M | void WriteResponsePB::SharedCtor() { |
2411 | 3.84M | _cached_size_ = 0; |
2412 | 3.84M | trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2413 | 3.84M | ::memset(&error_, 0, static_cast<size_t>( |
2414 | 3.84M | reinterpret_cast<char*>(&local_limit_ht_) - |
2415 | 3.84M | reinterpret_cast<char*>(&error_)) + sizeof(local_limit_ht_)); |
2416 | 3.84M | } |
2417 | | |
2418 | 3.82M | WriteResponsePB::~WriteResponsePB() { |
2419 | | // @@protoc_insertion_point(destructor:yb.tserver.WriteResponsePB) |
2420 | 3.82M | SharedDtor(); |
2421 | 3.82M | } |
2422 | | |
2423 | 3.82M | void WriteResponsePB::SharedDtor() { |
2424 | 3.82M | trace_buffer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2425 | 3.82M | if (this != internal_default_instance()) delete error_3.81M ; |
2426 | 3.82M | if (this != internal_default_instance()) delete restart_read_time_3.81M ; |
2427 | 3.82M | if (this != internal_default_instance()) delete used_read_time_3.81M ; |
2428 | 3.82M | } |
2429 | | |
2430 | 0 | void WriteResponsePB::SetCachedSize(int size) const { |
2431 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2432 | 0 | _cached_size_ = size; |
2433 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2434 | 0 | } |
2435 | 0 | const ::google::protobuf::Descriptor* WriteResponsePB::descriptor() { |
2436 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
2437 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2438 | 0 | } |
2439 | | |
2440 | 0 | const WriteResponsePB& WriteResponsePB::default_instance() { |
2441 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsWriteResponsePB(); |
2442 | 0 | return *internal_default_instance(); |
2443 | 0 | } |
2444 | | |
2445 | 0 | WriteResponsePB* WriteResponsePB::New(::google::protobuf::Arena* arena) const { |
2446 | 0 | WriteResponsePB* n = new WriteResponsePB; |
2447 | 0 | if (arena != NULL) { |
2448 | 0 | arena->Own(n); |
2449 | 0 | } |
2450 | 0 | return n; |
2451 | 0 | } |
2452 | | |
2453 | 2.65M | void WriteResponsePB::Clear() { |
2454 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.WriteResponsePB) |
2455 | 2.65M | ::google::protobuf::uint32 cached_has_bits = 0; |
2456 | | // Prevent compiler warnings about cached_has_bits being unused |
2457 | 2.65M | (void) cached_has_bits; |
2458 | | |
2459 | 2.65M | per_row_errors_.Clear(); |
2460 | 2.65M | redis_response_batch_.Clear(); |
2461 | 2.65M | ql_response_batch_.Clear(); |
2462 | 2.65M | pgsql_response_batch_.Clear(); |
2463 | 2.65M | cached_has_bits = _has_bits_[0]; |
2464 | 2.65M | if (cached_has_bits & 15u) { |
2465 | 42.3k | if (cached_has_bits & 0x00000001u) { |
2466 | 0 | GOOGLE_DCHECK(!trace_buffer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2467 | 0 | (*trace_buffer_.UnsafeRawStringPointer())->clear(); |
2468 | 0 | } |
2469 | 42.4k | if (cached_has_bits & 0x00000002u42.3k ) { |
2470 | 42.4k | GOOGLE_DCHECK(error_ != NULL); |
2471 | 42.4k | error_->Clear(); |
2472 | 42.4k | } |
2473 | 42.3k | if (cached_has_bits & 0x00000004u) { |
2474 | 0 | GOOGLE_DCHECK(restart_read_time_ != NULL); |
2475 | 0 | restart_read_time_->Clear(); |
2476 | 0 | } |
2477 | 42.3k | if (cached_has_bits & 0x00000008u) { |
2478 | 1 | GOOGLE_DCHECK(used_read_time_ != NULL); |
2479 | 1 | used_read_time_->Clear(); |
2480 | 1 | } |
2481 | 42.3k | } |
2482 | 2.65M | if (cached_has_bits & 48u) { |
2483 | 6.03k | ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>( |
2484 | 6.03k | reinterpret_cast<char*>(&local_limit_ht_) - |
2485 | 6.03k | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(local_limit_ht_)); |
2486 | 6.03k | } |
2487 | 2.65M | _has_bits_.Clear(); |
2488 | 2.65M | _internal_metadata_.Clear(); |
2489 | 2.65M | } |
2490 | | |
2491 | | bool WriteResponsePB::MergePartialFromCodedStream( |
2492 | 796k | ::google::protobuf::io::CodedInputStream* input) { |
2493 | 7.74M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2494 | 796k | ::google::protobuf::uint32 tag; |
2495 | | // @@protoc_insertion_point(parse_start:yb.tserver.WriteResponsePB) |
2496 | 8.54M | for (;;) { |
2497 | 8.54M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2498 | 8.54M | tag = p.first; |
2499 | 8.54M | if (!p.second) goto handle_unusual797k ; |
2500 | 7.74M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2501 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
2502 | 100k | case 1: { |
2503 | 100k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2504 | 100k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2505 | 100k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2506 | 100k | input, mutable_error())); |
2507 | 100k | } else { |
2508 | 3 | goto handle_unusual; |
2509 | 3 | } |
2510 | 100k | break; |
2511 | 100k | } |
2512 | | |
2513 | | // repeated .yb.tserver.WriteResponsePB.PerRowErrorPB per_row_errors = 2; |
2514 | 100k | case 2: { |
2515 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2516 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2517 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_per_row_errors())); |
2518 | 0 | } else { |
2519 | 0 | goto handle_unusual; |
2520 | 0 | } |
2521 | 0 | break; |
2522 | 0 | } |
2523 | | |
2524 | | // optional fixed64 propagated_hybrid_time = 3; |
2525 | 696k | case 3: { |
2526 | 696k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2527 | 696k | static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { |
2528 | 695k | set_has_propagated_hybrid_time(); |
2529 | 695k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2530 | 695k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
2531 | 695k | input, &propagated_hybrid_time_))); |
2532 | 695k | } else { |
2533 | 111 | goto handle_unusual; |
2534 | 111 | } |
2535 | 695k | break; |
2536 | 696k | } |
2537 | | |
2538 | | // repeated .yb.RedisResponsePB redis_response_batch = 8; |
2539 | 695k | case 8: { |
2540 | 42.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2541 | 42.9k | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
2542 | 42.9k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_redis_response_batch())); |
2543 | 42.9k | } else { |
2544 | 0 | goto handle_unusual; |
2545 | 0 | } |
2546 | 42.9k | break; |
2547 | 42.9k | } |
2548 | | |
2549 | | // repeated .yb.QLResponsePB ql_response_batch = 9; |
2550 | 2.23M | case 9: { |
2551 | 2.23M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2552 | 2.23M | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
2553 | 2.23M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ql_response_batch())); |
2554 | 18.4E | } else { |
2555 | 18.4E | goto handle_unusual; |
2556 | 18.4E | } |
2557 | 2.23M | break; |
2558 | 2.23M | } |
2559 | | |
2560 | | // optional string trace_buffer = 10; |
2561 | 2.23M | case 10: { |
2562 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2563 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
2564 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2565 | 0 | input, this->mutable_trace_buffer())); |
2566 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2567 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
2568 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
2569 | 0 | "yb.tserver.WriteResponsePB.trace_buffer"); |
2570 | 0 | } else { |
2571 | 0 | goto handle_unusual; |
2572 | 0 | } |
2573 | 0 | break; |
2574 | 0 | } |
2575 | | |
2576 | | // optional .yb.ReadHybridTimePB restart_read_time = 11; |
2577 | 0 | case 11: { |
2578 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2579 | 0 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
2580 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2581 | 0 | input, mutable_restart_read_time())); |
2582 | 0 | } else { |
2583 | 0 | goto handle_unusual; |
2584 | 0 | } |
2585 | 0 | break; |
2586 | 0 | } |
2587 | | |
2588 | | // repeated .yb.PgsqlResponsePB pgsql_response_batch = 12; |
2589 | 4.53M | case 12: { |
2590 | 4.53M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2591 | 4.53M | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
2592 | 4.53M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pgsql_response_batch())); |
2593 | 18.4E | } else { |
2594 | 18.4E | goto handle_unusual; |
2595 | 18.4E | } |
2596 | 4.53M | break; |
2597 | 4.53M | } |
2598 | | |
2599 | | // optional .yb.ReadHybridTimePB used_read_time = 13; |
2600 | 4.53M | case 13: { |
2601 | 132k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2602 | 132k | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
2603 | 132k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2604 | 132k | input, mutable_used_read_time())); |
2605 | 18.4E | } else { |
2606 | 18.4E | goto handle_unusual; |
2607 | 18.4E | } |
2608 | 132k | break; |
2609 | 132k | } |
2610 | | |
2611 | | // optional fixed64 local_limit_ht = 14; |
2612 | 132k | case 14: { |
2613 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2614 | 0 | static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) { |
2615 | 0 | set_has_local_limit_ht(); |
2616 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2617 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
2618 | 0 | input, &local_limit_ht_))); |
2619 | 0 | } else { |
2620 | 0 | goto handle_unusual; |
2621 | 0 | } |
2622 | 0 | break; |
2623 | 0 | } |
2624 | | |
2625 | 0 | default: { |
2626 | 797k | handle_unusual: |
2627 | 797k | if (tag == 0) { |
2628 | 797k | goto success; |
2629 | 797k | } |
2630 | 1 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2631 | 1 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2632 | 1 | break; |
2633 | 1 | } |
2634 | 7.74M | } |
2635 | 7.74M | } |
2636 | 797k | success: |
2637 | | // @@protoc_insertion_point(parse_success:yb.tserver.WriteResponsePB) |
2638 | 797k | return true; |
2639 | 0 | failure: |
2640 | | // @@protoc_insertion_point(parse_failure:yb.tserver.WriteResponsePB) |
2641 | 0 | return false; |
2642 | 796k | #undef DO_ |
2643 | 796k | } |
2644 | | |
2645 | | void WriteResponsePB::SerializeWithCachedSizes( |
2646 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2647 | | // @@protoc_insertion_point(serialize_start:yb.tserver.WriteResponsePB) |
2648 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2649 | 0 | (void) cached_has_bits; |
2650 | |
|
2651 | 0 | cached_has_bits = _has_bits_[0]; |
2652 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
2653 | 0 | if (cached_has_bits & 0x00000002u) { |
2654 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2655 | 0 | 1, *this->error_, output); |
2656 | 0 | } |
2657 | | |
2658 | | // repeated .yb.tserver.WriteResponsePB.PerRowErrorPB per_row_errors = 2; |
2659 | 0 | for (unsigned int i = 0, |
2660 | 0 | n = static_cast<unsigned int>(this->per_row_errors_size()); i < n; i++) { |
2661 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2662 | 0 | 2, this->per_row_errors(static_cast<int>(i)), output); |
2663 | 0 | } |
2664 | | |
2665 | | // optional fixed64 propagated_hybrid_time = 3; |
2666 | 0 | if (cached_has_bits & 0x00000010u) { |
2667 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->propagated_hybrid_time(), output); |
2668 | 0 | } |
2669 | | |
2670 | | // repeated .yb.RedisResponsePB redis_response_batch = 8; |
2671 | 0 | for (unsigned int i = 0, |
2672 | 0 | n = static_cast<unsigned int>(this->redis_response_batch_size()); i < n; i++) { |
2673 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2674 | 0 | 8, this->redis_response_batch(static_cast<int>(i)), output); |
2675 | 0 | } |
2676 | | |
2677 | | // repeated .yb.QLResponsePB ql_response_batch = 9; |
2678 | 0 | for (unsigned int i = 0, |
2679 | 0 | n = static_cast<unsigned int>(this->ql_response_batch_size()); i < n; i++) { |
2680 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2681 | 0 | 9, this->ql_response_batch(static_cast<int>(i)), output); |
2682 | 0 | } |
2683 | | |
2684 | | // optional string trace_buffer = 10; |
2685 | 0 | if (cached_has_bits & 0x00000001u) { |
2686 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2687 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
2688 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2689 | 0 | "yb.tserver.WriteResponsePB.trace_buffer"); |
2690 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2691 | 0 | 10, this->trace_buffer(), output); |
2692 | 0 | } |
2693 | | |
2694 | | // optional .yb.ReadHybridTimePB restart_read_time = 11; |
2695 | 0 | if (cached_has_bits & 0x00000004u) { |
2696 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2697 | 0 | 11, *this->restart_read_time_, output); |
2698 | 0 | } |
2699 | | |
2700 | | // repeated .yb.PgsqlResponsePB pgsql_response_batch = 12; |
2701 | 0 | for (unsigned int i = 0, |
2702 | 0 | n = static_cast<unsigned int>(this->pgsql_response_batch_size()); i < n; i++) { |
2703 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2704 | 0 | 12, this->pgsql_response_batch(static_cast<int>(i)), output); |
2705 | 0 | } |
2706 | | |
2707 | | // optional .yb.ReadHybridTimePB used_read_time = 13; |
2708 | 0 | if (cached_has_bits & 0x00000008u) { |
2709 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2710 | 0 | 13, *this->used_read_time_, output); |
2711 | 0 | } |
2712 | | |
2713 | | // optional fixed64 local_limit_ht = 14; |
2714 | 0 | if (cached_has_bits & 0x00000020u) { |
2715 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(14, this->local_limit_ht(), output); |
2716 | 0 | } |
2717 | |
|
2718 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2719 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2720 | 0 | _internal_metadata_.unknown_fields(), output); |
2721 | 0 | } |
2722 | | // @@protoc_insertion_point(serialize_end:yb.tserver.WriteResponsePB) |
2723 | 0 | } |
2724 | | |
2725 | | ::google::protobuf::uint8* WriteResponsePB::InternalSerializeWithCachedSizesToArray( |
2726 | 797k | bool deterministic, ::google::protobuf::uint8* target) const { |
2727 | 797k | (void)deterministic; // Unused |
2728 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.WriteResponsePB) |
2729 | 797k | ::google::protobuf::uint32 cached_has_bits = 0; |
2730 | 797k | (void) cached_has_bits; |
2731 | | |
2732 | 797k | cached_has_bits = _has_bits_[0]; |
2733 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
2734 | 797k | if (cached_has_bits & 0x00000002u) { |
2735 | 100k | target = ::google::protobuf::internal::WireFormatLite:: |
2736 | 100k | InternalWriteMessageToArray( |
2737 | 100k | 1, *this->error_, deterministic, target); |
2738 | 100k | } |
2739 | | |
2740 | | // repeated .yb.tserver.WriteResponsePB.PerRowErrorPB per_row_errors = 2; |
2741 | 797k | for (unsigned int i = 0, |
2742 | 797k | n = static_cast<unsigned int>(this->per_row_errors_size()); i < n; i++0 ) { |
2743 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2744 | 0 | InternalWriteMessageToArray( |
2745 | 0 | 2, this->per_row_errors(static_cast<int>(i)), deterministic, target); |
2746 | 0 | } |
2747 | | |
2748 | | // optional fixed64 propagated_hybrid_time = 3; |
2749 | 797k | if (cached_has_bits & 0x00000010u) { |
2750 | 695k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->propagated_hybrid_time(), target); |
2751 | 695k | } |
2752 | | |
2753 | | // repeated .yb.RedisResponsePB redis_response_batch = 8; |
2754 | 797k | for (unsigned int i = 0, |
2755 | 840k | n = static_cast<unsigned int>(this->redis_response_batch_size()); i < n; i++42.9k ) { |
2756 | 42.9k | target = ::google::protobuf::internal::WireFormatLite:: |
2757 | 42.9k | InternalWriteMessageToArray( |
2758 | 42.9k | 8, this->redis_response_batch(static_cast<int>(i)), deterministic, target); |
2759 | 42.9k | } |
2760 | | |
2761 | | // repeated .yb.QLResponsePB ql_response_batch = 9; |
2762 | 797k | for (unsigned int i = 0, |
2763 | 3.03M | n = static_cast<unsigned int>(this->ql_response_batch_size()); i < n; i++2.23M ) { |
2764 | 2.23M | target = ::google::protobuf::internal::WireFormatLite:: |
2765 | 2.23M | InternalWriteMessageToArray( |
2766 | 2.23M | 9, this->ql_response_batch(static_cast<int>(i)), deterministic, target); |
2767 | 2.23M | } |
2768 | | |
2769 | | // optional string trace_buffer = 10; |
2770 | 797k | if (cached_has_bits & 0x00000001u) { |
2771 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2772 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
2773 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2774 | 0 | "yb.tserver.WriteResponsePB.trace_buffer"); |
2775 | 0 | target = |
2776 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2777 | 0 | 10, this->trace_buffer(), target); |
2778 | 0 | } |
2779 | | |
2780 | | // optional .yb.ReadHybridTimePB restart_read_time = 11; |
2781 | 797k | if (cached_has_bits & 0x00000004u) { |
2782 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2783 | 0 | InternalWriteMessageToArray( |
2784 | 0 | 11, *this->restart_read_time_, deterministic, target); |
2785 | 0 | } |
2786 | | |
2787 | | // repeated .yb.PgsqlResponsePB pgsql_response_batch = 12; |
2788 | 797k | for (unsigned int i = 0, |
2789 | 5.33M | n = static_cast<unsigned int>(this->pgsql_response_batch_size()); i < n; i++4.53M ) { |
2790 | 4.53M | target = ::google::protobuf::internal::WireFormatLite:: |
2791 | 4.53M | InternalWriteMessageToArray( |
2792 | 4.53M | 12, this->pgsql_response_batch(static_cast<int>(i)), deterministic, target); |
2793 | 4.53M | } |
2794 | | |
2795 | | // optional .yb.ReadHybridTimePB used_read_time = 13; |
2796 | 797k | if (cached_has_bits & 0x00000008u) { |
2797 | 132k | target = ::google::protobuf::internal::WireFormatLite:: |
2798 | 132k | InternalWriteMessageToArray( |
2799 | 132k | 13, *this->used_read_time_, deterministic, target); |
2800 | 132k | } |
2801 | | |
2802 | | // optional fixed64 local_limit_ht = 14; |
2803 | 797k | if (cached_has_bits & 0x00000020u) { |
2804 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(14, this->local_limit_ht(), target); |
2805 | 0 | } |
2806 | | |
2807 | 797k | if (_internal_metadata_.have_unknown_fields()) { |
2808 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2809 | 0 | _internal_metadata_.unknown_fields(), target); |
2810 | 0 | } |
2811 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.WriteResponsePB) |
2812 | 797k | return target; |
2813 | 797k | } |
2814 | | |
2815 | 1.59M | size_t WriteResponsePB::ByteSizeLong() const { |
2816 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.WriteResponsePB) |
2817 | 1.59M | size_t total_size = 0; |
2818 | | |
2819 | 1.59M | if (_internal_metadata_.have_unknown_fields()) { |
2820 | 0 | total_size += |
2821 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2822 | 0 | _internal_metadata_.unknown_fields()); |
2823 | 0 | } |
2824 | | // repeated .yb.tserver.WriteResponsePB.PerRowErrorPB per_row_errors = 2; |
2825 | 1.59M | { |
2826 | 1.59M | unsigned int count = static_cast<unsigned int>(this->per_row_errors_size()); |
2827 | 1.59M | total_size += 1UL * count; |
2828 | 1.59M | for (unsigned int i = 0; i < count; i++0 ) { |
2829 | 0 | total_size += |
2830 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2831 | 0 | this->per_row_errors(static_cast<int>(i))); |
2832 | 0 | } |
2833 | 1.59M | } |
2834 | | |
2835 | | // repeated .yb.RedisResponsePB redis_response_batch = 8; |
2836 | 1.59M | { |
2837 | 1.59M | unsigned int count = static_cast<unsigned int>(this->redis_response_batch_size()); |
2838 | 1.59M | total_size += 1UL * count; |
2839 | 1.67M | for (unsigned int i = 0; i < count; i++85.8k ) { |
2840 | 85.8k | total_size += |
2841 | 85.8k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2842 | 85.8k | this->redis_response_batch(static_cast<int>(i))); |
2843 | 85.8k | } |
2844 | 1.59M | } |
2845 | | |
2846 | | // repeated .yb.QLResponsePB ql_response_batch = 9; |
2847 | 1.59M | { |
2848 | 1.59M | unsigned int count = static_cast<unsigned int>(this->ql_response_batch_size()); |
2849 | 1.59M | total_size += 1UL * count; |
2850 | 6.07M | for (unsigned int i = 0; i < count; i++4.47M ) { |
2851 | 4.47M | total_size += |
2852 | 4.47M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2853 | 4.47M | this->ql_response_batch(static_cast<int>(i))); |
2854 | 4.47M | } |
2855 | 1.59M | } |
2856 | | |
2857 | | // repeated .yb.PgsqlResponsePB pgsql_response_batch = 12; |
2858 | 1.59M | { |
2859 | 1.59M | unsigned int count = static_cast<unsigned int>(this->pgsql_response_batch_size()); |
2860 | 1.59M | total_size += 1UL * count; |
2861 | 10.6M | for (unsigned int i = 0; i < count; i++9.06M ) { |
2862 | 9.06M | total_size += |
2863 | 9.06M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2864 | 9.06M | this->pgsql_response_batch(static_cast<int>(i))); |
2865 | 9.06M | } |
2866 | 1.59M | } |
2867 | | |
2868 | 1.59M | if (_has_bits_[0 / 32] & 63u) { |
2869 | | // optional string trace_buffer = 10; |
2870 | 1.59M | if (has_trace_buffer()) { |
2871 | 0 | total_size += 1 + |
2872 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2873 | 0 | this->trace_buffer()); |
2874 | 0 | } |
2875 | | |
2876 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
2877 | 1.59M | if (has_error()) { |
2878 | 201k | total_size += 1 + |
2879 | 201k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2880 | 201k | *this->error_); |
2881 | 201k | } |
2882 | | |
2883 | | // optional .yb.ReadHybridTimePB restart_read_time = 11; |
2884 | 1.59M | if (has_restart_read_time()) { |
2885 | 0 | total_size += 1 + |
2886 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2887 | 0 | *this->restart_read_time_); |
2888 | 0 | } |
2889 | | |
2890 | | // optional .yb.ReadHybridTimePB used_read_time = 13; |
2891 | 1.59M | if (has_used_read_time()) { |
2892 | 265k | total_size += 1 + |
2893 | 265k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2894 | 265k | *this->used_read_time_); |
2895 | 265k | } |
2896 | | |
2897 | | // optional fixed64 propagated_hybrid_time = 3; |
2898 | 1.59M | if (has_propagated_hybrid_time()) { |
2899 | 1.39M | total_size += 1 + 8; |
2900 | 1.39M | } |
2901 | | |
2902 | | // optional fixed64 local_limit_ht = 14; |
2903 | 1.59M | if (has_local_limit_ht()) { |
2904 | 0 | total_size += 1 + 8; |
2905 | 0 | } |
2906 | | |
2907 | 1.59M | } |
2908 | 1.59M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2909 | 1.59M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2910 | 1.59M | _cached_size_ = cached_size; |
2911 | 1.59M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2912 | 1.59M | return total_size; |
2913 | 1.59M | } |
2914 | | |
2915 | 0 | void WriteResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2916 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.WriteResponsePB) |
2917 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2918 | 0 | const WriteResponsePB* source = |
2919 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const WriteResponsePB>( |
2920 | 0 | &from); |
2921 | 0 | if (source == NULL) { |
2922 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.WriteResponsePB) |
2923 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2924 | 0 | } else { |
2925 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.WriteResponsePB) |
2926 | 0 | MergeFrom(*source); |
2927 | 0 | } |
2928 | 0 | } |
2929 | | |
2930 | 0 | void WriteResponsePB::MergeFrom(const WriteResponsePB& from) { |
2931 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.WriteResponsePB) |
2932 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2933 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2934 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2935 | 0 | (void) cached_has_bits; |
2936 | |
|
2937 | 0 | per_row_errors_.MergeFrom(from.per_row_errors_); |
2938 | 0 | redis_response_batch_.MergeFrom(from.redis_response_batch_); |
2939 | 0 | ql_response_batch_.MergeFrom(from.ql_response_batch_); |
2940 | 0 | pgsql_response_batch_.MergeFrom(from.pgsql_response_batch_); |
2941 | 0 | cached_has_bits = from._has_bits_[0]; |
2942 | 0 | if (cached_has_bits & 63u) { |
2943 | 0 | if (cached_has_bits & 0x00000001u) { |
2944 | 0 | set_has_trace_buffer(); |
2945 | 0 | trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_); |
2946 | 0 | } |
2947 | 0 | if (cached_has_bits & 0x00000002u) { |
2948 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
2949 | 0 | } |
2950 | 0 | if (cached_has_bits & 0x00000004u) { |
2951 | 0 | mutable_restart_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.restart_read_time()); |
2952 | 0 | } |
2953 | 0 | if (cached_has_bits & 0x00000008u) { |
2954 | 0 | mutable_used_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.used_read_time()); |
2955 | 0 | } |
2956 | 0 | if (cached_has_bits & 0x00000010u) { |
2957 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
2958 | 0 | } |
2959 | 0 | if (cached_has_bits & 0x00000020u) { |
2960 | 0 | local_limit_ht_ = from.local_limit_ht_; |
2961 | 0 | } |
2962 | 0 | _has_bits_[0] |= cached_has_bits; |
2963 | 0 | } |
2964 | 0 | } |
2965 | | |
2966 | 0 | void WriteResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
2967 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.WriteResponsePB) |
2968 | 0 | if (&from == this) return; |
2969 | 0 | Clear(); |
2970 | 0 | MergeFrom(from); |
2971 | 0 | } |
2972 | | |
2973 | 0 | void WriteResponsePB::CopyFrom(const WriteResponsePB& from) { |
2974 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.WriteResponsePB) |
2975 | 0 | if (&from == this) return; |
2976 | 0 | Clear(); |
2977 | 0 | MergeFrom(from); |
2978 | 0 | } |
2979 | | |
2980 | 1.59M | bool WriteResponsePB::IsInitialized() const { |
2981 | 1.59M | if (!::google::protobuf::internal::AllAreInitialized(this->per_row_errors())) return false0 ; |
2982 | 1.59M | if (!::google::protobuf::internal::AllAreInitialized(this->ql_response_batch())) return false0 ; |
2983 | 1.59M | if (has_error()) { |
2984 | 201k | if (!this->error_->IsInitialized()) return false0 ; |
2985 | 201k | } |
2986 | 1.59M | return true; |
2987 | 1.59M | } |
2988 | | |
2989 | 0 | void WriteResponsePB::Swap(WriteResponsePB* other) { |
2990 | 0 | if (other == this) return; |
2991 | 0 | InternalSwap(other); |
2992 | 0 | } |
2993 | 0 | void WriteResponsePB::InternalSwap(WriteResponsePB* other) { |
2994 | 0 | using std::swap; |
2995 | 0 | per_row_errors_.InternalSwap(&other->per_row_errors_); |
2996 | 0 | redis_response_batch_.InternalSwap(&other->redis_response_batch_); |
2997 | 0 | ql_response_batch_.InternalSwap(&other->ql_response_batch_); |
2998 | 0 | pgsql_response_batch_.InternalSwap(&other->pgsql_response_batch_); |
2999 | 0 | trace_buffer_.Swap(&other->trace_buffer_); |
3000 | 0 | swap(error_, other->error_); |
3001 | 0 | swap(restart_read_time_, other->restart_read_time_); |
3002 | 0 | swap(used_read_time_, other->used_read_time_); |
3003 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
3004 | 0 | swap(local_limit_ht_, other->local_limit_ht_); |
3005 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3006 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3007 | 0 | swap(_cached_size_, other->_cached_size_); |
3008 | 0 | } |
3009 | | |
3010 | 36 | ::google::protobuf::Metadata WriteResponsePB::GetMetadata() const { |
3011 | 36 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3012 | 36 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
3013 | 36 | } |
3014 | | |
3015 | | |
3016 | | // =================================================================== |
3017 | | |
3018 | 26.8k | void ListTabletsRequestPB::InitAsDefaultInstance() { |
3019 | 26.8k | } |
3020 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3021 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3022 | | |
3023 | | ListTabletsRequestPB::ListTabletsRequestPB() |
3024 | 27.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3025 | 27.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3026 | 433 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsRequestPB(); |
3027 | 433 | } |
3028 | 27.2k | SharedCtor(); |
3029 | | // @@protoc_insertion_point(constructor:yb.tserver.ListTabletsRequestPB) |
3030 | 27.2k | } |
3031 | | ListTabletsRequestPB::ListTabletsRequestPB(const ListTabletsRequestPB& from) |
3032 | | : ::google::protobuf::Message(), |
3033 | | _internal_metadata_(NULL), |
3034 | | _has_bits_(from._has_bits_), |
3035 | 0 | _cached_size_(0) { |
3036 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3037 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.ListTabletsRequestPB) |
3038 | 0 | } |
3039 | | |
3040 | 27.2k | void ListTabletsRequestPB::SharedCtor() { |
3041 | 27.2k | _cached_size_ = 0; |
3042 | 27.2k | } |
3043 | | |
3044 | 433 | ListTabletsRequestPB::~ListTabletsRequestPB() { |
3045 | | // @@protoc_insertion_point(destructor:yb.tserver.ListTabletsRequestPB) |
3046 | 433 | SharedDtor(); |
3047 | 433 | } |
3048 | | |
3049 | 433 | void ListTabletsRequestPB::SharedDtor() { |
3050 | 433 | } |
3051 | | |
3052 | 0 | void ListTabletsRequestPB::SetCachedSize(int size) const { |
3053 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3054 | 0 | _cached_size_ = size; |
3055 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3056 | 0 | } |
3057 | 0 | const ::google::protobuf::Descriptor* ListTabletsRequestPB::descriptor() { |
3058 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3059 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3060 | 0 | } |
3061 | | |
3062 | 0 | const ListTabletsRequestPB& ListTabletsRequestPB::default_instance() { |
3063 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsRequestPB(); |
3064 | 0 | return *internal_default_instance(); |
3065 | 0 | } |
3066 | | |
3067 | 0 | ListTabletsRequestPB* ListTabletsRequestPB::New(::google::protobuf::Arena* arena) const { |
3068 | 0 | ListTabletsRequestPB* n = new ListTabletsRequestPB; |
3069 | 0 | if (arena != NULL) { |
3070 | 0 | arena->Own(n); |
3071 | 0 | } |
3072 | 0 | return n; |
3073 | 0 | } |
3074 | | |
3075 | 217 | void ListTabletsRequestPB::Clear() { |
3076 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.ListTabletsRequestPB) |
3077 | 217 | ::google::protobuf::uint32 cached_has_bits = 0; |
3078 | | // Prevent compiler warnings about cached_has_bits being unused |
3079 | 217 | (void) cached_has_bits; |
3080 | | |
3081 | 217 | _has_bits_.Clear(); |
3082 | 217 | _internal_metadata_.Clear(); |
3083 | 217 | } |
3084 | | |
3085 | | bool ListTabletsRequestPB::MergePartialFromCodedStream( |
3086 | 217 | ::google::protobuf::io::CodedInputStream* input) { |
3087 | 217 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
3088 | 217 | ::google::protobuf::uint32 tag; |
3089 | | // @@protoc_insertion_point(parse_start:yb.tserver.ListTabletsRequestPB) |
3090 | 217 | for (;;) { |
3091 | 217 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3092 | 217 | tag = p.first; |
3093 | 217 | if (!p.second) goto handle_unusual; |
3094 | 217 | handle_unusual: |
3095 | 217 | if (tag == 0) { |
3096 | 217 | goto success; |
3097 | 217 | } |
3098 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3099 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3100 | 0 | } |
3101 | 217 | success: |
3102 | | // @@protoc_insertion_point(parse_success:yb.tserver.ListTabletsRequestPB) |
3103 | 217 | return true; |
3104 | 0 | failure: |
3105 | | // @@protoc_insertion_point(parse_failure:yb.tserver.ListTabletsRequestPB) |
3106 | 0 | return false; |
3107 | 217 | #undef DO_ |
3108 | 217 | } |
3109 | | |
3110 | | void ListTabletsRequestPB::SerializeWithCachedSizes( |
3111 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3112 | | // @@protoc_insertion_point(serialize_start:yb.tserver.ListTabletsRequestPB) |
3113 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3114 | 0 | (void) cached_has_bits; |
3115 | |
|
3116 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3117 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3118 | 0 | _internal_metadata_.unknown_fields(), output); |
3119 | 0 | } |
3120 | | // @@protoc_insertion_point(serialize_end:yb.tserver.ListTabletsRequestPB) |
3121 | 0 | } |
3122 | | |
3123 | | ::google::protobuf::uint8* ListTabletsRequestPB::InternalSerializeWithCachedSizesToArray( |
3124 | 216 | bool deterministic, ::google::protobuf::uint8* target) const { |
3125 | 216 | (void)deterministic; // Unused |
3126 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.ListTabletsRequestPB) |
3127 | 216 | ::google::protobuf::uint32 cached_has_bits = 0; |
3128 | 216 | (void) cached_has_bits; |
3129 | | |
3130 | 216 | if (_internal_metadata_.have_unknown_fields()) { |
3131 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3132 | 0 | _internal_metadata_.unknown_fields(), target); |
3133 | 0 | } |
3134 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.ListTabletsRequestPB) |
3135 | 216 | return target; |
3136 | 216 | } |
3137 | | |
3138 | 432 | size_t ListTabletsRequestPB::ByteSizeLong() const { |
3139 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.ListTabletsRequestPB) |
3140 | 432 | size_t total_size = 0; |
3141 | | |
3142 | 432 | if (_internal_metadata_.have_unknown_fields()) { |
3143 | 0 | total_size += |
3144 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3145 | 0 | _internal_metadata_.unknown_fields()); |
3146 | 0 | } |
3147 | 432 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3148 | 432 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3149 | 432 | _cached_size_ = cached_size; |
3150 | 432 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3151 | 432 | return total_size; |
3152 | 432 | } |
3153 | | |
3154 | 0 | void ListTabletsRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3155 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.ListTabletsRequestPB) |
3156 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3157 | 0 | const ListTabletsRequestPB* source = |
3158 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsRequestPB>( |
3159 | 0 | &from); |
3160 | 0 | if (source == NULL) { |
3161 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.ListTabletsRequestPB) |
3162 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3163 | 0 | } else { |
3164 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.ListTabletsRequestPB) |
3165 | 0 | MergeFrom(*source); |
3166 | 0 | } |
3167 | 0 | } |
3168 | | |
3169 | 0 | void ListTabletsRequestPB::MergeFrom(const ListTabletsRequestPB& from) { |
3170 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.ListTabletsRequestPB) |
3171 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3172 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3173 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3174 | 0 | (void) cached_has_bits; |
3175 | |
|
3176 | 0 | } |
3177 | | |
3178 | 0 | void ListTabletsRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3179 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.ListTabletsRequestPB) |
3180 | 0 | if (&from == this) return; |
3181 | 0 | Clear(); |
3182 | 0 | MergeFrom(from); |
3183 | 0 | } |
3184 | | |
3185 | 0 | void ListTabletsRequestPB::CopyFrom(const ListTabletsRequestPB& from) { |
3186 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.ListTabletsRequestPB) |
3187 | 0 | if (&from == this) return; |
3188 | 0 | Clear(); |
3189 | 0 | MergeFrom(from); |
3190 | 0 | } |
3191 | | |
3192 | 433 | bool ListTabletsRequestPB::IsInitialized() const { |
3193 | 433 | return true; |
3194 | 433 | } |
3195 | | |
3196 | 0 | void ListTabletsRequestPB::Swap(ListTabletsRequestPB* other) { |
3197 | 0 | if (other == this) return; |
3198 | 0 | InternalSwap(other); |
3199 | 0 | } |
3200 | 0 | void ListTabletsRequestPB::InternalSwap(ListTabletsRequestPB* other) { |
3201 | 0 | using std::swap; |
3202 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3203 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3204 | 0 | swap(_cached_size_, other->_cached_size_); |
3205 | 0 | } |
3206 | | |
3207 | 217 | ::google::protobuf::Metadata ListTabletsRequestPB::GetMetadata() const { |
3208 | 217 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3209 | 217 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
3210 | 217 | } |
3211 | | |
3212 | | |
3213 | | // =================================================================== |
3214 | | |
3215 | 26.8k | void ListTabletsResponsePB_StatusAndSchemaPB::InitAsDefaultInstance() { |
3216 | 26.8k | ::yb::tserver::_ListTabletsResponsePB_StatusAndSchemaPB_default_instance_._instance.get_mutable()->tablet_status_ = const_cast< ::yb::tablet::TabletStatusPB*>( |
3217 | 26.8k | ::yb::tablet::TabletStatusPB::internal_default_instance()); |
3218 | 26.8k | ::yb::tserver::_ListTabletsResponsePB_StatusAndSchemaPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>( |
3219 | 26.8k | ::yb::SchemaPB::internal_default_instance()); |
3220 | 26.8k | ::yb::tserver::_ListTabletsResponsePB_StatusAndSchemaPB_default_instance_._instance.get_mutable()->partition_schema_ = const_cast< ::yb::PartitionSchemaPB*>( |
3221 | 26.8k | ::yb::PartitionSchemaPB::internal_default_instance()); |
3222 | 26.8k | } |
3223 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::clear_tablet_status() { |
3224 | 0 | if (tablet_status_ != NULL) tablet_status_->Clear(); |
3225 | 0 | clear_has_tablet_status(); |
3226 | 0 | } |
3227 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::clear_schema() { |
3228 | 0 | if (schema_ != NULL) schema_->Clear(); |
3229 | 0 | clear_has_schema(); |
3230 | 0 | } |
3231 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::clear_partition_schema() { |
3232 | 0 | if (partition_schema_ != NULL) partition_schema_->Clear(); |
3233 | 0 | clear_has_partition_schema(); |
3234 | 0 | } |
3235 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3236 | | const int ListTabletsResponsePB_StatusAndSchemaPB::kTabletStatusFieldNumber; |
3237 | | const int ListTabletsResponsePB_StatusAndSchemaPB::kSchemaFieldNumber; |
3238 | | const int ListTabletsResponsePB_StatusAndSchemaPB::kPartitionSchemaFieldNumber; |
3239 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3240 | | |
3241 | | ListTabletsResponsePB_StatusAndSchemaPB::ListTabletsResponsePB_StatusAndSchemaPB() |
3242 | 33.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3243 | 33.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3244 | 6.36k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsResponsePB_StatusAndSchemaPB(); |
3245 | 6.36k | } |
3246 | 33.2k | SharedCtor(); |
3247 | | // @@protoc_insertion_point(constructor:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3248 | 33.2k | } |
3249 | | ListTabletsResponsePB_StatusAndSchemaPB::ListTabletsResponsePB_StatusAndSchemaPB(const ListTabletsResponsePB_StatusAndSchemaPB& from) |
3250 | | : ::google::protobuf::Message(), |
3251 | | _internal_metadata_(NULL), |
3252 | | _has_bits_(from._has_bits_), |
3253 | 3.08k | _cached_size_(0) { |
3254 | 3.08k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3255 | 3.08k | if (from.has_tablet_status()) { |
3256 | 3.08k | tablet_status_ = new ::yb::tablet::TabletStatusPB(*from.tablet_status_); |
3257 | 3.08k | } else { |
3258 | 0 | tablet_status_ = NULL; |
3259 | 0 | } |
3260 | 3.08k | if (from.has_schema()) { |
3261 | 3.08k | schema_ = new ::yb::SchemaPB(*from.schema_); |
3262 | 3.08k | } else { |
3263 | 0 | schema_ = NULL; |
3264 | 0 | } |
3265 | 3.08k | if (from.has_partition_schema()) { |
3266 | 3.08k | partition_schema_ = new ::yb::PartitionSchemaPB(*from.partition_schema_); |
3267 | 3.08k | } else { |
3268 | 0 | partition_schema_ = NULL; |
3269 | 0 | } |
3270 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3271 | 3.08k | } |
3272 | | |
3273 | 33.2k | void ListTabletsResponsePB_StatusAndSchemaPB::SharedCtor() { |
3274 | 33.2k | _cached_size_ = 0; |
3275 | 33.2k | ::memset(&tablet_status_, 0, static_cast<size_t>( |
3276 | 33.2k | reinterpret_cast<char*>(&partition_schema_) - |
3277 | 33.2k | reinterpret_cast<char*>(&tablet_status_)) + sizeof(partition_schema_)); |
3278 | 33.2k | } |
3279 | | |
3280 | 9.44k | ListTabletsResponsePB_StatusAndSchemaPB::~ListTabletsResponsePB_StatusAndSchemaPB() { |
3281 | | // @@protoc_insertion_point(destructor:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3282 | 9.44k | SharedDtor(); |
3283 | 9.44k | } |
3284 | | |
3285 | 9.44k | void ListTabletsResponsePB_StatusAndSchemaPB::SharedDtor() { |
3286 | 9.44k | if (this != internal_default_instance()) delete tablet_status_; |
3287 | 9.44k | if (this != internal_default_instance()) delete schema_; |
3288 | 9.44k | if (this != internal_default_instance()) delete partition_schema_; |
3289 | 9.44k | } |
3290 | | |
3291 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::SetCachedSize(int size) const { |
3292 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3293 | 0 | _cached_size_ = size; |
3294 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3295 | 0 | } |
3296 | 0 | const ::google::protobuf::Descriptor* ListTabletsResponsePB_StatusAndSchemaPB::descriptor() { |
3297 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3298 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3299 | 0 | } |
3300 | | |
3301 | 0 | const ListTabletsResponsePB_StatusAndSchemaPB& ListTabletsResponsePB_StatusAndSchemaPB::default_instance() { |
3302 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsResponsePB_StatusAndSchemaPB(); |
3303 | 0 | return *internal_default_instance(); |
3304 | 0 | } |
3305 | | |
3306 | 0 | ListTabletsResponsePB_StatusAndSchemaPB* ListTabletsResponsePB_StatusAndSchemaPB::New(::google::protobuf::Arena* arena) const { |
3307 | 0 | ListTabletsResponsePB_StatusAndSchemaPB* n = new ListTabletsResponsePB_StatusAndSchemaPB; |
3308 | 0 | if (arena != NULL) { |
3309 | 0 | arena->Own(n); |
3310 | 0 | } |
3311 | 0 | return n; |
3312 | 0 | } |
3313 | | |
3314 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::Clear() { |
3315 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3316 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3317 | | // Prevent compiler warnings about cached_has_bits being unused |
3318 | 0 | (void) cached_has_bits; |
3319 | |
|
3320 | 0 | cached_has_bits = _has_bits_[0]; |
3321 | 0 | if (cached_has_bits & 7u) { |
3322 | 0 | if (cached_has_bits & 0x00000001u) { |
3323 | 0 | GOOGLE_DCHECK(tablet_status_ != NULL); |
3324 | 0 | tablet_status_->Clear(); |
3325 | 0 | } |
3326 | 0 | if (cached_has_bits & 0x00000002u) { |
3327 | 0 | GOOGLE_DCHECK(schema_ != NULL); |
3328 | 0 | schema_->Clear(); |
3329 | 0 | } |
3330 | 0 | if (cached_has_bits & 0x00000004u) { |
3331 | 0 | GOOGLE_DCHECK(partition_schema_ != NULL); |
3332 | 0 | partition_schema_->Clear(); |
3333 | 0 | } |
3334 | 0 | } |
3335 | 0 | _has_bits_.Clear(); |
3336 | 0 | _internal_metadata_.Clear(); |
3337 | 0 | } |
3338 | | |
3339 | | bool ListTabletsResponsePB_StatusAndSchemaPB::MergePartialFromCodedStream( |
3340 | 3.16k | ::google::protobuf::io::CodedInputStream* input) { |
3341 | 9.49k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3342 | 3.16k | ::google::protobuf::uint32 tag; |
3343 | | // @@protoc_insertion_point(parse_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3344 | 12.6k | for (;;) { |
3345 | 12.6k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3346 | 12.6k | tag = p.first; |
3347 | 12.6k | if (!p.second) goto handle_unusual3.16k ; |
3348 | 9.49k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3349 | | // required .yb.tablet.TabletStatusPB tablet_status = 1; |
3350 | 3.16k | case 1: { |
3351 | 3.16k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3352 | 3.16k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3353 | 3.16k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3354 | 3.16k | input, mutable_tablet_status())); |
3355 | 3.16k | } else { |
3356 | 0 | goto handle_unusual; |
3357 | 0 | } |
3358 | 3.16k | break; |
3359 | 3.16k | } |
3360 | | |
3361 | | // required .yb.SchemaPB schema = 2; |
3362 | 3.16k | case 2: { |
3363 | 3.16k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3364 | 3.16k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3365 | 3.16k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3366 | 3.16k | input, mutable_schema())); |
3367 | 3.16k | } else { |
3368 | 0 | goto handle_unusual; |
3369 | 0 | } |
3370 | 3.16k | break; |
3371 | 3.16k | } |
3372 | | |
3373 | | // optional .yb.PartitionSchemaPB partition_schema = 3; |
3374 | 3.16k | case 3: { |
3375 | 3.16k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3376 | 3.16k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
3377 | 3.16k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3378 | 3.16k | input, mutable_partition_schema())); |
3379 | 3.16k | } else { |
3380 | 0 | goto handle_unusual; |
3381 | 0 | } |
3382 | 3.16k | break; |
3383 | 3.16k | } |
3384 | | |
3385 | 3.16k | default: { |
3386 | 3.16k | handle_unusual: |
3387 | 3.16k | if (tag == 0) { |
3388 | 3.16k | goto success; |
3389 | 3.16k | } |
3390 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3391 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3392 | 0 | break; |
3393 | 0 | } |
3394 | 9.49k | } |
3395 | 9.49k | } |
3396 | 3.16k | success: |
3397 | | // @@protoc_insertion_point(parse_success:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3398 | 3.16k | return true; |
3399 | 0 | failure: |
3400 | | // @@protoc_insertion_point(parse_failure:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3401 | 0 | return false; |
3402 | 3.16k | #undef DO_ |
3403 | 3.16k | } |
3404 | | |
3405 | | void ListTabletsResponsePB_StatusAndSchemaPB::SerializeWithCachedSizes( |
3406 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3407 | | // @@protoc_insertion_point(serialize_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3408 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3409 | 0 | (void) cached_has_bits; |
3410 | |
|
3411 | 0 | cached_has_bits = _has_bits_[0]; |
3412 | | // required .yb.tablet.TabletStatusPB tablet_status = 1; |
3413 | 0 | if (cached_has_bits & 0x00000001u) { |
3414 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3415 | 0 | 1, *this->tablet_status_, output); |
3416 | 0 | } |
3417 | | |
3418 | | // required .yb.SchemaPB schema = 2; |
3419 | 0 | if (cached_has_bits & 0x00000002u) { |
3420 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3421 | 0 | 2, *this->schema_, output); |
3422 | 0 | } |
3423 | | |
3424 | | // optional .yb.PartitionSchemaPB partition_schema = 3; |
3425 | 0 | if (cached_has_bits & 0x00000004u) { |
3426 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3427 | 0 | 3, *this->partition_schema_, output); |
3428 | 0 | } |
3429 | |
|
3430 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3431 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3432 | 0 | _internal_metadata_.unknown_fields(), output); |
3433 | 0 | } |
3434 | | // @@protoc_insertion_point(serialize_end:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3435 | 0 | } |
3436 | | |
3437 | | ::google::protobuf::uint8* ListTabletsResponsePB_StatusAndSchemaPB::InternalSerializeWithCachedSizesToArray( |
3438 | 3.19k | bool deterministic, ::google::protobuf::uint8* target) const { |
3439 | 3.19k | (void)deterministic; // Unused |
3440 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3441 | 3.19k | ::google::protobuf::uint32 cached_has_bits = 0; |
3442 | 3.19k | (void) cached_has_bits; |
3443 | | |
3444 | 3.19k | cached_has_bits = _has_bits_[0]; |
3445 | | // required .yb.tablet.TabletStatusPB tablet_status = 1; |
3446 | 3.19k | if (cached_has_bits & 0x00000001u) { |
3447 | 3.19k | target = ::google::protobuf::internal::WireFormatLite:: |
3448 | 3.19k | InternalWriteMessageToArray( |
3449 | 3.19k | 1, *this->tablet_status_, deterministic, target); |
3450 | 3.19k | } |
3451 | | |
3452 | | // required .yb.SchemaPB schema = 2; |
3453 | 3.19k | if (cached_has_bits & 0x00000002u) { |
3454 | 3.19k | target = ::google::protobuf::internal::WireFormatLite:: |
3455 | 3.19k | InternalWriteMessageToArray( |
3456 | 3.19k | 2, *this->schema_, deterministic, target); |
3457 | 3.19k | } |
3458 | | |
3459 | | // optional .yb.PartitionSchemaPB partition_schema = 3; |
3460 | 3.19k | if (cached_has_bits & 0x00000004u) { |
3461 | 3.19k | target = ::google::protobuf::internal::WireFormatLite:: |
3462 | 3.19k | InternalWriteMessageToArray( |
3463 | 3.19k | 3, *this->partition_schema_, deterministic, target); |
3464 | 3.19k | } |
3465 | | |
3466 | 3.19k | if (_internal_metadata_.have_unknown_fields()) { |
3467 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3468 | 0 | _internal_metadata_.unknown_fields(), target); |
3469 | 0 | } |
3470 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3471 | 3.19k | return target; |
3472 | 3.19k | } |
3473 | | |
3474 | 0 | size_t ListTabletsResponsePB_StatusAndSchemaPB::RequiredFieldsByteSizeFallback() const { |
3475 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3476 | 0 | size_t total_size = 0; |
3477 | |
|
3478 | 0 | if (has_tablet_status()) { |
3479 | | // required .yb.tablet.TabletStatusPB tablet_status = 1; |
3480 | 0 | total_size += 1 + |
3481 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3482 | 0 | *this->tablet_status_); |
3483 | 0 | } |
3484 | |
|
3485 | 0 | if (has_schema()) { |
3486 | | // required .yb.SchemaPB schema = 2; |
3487 | 0 | total_size += 1 + |
3488 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3489 | 0 | *this->schema_); |
3490 | 0 | } |
3491 | |
|
3492 | 0 | return total_size; |
3493 | 0 | } |
3494 | 6.38k | size_t ListTabletsResponsePB_StatusAndSchemaPB::ByteSizeLong() const { |
3495 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3496 | 6.38k | size_t total_size = 0; |
3497 | | |
3498 | 6.38k | if (_internal_metadata_.have_unknown_fields()) { |
3499 | 0 | total_size += |
3500 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3501 | 0 | _internal_metadata_.unknown_fields()); |
3502 | 0 | } |
3503 | 6.38k | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
3504 | | // required .yb.tablet.TabletStatusPB tablet_status = 1; |
3505 | 6.38k | total_size += 1 + |
3506 | 6.38k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3507 | 6.38k | *this->tablet_status_); |
3508 | | |
3509 | | // required .yb.SchemaPB schema = 2; |
3510 | 6.38k | total_size += 1 + |
3511 | 6.38k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3512 | 6.38k | *this->schema_); |
3513 | | |
3514 | 6.38k | } else { |
3515 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
3516 | 0 | } |
3517 | | // optional .yb.PartitionSchemaPB partition_schema = 3; |
3518 | 6.38k | if (has_partition_schema()) { |
3519 | 6.38k | total_size += 1 + |
3520 | 6.38k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3521 | 6.38k | *this->partition_schema_); |
3522 | 6.38k | } |
3523 | | |
3524 | 6.38k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3525 | 6.38k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3526 | 6.38k | _cached_size_ = cached_size; |
3527 | 6.38k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3528 | 6.38k | return total_size; |
3529 | 6.38k | } |
3530 | | |
3531 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::MergeFrom(const ::google::protobuf::Message& from) { |
3532 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3533 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3534 | 0 | const ListTabletsResponsePB_StatusAndSchemaPB* source = |
3535 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsResponsePB_StatusAndSchemaPB>( |
3536 | 0 | &from); |
3537 | 0 | if (source == NULL) { |
3538 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3539 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3540 | 0 | } else { |
3541 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3542 | 0 | MergeFrom(*source); |
3543 | 0 | } |
3544 | 0 | } |
3545 | | |
3546 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::MergeFrom(const ListTabletsResponsePB_StatusAndSchemaPB& from) { |
3547 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3548 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3549 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3550 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3551 | 0 | (void) cached_has_bits; |
3552 | |
|
3553 | 0 | cached_has_bits = from._has_bits_[0]; |
3554 | 0 | if (cached_has_bits & 7u) { |
3555 | 0 | if (cached_has_bits & 0x00000001u) { |
3556 | 0 | mutable_tablet_status()->::yb::tablet::TabletStatusPB::MergeFrom(from.tablet_status()); |
3557 | 0 | } |
3558 | 0 | if (cached_has_bits & 0x00000002u) { |
3559 | 0 | mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema()); |
3560 | 0 | } |
3561 | 0 | if (cached_has_bits & 0x00000004u) { |
3562 | 0 | mutable_partition_schema()->::yb::PartitionSchemaPB::MergeFrom(from.partition_schema()); |
3563 | 0 | } |
3564 | 0 | } |
3565 | 0 | } |
3566 | | |
3567 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::CopyFrom(const ::google::protobuf::Message& from) { |
3568 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3569 | 0 | if (&from == this) return; |
3570 | 0 | Clear(); |
3571 | 0 | MergeFrom(from); |
3572 | 0 | } |
3573 | | |
3574 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::CopyFrom(const ListTabletsResponsePB_StatusAndSchemaPB& from) { |
3575 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB) |
3576 | 0 | if (&from == this) return; |
3577 | 0 | Clear(); |
3578 | 0 | MergeFrom(from); |
3579 | 0 | } |
3580 | | |
3581 | 6.35k | bool ListTabletsResponsePB_StatusAndSchemaPB::IsInitialized() const { |
3582 | 6.35k | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false0 ; |
3583 | 6.35k | if (has_tablet_status()) { |
3584 | 6.35k | if (!this->tablet_status_->IsInitialized()) return false0 ; |
3585 | 6.35k | } |
3586 | 6.35k | if (has_schema()) { |
3587 | 6.35k | if (!this->schema_->IsInitialized()) return false0 ; |
3588 | 6.35k | } |
3589 | 6.35k | if (has_partition_schema()) { |
3590 | 6.35k | if (!this->partition_schema_->IsInitialized()) return false0 ; |
3591 | 6.35k | } |
3592 | 6.35k | return true; |
3593 | 6.35k | } |
3594 | | |
3595 | 0 | void ListTabletsResponsePB_StatusAndSchemaPB::Swap(ListTabletsResponsePB_StatusAndSchemaPB* other) { |
3596 | 0 | if (other == this) return; |
3597 | 0 | InternalSwap(other); |
3598 | 0 | } |
3599 | 4 | void ListTabletsResponsePB_StatusAndSchemaPB::InternalSwap(ListTabletsResponsePB_StatusAndSchemaPB* other) { |
3600 | 4 | using std::swap; |
3601 | 4 | swap(tablet_status_, other->tablet_status_); |
3602 | 4 | swap(schema_, other->schema_); |
3603 | 4 | swap(partition_schema_, other->partition_schema_); |
3604 | 4 | swap(_has_bits_[0], other->_has_bits_[0]); |
3605 | 4 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3606 | 4 | swap(_cached_size_, other->_cached_size_); |
3607 | 4 | } |
3608 | | |
3609 | 0 | ::google::protobuf::Metadata ListTabletsResponsePB_StatusAndSchemaPB::GetMetadata() const { |
3610 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3611 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
3612 | 0 | } |
3613 | | |
3614 | | |
3615 | | // =================================================================== |
3616 | | |
3617 | 26.8k | void ListTabletsResponsePB::InitAsDefaultInstance() { |
3618 | 26.8k | ::yb::tserver::_ListTabletsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
3619 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
3620 | 26.8k | } |
3621 | 0 | void ListTabletsResponsePB::clear_error() { |
3622 | 0 | if (error_ != NULL) error_->Clear(); |
3623 | 0 | clear_has_error(); |
3624 | 0 | } |
3625 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3626 | | const int ListTabletsResponsePB::kErrorFieldNumber; |
3627 | | const int ListTabletsResponsePB::kStatusAndSchemaFieldNumber; |
3628 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3629 | | |
3630 | | ListTabletsResponsePB::ListTabletsResponsePB() |
3631 | 27.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3632 | 27.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3633 | 439 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsResponsePB(); |
3634 | 439 | } |
3635 | 27.2k | SharedCtor(); |
3636 | | // @@protoc_insertion_point(constructor:yb.tserver.ListTabletsResponsePB) |
3637 | 27.2k | } |
3638 | | ListTabletsResponsePB::ListTabletsResponsePB(const ListTabletsResponsePB& from) |
3639 | | : ::google::protobuf::Message(), |
3640 | | _internal_metadata_(NULL), |
3641 | | _has_bits_(from._has_bits_), |
3642 | | _cached_size_(0), |
3643 | 0 | status_and_schema_(from.status_and_schema_) { |
3644 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3645 | 0 | if (from.has_error()) { |
3646 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
3647 | 0 | } else { |
3648 | 0 | error_ = NULL; |
3649 | 0 | } |
3650 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.ListTabletsResponsePB) |
3651 | 0 | } |
3652 | | |
3653 | 27.2k | void ListTabletsResponsePB::SharedCtor() { |
3654 | 27.2k | _cached_size_ = 0; |
3655 | 27.2k | error_ = NULL; |
3656 | 27.2k | } |
3657 | | |
3658 | 439 | ListTabletsResponsePB::~ListTabletsResponsePB() { |
3659 | | // @@protoc_insertion_point(destructor:yb.tserver.ListTabletsResponsePB) |
3660 | 439 | SharedDtor(); |
3661 | 439 | } |
3662 | | |
3663 | 439 | void ListTabletsResponsePB::SharedDtor() { |
3664 | 439 | if (this != internal_default_instance()) delete error_; |
3665 | 439 | } |
3666 | | |
3667 | 0 | void ListTabletsResponsePB::SetCachedSize(int size) const { |
3668 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3669 | 0 | _cached_size_ = size; |
3670 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3671 | 0 | } |
3672 | 0 | const ::google::protobuf::Descriptor* ListTabletsResponsePB::descriptor() { |
3673 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3674 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3675 | 0 | } |
3676 | | |
3677 | 0 | const ListTabletsResponsePB& ListTabletsResponsePB::default_instance() { |
3678 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsListTabletsResponsePB(); |
3679 | 0 | return *internal_default_instance(); |
3680 | 0 | } |
3681 | | |
3682 | 0 | ListTabletsResponsePB* ListTabletsResponsePB::New(::google::protobuf::Arena* arena) const { |
3683 | 0 | ListTabletsResponsePB* n = new ListTabletsResponsePB; |
3684 | 0 | if (arena != NULL) { |
3685 | 0 | arena->Own(n); |
3686 | 0 | } |
3687 | 0 | return n; |
3688 | 0 | } |
3689 | | |
3690 | 216 | void ListTabletsResponsePB::Clear() { |
3691 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.ListTabletsResponsePB) |
3692 | 216 | ::google::protobuf::uint32 cached_has_bits = 0; |
3693 | | // Prevent compiler warnings about cached_has_bits being unused |
3694 | 216 | (void) cached_has_bits; |
3695 | | |
3696 | 216 | status_and_schema_.Clear(); |
3697 | 216 | cached_has_bits = _has_bits_[0]; |
3698 | 216 | if (cached_has_bits & 0x00000001u) { |
3699 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3700 | 0 | error_->Clear(); |
3701 | 0 | } |
3702 | 216 | _has_bits_.Clear(); |
3703 | 216 | _internal_metadata_.Clear(); |
3704 | 216 | } |
3705 | | |
3706 | | bool ListTabletsResponsePB::MergePartialFromCodedStream( |
3707 | 216 | ::google::protobuf::io::CodedInputStream* input) { |
3708 | 3.16k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3709 | 216 | ::google::protobuf::uint32 tag; |
3710 | | // @@protoc_insertion_point(parse_start:yb.tserver.ListTabletsResponsePB) |
3711 | 3.38k | for (;;) { |
3712 | 3.38k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3713 | 3.38k | tag = p.first; |
3714 | 3.38k | if (!p.second) goto handle_unusual216 ; |
3715 | 3.16k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3716 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
3717 | 0 | case 1: { |
3718 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3719 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3720 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3721 | 0 | input, mutable_error())); |
3722 | 0 | } else { |
3723 | 0 | goto handle_unusual; |
3724 | 0 | } |
3725 | 0 | break; |
3726 | 0 | } |
3727 | | |
3728 | | // repeated .yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB status_and_schema = 2; |
3729 | 3.16k | case 2: { |
3730 | 3.16k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3731 | 3.16k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3732 | 3.16k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_status_and_schema())); |
3733 | 3.16k | } else { |
3734 | 0 | goto handle_unusual; |
3735 | 0 | } |
3736 | 3.16k | break; |
3737 | 3.16k | } |
3738 | | |
3739 | 3.16k | default: { |
3740 | 216 | handle_unusual: |
3741 | 216 | if (tag == 0) { |
3742 | 216 | goto success; |
3743 | 216 | } |
3744 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3745 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3746 | 0 | break; |
3747 | 0 | } |
3748 | 3.16k | } |
3749 | 3.16k | } |
3750 | 216 | success: |
3751 | | // @@protoc_insertion_point(parse_success:yb.tserver.ListTabletsResponsePB) |
3752 | 216 | return true; |
3753 | 0 | failure: |
3754 | | // @@protoc_insertion_point(parse_failure:yb.tserver.ListTabletsResponsePB) |
3755 | 0 | return false; |
3756 | 216 | #undef DO_ |
3757 | 216 | } |
3758 | | |
3759 | | void ListTabletsResponsePB::SerializeWithCachedSizes( |
3760 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3761 | | // @@protoc_insertion_point(serialize_start:yb.tserver.ListTabletsResponsePB) |
3762 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3763 | 0 | (void) cached_has_bits; |
3764 | |
|
3765 | 0 | cached_has_bits = _has_bits_[0]; |
3766 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
3767 | 0 | if (cached_has_bits & 0x00000001u) { |
3768 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3769 | 0 | 1, *this->error_, output); |
3770 | 0 | } |
3771 | | |
3772 | | // repeated .yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB status_and_schema = 2; |
3773 | 0 | for (unsigned int i = 0, |
3774 | 0 | n = static_cast<unsigned int>(this->status_and_schema_size()); i < n; i++) { |
3775 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3776 | 0 | 2, this->status_and_schema(static_cast<int>(i)), output); |
3777 | 0 | } |
3778 | |
|
3779 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3780 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3781 | 0 | _internal_metadata_.unknown_fields(), output); |
3782 | 0 | } |
3783 | | // @@protoc_insertion_point(serialize_end:yb.tserver.ListTabletsResponsePB) |
3784 | 0 | } |
3785 | | |
3786 | | ::google::protobuf::uint8* ListTabletsResponsePB::InternalSerializeWithCachedSizesToArray( |
3787 | 217 | bool deterministic, ::google::protobuf::uint8* target) const { |
3788 | 217 | (void)deterministic; // Unused |
3789 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.ListTabletsResponsePB) |
3790 | 217 | ::google::protobuf::uint32 cached_has_bits = 0; |
3791 | 217 | (void) cached_has_bits; |
3792 | | |
3793 | 217 | cached_has_bits = _has_bits_[0]; |
3794 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
3795 | 217 | if (cached_has_bits & 0x00000001u) { |
3796 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3797 | 0 | InternalWriteMessageToArray( |
3798 | 0 | 1, *this->error_, deterministic, target); |
3799 | 0 | } |
3800 | | |
3801 | | // repeated .yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB status_and_schema = 2; |
3802 | 217 | for (unsigned int i = 0, |
3803 | 3.40k | n = static_cast<unsigned int>(this->status_and_schema_size()); i < n; i++3.19k ) { |
3804 | 3.19k | target = ::google::protobuf::internal::WireFormatLite:: |
3805 | 3.19k | InternalWriteMessageToArray( |
3806 | 3.19k | 2, this->status_and_schema(static_cast<int>(i)), deterministic, target); |
3807 | 3.19k | } |
3808 | | |
3809 | 217 | if (_internal_metadata_.have_unknown_fields()) { |
3810 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3811 | 0 | _internal_metadata_.unknown_fields(), target); |
3812 | 0 | } |
3813 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.ListTabletsResponsePB) |
3814 | 217 | return target; |
3815 | 217 | } |
3816 | | |
3817 | 434 | size_t ListTabletsResponsePB::ByteSizeLong() const { |
3818 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.ListTabletsResponsePB) |
3819 | 434 | size_t total_size = 0; |
3820 | | |
3821 | 434 | if (_internal_metadata_.have_unknown_fields()) { |
3822 | 0 | total_size += |
3823 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3824 | 0 | _internal_metadata_.unknown_fields()); |
3825 | 0 | } |
3826 | | // repeated .yb.tserver.ListTabletsResponsePB.StatusAndSchemaPB status_and_schema = 2; |
3827 | 434 | { |
3828 | 434 | unsigned int count = static_cast<unsigned int>(this->status_and_schema_size()); |
3829 | 434 | total_size += 1UL * count; |
3830 | 6.81k | for (unsigned int i = 0; i < count; i++6.38k ) { |
3831 | 6.38k | total_size += |
3832 | 6.38k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3833 | 6.38k | this->status_and_schema(static_cast<int>(i))); |
3834 | 6.38k | } |
3835 | 434 | } |
3836 | | |
3837 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
3838 | 434 | if (has_error()) { |
3839 | 0 | total_size += 1 + |
3840 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3841 | 0 | *this->error_); |
3842 | 0 | } |
3843 | | |
3844 | 434 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3845 | 434 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3846 | 434 | _cached_size_ = cached_size; |
3847 | 434 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3848 | 434 | return total_size; |
3849 | 434 | } |
3850 | | |
3851 | 0 | void ListTabletsResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
3852 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.ListTabletsResponsePB) |
3853 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3854 | 0 | const ListTabletsResponsePB* source = |
3855 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsResponsePB>( |
3856 | 0 | &from); |
3857 | 0 | if (source == NULL) { |
3858 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.ListTabletsResponsePB) |
3859 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3860 | 0 | } else { |
3861 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.ListTabletsResponsePB) |
3862 | 0 | MergeFrom(*source); |
3863 | 0 | } |
3864 | 0 | } |
3865 | | |
3866 | 0 | void ListTabletsResponsePB::MergeFrom(const ListTabletsResponsePB& from) { |
3867 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.ListTabletsResponsePB) |
3868 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3869 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3870 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3871 | 0 | (void) cached_has_bits; |
3872 | |
|
3873 | 0 | status_and_schema_.MergeFrom(from.status_and_schema_); |
3874 | 0 | if (from.has_error()) { |
3875 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
3876 | 0 | } |
3877 | 0 | } |
3878 | | |
3879 | 0 | void ListTabletsResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
3880 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.ListTabletsResponsePB) |
3881 | 0 | if (&from == this) return; |
3882 | 0 | Clear(); |
3883 | 0 | MergeFrom(from); |
3884 | 0 | } |
3885 | | |
3886 | 0 | void ListTabletsResponsePB::CopyFrom(const ListTabletsResponsePB& from) { |
3887 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.ListTabletsResponsePB) |
3888 | 0 | if (&from == this) return; |
3889 | 0 | Clear(); |
3890 | 0 | MergeFrom(from); |
3891 | 0 | } |
3892 | | |
3893 | 433 | bool ListTabletsResponsePB::IsInitialized() const { |
3894 | 433 | if (!::google::protobuf::internal::AllAreInitialized(this->status_and_schema())) return false0 ; |
3895 | 433 | if (has_error()) { |
3896 | 0 | if (!this->error_->IsInitialized()) return false; |
3897 | 0 | } |
3898 | 433 | return true; |
3899 | 433 | } |
3900 | | |
3901 | 0 | void ListTabletsResponsePB::Swap(ListTabletsResponsePB* other) { |
3902 | 0 | if (other == this) return; |
3903 | 0 | InternalSwap(other); |
3904 | 0 | } |
3905 | 6 | void ListTabletsResponsePB::InternalSwap(ListTabletsResponsePB* other) { |
3906 | 6 | using std::swap; |
3907 | 6 | status_and_schema_.InternalSwap(&other->status_and_schema_); |
3908 | 6 | swap(error_, other->error_); |
3909 | 6 | swap(_has_bits_[0], other->_has_bits_[0]); |
3910 | 6 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3911 | 6 | swap(_cached_size_, other->_cached_size_); |
3912 | 6 | } |
3913 | | |
3914 | 0 | ::google::protobuf::Metadata ListTabletsResponsePB::GetMetadata() const { |
3915 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3916 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
3917 | 0 | } |
3918 | | |
3919 | | |
3920 | | // =================================================================== |
3921 | | |
3922 | 26.8k | void NoOpRequestPB::InitAsDefaultInstance() { |
3923 | 26.8k | } |
3924 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3925 | | const int NoOpRequestPB::kTabletIdFieldNumber; |
3926 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3927 | | |
3928 | | NoOpRequestPB::NoOpRequestPB() |
3929 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3930 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3931 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsNoOpRequestPB(); |
3932 | 0 | } |
3933 | 26.8k | SharedCtor(); |
3934 | | // @@protoc_insertion_point(constructor:yb.tserver.NoOpRequestPB) |
3935 | 26.8k | } |
3936 | | NoOpRequestPB::NoOpRequestPB(const NoOpRequestPB& from) |
3937 | | : ::google::protobuf::Message(), |
3938 | | _internal_metadata_(NULL), |
3939 | | _has_bits_(from._has_bits_), |
3940 | 0 | _cached_size_(0) { |
3941 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3942 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3943 | 0 | if (from.has_tablet_id()) { |
3944 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
3945 | 0 | } |
3946 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.NoOpRequestPB) |
3947 | 0 | } |
3948 | | |
3949 | 26.8k | void NoOpRequestPB::SharedCtor() { |
3950 | 26.8k | _cached_size_ = 0; |
3951 | 26.8k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3952 | 26.8k | } |
3953 | | |
3954 | 0 | NoOpRequestPB::~NoOpRequestPB() { |
3955 | | // @@protoc_insertion_point(destructor:yb.tserver.NoOpRequestPB) |
3956 | 0 | SharedDtor(); |
3957 | 0 | } |
3958 | | |
3959 | 0 | void NoOpRequestPB::SharedDtor() { |
3960 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3961 | 0 | } |
3962 | | |
3963 | 0 | void NoOpRequestPB::SetCachedSize(int size) const { |
3964 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3965 | 0 | _cached_size_ = size; |
3966 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3967 | 0 | } |
3968 | 0 | const ::google::protobuf::Descriptor* NoOpRequestPB::descriptor() { |
3969 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
3970 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3971 | 0 | } |
3972 | | |
3973 | 0 | const NoOpRequestPB& NoOpRequestPB::default_instance() { |
3974 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsNoOpRequestPB(); |
3975 | 0 | return *internal_default_instance(); |
3976 | 0 | } |
3977 | | |
3978 | 0 | NoOpRequestPB* NoOpRequestPB::New(::google::protobuf::Arena* arena) const { |
3979 | 0 | NoOpRequestPB* n = new NoOpRequestPB; |
3980 | 0 | if (arena != NULL) { |
3981 | 0 | arena->Own(n); |
3982 | 0 | } |
3983 | 0 | return n; |
3984 | 0 | } |
3985 | | |
3986 | 0 | void NoOpRequestPB::Clear() { |
3987 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.NoOpRequestPB) |
3988 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3989 | | // Prevent compiler warnings about cached_has_bits being unused |
3990 | 0 | (void) cached_has_bits; |
3991 | |
|
3992 | 0 | cached_has_bits = _has_bits_[0]; |
3993 | 0 | if (cached_has_bits & 0x00000001u) { |
3994 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3995 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
3996 | 0 | } |
3997 | 0 | _has_bits_.Clear(); |
3998 | 0 | _internal_metadata_.Clear(); |
3999 | 0 | } |
4000 | | |
4001 | | bool NoOpRequestPB::MergePartialFromCodedStream( |
4002 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4003 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4004 | 0 | ::google::protobuf::uint32 tag; |
4005 | | // @@protoc_insertion_point(parse_start:yb.tserver.NoOpRequestPB) |
4006 | 0 | for (;;) { |
4007 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4008 | 0 | tag = p.first; |
4009 | 0 | if (!p.second) goto handle_unusual; |
4010 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4011 | | // optional bytes tablet_id = 1; |
4012 | 0 | case 1: { |
4013 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4014 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4015 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4016 | 0 | input, this->mutable_tablet_id())); |
4017 | 0 | } else { |
4018 | 0 | goto handle_unusual; |
4019 | 0 | } |
4020 | 0 | break; |
4021 | 0 | } |
4022 | | |
4023 | 0 | default: { |
4024 | 0 | handle_unusual: |
4025 | 0 | if (tag == 0) { |
4026 | 0 | goto success; |
4027 | 0 | } |
4028 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4029 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4030 | 0 | break; |
4031 | 0 | } |
4032 | 0 | } |
4033 | 0 | } |
4034 | 0 | success: |
4035 | | // @@protoc_insertion_point(parse_success:yb.tserver.NoOpRequestPB) |
4036 | 0 | return true; |
4037 | 0 | failure: |
4038 | | // @@protoc_insertion_point(parse_failure:yb.tserver.NoOpRequestPB) |
4039 | 0 | return false; |
4040 | 0 | #undef DO_ |
4041 | 0 | } |
4042 | | |
4043 | | void NoOpRequestPB::SerializeWithCachedSizes( |
4044 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4045 | | // @@protoc_insertion_point(serialize_start:yb.tserver.NoOpRequestPB) |
4046 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4047 | 0 | (void) cached_has_bits; |
4048 | |
|
4049 | 0 | cached_has_bits = _has_bits_[0]; |
4050 | | // optional bytes tablet_id = 1; |
4051 | 0 | if (cached_has_bits & 0x00000001u) { |
4052 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4053 | 0 | 1, this->tablet_id(), output); |
4054 | 0 | } |
4055 | |
|
4056 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4057 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4058 | 0 | _internal_metadata_.unknown_fields(), output); |
4059 | 0 | } |
4060 | | // @@protoc_insertion_point(serialize_end:yb.tserver.NoOpRequestPB) |
4061 | 0 | } |
4062 | | |
4063 | | ::google::protobuf::uint8* NoOpRequestPB::InternalSerializeWithCachedSizesToArray( |
4064 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4065 | 0 | (void)deterministic; // Unused |
4066 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.NoOpRequestPB) |
4067 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4068 | 0 | (void) cached_has_bits; |
4069 | |
|
4070 | 0 | cached_has_bits = _has_bits_[0]; |
4071 | | // optional bytes tablet_id = 1; |
4072 | 0 | if (cached_has_bits & 0x00000001u) { |
4073 | 0 | target = |
4074 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4075 | 0 | 1, this->tablet_id(), target); |
4076 | 0 | } |
4077 | |
|
4078 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4079 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4080 | 0 | _internal_metadata_.unknown_fields(), target); |
4081 | 0 | } |
4082 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.NoOpRequestPB) |
4083 | 0 | return target; |
4084 | 0 | } |
4085 | | |
4086 | 0 | size_t NoOpRequestPB::ByteSizeLong() const { |
4087 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.NoOpRequestPB) |
4088 | 0 | size_t total_size = 0; |
4089 | |
|
4090 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4091 | 0 | total_size += |
4092 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4093 | 0 | _internal_metadata_.unknown_fields()); |
4094 | 0 | } |
4095 | | // optional bytes tablet_id = 1; |
4096 | 0 | if (has_tablet_id()) { |
4097 | 0 | total_size += 1 + |
4098 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4099 | 0 | this->tablet_id()); |
4100 | 0 | } |
4101 | |
|
4102 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4103 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4104 | 0 | _cached_size_ = cached_size; |
4105 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4106 | 0 | return total_size; |
4107 | 0 | } |
4108 | | |
4109 | 0 | void NoOpRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4110 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.NoOpRequestPB) |
4111 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4112 | 0 | const NoOpRequestPB* source = |
4113 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const NoOpRequestPB>( |
4114 | 0 | &from); |
4115 | 0 | if (source == NULL) { |
4116 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.NoOpRequestPB) |
4117 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4118 | 0 | } else { |
4119 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.NoOpRequestPB) |
4120 | 0 | MergeFrom(*source); |
4121 | 0 | } |
4122 | 0 | } |
4123 | | |
4124 | 0 | void NoOpRequestPB::MergeFrom(const NoOpRequestPB& from) { |
4125 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.NoOpRequestPB) |
4126 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4127 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4128 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4129 | 0 | (void) cached_has_bits; |
4130 | |
|
4131 | 0 | if (from.has_tablet_id()) { |
4132 | 0 | set_has_tablet_id(); |
4133 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4134 | 0 | } |
4135 | 0 | } |
4136 | | |
4137 | 0 | void NoOpRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4138 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.NoOpRequestPB) |
4139 | 0 | if (&from == this) return; |
4140 | 0 | Clear(); |
4141 | 0 | MergeFrom(from); |
4142 | 0 | } |
4143 | | |
4144 | 0 | void NoOpRequestPB::CopyFrom(const NoOpRequestPB& from) { |
4145 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.NoOpRequestPB) |
4146 | 0 | if (&from == this) return; |
4147 | 0 | Clear(); |
4148 | 0 | MergeFrom(from); |
4149 | 0 | } |
4150 | | |
4151 | 0 | bool NoOpRequestPB::IsInitialized() const { |
4152 | 0 | return true; |
4153 | 0 | } |
4154 | | |
4155 | 0 | void NoOpRequestPB::Swap(NoOpRequestPB* other) { |
4156 | 0 | if (other == this) return; |
4157 | 0 | InternalSwap(other); |
4158 | 0 | } |
4159 | 0 | void NoOpRequestPB::InternalSwap(NoOpRequestPB* other) { |
4160 | 0 | using std::swap; |
4161 | 0 | tablet_id_.Swap(&other->tablet_id_); |
4162 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4163 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4164 | 0 | swap(_cached_size_, other->_cached_size_); |
4165 | 0 | } |
4166 | | |
4167 | 0 | ::google::protobuf::Metadata NoOpRequestPB::GetMetadata() const { |
4168 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4169 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
4170 | 0 | } |
4171 | | |
4172 | | |
4173 | | // =================================================================== |
4174 | | |
4175 | 26.8k | void NoOpResponsePB::InitAsDefaultInstance() { |
4176 | 26.8k | ::yb::tserver::_NoOpResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
4177 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
4178 | 26.8k | } |
4179 | 0 | void NoOpResponsePB::clear_error() { |
4180 | 0 | if (error_ != NULL) error_->Clear(); |
4181 | 0 | clear_has_error(); |
4182 | 0 | } |
4183 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4184 | | const int NoOpResponsePB::kErrorFieldNumber; |
4185 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4186 | | |
4187 | | NoOpResponsePB::NoOpResponsePB() |
4188 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4189 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4190 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsNoOpResponsePB(); |
4191 | 0 | } |
4192 | 26.8k | SharedCtor(); |
4193 | | // @@protoc_insertion_point(constructor:yb.tserver.NoOpResponsePB) |
4194 | 26.8k | } |
4195 | | NoOpResponsePB::NoOpResponsePB(const NoOpResponsePB& from) |
4196 | | : ::google::protobuf::Message(), |
4197 | | _internal_metadata_(NULL), |
4198 | | _has_bits_(from._has_bits_), |
4199 | 0 | _cached_size_(0) { |
4200 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4201 | 0 | if (from.has_error()) { |
4202 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
4203 | 0 | } else { |
4204 | 0 | error_ = NULL; |
4205 | 0 | } |
4206 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.NoOpResponsePB) |
4207 | 0 | } |
4208 | | |
4209 | 26.8k | void NoOpResponsePB::SharedCtor() { |
4210 | 26.8k | _cached_size_ = 0; |
4211 | 26.8k | error_ = NULL; |
4212 | 26.8k | } |
4213 | | |
4214 | 0 | NoOpResponsePB::~NoOpResponsePB() { |
4215 | | // @@protoc_insertion_point(destructor:yb.tserver.NoOpResponsePB) |
4216 | 0 | SharedDtor(); |
4217 | 0 | } |
4218 | | |
4219 | 0 | void NoOpResponsePB::SharedDtor() { |
4220 | 0 | if (this != internal_default_instance()) delete error_; |
4221 | 0 | } |
4222 | | |
4223 | 0 | void NoOpResponsePB::SetCachedSize(int size) const { |
4224 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4225 | 0 | _cached_size_ = size; |
4226 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4227 | 0 | } |
4228 | 0 | const ::google::protobuf::Descriptor* NoOpResponsePB::descriptor() { |
4229 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4230 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4231 | 0 | } |
4232 | | |
4233 | 0 | const NoOpResponsePB& NoOpResponsePB::default_instance() { |
4234 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsNoOpResponsePB(); |
4235 | 0 | return *internal_default_instance(); |
4236 | 0 | } |
4237 | | |
4238 | 0 | NoOpResponsePB* NoOpResponsePB::New(::google::protobuf::Arena* arena) const { |
4239 | 0 | NoOpResponsePB* n = new NoOpResponsePB; |
4240 | 0 | if (arena != NULL) { |
4241 | 0 | arena->Own(n); |
4242 | 0 | } |
4243 | 0 | return n; |
4244 | 0 | } |
4245 | | |
4246 | 0 | void NoOpResponsePB::Clear() { |
4247 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.NoOpResponsePB) |
4248 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4249 | | // Prevent compiler warnings about cached_has_bits being unused |
4250 | 0 | (void) cached_has_bits; |
4251 | |
|
4252 | 0 | cached_has_bits = _has_bits_[0]; |
4253 | 0 | if (cached_has_bits & 0x00000001u) { |
4254 | 0 | GOOGLE_DCHECK(error_ != NULL); |
4255 | 0 | error_->Clear(); |
4256 | 0 | } |
4257 | 0 | _has_bits_.Clear(); |
4258 | 0 | _internal_metadata_.Clear(); |
4259 | 0 | } |
4260 | | |
4261 | | bool NoOpResponsePB::MergePartialFromCodedStream( |
4262 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4263 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4264 | 0 | ::google::protobuf::uint32 tag; |
4265 | | // @@protoc_insertion_point(parse_start:yb.tserver.NoOpResponsePB) |
4266 | 0 | for (;;) { |
4267 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4268 | 0 | tag = p.first; |
4269 | 0 | if (!p.second) goto handle_unusual; |
4270 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4271 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
4272 | 0 | case 1: { |
4273 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4274 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4275 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4276 | 0 | input, mutable_error())); |
4277 | 0 | } else { |
4278 | 0 | goto handle_unusual; |
4279 | 0 | } |
4280 | 0 | break; |
4281 | 0 | } |
4282 | | |
4283 | 0 | default: { |
4284 | 0 | handle_unusual: |
4285 | 0 | if (tag == 0) { |
4286 | 0 | goto success; |
4287 | 0 | } |
4288 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4289 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4290 | 0 | break; |
4291 | 0 | } |
4292 | 0 | } |
4293 | 0 | } |
4294 | 0 | success: |
4295 | | // @@protoc_insertion_point(parse_success:yb.tserver.NoOpResponsePB) |
4296 | 0 | return true; |
4297 | 0 | failure: |
4298 | | // @@protoc_insertion_point(parse_failure:yb.tserver.NoOpResponsePB) |
4299 | 0 | return false; |
4300 | 0 | #undef DO_ |
4301 | 0 | } |
4302 | | |
4303 | | void NoOpResponsePB::SerializeWithCachedSizes( |
4304 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4305 | | // @@protoc_insertion_point(serialize_start:yb.tserver.NoOpResponsePB) |
4306 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4307 | 0 | (void) cached_has_bits; |
4308 | |
|
4309 | 0 | cached_has_bits = _has_bits_[0]; |
4310 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
4311 | 0 | if (cached_has_bits & 0x00000001u) { |
4312 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4313 | 0 | 1, *this->error_, output); |
4314 | 0 | } |
4315 | |
|
4316 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4317 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4318 | 0 | _internal_metadata_.unknown_fields(), output); |
4319 | 0 | } |
4320 | | // @@protoc_insertion_point(serialize_end:yb.tserver.NoOpResponsePB) |
4321 | 0 | } |
4322 | | |
4323 | | ::google::protobuf::uint8* NoOpResponsePB::InternalSerializeWithCachedSizesToArray( |
4324 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4325 | 0 | (void)deterministic; // Unused |
4326 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.NoOpResponsePB) |
4327 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4328 | 0 | (void) cached_has_bits; |
4329 | |
|
4330 | 0 | cached_has_bits = _has_bits_[0]; |
4331 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
4332 | 0 | if (cached_has_bits & 0x00000001u) { |
4333 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4334 | 0 | InternalWriteMessageToArray( |
4335 | 0 | 1, *this->error_, deterministic, target); |
4336 | 0 | } |
4337 | |
|
4338 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4339 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4340 | 0 | _internal_metadata_.unknown_fields(), target); |
4341 | 0 | } |
4342 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.NoOpResponsePB) |
4343 | 0 | return target; |
4344 | 0 | } |
4345 | | |
4346 | 0 | size_t NoOpResponsePB::ByteSizeLong() const { |
4347 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.NoOpResponsePB) |
4348 | 0 | size_t total_size = 0; |
4349 | |
|
4350 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4351 | 0 | total_size += |
4352 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4353 | 0 | _internal_metadata_.unknown_fields()); |
4354 | 0 | } |
4355 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
4356 | 0 | if (has_error()) { |
4357 | 0 | total_size += 1 + |
4358 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4359 | 0 | *this->error_); |
4360 | 0 | } |
4361 | |
|
4362 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4363 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4364 | 0 | _cached_size_ = cached_size; |
4365 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4366 | 0 | return total_size; |
4367 | 0 | } |
4368 | | |
4369 | 0 | void NoOpResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4370 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.NoOpResponsePB) |
4371 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4372 | 0 | const NoOpResponsePB* source = |
4373 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const NoOpResponsePB>( |
4374 | 0 | &from); |
4375 | 0 | if (source == NULL) { |
4376 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.NoOpResponsePB) |
4377 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4378 | 0 | } else { |
4379 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.NoOpResponsePB) |
4380 | 0 | MergeFrom(*source); |
4381 | 0 | } |
4382 | 0 | } |
4383 | | |
4384 | 0 | void NoOpResponsePB::MergeFrom(const NoOpResponsePB& from) { |
4385 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.NoOpResponsePB) |
4386 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4387 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4388 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4389 | 0 | (void) cached_has_bits; |
4390 | |
|
4391 | 0 | if (from.has_error()) { |
4392 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
4393 | 0 | } |
4394 | 0 | } |
4395 | | |
4396 | 0 | void NoOpResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4397 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.NoOpResponsePB) |
4398 | 0 | if (&from == this) return; |
4399 | 0 | Clear(); |
4400 | 0 | MergeFrom(from); |
4401 | 0 | } |
4402 | | |
4403 | 0 | void NoOpResponsePB::CopyFrom(const NoOpResponsePB& from) { |
4404 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.NoOpResponsePB) |
4405 | 0 | if (&from == this) return; |
4406 | 0 | Clear(); |
4407 | 0 | MergeFrom(from); |
4408 | 0 | } |
4409 | | |
4410 | 0 | bool NoOpResponsePB::IsInitialized() const { |
4411 | 0 | if (has_error()) { |
4412 | 0 | if (!this->error_->IsInitialized()) return false; |
4413 | 0 | } |
4414 | 0 | return true; |
4415 | 0 | } |
4416 | | |
4417 | 0 | void NoOpResponsePB::Swap(NoOpResponsePB* other) { |
4418 | 0 | if (other == this) return; |
4419 | 0 | InternalSwap(other); |
4420 | 0 | } |
4421 | 0 | void NoOpResponsePB::InternalSwap(NoOpResponsePB* other) { |
4422 | 0 | using std::swap; |
4423 | 0 | swap(error_, other->error_); |
4424 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4425 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4426 | 0 | swap(_cached_size_, other->_cached_size_); |
4427 | 0 | } |
4428 | | |
4429 | 0 | ::google::protobuf::Metadata NoOpResponsePB::GetMetadata() const { |
4430 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4431 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
4432 | 0 | } |
4433 | | |
4434 | | |
4435 | | // =================================================================== |
4436 | | |
4437 | 26.8k | void VerifyTableRowRangeRequestPB::InitAsDefaultInstance() { |
4438 | 26.8k | } |
4439 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4440 | | const int VerifyTableRowRangeRequestPB::kTabletIdFieldNumber; |
4441 | | const int VerifyTableRowRangeRequestPB::kIndexIdsFieldNumber; |
4442 | | const int VerifyTableRowRangeRequestPB::kStartKeyFieldNumber; |
4443 | | const int VerifyTableRowRangeRequestPB::kNumRowsFieldNumber; |
4444 | | const int VerifyTableRowRangeRequestPB::kReadTimeFieldNumber; |
4445 | | const int VerifyTableRowRangeRequestPB::kPropagatedHybridTimeFieldNumber; |
4446 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4447 | | |
4448 | | VerifyTableRowRangeRequestPB::VerifyTableRowRangeRequestPB() |
4449 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4450 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4451 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsVerifyTableRowRangeRequestPB(); |
4452 | 0 | } |
4453 | 26.8k | SharedCtor(); |
4454 | | // @@protoc_insertion_point(constructor:yb.tserver.VerifyTableRowRangeRequestPB) |
4455 | 26.8k | } |
4456 | | VerifyTableRowRangeRequestPB::VerifyTableRowRangeRequestPB(const VerifyTableRowRangeRequestPB& from) |
4457 | | : ::google::protobuf::Message(), |
4458 | | _internal_metadata_(NULL), |
4459 | | _has_bits_(from._has_bits_), |
4460 | | _cached_size_(0), |
4461 | 0 | index_ids_(from.index_ids_) { |
4462 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4463 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4464 | 0 | if (from.has_tablet_id()) { |
4465 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4466 | 0 | } |
4467 | 0 | start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4468 | 0 | if (from.has_start_key()) { |
4469 | 0 | start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_); |
4470 | 0 | } |
4471 | 0 | ::memcpy(&read_time_, &from.read_time_, |
4472 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&num_rows_) - |
4473 | 0 | reinterpret_cast<char*>(&read_time_)) + sizeof(num_rows_)); |
4474 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.VerifyTableRowRangeRequestPB) |
4475 | 0 | } |
4476 | | |
4477 | 26.8k | void VerifyTableRowRangeRequestPB::SharedCtor() { |
4478 | 26.8k | _cached_size_ = 0; |
4479 | 26.8k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4480 | 26.8k | start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4481 | 26.8k | ::memset(&read_time_, 0, static_cast<size_t>( |
4482 | 26.8k | reinterpret_cast<char*>(&num_rows_) - |
4483 | 26.8k | reinterpret_cast<char*>(&read_time_)) + sizeof(num_rows_)); |
4484 | 26.8k | } |
4485 | | |
4486 | 0 | VerifyTableRowRangeRequestPB::~VerifyTableRowRangeRequestPB() { |
4487 | | // @@protoc_insertion_point(destructor:yb.tserver.VerifyTableRowRangeRequestPB) |
4488 | 0 | SharedDtor(); |
4489 | 0 | } |
4490 | | |
4491 | 0 | void VerifyTableRowRangeRequestPB::SharedDtor() { |
4492 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4493 | 0 | start_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4494 | 0 | } |
4495 | | |
4496 | 0 | void VerifyTableRowRangeRequestPB::SetCachedSize(int size) const { |
4497 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4498 | 0 | _cached_size_ = size; |
4499 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4500 | 0 | } |
4501 | 0 | const ::google::protobuf::Descriptor* VerifyTableRowRangeRequestPB::descriptor() { |
4502 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4503 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4504 | 0 | } |
4505 | | |
4506 | 0 | const VerifyTableRowRangeRequestPB& VerifyTableRowRangeRequestPB::default_instance() { |
4507 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsVerifyTableRowRangeRequestPB(); |
4508 | 0 | return *internal_default_instance(); |
4509 | 0 | } |
4510 | | |
4511 | 0 | VerifyTableRowRangeRequestPB* VerifyTableRowRangeRequestPB::New(::google::protobuf::Arena* arena) const { |
4512 | 0 | VerifyTableRowRangeRequestPB* n = new VerifyTableRowRangeRequestPB; |
4513 | 0 | if (arena != NULL) { |
4514 | 0 | arena->Own(n); |
4515 | 0 | } |
4516 | 0 | return n; |
4517 | 0 | } |
4518 | | |
4519 | 0 | void VerifyTableRowRangeRequestPB::Clear() { |
4520 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4521 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4522 | | // Prevent compiler warnings about cached_has_bits being unused |
4523 | 0 | (void) cached_has_bits; |
4524 | |
|
4525 | 0 | index_ids_.Clear(); |
4526 | 0 | cached_has_bits = _has_bits_[0]; |
4527 | 0 | if (cached_has_bits & 3u) { |
4528 | 0 | if (cached_has_bits & 0x00000001u) { |
4529 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4530 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
4531 | 0 | } |
4532 | 0 | if (cached_has_bits & 0x00000002u) { |
4533 | 0 | GOOGLE_DCHECK(!start_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4534 | 0 | (*start_key_.UnsafeRawStringPointer())->clear(); |
4535 | 0 | } |
4536 | 0 | } |
4537 | 0 | if (cached_has_bits & 28u) { |
4538 | 0 | ::memset(&read_time_, 0, static_cast<size_t>( |
4539 | 0 | reinterpret_cast<char*>(&num_rows_) - |
4540 | 0 | reinterpret_cast<char*>(&read_time_)) + sizeof(num_rows_)); |
4541 | 0 | } |
4542 | 0 | _has_bits_.Clear(); |
4543 | 0 | _internal_metadata_.Clear(); |
4544 | 0 | } |
4545 | | |
4546 | | bool VerifyTableRowRangeRequestPB::MergePartialFromCodedStream( |
4547 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4548 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4549 | 0 | ::google::protobuf::uint32 tag; |
4550 | | // @@protoc_insertion_point(parse_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4551 | 0 | for (;;) { |
4552 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4553 | 0 | tag = p.first; |
4554 | 0 | if (!p.second) goto handle_unusual; |
4555 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4556 | | // required bytes tablet_id = 1; |
4557 | 0 | case 1: { |
4558 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4559 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4560 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4561 | 0 | input, this->mutable_tablet_id())); |
4562 | 0 | } else { |
4563 | 0 | goto handle_unusual; |
4564 | 0 | } |
4565 | 0 | break; |
4566 | 0 | } |
4567 | | |
4568 | | // repeated bytes index_ids = 2; |
4569 | 0 | case 2: { |
4570 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4571 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4572 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4573 | 0 | input, this->add_index_ids())); |
4574 | 0 | } else { |
4575 | 0 | goto handle_unusual; |
4576 | 0 | } |
4577 | 0 | break; |
4578 | 0 | } |
4579 | | |
4580 | | // optional bytes start_key = 3; |
4581 | 0 | case 3: { |
4582 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4583 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4584 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4585 | 0 | input, this->mutable_start_key())); |
4586 | 0 | } else { |
4587 | 0 | goto handle_unusual; |
4588 | 0 | } |
4589 | 0 | break; |
4590 | 0 | } |
4591 | | |
4592 | | // optional uint32 num_rows = 4; |
4593 | 0 | case 4: { |
4594 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4595 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4596 | 0 | set_has_num_rows(); |
4597 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4598 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4599 | 0 | input, &num_rows_))); |
4600 | 0 | } else { |
4601 | 0 | goto handle_unusual; |
4602 | 0 | } |
4603 | 0 | break; |
4604 | 0 | } |
4605 | | |
4606 | | // optional fixed64 read_time = 5; |
4607 | 0 | case 5: { |
4608 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4609 | 0 | static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { |
4610 | 0 | set_has_read_time(); |
4611 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4612 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
4613 | 0 | input, &read_time_))); |
4614 | 0 | } else { |
4615 | 0 | goto handle_unusual; |
4616 | 0 | } |
4617 | 0 | break; |
4618 | 0 | } |
4619 | | |
4620 | | // optional fixed64 propagated_hybrid_time = 6; |
4621 | 0 | case 6: { |
4622 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4623 | 0 | static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { |
4624 | 0 | set_has_propagated_hybrid_time(); |
4625 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4626 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
4627 | 0 | input, &propagated_hybrid_time_))); |
4628 | 0 | } else { |
4629 | 0 | goto handle_unusual; |
4630 | 0 | } |
4631 | 0 | break; |
4632 | 0 | } |
4633 | | |
4634 | 0 | default: { |
4635 | 0 | handle_unusual: |
4636 | 0 | if (tag == 0) { |
4637 | 0 | goto success; |
4638 | 0 | } |
4639 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4640 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4641 | 0 | break; |
4642 | 0 | } |
4643 | 0 | } |
4644 | 0 | } |
4645 | 0 | success: |
4646 | | // @@protoc_insertion_point(parse_success:yb.tserver.VerifyTableRowRangeRequestPB) |
4647 | 0 | return true; |
4648 | 0 | failure: |
4649 | | // @@protoc_insertion_point(parse_failure:yb.tserver.VerifyTableRowRangeRequestPB) |
4650 | 0 | return false; |
4651 | 0 | #undef DO_ |
4652 | 0 | } |
4653 | | |
4654 | | void VerifyTableRowRangeRequestPB::SerializeWithCachedSizes( |
4655 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4656 | | // @@protoc_insertion_point(serialize_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4657 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4658 | 0 | (void) cached_has_bits; |
4659 | |
|
4660 | 0 | cached_has_bits = _has_bits_[0]; |
4661 | | // required bytes tablet_id = 1; |
4662 | 0 | if (cached_has_bits & 0x00000001u) { |
4663 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4664 | 0 | 1, this->tablet_id(), output); |
4665 | 0 | } |
4666 | | |
4667 | | // repeated bytes index_ids = 2; |
4668 | 0 | for (int i = 0, n = this->index_ids_size(); i < n; i++) { |
4669 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
4670 | 0 | 2, this->index_ids(i), output); |
4671 | 0 | } |
4672 | | |
4673 | | // optional bytes start_key = 3; |
4674 | 0 | if (cached_has_bits & 0x00000002u) { |
4675 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4676 | 0 | 3, this->start_key(), output); |
4677 | 0 | } |
4678 | | |
4679 | | // optional uint32 num_rows = 4; |
4680 | 0 | if (cached_has_bits & 0x00000010u) { |
4681 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->num_rows(), output); |
4682 | 0 | } |
4683 | | |
4684 | | // optional fixed64 read_time = 5; |
4685 | 0 | if (cached_has_bits & 0x00000004u) { |
4686 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->read_time(), output); |
4687 | 0 | } |
4688 | | |
4689 | | // optional fixed64 propagated_hybrid_time = 6; |
4690 | 0 | if (cached_has_bits & 0x00000008u) { |
4691 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->propagated_hybrid_time(), output); |
4692 | 0 | } |
4693 | |
|
4694 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4695 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4696 | 0 | _internal_metadata_.unknown_fields(), output); |
4697 | 0 | } |
4698 | | // @@protoc_insertion_point(serialize_end:yb.tserver.VerifyTableRowRangeRequestPB) |
4699 | 0 | } |
4700 | | |
4701 | | ::google::protobuf::uint8* VerifyTableRowRangeRequestPB::InternalSerializeWithCachedSizesToArray( |
4702 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4703 | 0 | (void)deterministic; // Unused |
4704 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4705 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4706 | 0 | (void) cached_has_bits; |
4707 | |
|
4708 | 0 | cached_has_bits = _has_bits_[0]; |
4709 | | // required bytes tablet_id = 1; |
4710 | 0 | if (cached_has_bits & 0x00000001u) { |
4711 | 0 | target = |
4712 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4713 | 0 | 1, this->tablet_id(), target); |
4714 | 0 | } |
4715 | | |
4716 | | // repeated bytes index_ids = 2; |
4717 | 0 | for (int i = 0, n = this->index_ids_size(); i < n; i++) { |
4718 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4719 | 0 | WriteBytesToArray(2, this->index_ids(i), target); |
4720 | 0 | } |
4721 | | |
4722 | | // optional bytes start_key = 3; |
4723 | 0 | if (cached_has_bits & 0x00000002u) { |
4724 | 0 | target = |
4725 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4726 | 0 | 3, this->start_key(), target); |
4727 | 0 | } |
4728 | | |
4729 | | // optional uint32 num_rows = 4; |
4730 | 0 | if (cached_has_bits & 0x00000010u) { |
4731 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->num_rows(), target); |
4732 | 0 | } |
4733 | | |
4734 | | // optional fixed64 read_time = 5; |
4735 | 0 | if (cached_has_bits & 0x00000004u) { |
4736 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->read_time(), target); |
4737 | 0 | } |
4738 | | |
4739 | | // optional fixed64 propagated_hybrid_time = 6; |
4740 | 0 | if (cached_has_bits & 0x00000008u) { |
4741 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->propagated_hybrid_time(), target); |
4742 | 0 | } |
4743 | |
|
4744 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4745 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4746 | 0 | _internal_metadata_.unknown_fields(), target); |
4747 | 0 | } |
4748 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.VerifyTableRowRangeRequestPB) |
4749 | 0 | return target; |
4750 | 0 | } |
4751 | | |
4752 | 0 | size_t VerifyTableRowRangeRequestPB::ByteSizeLong() const { |
4753 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4754 | 0 | size_t total_size = 0; |
4755 | |
|
4756 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4757 | 0 | total_size += |
4758 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4759 | 0 | _internal_metadata_.unknown_fields()); |
4760 | 0 | } |
4761 | | // required bytes tablet_id = 1; |
4762 | 0 | if (has_tablet_id()) { |
4763 | 0 | total_size += 1 + |
4764 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4765 | 0 | this->tablet_id()); |
4766 | 0 | } |
4767 | | // repeated bytes index_ids = 2; |
4768 | 0 | total_size += 1 * |
4769 | 0 | ::google::protobuf::internal::FromIntSize(this->index_ids_size()); |
4770 | 0 | for (int i = 0, n = this->index_ids_size(); i < n; i++) { |
4771 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
4772 | 0 | this->index_ids(i)); |
4773 | 0 | } |
4774 | |
|
4775 | 0 | if (_has_bits_[0 / 32] & 30u) { |
4776 | | // optional bytes start_key = 3; |
4777 | 0 | if (has_start_key()) { |
4778 | 0 | total_size += 1 + |
4779 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4780 | 0 | this->start_key()); |
4781 | 0 | } |
4782 | | |
4783 | | // optional fixed64 read_time = 5; |
4784 | 0 | if (has_read_time()) { |
4785 | 0 | total_size += 1 + 8; |
4786 | 0 | } |
4787 | | |
4788 | | // optional fixed64 propagated_hybrid_time = 6; |
4789 | 0 | if (has_propagated_hybrid_time()) { |
4790 | 0 | total_size += 1 + 8; |
4791 | 0 | } |
4792 | | |
4793 | | // optional uint32 num_rows = 4; |
4794 | 0 | if (has_num_rows()) { |
4795 | 0 | total_size += 1 + |
4796 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4797 | 0 | this->num_rows()); |
4798 | 0 | } |
4799 | |
|
4800 | 0 | } |
4801 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4802 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4803 | 0 | _cached_size_ = cached_size; |
4804 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4805 | 0 | return total_size; |
4806 | 0 | } |
4807 | | |
4808 | 0 | void VerifyTableRowRangeRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4809 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4810 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4811 | 0 | const VerifyTableRowRangeRequestPB* source = |
4812 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const VerifyTableRowRangeRequestPB>( |
4813 | 0 | &from); |
4814 | 0 | if (source == NULL) { |
4815 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.VerifyTableRowRangeRequestPB) |
4816 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4817 | 0 | } else { |
4818 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.VerifyTableRowRangeRequestPB) |
4819 | 0 | MergeFrom(*source); |
4820 | 0 | } |
4821 | 0 | } |
4822 | | |
4823 | 0 | void VerifyTableRowRangeRequestPB::MergeFrom(const VerifyTableRowRangeRequestPB& from) { |
4824 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4825 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4826 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4827 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4828 | 0 | (void) cached_has_bits; |
4829 | |
|
4830 | 0 | index_ids_.MergeFrom(from.index_ids_); |
4831 | 0 | cached_has_bits = from._has_bits_[0]; |
4832 | 0 | if (cached_has_bits & 31u) { |
4833 | 0 | if (cached_has_bits & 0x00000001u) { |
4834 | 0 | set_has_tablet_id(); |
4835 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4836 | 0 | } |
4837 | 0 | if (cached_has_bits & 0x00000002u) { |
4838 | 0 | set_has_start_key(); |
4839 | 0 | start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_); |
4840 | 0 | } |
4841 | 0 | if (cached_has_bits & 0x00000004u) { |
4842 | 0 | read_time_ = from.read_time_; |
4843 | 0 | } |
4844 | 0 | if (cached_has_bits & 0x00000008u) { |
4845 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
4846 | 0 | } |
4847 | 0 | if (cached_has_bits & 0x00000010u) { |
4848 | 0 | num_rows_ = from.num_rows_; |
4849 | 0 | } |
4850 | 0 | _has_bits_[0] |= cached_has_bits; |
4851 | 0 | } |
4852 | 0 | } |
4853 | | |
4854 | 0 | void VerifyTableRowRangeRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4855 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4856 | 0 | if (&from == this) return; |
4857 | 0 | Clear(); |
4858 | 0 | MergeFrom(from); |
4859 | 0 | } |
4860 | | |
4861 | 0 | void VerifyTableRowRangeRequestPB::CopyFrom(const VerifyTableRowRangeRequestPB& from) { |
4862 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.VerifyTableRowRangeRequestPB) |
4863 | 0 | if (&from == this) return; |
4864 | 0 | Clear(); |
4865 | 0 | MergeFrom(from); |
4866 | 0 | } |
4867 | | |
4868 | 0 | bool VerifyTableRowRangeRequestPB::IsInitialized() const { |
4869 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
4870 | 0 | return true; |
4871 | 0 | } |
4872 | | |
4873 | 0 | void VerifyTableRowRangeRequestPB::Swap(VerifyTableRowRangeRequestPB* other) { |
4874 | 0 | if (other == this) return; |
4875 | 0 | InternalSwap(other); |
4876 | 0 | } |
4877 | 0 | void VerifyTableRowRangeRequestPB::InternalSwap(VerifyTableRowRangeRequestPB* other) { |
4878 | 0 | using std::swap; |
4879 | 0 | index_ids_.InternalSwap(&other->index_ids_); |
4880 | 0 | tablet_id_.Swap(&other->tablet_id_); |
4881 | 0 | start_key_.Swap(&other->start_key_); |
4882 | 0 | swap(read_time_, other->read_time_); |
4883 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
4884 | 0 | swap(num_rows_, other->num_rows_); |
4885 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4886 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4887 | 0 | swap(_cached_size_, other->_cached_size_); |
4888 | 0 | } |
4889 | | |
4890 | 0 | ::google::protobuf::Metadata VerifyTableRowRangeRequestPB::GetMetadata() const { |
4891 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4892 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
4893 | 0 | } |
4894 | | |
4895 | | |
4896 | | // =================================================================== |
4897 | | |
4898 | 26.8k | VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse() {} |
4899 | 0 | VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} |
4900 | 0 | void VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::MergeFrom(const VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse& other) { |
4901 | 0 | MergeFromInternal(other); |
4902 | 0 | } |
4903 | 0 | ::google::protobuf::Metadata VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::GetMetadata() const { |
4904 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4905 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[9]; |
4906 | 0 | } |
4907 | | void VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::MergeFrom( |
4908 | 0 | const ::google::protobuf::Message& other) { |
4909 | 0 | ::google::protobuf::Message::MergeFrom(other); |
4910 | 0 | } |
4911 | | |
4912 | | |
4913 | | // =================================================================== |
4914 | | |
4915 | 26.8k | void VerifyTableRowRangeResponsePB::InitAsDefaultInstance() { |
4916 | 26.8k | ::yb::tserver::_VerifyTableRowRangeResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
4917 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
4918 | 26.8k | } |
4919 | 0 | void VerifyTableRowRangeResponsePB::clear_error() { |
4920 | 0 | if (error_ != NULL) error_->Clear(); |
4921 | 0 | clear_has_error(); |
4922 | 0 | } |
4923 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4924 | | const int VerifyTableRowRangeResponsePB::kErrorFieldNumber; |
4925 | | const int VerifyTableRowRangeResponsePB::kConsistencyStatsFieldNumber; |
4926 | | const int VerifyTableRowRangeResponsePB::kVerifiedUntilFieldNumber; |
4927 | | const int VerifyTableRowRangeResponsePB::kPropagatedHybridTimeFieldNumber; |
4928 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4929 | | |
4930 | | VerifyTableRowRangeResponsePB::VerifyTableRowRangeResponsePB() |
4931 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4932 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4933 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsVerifyTableRowRangeResponsePB(); |
4934 | 0 | } |
4935 | 26.8k | SharedCtor(); |
4936 | | // @@protoc_insertion_point(constructor:yb.tserver.VerifyTableRowRangeResponsePB) |
4937 | 26.8k | } |
4938 | | VerifyTableRowRangeResponsePB::VerifyTableRowRangeResponsePB(const VerifyTableRowRangeResponsePB& from) |
4939 | | : ::google::protobuf::Message(), |
4940 | | _internal_metadata_(NULL), |
4941 | | _has_bits_(from._has_bits_), |
4942 | 0 | _cached_size_(0) { |
4943 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4944 | 0 | consistency_stats_.MergeFrom(from.consistency_stats_); |
4945 | 0 | verified_until_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4946 | 0 | if (from.has_verified_until()) { |
4947 | 0 | verified_until_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.verified_until_); |
4948 | 0 | } |
4949 | 0 | if (from.has_error()) { |
4950 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
4951 | 0 | } else { |
4952 | 0 | error_ = NULL; |
4953 | 0 | } |
4954 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
4955 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.VerifyTableRowRangeResponsePB) |
4956 | 0 | } |
4957 | | |
4958 | 26.8k | void VerifyTableRowRangeResponsePB::SharedCtor() { |
4959 | 26.8k | _cached_size_ = 0; |
4960 | 26.8k | verified_until_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4961 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
4962 | 26.8k | reinterpret_cast<char*>(&propagated_hybrid_time_) - |
4963 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(propagated_hybrid_time_)); |
4964 | 26.8k | } |
4965 | | |
4966 | 0 | VerifyTableRowRangeResponsePB::~VerifyTableRowRangeResponsePB() { |
4967 | | // @@protoc_insertion_point(destructor:yb.tserver.VerifyTableRowRangeResponsePB) |
4968 | 0 | SharedDtor(); |
4969 | 0 | } |
4970 | | |
4971 | 0 | void VerifyTableRowRangeResponsePB::SharedDtor() { |
4972 | 0 | verified_until_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4973 | 0 | if (this != internal_default_instance()) delete error_; |
4974 | 0 | } |
4975 | | |
4976 | 0 | void VerifyTableRowRangeResponsePB::SetCachedSize(int size) const { |
4977 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4978 | 0 | _cached_size_ = size; |
4979 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4980 | 0 | } |
4981 | 0 | const ::google::protobuf::Descriptor* VerifyTableRowRangeResponsePB::descriptor() { |
4982 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
4983 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4984 | 0 | } |
4985 | | |
4986 | 0 | const VerifyTableRowRangeResponsePB& VerifyTableRowRangeResponsePB::default_instance() { |
4987 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsVerifyTableRowRangeResponsePB(); |
4988 | 0 | return *internal_default_instance(); |
4989 | 0 | } |
4990 | | |
4991 | 0 | VerifyTableRowRangeResponsePB* VerifyTableRowRangeResponsePB::New(::google::protobuf::Arena* arena) const { |
4992 | 0 | VerifyTableRowRangeResponsePB* n = new VerifyTableRowRangeResponsePB; |
4993 | 0 | if (arena != NULL) { |
4994 | 0 | arena->Own(n); |
4995 | 0 | } |
4996 | 0 | return n; |
4997 | 0 | } |
4998 | | |
4999 | 0 | void VerifyTableRowRangeResponsePB::Clear() { |
5000 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5001 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5002 | | // Prevent compiler warnings about cached_has_bits being unused |
5003 | 0 | (void) cached_has_bits; |
5004 | |
|
5005 | 0 | consistency_stats_.Clear(); |
5006 | 0 | cached_has_bits = _has_bits_[0]; |
5007 | 0 | if (cached_has_bits & 3u) { |
5008 | 0 | if (cached_has_bits & 0x00000001u) { |
5009 | 0 | GOOGLE_DCHECK(!verified_until_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5010 | 0 | (*verified_until_.UnsafeRawStringPointer())->clear(); |
5011 | 0 | } |
5012 | 0 | if (cached_has_bits & 0x00000002u) { |
5013 | 0 | GOOGLE_DCHECK(error_ != NULL); |
5014 | 0 | error_->Clear(); |
5015 | 0 | } |
5016 | 0 | } |
5017 | 0 | propagated_hybrid_time_ = GOOGLE_ULONGLONG(0); |
5018 | 0 | _has_bits_.Clear(); |
5019 | 0 | _internal_metadata_.Clear(); |
5020 | 0 | } |
5021 | | |
5022 | | bool VerifyTableRowRangeResponsePB::MergePartialFromCodedStream( |
5023 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5024 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5025 | 0 | ::google::protobuf::uint32 tag; |
5026 | | // @@protoc_insertion_point(parse_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5027 | 0 | for (;;) { |
5028 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5029 | 0 | tag = p.first; |
5030 | 0 | if (!p.second) goto handle_unusual; |
5031 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5032 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
5033 | 0 | case 1: { |
5034 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5035 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5036 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5037 | 0 | input, mutable_error())); |
5038 | 0 | } else { |
5039 | 0 | goto handle_unusual; |
5040 | 0 | } |
5041 | 0 | break; |
5042 | 0 | } |
5043 | | |
5044 | | // map<string, uint64> consistency_stats = 2; |
5045 | 0 | case 2: { |
5046 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5047 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5048 | 0 | VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< |
5049 | 0 | VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse, |
5050 | 0 | ::std::string, ::google::protobuf::uint64, |
5051 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
5052 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_UINT64, |
5053 | 0 | 0 >, |
5054 | 0 | ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 > > parser(&consistency_stats_); |
5055 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5056 | 0 | input, &parser)); |
5057 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5058 | 0 | parser.key().data(), static_cast<int>(parser.key().length()), |
5059 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
5060 | 0 | "yb.tserver.VerifyTableRowRangeResponsePB.ConsistencyStatsEntry.key"); |
5061 | 0 | } else { |
5062 | 0 | goto handle_unusual; |
5063 | 0 | } |
5064 | 0 | break; |
5065 | 0 | } |
5066 | | |
5067 | | // optional bytes verified_until = 3; |
5068 | 0 | case 3: { |
5069 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5070 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5071 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5072 | 0 | input, this->mutable_verified_until())); |
5073 | 0 | } else { |
5074 | 0 | goto handle_unusual; |
5075 | 0 | } |
5076 | 0 | break; |
5077 | 0 | } |
5078 | | |
5079 | | // optional fixed64 propagated_hybrid_time = 4; |
5080 | 0 | case 4: { |
5081 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5082 | 0 | static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { |
5083 | 0 | set_has_propagated_hybrid_time(); |
5084 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5085 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
5086 | 0 | input, &propagated_hybrid_time_))); |
5087 | 0 | } else { |
5088 | 0 | goto handle_unusual; |
5089 | 0 | } |
5090 | 0 | break; |
5091 | 0 | } |
5092 | | |
5093 | 0 | default: { |
5094 | 0 | handle_unusual: |
5095 | 0 | if (tag == 0) { |
5096 | 0 | goto success; |
5097 | 0 | } |
5098 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5099 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5100 | 0 | break; |
5101 | 0 | } |
5102 | 0 | } |
5103 | 0 | } |
5104 | 0 | success: |
5105 | | // @@protoc_insertion_point(parse_success:yb.tserver.VerifyTableRowRangeResponsePB) |
5106 | 0 | return true; |
5107 | 0 | failure: |
5108 | | // @@protoc_insertion_point(parse_failure:yb.tserver.VerifyTableRowRangeResponsePB) |
5109 | 0 | return false; |
5110 | 0 | #undef DO_ |
5111 | 0 | } |
5112 | | |
5113 | | void VerifyTableRowRangeResponsePB::SerializeWithCachedSizes( |
5114 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5115 | | // @@protoc_insertion_point(serialize_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5116 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5117 | 0 | (void) cached_has_bits; |
5118 | |
|
5119 | 0 | cached_has_bits = _has_bits_[0]; |
5120 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
5121 | 0 | if (cached_has_bits & 0x00000002u) { |
5122 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5123 | 0 | 1, *this->error_, output); |
5124 | 0 | } |
5125 | | |
5126 | | // map<string, uint64> consistency_stats = 2; |
5127 | 0 | if (!this->consistency_stats().empty()) { |
5128 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer |
5129 | 0 | ConstPtr; |
5130 | 0 | typedef ConstPtr SortItem; |
5131 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
5132 | 0 | struct Utf8Check { |
5133 | 0 | static void Check(ConstPtr p) { |
5134 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5135 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
5136 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5137 | 0 | "yb.tserver.VerifyTableRowRangeResponsePB.ConsistencyStatsEntry.key"); |
5138 | 0 | } |
5139 | 0 | }; |
5140 | |
|
5141 | 0 | if (output->IsSerializationDeterministic() && |
5142 | 0 | this->consistency_stats().size() > 1) { |
5143 | 0 | ::google::protobuf::scoped_array<SortItem> items( |
5144 | 0 | new SortItem[this->consistency_stats().size()]); |
5145 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type; |
5146 | 0 | size_type n = 0; |
5147 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator |
5148 | 0 | it = this->consistency_stats().begin(); |
5149 | 0 | it != this->consistency_stats().end(); ++it, ++n) { |
5150 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
5151 | 0 | } |
5152 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
5153 | 0 | ::google::protobuf::scoped_ptr<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> entry; |
5154 | 0 | for (size_type i = 0; i < n; i++) { |
5155 | 0 | entry.reset(consistency_stats_.NewEntryWrapper( |
5156 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
5157 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5158 | 0 | 2, *entry, output); |
5159 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
5160 | 0 | } |
5161 | 0 | } else { |
5162 | 0 | ::google::protobuf::scoped_ptr<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> entry; |
5163 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator |
5164 | 0 | it = this->consistency_stats().begin(); |
5165 | 0 | it != this->consistency_stats().end(); ++it) { |
5166 | 0 | entry.reset(consistency_stats_.NewEntryWrapper( |
5167 | 0 | it->first, it->second)); |
5168 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5169 | 0 | 2, *entry, output); |
5170 | 0 | Utf8Check::Check(&*it); |
5171 | 0 | } |
5172 | 0 | } |
5173 | 0 | } |
5174 | | |
5175 | | // optional bytes verified_until = 3; |
5176 | 0 | if (cached_has_bits & 0x00000001u) { |
5177 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5178 | 0 | 3, this->verified_until(), output); |
5179 | 0 | } |
5180 | | |
5181 | | // optional fixed64 propagated_hybrid_time = 4; |
5182 | 0 | if (cached_has_bits & 0x00000004u) { |
5183 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->propagated_hybrid_time(), output); |
5184 | 0 | } |
5185 | |
|
5186 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5187 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5188 | 0 | _internal_metadata_.unknown_fields(), output); |
5189 | 0 | } |
5190 | | // @@protoc_insertion_point(serialize_end:yb.tserver.VerifyTableRowRangeResponsePB) |
5191 | 0 | } |
5192 | | |
5193 | | ::google::protobuf::uint8* VerifyTableRowRangeResponsePB::InternalSerializeWithCachedSizesToArray( |
5194 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
5195 | 0 | (void)deterministic; // Unused |
5196 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5197 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5198 | 0 | (void) cached_has_bits; |
5199 | |
|
5200 | 0 | cached_has_bits = _has_bits_[0]; |
5201 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
5202 | 0 | if (cached_has_bits & 0x00000002u) { |
5203 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5204 | 0 | InternalWriteMessageToArray( |
5205 | 0 | 1, *this->error_, deterministic, target); |
5206 | 0 | } |
5207 | | |
5208 | | // map<string, uint64> consistency_stats = 2; |
5209 | 0 | if (!this->consistency_stats().empty()) { |
5210 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer |
5211 | 0 | ConstPtr; |
5212 | 0 | typedef ConstPtr SortItem; |
5213 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
5214 | 0 | struct Utf8Check { |
5215 | 0 | static void Check(ConstPtr p) { |
5216 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5217 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
5218 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5219 | 0 | "yb.tserver.VerifyTableRowRangeResponsePB.ConsistencyStatsEntry.key"); |
5220 | 0 | } |
5221 | 0 | }; |
5222 | |
|
5223 | 0 | if (deterministic && |
5224 | 0 | this->consistency_stats().size() > 1) { |
5225 | 0 | ::google::protobuf::scoped_array<SortItem> items( |
5226 | 0 | new SortItem[this->consistency_stats().size()]); |
5227 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type; |
5228 | 0 | size_type n = 0; |
5229 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator |
5230 | 0 | it = this->consistency_stats().begin(); |
5231 | 0 | it != this->consistency_stats().end(); ++it, ++n) { |
5232 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
5233 | 0 | } |
5234 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
5235 | 0 | ::google::protobuf::scoped_ptr<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> entry; |
5236 | 0 | for (size_type i = 0; i < n; i++) { |
5237 | 0 | entry.reset(consistency_stats_.NewEntryWrapper( |
5238 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
5239 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5240 | 0 | InternalWriteMessageNoVirtualToArray( |
5241 | 0 | 2, *entry, deterministic, target); |
5242 | 0 | ; |
5243 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
5244 | 0 | } |
5245 | 0 | } else { |
5246 | 0 | ::google::protobuf::scoped_ptr<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> entry; |
5247 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator |
5248 | 0 | it = this->consistency_stats().begin(); |
5249 | 0 | it != this->consistency_stats().end(); ++it) { |
5250 | 0 | entry.reset(consistency_stats_.NewEntryWrapper( |
5251 | 0 | it->first, it->second)); |
5252 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5253 | 0 | InternalWriteMessageNoVirtualToArray( |
5254 | 0 | 2, *entry, deterministic, target); |
5255 | 0 | ; |
5256 | 0 | Utf8Check::Check(&*it); |
5257 | 0 | } |
5258 | 0 | } |
5259 | 0 | } |
5260 | | |
5261 | | // optional bytes verified_until = 3; |
5262 | 0 | if (cached_has_bits & 0x00000001u) { |
5263 | 0 | target = |
5264 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5265 | 0 | 3, this->verified_until(), target); |
5266 | 0 | } |
5267 | | |
5268 | | // optional fixed64 propagated_hybrid_time = 4; |
5269 | 0 | if (cached_has_bits & 0x00000004u) { |
5270 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->propagated_hybrid_time(), target); |
5271 | 0 | } |
5272 | |
|
5273 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5274 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5275 | 0 | _internal_metadata_.unknown_fields(), target); |
5276 | 0 | } |
5277 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.VerifyTableRowRangeResponsePB) |
5278 | 0 | return target; |
5279 | 0 | } |
5280 | | |
5281 | 0 | size_t VerifyTableRowRangeResponsePB::ByteSizeLong() const { |
5282 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5283 | 0 | size_t total_size = 0; |
5284 | |
|
5285 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5286 | 0 | total_size += |
5287 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5288 | 0 | _internal_metadata_.unknown_fields()); |
5289 | 0 | } |
5290 | | // map<string, uint64> consistency_stats = 2; |
5291 | 0 | total_size += 1 * |
5292 | 0 | ::google::protobuf::internal::FromIntSize(this->consistency_stats_size()); |
5293 | 0 | { |
5294 | 0 | ::google::protobuf::scoped_ptr<VerifyTableRowRangeResponsePB_ConsistencyStatsEntry_DoNotUse> entry; |
5295 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator |
5296 | 0 | it = this->consistency_stats().begin(); |
5297 | 0 | it != this->consistency_stats().end(); ++it) { |
5298 | 0 | entry.reset(consistency_stats_.NewEntryWrapper(it->first, it->second)); |
5299 | 0 | total_size += ::google::protobuf::internal::WireFormatLite:: |
5300 | 0 | MessageSizeNoVirtual(*entry); |
5301 | 0 | } |
5302 | 0 | } |
5303 | |
|
5304 | 0 | if (_has_bits_[0 / 32] & 7u) { |
5305 | | // optional bytes verified_until = 3; |
5306 | 0 | if (has_verified_until()) { |
5307 | 0 | total_size += 1 + |
5308 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5309 | 0 | this->verified_until()); |
5310 | 0 | } |
5311 | | |
5312 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
5313 | 0 | if (has_error()) { |
5314 | 0 | total_size += 1 + |
5315 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5316 | 0 | *this->error_); |
5317 | 0 | } |
5318 | | |
5319 | | // optional fixed64 propagated_hybrid_time = 4; |
5320 | 0 | if (has_propagated_hybrid_time()) { |
5321 | 0 | total_size += 1 + 8; |
5322 | 0 | } |
5323 | |
|
5324 | 0 | } |
5325 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5326 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5327 | 0 | _cached_size_ = cached_size; |
5328 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5329 | 0 | return total_size; |
5330 | 0 | } |
5331 | | |
5332 | 0 | void VerifyTableRowRangeResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
5333 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5334 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5335 | 0 | const VerifyTableRowRangeResponsePB* source = |
5336 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const VerifyTableRowRangeResponsePB>( |
5337 | 0 | &from); |
5338 | 0 | if (source == NULL) { |
5339 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.VerifyTableRowRangeResponsePB) |
5340 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5341 | 0 | } else { |
5342 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.VerifyTableRowRangeResponsePB) |
5343 | 0 | MergeFrom(*source); |
5344 | 0 | } |
5345 | 0 | } |
5346 | | |
5347 | 0 | void VerifyTableRowRangeResponsePB::MergeFrom(const VerifyTableRowRangeResponsePB& from) { |
5348 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5349 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5350 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5351 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5352 | 0 | (void) cached_has_bits; |
5353 | |
|
5354 | 0 | consistency_stats_.MergeFrom(from.consistency_stats_); |
5355 | 0 | cached_has_bits = from._has_bits_[0]; |
5356 | 0 | if (cached_has_bits & 7u) { |
5357 | 0 | if (cached_has_bits & 0x00000001u) { |
5358 | 0 | set_has_verified_until(); |
5359 | 0 | verified_until_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.verified_until_); |
5360 | 0 | } |
5361 | 0 | if (cached_has_bits & 0x00000002u) { |
5362 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
5363 | 0 | } |
5364 | 0 | if (cached_has_bits & 0x00000004u) { |
5365 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
5366 | 0 | } |
5367 | 0 | _has_bits_[0] |= cached_has_bits; |
5368 | 0 | } |
5369 | 0 | } |
5370 | | |
5371 | 0 | void VerifyTableRowRangeResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
5372 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5373 | 0 | if (&from == this) return; |
5374 | 0 | Clear(); |
5375 | 0 | MergeFrom(from); |
5376 | 0 | } |
5377 | | |
5378 | 0 | void VerifyTableRowRangeResponsePB::CopyFrom(const VerifyTableRowRangeResponsePB& from) { |
5379 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.VerifyTableRowRangeResponsePB) |
5380 | 0 | if (&from == this) return; |
5381 | 0 | Clear(); |
5382 | 0 | MergeFrom(from); |
5383 | 0 | } |
5384 | | |
5385 | 0 | bool VerifyTableRowRangeResponsePB::IsInitialized() const { |
5386 | 0 | if (has_error()) { |
5387 | 0 | if (!this->error_->IsInitialized()) return false; |
5388 | 0 | } |
5389 | 0 | return true; |
5390 | 0 | } |
5391 | | |
5392 | 0 | void VerifyTableRowRangeResponsePB::Swap(VerifyTableRowRangeResponsePB* other) { |
5393 | 0 | if (other == this) return; |
5394 | 0 | InternalSwap(other); |
5395 | 0 | } |
5396 | 0 | void VerifyTableRowRangeResponsePB::InternalSwap(VerifyTableRowRangeResponsePB* other) { |
5397 | 0 | using std::swap; |
5398 | 0 | consistency_stats_.Swap(&other->consistency_stats_); |
5399 | 0 | verified_until_.Swap(&other->verified_until_); |
5400 | 0 | swap(error_, other->error_); |
5401 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
5402 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5403 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5404 | 0 | swap(_cached_size_, other->_cached_size_); |
5405 | 0 | } |
5406 | | |
5407 | 0 | ::google::protobuf::Metadata VerifyTableRowRangeResponsePB::GetMetadata() const { |
5408 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
5409 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
5410 | 0 | } |
5411 | | |
5412 | | |
5413 | | // =================================================================== |
5414 | | |
5415 | 26.8k | void ReadRequestPB::InitAsDefaultInstance() { |
5416 | 26.8k | ::yb::tserver::_ReadRequestPB_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::yb::TransactionMetadataPB*>( |
5417 | 26.8k | ::yb::TransactionMetadataPB::internal_default_instance()); |
5418 | 26.8k | ::yb::tserver::_ReadRequestPB_default_instance_._instance.get_mutable()->subtransaction_ = const_cast< ::yb::SubTransactionMetadataPB*>( |
5419 | 26.8k | ::yb::SubTransactionMetadataPB::internal_default_instance()); |
5420 | 26.8k | ::yb::tserver::_ReadRequestPB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
5421 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
5422 | 26.8k | } |
5423 | 0 | void ReadRequestPB::clear_redis_batch() { |
5424 | 0 | redis_batch_.Clear(); |
5425 | 0 | } |
5426 | 0 | void ReadRequestPB::clear_ql_batch() { |
5427 | 0 | ql_batch_.Clear(); |
5428 | 0 | } |
5429 | 0 | void ReadRequestPB::clear_pgsql_batch() { |
5430 | 0 | pgsql_batch_.Clear(); |
5431 | 0 | } |
5432 | 0 | void ReadRequestPB::clear_transaction() { |
5433 | 0 | if (transaction_ != NULL) transaction_->Clear(); |
5434 | 0 | clear_has_transaction(); |
5435 | 0 | } |
5436 | 0 | void ReadRequestPB::clear_subtransaction() { |
5437 | 0 | if (subtransaction_ != NULL) subtransaction_->Clear(); |
5438 | 0 | clear_has_subtransaction(); |
5439 | 0 | } |
5440 | 0 | void ReadRequestPB::clear_read_time() { |
5441 | 0 | if (read_time_ != NULL) read_time_->Clear(); |
5442 | 0 | clear_has_read_time(); |
5443 | 0 | } |
5444 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5445 | | const int ReadRequestPB::kTabletIdFieldNumber; |
5446 | | const int ReadRequestPB::kRedisBatchFieldNumber; |
5447 | | const int ReadRequestPB::kQlBatchFieldNumber; |
5448 | | const int ReadRequestPB::kPgsqlBatchFieldNumber; |
5449 | | const int ReadRequestPB::kCacheBlocksFieldNumber; |
5450 | | const int ReadRequestPB::kIncludeTraceFieldNumber; |
5451 | | const int ReadRequestPB::kConsistencyLevelFieldNumber; |
5452 | | const int ReadRequestPB::kTransactionFieldNumber; |
5453 | | const int ReadRequestPB::kSubtransactionFieldNumber; |
5454 | | const int ReadRequestPB::kPropagatedHybridTimeFieldNumber; |
5455 | | const int ReadRequestPB::kReadTimeFieldNumber; |
5456 | | const int ReadRequestPB::kProxyUuidFieldNumber; |
5457 | | const int ReadRequestPB::kDEPRECATEDMayHaveMetadataFieldNumber; |
5458 | | const int ReadRequestPB::kRejectionScoreFieldNumber; |
5459 | | const int ReadRequestPB::kBatchIdxFieldNumber; |
5460 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5461 | | |
5462 | | ReadRequestPB::ReadRequestPB() |
5463 | 11.7M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5464 | 11.7M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5465 | 11.6M | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsReadRequestPB(); |
5466 | 11.6M | } |
5467 | 11.7M | SharedCtor(); |
5468 | | // @@protoc_insertion_point(constructor:yb.tserver.ReadRequestPB) |
5469 | 11.7M | } |
5470 | | ReadRequestPB::ReadRequestPB(const ReadRequestPB& from) |
5471 | | : ::google::protobuf::Message(), |
5472 | | _internal_metadata_(NULL), |
5473 | | _has_bits_(from._has_bits_), |
5474 | | _cached_size_(0), |
5475 | | redis_batch_(from.redis_batch_), |
5476 | | ql_batch_(from.ql_batch_), |
5477 | 0 | pgsql_batch_(from.pgsql_batch_) { |
5478 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5479 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5480 | 0 | if (from.has_tablet_id()) { |
5481 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
5482 | 0 | } |
5483 | 0 | proxy_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5484 | 0 | if (from.has_proxy_uuid()) { |
5485 | 0 | proxy_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proxy_uuid_); |
5486 | 0 | } |
5487 | 0 | if (from.has_transaction()) { |
5488 | 0 | transaction_ = new ::yb::TransactionMetadataPB(*from.transaction_); |
5489 | 0 | } else { |
5490 | 0 | transaction_ = NULL; |
5491 | 0 | } |
5492 | 0 | if (from.has_read_time()) { |
5493 | 0 | read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_); |
5494 | 0 | } else { |
5495 | 0 | read_time_ = NULL; |
5496 | 0 | } |
5497 | 0 | if (from.has_subtransaction()) { |
5498 | 0 | subtransaction_ = new ::yb::SubTransactionMetadataPB(*from.subtransaction_); |
5499 | 0 | } else { |
5500 | 0 | subtransaction_ = NULL; |
5501 | 0 | } |
5502 | 0 | ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_, |
5503 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&consistency_level_) - |
5504 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(consistency_level_)); |
5505 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.ReadRequestPB) |
5506 | 0 | } |
5507 | | |
5508 | 11.6M | void ReadRequestPB::SharedCtor() { |
5509 | 11.6M | _cached_size_ = 0; |
5510 | 11.6M | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5511 | 11.6M | proxy_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5512 | 11.6M | ::memset(&transaction_, 0, static_cast<size_t>( |
5513 | 11.6M | reinterpret_cast<char*>(&deprecated_may_have_metadata_) - |
5514 | 11.6M | reinterpret_cast<char*>(&transaction_)) + sizeof(deprecated_may_have_metadata_)); |
5515 | 11.6M | cache_blocks_ = true; |
5516 | 11.6M | consistency_level_ = 1; |
5517 | 11.6M | } |
5518 | | |
5519 | 11.6M | ReadRequestPB::~ReadRequestPB() { |
5520 | | // @@protoc_insertion_point(destructor:yb.tserver.ReadRequestPB) |
5521 | 11.6M | SharedDtor(); |
5522 | 11.6M | } |
5523 | | |
5524 | 11.6M | void ReadRequestPB::SharedDtor() { |
5525 | 11.6M | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5526 | 11.6M | proxy_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5527 | 11.6M | if (this != internal_default_instance()) delete transaction_11.6M ; |
5528 | 11.6M | if (this != internal_default_instance()) delete read_time_11.6M ; |
5529 | 11.6M | if (this != internal_default_instance()) delete subtransaction_11.6M ; |
5530 | 11.6M | } |
5531 | | |
5532 | 0 | void ReadRequestPB::SetCachedSize(int size) const { |
5533 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5534 | 0 | _cached_size_ = size; |
5535 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5536 | 0 | } |
5537 | 0 | const ::google::protobuf::Descriptor* ReadRequestPB::descriptor() { |
5538 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
5539 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5540 | 0 | } |
5541 | | |
5542 | 0 | const ReadRequestPB& ReadRequestPB::default_instance() { |
5543 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsReadRequestPB(); |
5544 | 0 | return *internal_default_instance(); |
5545 | 0 | } |
5546 | | |
5547 | 0 | ReadRequestPB* ReadRequestPB::New(::google::protobuf::Arena* arena) const { |
5548 | 0 | ReadRequestPB* n = new ReadRequestPB; |
5549 | 0 | if (arena != NULL) { |
5550 | 0 | arena->Own(n); |
5551 | 0 | } |
5552 | 0 | return n; |
5553 | 0 | } |
5554 | | |
5555 | 2.13M | void ReadRequestPB::Clear() { |
5556 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.ReadRequestPB) |
5557 | 2.13M | ::google::protobuf::uint32 cached_has_bits = 0; |
5558 | | // Prevent compiler warnings about cached_has_bits being unused |
5559 | 2.13M | (void) cached_has_bits; |
5560 | | |
5561 | 2.13M | redis_batch_.Clear(); |
5562 | 2.13M | ql_batch_.Clear(); |
5563 | 2.13M | pgsql_batch_.Clear(); |
5564 | 2.13M | cached_has_bits = _has_bits_[0]; |
5565 | 2.13M | if (cached_has_bits & 31u) { |
5566 | 0 | if (cached_has_bits & 0x00000001u) { |
5567 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5568 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
5569 | 0 | } |
5570 | 0 | if (cached_has_bits & 0x00000002u) { |
5571 | 0 | GOOGLE_DCHECK(!proxy_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5572 | 0 | (*proxy_uuid_.UnsafeRawStringPointer())->clear(); |
5573 | 0 | } |
5574 | 0 | if (cached_has_bits & 0x00000004u) { |
5575 | 0 | GOOGLE_DCHECK(transaction_ != NULL); |
5576 | 0 | transaction_->Clear(); |
5577 | 0 | } |
5578 | 0 | if (cached_has_bits & 0x00000008u) { |
5579 | 0 | GOOGLE_DCHECK(read_time_ != NULL); |
5580 | 0 | read_time_->Clear(); |
5581 | 0 | } |
5582 | 0 | if (cached_has_bits & 0x00000010u) { |
5583 | 0 | GOOGLE_DCHECK(subtransaction_ != NULL); |
5584 | 0 | subtransaction_->Clear(); |
5585 | 0 | } |
5586 | 0 | } |
5587 | 2.13M | if (cached_has_bits & 224u) { |
5588 | 0 | ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>( |
5589 | 0 | reinterpret_cast<char*>(&batch_idx_) - |
5590 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(batch_idx_)); |
5591 | 0 | } |
5592 | 2.13M | if (cached_has_bits & 3840u) { |
5593 | 0 | ::memset(&include_trace_, 0, static_cast<size_t>( |
5594 | 0 | reinterpret_cast<char*>(&deprecated_may_have_metadata_) - |
5595 | 0 | reinterpret_cast<char*>(&include_trace_)) + sizeof(deprecated_may_have_metadata_)); |
5596 | 0 | cache_blocks_ = true; |
5597 | 0 | consistency_level_ = 1; |
5598 | 0 | } |
5599 | 2.13M | _has_bits_.Clear(); |
5600 | 2.13M | _internal_metadata_.Clear(); |
5601 | 2.13M | } |
5602 | | |
5603 | | bool ReadRequestPB::MergePartialFromCodedStream( |
5604 | 2.12M | ::google::protobuf::io::CodedInputStream* input) { |
5605 | 21.6M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5606 | 2.12M | ::google::protobuf::uint32 tag; |
5607 | | // @@protoc_insertion_point(parse_start:yb.tserver.ReadRequestPB) |
5608 | 23.7M | for (;;) { |
5609 | 23.7M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5610 | 23.7M | tag = p.first; |
5611 | 23.7M | if (!p.second) goto handle_unusual2.12M ; |
5612 | 21.6M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5613 | | // optional bytes tablet_id = 1; |
5614 | 2.12M | case 1: { |
5615 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5616 | 2.12M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5617 | 2.12M | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5618 | 2.12M | input, this->mutable_tablet_id())); |
5619 | 18.4E | } else { |
5620 | 18.4E | goto handle_unusual; |
5621 | 18.4E | } |
5622 | 2.12M | break; |
5623 | 2.12M | } |
5624 | | |
5625 | | // repeated .yb.RedisReadRequestPB redis_batch = 2; |
5626 | 2.12M | case 2: { |
5627 | 20.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5628 | 20.2k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5629 | 20.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_redis_batch())); |
5630 | 20.2k | } else { |
5631 | 0 | goto handle_unusual; |
5632 | 0 | } |
5633 | 20.2k | break; |
5634 | 20.2k | } |
5635 | | |
5636 | | // optional bool cache_blocks = 3 [default = true]; |
5637 | 20.2k | case 3: { |
5638 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5639 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
5640 | 0 | set_has_cache_blocks(); |
5641 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5642 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5643 | 0 | input, &cache_blocks_))); |
5644 | 0 | } else { |
5645 | 0 | goto handle_unusual; |
5646 | 0 | } |
5647 | 0 | break; |
5648 | 0 | } |
5649 | | |
5650 | | // repeated .yb.QLReadRequestPB ql_batch = 4; |
5651 | 417k | case 4: { |
5652 | 417k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5653 | 417k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
5654 | 417k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ql_batch())); |
5655 | 18.4E | } else { |
5656 | 18.4E | goto handle_unusual; |
5657 | 18.4E | } |
5658 | 417k | break; |
5659 | 417k | } |
5660 | | |
5661 | | // optional bool include_trace = 5 [default = false]; |
5662 | 2.12M | case 5: { |
5663 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5664 | 2.12M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
5665 | 2.12M | set_has_include_trace(); |
5666 | 2.12M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5667 | 2.12M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5668 | 2.12M | input, &include_trace_))); |
5669 | 18.4E | } else { |
5670 | 18.4E | goto handle_unusual; |
5671 | 18.4E | } |
5672 | 2.12M | break; |
5673 | 2.12M | } |
5674 | | |
5675 | | // optional .yb.YBConsistencyLevel consistency_level = 6 [default = STRONG]; |
5676 | 2.12M | case 6: { |
5677 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5678 | 2.12M | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
5679 | 2.12M | int value; |
5680 | 2.12M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5681 | 2.12M | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5682 | 2.12M | input, &value))); |
5683 | 2.12M | if (::yb::YBConsistencyLevel_IsValid(value)) { |
5684 | 2.12M | set_consistency_level(static_cast< ::yb::YBConsistencyLevel >(value)); |
5685 | 2.12M | } else { |
5686 | 1.70k | mutable_unknown_fields()->AddVarint( |
5687 | 1.70k | 6, static_cast< ::google::protobuf::uint64>(value)); |
5688 | 1.70k | } |
5689 | 18.4E | } else { |
5690 | 18.4E | goto handle_unusual; |
5691 | 18.4E | } |
5692 | 2.12M | break; |
5693 | 2.12M | } |
5694 | | |
5695 | | // optional .yb.TransactionMetadataPB transaction = 7; |
5696 | 2.12M | case 7: { |
5697 | 781k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5698 | 781k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
5699 | 781k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5700 | 781k | input, mutable_transaction())); |
5701 | 18.4E | } else { |
5702 | 18.4E | goto handle_unusual; |
5703 | 18.4E | } |
5704 | 781k | break; |
5705 | 781k | } |
5706 | | |
5707 | | // optional fixed64 propagated_hybrid_time = 8; |
5708 | 2.10M | case 8: { |
5709 | 2.10M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5710 | 2.10M | static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { |
5711 | 2.10M | set_has_propagated_hybrid_time(); |
5712 | 2.10M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5713 | 2.10M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
5714 | 2.10M | input, &propagated_hybrid_time_))); |
5715 | 18.4E | } else { |
5716 | 18.4E | goto handle_unusual; |
5717 | 18.4E | } |
5718 | 2.10M | break; |
5719 | 2.10M | } |
5720 | | |
5721 | | // optional .yb.ReadHybridTimePB read_time = 9; |
5722 | 2.10M | case 9: { |
5723 | 1.42M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5724 | 1.42M | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
5725 | 1.42M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5726 | 1.42M | input, mutable_read_time())); |
5727 | 18.4E | } else { |
5728 | 18.4E | goto handle_unusual; |
5729 | 18.4E | } |
5730 | 1.42M | break; |
5731 | 1.42M | } |
5732 | | |
5733 | | // repeated .yb.PgsqlReadRequestPB pgsql_batch = 10; |
5734 | 3.32M | case 10: { |
5735 | 3.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5736 | 3.32M | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
5737 | 3.32M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pgsql_batch())); |
5738 | 18.4E | } else { |
5739 | 18.4E | goto handle_unusual; |
5740 | 18.4E | } |
5741 | 3.32M | break; |
5742 | 3.32M | } |
5743 | | |
5744 | | // optional string proxy_uuid = 11; |
5745 | 3.32M | case 11: { |
5746 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5747 | 2.12M | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
5748 | 2.12M | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5749 | 2.12M | input, this->mutable_proxy_uuid())); |
5750 | 2.12M | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5751 | 2.12M | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
5752 | 2.12M | ::google::protobuf::internal::WireFormat::PARSE, |
5753 | 2.12M | "yb.tserver.ReadRequestPB.proxy_uuid"); |
5754 | 18.4E | } else { |
5755 | 18.4E | goto handle_unusual; |
5756 | 18.4E | } |
5757 | 2.12M | break; |
5758 | 2.12M | } |
5759 | | |
5760 | | // optional bool DEPRECATED_may_have_metadata = 12; |
5761 | 2.12M | case 12: { |
5762 | 781k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5763 | 781k | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
5764 | 781k | set_has_deprecated_may_have_metadata(); |
5765 | 781k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5766 | 781k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5767 | 781k | input, &deprecated_may_have_metadata_))); |
5768 | 18.4E | } else { |
5769 | 18.4E | goto handle_unusual; |
5770 | 18.4E | } |
5771 | 781k | break; |
5772 | 781k | } |
5773 | | |
5774 | | // optional double rejection_score = 13; |
5775 | 2.12M | case 13: { |
5776 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5777 | 2.12M | static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) { |
5778 | 2.12M | set_has_rejection_score(); |
5779 | 2.12M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5780 | 2.12M | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
5781 | 2.12M | input, &rejection_score_))); |
5782 | 18.4E | } else { |
5783 | 18.4E | goto handle_unusual; |
5784 | 18.4E | } |
5785 | 2.12M | break; |
5786 | 2.12M | } |
5787 | | |
5788 | | // optional uint64 batch_idx = 14; |
5789 | 2.12M | case 14: { |
5790 | 2.12M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5791 | 2.12M | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
5792 | 2.12M | set_has_batch_idx(); |
5793 | 2.12M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5794 | 2.12M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5795 | 2.12M | input, &batch_idx_))); |
5796 | 18.4E | } else { |
5797 | 18.4E | goto handle_unusual; |
5798 | 18.4E | } |
5799 | 2.12M | break; |
5800 | 2.12M | } |
5801 | | |
5802 | | // optional .yb.SubTransactionMetadataPB subtransaction = 15; |
5803 | 2.12M | case 15: { |
5804 | 26.1k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5805 | 26.1k | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
5806 | 26.1k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5807 | 26.1k | input, mutable_subtransaction())); |
5808 | 26.1k | } else { |
5809 | 0 | goto handle_unusual; |
5810 | 0 | } |
5811 | 26.1k | break; |
5812 | 26.1k | } |
5813 | | |
5814 | 26.1k | default: { |
5815 | 2.12M | handle_unusual: |
5816 | 2.12M | if (tag == 02.12M ) { |
5817 | 2.12M | goto success; |
5818 | 2.12M | } |
5819 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5820 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5821 | 18.4E | break; |
5822 | 18.4E | } |
5823 | 21.6M | } |
5824 | 21.6M | } |
5825 | 2.12M | success: |
5826 | | // @@protoc_insertion_point(parse_success:yb.tserver.ReadRequestPB) |
5827 | 2.12M | return true; |
5828 | 0 | failure: |
5829 | | // @@protoc_insertion_point(parse_failure:yb.tserver.ReadRequestPB) |
5830 | 0 | return false; |
5831 | 2.12M | #undef DO_ |
5832 | 2.12M | } |
5833 | | |
5834 | | void ReadRequestPB::SerializeWithCachedSizes( |
5835 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5836 | | // @@protoc_insertion_point(serialize_start:yb.tserver.ReadRequestPB) |
5837 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5838 | 0 | (void) cached_has_bits; |
5839 | |
|
5840 | 0 | cached_has_bits = _has_bits_[0]; |
5841 | | // optional bytes tablet_id = 1; |
5842 | 0 | if (cached_has_bits & 0x00000001u) { |
5843 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5844 | 0 | 1, this->tablet_id(), output); |
5845 | 0 | } |
5846 | | |
5847 | | // repeated .yb.RedisReadRequestPB redis_batch = 2; |
5848 | 0 | for (unsigned int i = 0, |
5849 | 0 | n = static_cast<unsigned int>(this->redis_batch_size()); i < n; i++) { |
5850 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5851 | 0 | 2, this->redis_batch(static_cast<int>(i)), output); |
5852 | 0 | } |
5853 | | |
5854 | | // optional bool cache_blocks = 3 [default = true]; |
5855 | 0 | if (cached_has_bits & 0x00000400u) { |
5856 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->cache_blocks(), output); |
5857 | 0 | } |
5858 | | |
5859 | | // repeated .yb.QLReadRequestPB ql_batch = 4; |
5860 | 0 | for (unsigned int i = 0, |
5861 | 0 | n = static_cast<unsigned int>(this->ql_batch_size()); i < n; i++) { |
5862 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5863 | 0 | 4, this->ql_batch(static_cast<int>(i)), output); |
5864 | 0 | } |
5865 | | |
5866 | | // optional bool include_trace = 5 [default = false]; |
5867 | 0 | if (cached_has_bits & 0x00000100u) { |
5868 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->include_trace(), output); |
5869 | 0 | } |
5870 | | |
5871 | | // optional .yb.YBConsistencyLevel consistency_level = 6 [default = STRONG]; |
5872 | 0 | if (cached_has_bits & 0x00000800u) { |
5873 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5874 | 0 | 6, this->consistency_level(), output); |
5875 | 0 | } |
5876 | | |
5877 | | // optional .yb.TransactionMetadataPB transaction = 7; |
5878 | 0 | if (cached_has_bits & 0x00000004u) { |
5879 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5880 | 0 | 7, *this->transaction_, output); |
5881 | 0 | } |
5882 | | |
5883 | | // optional fixed64 propagated_hybrid_time = 8; |
5884 | 0 | if (cached_has_bits & 0x00000020u) { |
5885 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(8, this->propagated_hybrid_time(), output); |
5886 | 0 | } |
5887 | | |
5888 | | // optional .yb.ReadHybridTimePB read_time = 9; |
5889 | 0 | if (cached_has_bits & 0x00000008u) { |
5890 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5891 | 0 | 9, *this->read_time_, output); |
5892 | 0 | } |
5893 | | |
5894 | | // repeated .yb.PgsqlReadRequestPB pgsql_batch = 10; |
5895 | 0 | for (unsigned int i = 0, |
5896 | 0 | n = static_cast<unsigned int>(this->pgsql_batch_size()); i < n; i++) { |
5897 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5898 | 0 | 10, this->pgsql_batch(static_cast<int>(i)), output); |
5899 | 0 | } |
5900 | | |
5901 | | // optional string proxy_uuid = 11; |
5902 | 0 | if (cached_has_bits & 0x00000002u) { |
5903 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5904 | 0 | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
5905 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5906 | 0 | "yb.tserver.ReadRequestPB.proxy_uuid"); |
5907 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5908 | 0 | 11, this->proxy_uuid(), output); |
5909 | 0 | } |
5910 | | |
5911 | | // optional bool DEPRECATED_may_have_metadata = 12; |
5912 | 0 | if (cached_has_bits & 0x00000200u) { |
5913 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->deprecated_may_have_metadata(), output); |
5914 | 0 | } |
5915 | | |
5916 | | // optional double rejection_score = 13; |
5917 | 0 | if (cached_has_bits & 0x00000040u) { |
5918 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->rejection_score(), output); |
5919 | 0 | } |
5920 | | |
5921 | | // optional uint64 batch_idx = 14; |
5922 | 0 | if (cached_has_bits & 0x00000080u) { |
5923 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->batch_idx(), output); |
5924 | 0 | } |
5925 | | |
5926 | | // optional .yb.SubTransactionMetadataPB subtransaction = 15; |
5927 | 0 | if (cached_has_bits & 0x00000010u) { |
5928 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5929 | 0 | 15, *this->subtransaction_, output); |
5930 | 0 | } |
5931 | |
|
5932 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5933 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5934 | 0 | _internal_metadata_.unknown_fields(), output); |
5935 | 0 | } |
5936 | | // @@protoc_insertion_point(serialize_end:yb.tserver.ReadRequestPB) |
5937 | 0 | } |
5938 | | |
5939 | | ::google::protobuf::uint8* ReadRequestPB::InternalSerializeWithCachedSizesToArray( |
5940 | 2.13M | bool deterministic, ::google::protobuf::uint8* target) const { |
5941 | 2.13M | (void)deterministic; // Unused |
5942 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.ReadRequestPB) |
5943 | 2.13M | ::google::protobuf::uint32 cached_has_bits = 0; |
5944 | 2.13M | (void) cached_has_bits; |
5945 | | |
5946 | 2.13M | cached_has_bits = _has_bits_[0]; |
5947 | | // optional bytes tablet_id = 1; |
5948 | 2.13M | if (cached_has_bits & 0x00000001u) { |
5949 | 2.12M | target = |
5950 | 2.12M | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5951 | 2.12M | 1, this->tablet_id(), target); |
5952 | 2.12M | } |
5953 | | |
5954 | | // repeated .yb.RedisReadRequestPB redis_batch = 2; |
5955 | 2.13M | for (unsigned int i = 0, |
5956 | 2.15M | n = static_cast<unsigned int>(this->redis_batch_size()); i < n; i++20.3k ) { |
5957 | 20.3k | target = ::google::protobuf::internal::WireFormatLite:: |
5958 | 20.3k | InternalWriteMessageToArray( |
5959 | 20.3k | 2, this->redis_batch(static_cast<int>(i)), deterministic, target); |
5960 | 20.3k | } |
5961 | | |
5962 | | // optional bool cache_blocks = 3 [default = true]; |
5963 | 2.13M | if (cached_has_bits & 0x00000400u) { |
5964 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->cache_blocks(), target); |
5965 | 0 | } |
5966 | | |
5967 | | // repeated .yb.QLReadRequestPB ql_batch = 4; |
5968 | 2.13M | for (unsigned int i = 0, |
5969 | 2.54M | n = static_cast<unsigned int>(this->ql_batch_size()); i < n; i++416k ) { |
5970 | 416k | target = ::google::protobuf::internal::WireFormatLite:: |
5971 | 416k | InternalWriteMessageToArray( |
5972 | 416k | 4, this->ql_batch(static_cast<int>(i)), deterministic, target); |
5973 | 416k | } |
5974 | | |
5975 | | // optional bool include_trace = 5 [default = false]; |
5976 | 2.13M | if (cached_has_bits & 0x00000100u) { |
5977 | 2.12M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->include_trace(), target); |
5978 | 2.12M | } |
5979 | | |
5980 | | // optional .yb.YBConsistencyLevel consistency_level = 6 [default = STRONG]; |
5981 | 2.13M | if (cached_has_bits & 0x00000800u) { |
5982 | 2.12M | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5983 | 2.12M | 6, this->consistency_level(), target); |
5984 | 2.12M | } |
5985 | | |
5986 | | // optional .yb.TransactionMetadataPB transaction = 7; |
5987 | 2.13M | if (cached_has_bits & 0x00000004u) { |
5988 | 781k | target = ::google::protobuf::internal::WireFormatLite:: |
5989 | 781k | InternalWriteMessageToArray( |
5990 | 781k | 7, *this->transaction_, deterministic, target); |
5991 | 781k | } |
5992 | | |
5993 | | // optional fixed64 propagated_hybrid_time = 8; |
5994 | 2.13M | if (cached_has_bits & 0x00000020u) { |
5995 | 2.10M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(8, this->propagated_hybrid_time(), target); |
5996 | 2.10M | } |
5997 | | |
5998 | | // optional .yb.ReadHybridTimePB read_time = 9; |
5999 | 2.13M | if (cached_has_bits & 0x00000008u) { |
6000 | 1.42M | target = ::google::protobuf::internal::WireFormatLite:: |
6001 | 1.42M | InternalWriteMessageToArray( |
6002 | 1.42M | 9, *this->read_time_, deterministic, target); |
6003 | 1.42M | } |
6004 | | |
6005 | | // repeated .yb.PgsqlReadRequestPB pgsql_batch = 10; |
6006 | 2.13M | for (unsigned int i = 0, |
6007 | 5.45M | n = static_cast<unsigned int>(this->pgsql_batch_size()); i < n; i++3.32M ) { |
6008 | 3.32M | target = ::google::protobuf::internal::WireFormatLite:: |
6009 | 3.32M | InternalWriteMessageToArray( |
6010 | 3.32M | 10, this->pgsql_batch(static_cast<int>(i)), deterministic, target); |
6011 | 3.32M | } |
6012 | | |
6013 | | // optional string proxy_uuid = 11; |
6014 | 2.13M | if (cached_has_bits & 0x00000002u) { |
6015 | 2.12M | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6016 | 2.12M | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
6017 | 2.12M | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6018 | 2.12M | "yb.tserver.ReadRequestPB.proxy_uuid"); |
6019 | 2.12M | target = |
6020 | 2.12M | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6021 | 2.12M | 11, this->proxy_uuid(), target); |
6022 | 2.12M | } |
6023 | | |
6024 | | // optional bool DEPRECATED_may_have_metadata = 12; |
6025 | 2.13M | if (cached_has_bits & 0x00000200u) { |
6026 | 781k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->deprecated_may_have_metadata(), target); |
6027 | 781k | } |
6028 | | |
6029 | | // optional double rejection_score = 13; |
6030 | 2.13M | if (cached_has_bits & 0x00000040u) { |
6031 | 2.12M | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->rejection_score(), target); |
6032 | 2.12M | } |
6033 | | |
6034 | | // optional uint64 batch_idx = 14; |
6035 | 2.13M | if (cached_has_bits & 0x00000080u) { |
6036 | 2.12M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->batch_idx(), target); |
6037 | 2.12M | } |
6038 | | |
6039 | | // optional .yb.SubTransactionMetadataPB subtransaction = 15; |
6040 | 2.13M | if (cached_has_bits & 0x00000010u) { |
6041 | 26.1k | target = ::google::protobuf::internal::WireFormatLite:: |
6042 | 26.1k | InternalWriteMessageToArray( |
6043 | 26.1k | 15, *this->subtransaction_, deterministic, target); |
6044 | 26.1k | } |
6045 | | |
6046 | 2.13M | if (_internal_metadata_.have_unknown_fields()) { |
6047 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6048 | 0 | _internal_metadata_.unknown_fields(), target); |
6049 | 0 | } |
6050 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.ReadRequestPB) |
6051 | 2.13M | return target; |
6052 | 2.13M | } |
6053 | | |
6054 | 4.25M | size_t ReadRequestPB::ByteSizeLong() const { |
6055 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.ReadRequestPB) |
6056 | 4.25M | size_t total_size = 0; |
6057 | | |
6058 | 4.25M | if (_internal_metadata_.have_unknown_fields()) { |
6059 | 0 | total_size += |
6060 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6061 | 0 | _internal_metadata_.unknown_fields()); |
6062 | 0 | } |
6063 | | // repeated .yb.RedisReadRequestPB redis_batch = 2; |
6064 | 4.25M | { |
6065 | 4.25M | unsigned int count = static_cast<unsigned int>(this->redis_batch_size()); |
6066 | 4.25M | total_size += 1UL * count; |
6067 | 4.29M | for (unsigned int i = 0; i < count; i++40.6k ) { |
6068 | 40.6k | total_size += |
6069 | 40.6k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6070 | 40.6k | this->redis_batch(static_cast<int>(i))); |
6071 | 40.6k | } |
6072 | 4.25M | } |
6073 | | |
6074 | | // repeated .yb.QLReadRequestPB ql_batch = 4; |
6075 | 4.25M | { |
6076 | 4.25M | unsigned int count = static_cast<unsigned int>(this->ql_batch_size()); |
6077 | 4.25M | total_size += 1UL * count; |
6078 | 5.08M | for (unsigned int i = 0; i < count; i++831k ) { |
6079 | 831k | total_size += |
6080 | 831k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6081 | 831k | this->ql_batch(static_cast<int>(i))); |
6082 | 831k | } |
6083 | 4.25M | } |
6084 | | |
6085 | | // repeated .yb.PgsqlReadRequestPB pgsql_batch = 10; |
6086 | 4.25M | { |
6087 | 4.25M | unsigned int count = static_cast<unsigned int>(this->pgsql_batch_size()); |
6088 | 4.25M | total_size += 1UL * count; |
6089 | 10.9M | for (unsigned int i = 0; i < count; i++6.64M ) { |
6090 | 6.64M | total_size += |
6091 | 6.64M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6092 | 6.64M | this->pgsql_batch(static_cast<int>(i))); |
6093 | 6.64M | } |
6094 | 4.25M | } |
6095 | | |
6096 | 4.25M | if (_has_bits_[0 / 32] & 255u) { |
6097 | | // optional bytes tablet_id = 1; |
6098 | 4.25M | if (has_tablet_id()4.25M ) { |
6099 | 4.25M | total_size += 1 + |
6100 | 4.25M | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6101 | 4.25M | this->tablet_id()); |
6102 | 4.25M | } |
6103 | | |
6104 | | // optional string proxy_uuid = 11; |
6105 | 4.25M | if (has_proxy_uuid()4.25M ) { |
6106 | 4.25M | total_size += 1 + |
6107 | 4.25M | ::google::protobuf::internal::WireFormatLite::StringSize( |
6108 | 4.25M | this->proxy_uuid()); |
6109 | 4.25M | } |
6110 | | |
6111 | | // optional .yb.TransactionMetadataPB transaction = 7; |
6112 | 4.25M | if (has_transaction()) { |
6113 | 1.56M | total_size += 1 + |
6114 | 1.56M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6115 | 1.56M | *this->transaction_); |
6116 | 1.56M | } |
6117 | | |
6118 | | // optional .yb.ReadHybridTimePB read_time = 9; |
6119 | 4.25M | if (has_read_time()) { |
6120 | 2.84M | total_size += 1 + |
6121 | 2.84M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6122 | 2.84M | *this->read_time_); |
6123 | 2.84M | } |
6124 | | |
6125 | | // optional .yb.SubTransactionMetadataPB subtransaction = 15; |
6126 | 4.25M | if (has_subtransaction()) { |
6127 | 52.3k | total_size += 1 + |
6128 | 52.3k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6129 | 52.3k | *this->subtransaction_); |
6130 | 52.3k | } |
6131 | | |
6132 | | // optional fixed64 propagated_hybrid_time = 8; |
6133 | 4.25M | if (has_propagated_hybrid_time()) { |
6134 | 4.21M | total_size += 1 + 8; |
6135 | 4.21M | } |
6136 | | |
6137 | | // optional double rejection_score = 13; |
6138 | 4.25M | if (has_rejection_score()4.25M ) { |
6139 | 4.25M | total_size += 1 + 8; |
6140 | 4.25M | } |
6141 | | |
6142 | | // optional uint64 batch_idx = 14; |
6143 | 4.25M | if (has_batch_idx()4.25M ) { |
6144 | 4.25M | total_size += 1 + |
6145 | 4.25M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6146 | 4.25M | this->batch_idx()); |
6147 | 4.25M | } |
6148 | | |
6149 | 4.25M | } |
6150 | 4.25M | if (_has_bits_[8 / 32] & 3840u) { |
6151 | | // optional bool include_trace = 5 [default = false]; |
6152 | 4.25M | if (has_include_trace()4.25M ) { |
6153 | 4.25M | total_size += 1 + 1; |
6154 | 4.25M | } |
6155 | | |
6156 | | // optional bool DEPRECATED_may_have_metadata = 12; |
6157 | 4.25M | if (has_deprecated_may_have_metadata()) { |
6158 | 1.56M | total_size += 1 + 1; |
6159 | 1.56M | } |
6160 | | |
6161 | | // optional bool cache_blocks = 3 [default = true]; |
6162 | 4.25M | if (has_cache_blocks()) { |
6163 | 0 | total_size += 1 + 1; |
6164 | 0 | } |
6165 | | |
6166 | | // optional .yb.YBConsistencyLevel consistency_level = 6 [default = STRONG]; |
6167 | 4.25M | if (has_consistency_level()4.25M ) { |
6168 | 4.25M | total_size += 1 + |
6169 | 4.25M | ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency_level()); |
6170 | 4.25M | } |
6171 | | |
6172 | 4.25M | } |
6173 | 4.25M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6174 | 4.25M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6175 | 4.25M | _cached_size_ = cached_size; |
6176 | 4.25M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6177 | 4.25M | return total_size; |
6178 | 4.25M | } |
6179 | | |
6180 | 0 | void ReadRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6181 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.ReadRequestPB) |
6182 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6183 | 0 | const ReadRequestPB* source = |
6184 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ReadRequestPB>( |
6185 | 0 | &from); |
6186 | 0 | if (source == NULL) { |
6187 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.ReadRequestPB) |
6188 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6189 | 0 | } else { |
6190 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.ReadRequestPB) |
6191 | 0 | MergeFrom(*source); |
6192 | 0 | } |
6193 | 0 | } |
6194 | | |
6195 | 0 | void ReadRequestPB::MergeFrom(const ReadRequestPB& from) { |
6196 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.ReadRequestPB) |
6197 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6198 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6199 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6200 | 0 | (void) cached_has_bits; |
6201 | |
|
6202 | 0 | redis_batch_.MergeFrom(from.redis_batch_); |
6203 | 0 | ql_batch_.MergeFrom(from.ql_batch_); |
6204 | 0 | pgsql_batch_.MergeFrom(from.pgsql_batch_); |
6205 | 0 | cached_has_bits = from._has_bits_[0]; |
6206 | 0 | if (cached_has_bits & 255u) { |
6207 | 0 | if (cached_has_bits & 0x00000001u) { |
6208 | 0 | set_has_tablet_id(); |
6209 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
6210 | 0 | } |
6211 | 0 | if (cached_has_bits & 0x00000002u) { |
6212 | 0 | set_has_proxy_uuid(); |
6213 | 0 | proxy_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proxy_uuid_); |
6214 | 0 | } |
6215 | 0 | if (cached_has_bits & 0x00000004u) { |
6216 | 0 | mutable_transaction()->::yb::TransactionMetadataPB::MergeFrom(from.transaction()); |
6217 | 0 | } |
6218 | 0 | if (cached_has_bits & 0x00000008u) { |
6219 | 0 | mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time()); |
6220 | 0 | } |
6221 | 0 | if (cached_has_bits & 0x00000010u) { |
6222 | 0 | mutable_subtransaction()->::yb::SubTransactionMetadataPB::MergeFrom(from.subtransaction()); |
6223 | 0 | } |
6224 | 0 | if (cached_has_bits & 0x00000020u) { |
6225 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
6226 | 0 | } |
6227 | 0 | if (cached_has_bits & 0x00000040u) { |
6228 | 0 | rejection_score_ = from.rejection_score_; |
6229 | 0 | } |
6230 | 0 | if (cached_has_bits & 0x00000080u) { |
6231 | 0 | batch_idx_ = from.batch_idx_; |
6232 | 0 | } |
6233 | 0 | _has_bits_[0] |= cached_has_bits; |
6234 | 0 | } |
6235 | 0 | if (cached_has_bits & 3840u) { |
6236 | 0 | if (cached_has_bits & 0x00000100u) { |
6237 | 0 | include_trace_ = from.include_trace_; |
6238 | 0 | } |
6239 | 0 | if (cached_has_bits & 0x00000200u) { |
6240 | 0 | deprecated_may_have_metadata_ = from.deprecated_may_have_metadata_; |
6241 | 0 | } |
6242 | 0 | if (cached_has_bits & 0x00000400u) { |
6243 | 0 | cache_blocks_ = from.cache_blocks_; |
6244 | 0 | } |
6245 | 0 | if (cached_has_bits & 0x00000800u) { |
6246 | 0 | consistency_level_ = from.consistency_level_; |
6247 | 0 | } |
6248 | 0 | _has_bits_[0] |= cached_has_bits; |
6249 | 0 | } |
6250 | 0 | } |
6251 | | |
6252 | 0 | void ReadRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6253 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.ReadRequestPB) |
6254 | 0 | if (&from == this) return; |
6255 | 0 | Clear(); |
6256 | 0 | MergeFrom(from); |
6257 | 0 | } |
6258 | | |
6259 | 0 | void ReadRequestPB::CopyFrom(const ReadRequestPB& from) { |
6260 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.ReadRequestPB) |
6261 | 0 | if (&from == this) return; |
6262 | 0 | Clear(); |
6263 | 0 | MergeFrom(from); |
6264 | 0 | } |
6265 | | |
6266 | 4.26M | bool ReadRequestPB::IsInitialized() const { |
6267 | 4.26M | if (!::google::protobuf::internal::AllAreInitialized(this->redis_batch())) return false0 ; |
6268 | 4.26M | if (!::google::protobuf::internal::AllAreInitialized(this->ql_batch())) return false0 ; |
6269 | 4.26M | return true; |
6270 | 4.26M | } |
6271 | | |
6272 | 0 | void ReadRequestPB::Swap(ReadRequestPB* other) { |
6273 | 0 | if (other == this) return; |
6274 | 0 | InternalSwap(other); |
6275 | 0 | } |
6276 | 0 | void ReadRequestPB::InternalSwap(ReadRequestPB* other) { |
6277 | 0 | using std::swap; |
6278 | 0 | redis_batch_.InternalSwap(&other->redis_batch_); |
6279 | 0 | ql_batch_.InternalSwap(&other->ql_batch_); |
6280 | 0 | pgsql_batch_.InternalSwap(&other->pgsql_batch_); |
6281 | 0 | tablet_id_.Swap(&other->tablet_id_); |
6282 | 0 | proxy_uuid_.Swap(&other->proxy_uuid_); |
6283 | 0 | swap(transaction_, other->transaction_); |
6284 | 0 | swap(read_time_, other->read_time_); |
6285 | 0 | swap(subtransaction_, other->subtransaction_); |
6286 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
6287 | 0 | swap(rejection_score_, other->rejection_score_); |
6288 | 0 | swap(batch_idx_, other->batch_idx_); |
6289 | 0 | swap(include_trace_, other->include_trace_); |
6290 | 0 | swap(deprecated_may_have_metadata_, other->deprecated_may_have_metadata_); |
6291 | 0 | swap(cache_blocks_, other->cache_blocks_); |
6292 | 0 | swap(consistency_level_, other->consistency_level_); |
6293 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6294 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6295 | 0 | swap(_cached_size_, other->_cached_size_); |
6296 | 0 | } |
6297 | | |
6298 | 2.13M | ::google::protobuf::Metadata ReadRequestPB::GetMetadata() const { |
6299 | 2.13M | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
6300 | 2.13M | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
6301 | 2.13M | } |
6302 | | |
6303 | | |
6304 | | // =================================================================== |
6305 | | |
6306 | 26.8k | void ReadResponsePB::InitAsDefaultInstance() { |
6307 | 26.8k | ::yb::tserver::_ReadResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
6308 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
6309 | 26.8k | ::yb::tserver::_ReadResponsePB_default_instance_._instance.get_mutable()->restart_read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
6310 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
6311 | 26.8k | ::yb::tserver::_ReadResponsePB_default_instance_._instance.get_mutable()->used_read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
6312 | 26.8k | ::yb::ReadHybridTimePB::internal_default_instance()); |
6313 | 26.8k | } |
6314 | 0 | void ReadResponsePB::clear_redis_batch() { |
6315 | 0 | redis_batch_.Clear(); |
6316 | 0 | } |
6317 | 0 | void ReadResponsePB::clear_ql_batch() { |
6318 | 0 | ql_batch_.Clear(); |
6319 | 0 | } |
6320 | 0 | void ReadResponsePB::clear_pgsql_batch() { |
6321 | 0 | pgsql_batch_.Clear(); |
6322 | 0 | } |
6323 | 0 | void ReadResponsePB::clear_error() { |
6324 | 0 | if (error_ != NULL) error_->Clear(); |
6325 | 0 | clear_has_error(); |
6326 | 0 | } |
6327 | 0 | void ReadResponsePB::clear_restart_read_time() { |
6328 | 0 | if (restart_read_time_ != NULL) restart_read_time_->Clear(); |
6329 | 0 | clear_has_restart_read_time(); |
6330 | 0 | } |
6331 | 0 | void ReadResponsePB::clear_used_read_time() { |
6332 | 0 | if (used_read_time_ != NULL) used_read_time_->Clear(); |
6333 | 0 | clear_has_used_read_time(); |
6334 | 0 | } |
6335 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6336 | | const int ReadResponsePB::kRedisBatchFieldNumber; |
6337 | | const int ReadResponsePB::kQlBatchFieldNumber; |
6338 | | const int ReadResponsePB::kPgsqlBatchFieldNumber; |
6339 | | const int ReadResponsePB::kErrorFieldNumber; |
6340 | | const int ReadResponsePB::kTraceBufferFieldNumber; |
6341 | | const int ReadResponsePB::kPropagatedHybridTimeFieldNumber; |
6342 | | const int ReadResponsePB::kRestartReadTimeFieldNumber; |
6343 | | const int ReadResponsePB::kUsedReadTimeFieldNumber; |
6344 | | const int ReadResponsePB::kLocalLimitHtFieldNumber; |
6345 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6346 | | |
6347 | | ReadResponsePB::ReadResponsePB() |
6348 | 11.6M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6349 | 11.6M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6350 | 11.6M | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsReadResponsePB(); |
6351 | 11.6M | } |
6352 | 11.6M | SharedCtor(); |
6353 | | // @@protoc_insertion_point(constructor:yb.tserver.ReadResponsePB) |
6354 | 11.6M | } |
6355 | | ReadResponsePB::ReadResponsePB(const ReadResponsePB& from) |
6356 | | : ::google::protobuf::Message(), |
6357 | | _internal_metadata_(NULL), |
6358 | | _has_bits_(from._has_bits_), |
6359 | | _cached_size_(0), |
6360 | | redis_batch_(from.redis_batch_), |
6361 | | ql_batch_(from.ql_batch_), |
6362 | 0 | pgsql_batch_(from.pgsql_batch_) { |
6363 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6364 | 0 | trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6365 | 0 | if (from.has_trace_buffer()) { |
6366 | 0 | trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_); |
6367 | 0 | } |
6368 | 0 | if (from.has_error()) { |
6369 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
6370 | 0 | } else { |
6371 | 0 | error_ = NULL; |
6372 | 0 | } |
6373 | 0 | if (from.has_restart_read_time()) { |
6374 | 0 | restart_read_time_ = new ::yb::ReadHybridTimePB(*from.restart_read_time_); |
6375 | 0 | } else { |
6376 | 0 | restart_read_time_ = NULL; |
6377 | 0 | } |
6378 | 0 | if (from.has_used_read_time()) { |
6379 | 0 | used_read_time_ = new ::yb::ReadHybridTimePB(*from.used_read_time_); |
6380 | 0 | } else { |
6381 | 0 | used_read_time_ = NULL; |
6382 | 0 | } |
6383 | 0 | ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_, |
6384 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&local_limit_ht_) - |
6385 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(local_limit_ht_)); |
6386 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.ReadResponsePB) |
6387 | 0 | } |
6388 | | |
6389 | 11.6M | void ReadResponsePB::SharedCtor() { |
6390 | 11.6M | _cached_size_ = 0; |
6391 | 11.6M | trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6392 | 11.6M | ::memset(&error_, 0, static_cast<size_t>( |
6393 | 11.6M | reinterpret_cast<char*>(&local_limit_ht_) - |
6394 | 11.6M | reinterpret_cast<char*>(&error_)) + sizeof(local_limit_ht_)); |
6395 | 11.6M | } |
6396 | | |
6397 | 11.6M | ReadResponsePB::~ReadResponsePB() { |
6398 | | // @@protoc_insertion_point(destructor:yb.tserver.ReadResponsePB) |
6399 | 11.6M | SharedDtor(); |
6400 | 11.6M | } |
6401 | | |
6402 | 11.6M | void ReadResponsePB::SharedDtor() { |
6403 | 11.6M | trace_buffer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6404 | 11.6M | if (this != internal_default_instance()) delete error_11.6M ; |
6405 | 11.6M | if (this != internal_default_instance()) delete restart_read_time_11.6M ; |
6406 | 11.6M | if (this != internal_default_instance()) delete used_read_time_11.6M ; |
6407 | 11.6M | } |
6408 | | |
6409 | 0 | void ReadResponsePB::SetCachedSize(int size) const { |
6410 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6411 | 0 | _cached_size_ = size; |
6412 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6413 | 0 | } |
6414 | 0 | const ::google::protobuf::Descriptor* ReadResponsePB::descriptor() { |
6415 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
6416 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6417 | 0 | } |
6418 | | |
6419 | 0 | const ReadResponsePB& ReadResponsePB::default_instance() { |
6420 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsReadResponsePB(); |
6421 | 0 | return *internal_default_instance(); |
6422 | 0 | } |
6423 | | |
6424 | 0 | ReadResponsePB* ReadResponsePB::New(::google::protobuf::Arena* arena) const { |
6425 | 0 | ReadResponsePB* n = new ReadResponsePB; |
6426 | 0 | if (arena != NULL) { |
6427 | 0 | arena->Own(n); |
6428 | 0 | } |
6429 | 0 | return n; |
6430 | 0 | } |
6431 | | |
6432 | 18.9M | void ReadResponsePB::Clear() { |
6433 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.ReadResponsePB) |
6434 | 18.9M | ::google::protobuf::uint32 cached_has_bits = 0; |
6435 | | // Prevent compiler warnings about cached_has_bits being unused |
6436 | 18.9M | (void) cached_has_bits; |
6437 | | |
6438 | 18.9M | redis_batch_.Clear(); |
6439 | 18.9M | ql_batch_.Clear(); |
6440 | 18.9M | pgsql_batch_.Clear(); |
6441 | 18.9M | cached_has_bits = _has_bits_[0]; |
6442 | 18.9M | if (cached_has_bits & 15u) { |
6443 | 22.4k | if (cached_has_bits & 0x00000001u) { |
6444 | 0 | GOOGLE_DCHECK(!trace_buffer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
6445 | 0 | (*trace_buffer_.UnsafeRawStringPointer())->clear(); |
6446 | 0 | } |
6447 | 22.4k | if (cached_has_bits & 0x00000002u22.4k ) { |
6448 | 22.4k | GOOGLE_DCHECK(error_ != NULL); |
6449 | 22.4k | error_->Clear(); |
6450 | 22.4k | } |
6451 | 22.4k | if (cached_has_bits & 0x00000004u) { |
6452 | 0 | GOOGLE_DCHECK(restart_read_time_ != NULL); |
6453 | 0 | restart_read_time_->Clear(); |
6454 | 0 | } |
6455 | 22.4k | if (cached_has_bits & 0x00000008u) { |
6456 | 0 | GOOGLE_DCHECK(used_read_time_ != NULL); |
6457 | 0 | used_read_time_->Clear(); |
6458 | 0 | } |
6459 | 22.4k | } |
6460 | 18.9M | if (cached_has_bits & 48u) { |
6461 | 0 | ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>( |
6462 | 0 | reinterpret_cast<char*>(&local_limit_ht_) - |
6463 | 0 | reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(local_limit_ht_)); |
6464 | 0 | } |
6465 | 18.9M | _has_bits_.Clear(); |
6466 | 18.9M | _internal_metadata_.Clear(); |
6467 | 18.9M | } |
6468 | | |
6469 | | bool ReadResponsePB::MergePartialFromCodedStream( |
6470 | 2.12M | ::google::protobuf::io::CodedInputStream* input) { |
6471 | 7.33M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
6472 | 2.12M | ::google::protobuf::uint32 tag; |
6473 | | // @@protoc_insertion_point(parse_start:yb.tserver.ReadResponsePB) |
6474 | 9.46M | for (;;) { |
6475 | 9.46M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6476 | 9.46M | tag = p.first; |
6477 | 9.46M | if (!p.second) goto handle_unusual2.12M ; |
6478 | 7.33M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6479 | | // repeated .yb.RedisResponsePB redis_batch = 1; |
6480 | 20.2k | case 1: { |
6481 | 20.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6482 | 20.2k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
6483 | 20.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_redis_batch())); |
6484 | 20.2k | } else { |
6485 | 0 | goto handle_unusual; |
6486 | 0 | } |
6487 | 20.2k | break; |
6488 | 20.2k | } |
6489 | | |
6490 | | // optional .yb.tserver.TabletServerErrorPB error = 3; |
6491 | 76.2k | case 3: { |
6492 | 76.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6493 | 76.2k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
6494 | 76.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6495 | 76.2k | input, mutable_error())); |
6496 | 18.4E | } else { |
6497 | 18.4E | goto handle_unusual; |
6498 | 18.4E | } |
6499 | 76.2k | break; |
6500 | 76.2k | } |
6501 | | |
6502 | | // repeated .yb.QLResponsePB ql_batch = 4; |
6503 | 404k | case 4: { |
6504 | 404k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6505 | 404k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
6506 | 403k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ql_batch())); |
6507 | 403k | } else { |
6508 | 160 | goto handle_unusual; |
6509 | 160 | } |
6510 | 403k | break; |
6511 | 404k | } |
6512 | | |
6513 | | // optional string trace_buffer = 5; |
6514 | 403k | case 5: { |
6515 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6516 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
6517 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6518 | 0 | input, this->mutable_trace_buffer())); |
6519 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6520 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
6521 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
6522 | 0 | "yb.tserver.ReadResponsePB.trace_buffer"); |
6523 | 0 | } else { |
6524 | 0 | goto handle_unusual; |
6525 | 0 | } |
6526 | 0 | break; |
6527 | 0 | } |
6528 | | |
6529 | | // optional fixed64 propagated_hybrid_time = 6; |
6530 | 2.05M | case 6: { |
6531 | 2.05M | if (static_cast< ::google::protobuf::uint8>(tag) == |
6532 | 2.05M | static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { |
6533 | 2.05M | set_has_propagated_hybrid_time(); |
6534 | 2.05M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6535 | 2.05M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
6536 | 2.05M | input, &propagated_hybrid_time_))); |
6537 | 18.4E | } else { |
6538 | 18.4E | goto handle_unusual; |
6539 | 18.4E | } |
6540 | 2.05M | break; |
6541 | 2.05M | } |
6542 | | |
6543 | | // optional .yb.ReadHybridTimePB restart_read_time = 7; |
6544 | 2.05M | case 7: { |
6545 | 1.19k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6546 | 1.19k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
6547 | 1.19k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6548 | 1.19k | input, mutable_restart_read_time())); |
6549 | 1.19k | } else { |
6550 | 0 | goto handle_unusual; |
6551 | 0 | } |
6552 | 1.19k | break; |
6553 | 1.19k | } |
6554 | | |
6555 | | // repeated .yb.PgsqlResponsePB pgsql_batch = 8; |
6556 | 2.72M | case 8: { |
6557 | 2.72M | if (static_cast< ::google::protobuf::uint8>(tag) == |
6558 | 2.72M | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
6559 | 2.72M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pgsql_batch())); |
6560 | 18.4E | } else { |
6561 | 18.4E | goto handle_unusual; |
6562 | 18.4E | } |
6563 | 2.72M | break; |
6564 | 2.72M | } |
6565 | | |
6566 | | // optional .yb.ReadHybridTimePB used_read_time = 9; |
6567 | 2.72M | case 9: { |
6568 | 631k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6569 | 632k | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
6570 | 632k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6571 | 632k | input, mutable_used_read_time())); |
6572 | 18.4E | } else { |
6573 | 18.4E | goto handle_unusual; |
6574 | 18.4E | } |
6575 | 632k | break; |
6576 | 631k | } |
6577 | | |
6578 | | // optional fixed64 local_limit_ht = 10; |
6579 | 1.41M | case 10: { |
6580 | 1.41M | if (static_cast< ::google::protobuf::uint8>(tag) == |
6581 | 1.41M | static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { |
6582 | 1.41M | set_has_local_limit_ht(); |
6583 | 1.41M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6584 | 1.41M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
6585 | 1.41M | input, &local_limit_ht_))); |
6586 | 18.4E | } else { |
6587 | 18.4E | goto handle_unusual; |
6588 | 18.4E | } |
6589 | 1.41M | break; |
6590 | 1.41M | } |
6591 | | |
6592 | 1.41M | default: { |
6593 | 2.12M | handle_unusual: |
6594 | 2.12M | if (tag == 02.12M ) { |
6595 | 2.12M | goto success; |
6596 | 2.12M | } |
6597 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6598 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6599 | 18.4E | break; |
6600 | 18.4E | } |
6601 | 7.33M | } |
6602 | 7.33M | } |
6603 | 2.12M | success: |
6604 | | // @@protoc_insertion_point(parse_success:yb.tserver.ReadResponsePB) |
6605 | 2.12M | return true; |
6606 | 0 | failure: |
6607 | | // @@protoc_insertion_point(parse_failure:yb.tserver.ReadResponsePB) |
6608 | 0 | return false; |
6609 | 2.12M | #undef DO_ |
6610 | 2.12M | } |
6611 | | |
6612 | | void ReadResponsePB::SerializeWithCachedSizes( |
6613 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6614 | | // @@protoc_insertion_point(serialize_start:yb.tserver.ReadResponsePB) |
6615 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6616 | 0 | (void) cached_has_bits; |
6617 | | |
6618 | | // repeated .yb.RedisResponsePB redis_batch = 1; |
6619 | 0 | for (unsigned int i = 0, |
6620 | 0 | n = static_cast<unsigned int>(this->redis_batch_size()); i < n; i++) { |
6621 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6622 | 0 | 1, this->redis_batch(static_cast<int>(i)), output); |
6623 | 0 | } |
6624 | |
|
6625 | 0 | cached_has_bits = _has_bits_[0]; |
6626 | | // optional .yb.tserver.TabletServerErrorPB error = 3; |
6627 | 0 | if (cached_has_bits & 0x00000002u) { |
6628 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6629 | 0 | 3, *this->error_, output); |
6630 | 0 | } |
6631 | | |
6632 | | // repeated .yb.QLResponsePB ql_batch = 4; |
6633 | 0 | for (unsigned int i = 0, |
6634 | 0 | n = static_cast<unsigned int>(this->ql_batch_size()); i < n; i++) { |
6635 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6636 | 0 | 4, this->ql_batch(static_cast<int>(i)), output); |
6637 | 0 | } |
6638 | | |
6639 | | // optional string trace_buffer = 5; |
6640 | 0 | if (cached_has_bits & 0x00000001u) { |
6641 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6642 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
6643 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6644 | 0 | "yb.tserver.ReadResponsePB.trace_buffer"); |
6645 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6646 | 0 | 5, this->trace_buffer(), output); |
6647 | 0 | } |
6648 | | |
6649 | | // optional fixed64 propagated_hybrid_time = 6; |
6650 | 0 | if (cached_has_bits & 0x00000010u) { |
6651 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->propagated_hybrid_time(), output); |
6652 | 0 | } |
6653 | | |
6654 | | // optional .yb.ReadHybridTimePB restart_read_time = 7; |
6655 | 0 | if (cached_has_bits & 0x00000004u) { |
6656 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6657 | 0 | 7, *this->restart_read_time_, output); |
6658 | 0 | } |
6659 | | |
6660 | | // repeated .yb.PgsqlResponsePB pgsql_batch = 8; |
6661 | 0 | for (unsigned int i = 0, |
6662 | 0 | n = static_cast<unsigned int>(this->pgsql_batch_size()); i < n; i++) { |
6663 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6664 | 0 | 8, this->pgsql_batch(static_cast<int>(i)), output); |
6665 | 0 | } |
6666 | | |
6667 | | // optional .yb.ReadHybridTimePB used_read_time = 9; |
6668 | 0 | if (cached_has_bits & 0x00000008u) { |
6669 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6670 | 0 | 9, *this->used_read_time_, output); |
6671 | 0 | } |
6672 | | |
6673 | | // optional fixed64 local_limit_ht = 10; |
6674 | 0 | if (cached_has_bits & 0x00000020u) { |
6675 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(10, this->local_limit_ht(), output); |
6676 | 0 | } |
6677 | |
|
6678 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6679 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6680 | 0 | _internal_metadata_.unknown_fields(), output); |
6681 | 0 | } |
6682 | | // @@protoc_insertion_point(serialize_end:yb.tserver.ReadResponsePB) |
6683 | 0 | } |
6684 | | |
6685 | | ::google::protobuf::uint8* ReadResponsePB::InternalSerializeWithCachedSizesToArray( |
6686 | 2.12M | bool deterministic, ::google::protobuf::uint8* target) const { |
6687 | 2.12M | (void)deterministic; // Unused |
6688 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.ReadResponsePB) |
6689 | 2.12M | ::google::protobuf::uint32 cached_has_bits = 0; |
6690 | 2.12M | (void) cached_has_bits; |
6691 | | |
6692 | | // repeated .yb.RedisResponsePB redis_batch = 1; |
6693 | 2.12M | for (unsigned int i = 0, |
6694 | 2.14M | n = static_cast<unsigned int>(this->redis_batch_size()); i < n; i++20.2k ) { |
6695 | 20.2k | target = ::google::protobuf::internal::WireFormatLite:: |
6696 | 20.2k | InternalWriteMessageToArray( |
6697 | 20.2k | 1, this->redis_batch(static_cast<int>(i)), deterministic, target); |
6698 | 20.2k | } |
6699 | | |
6700 | 2.12M | cached_has_bits = _has_bits_[0]; |
6701 | | // optional .yb.tserver.TabletServerErrorPB error = 3; |
6702 | 2.12M | if (cached_has_bits & 0x00000002u) { |
6703 | 76.2k | target = ::google::protobuf::internal::WireFormatLite:: |
6704 | 76.2k | InternalWriteMessageToArray( |
6705 | 76.2k | 3, *this->error_, deterministic, target); |
6706 | 76.2k | } |
6707 | | |
6708 | | // repeated .yb.QLResponsePB ql_batch = 4; |
6709 | 2.12M | for (unsigned int i = 0, |
6710 | 2.52M | n = static_cast<unsigned int>(this->ql_batch_size()); i < n; i++401k ) { |
6711 | 401k | target = ::google::protobuf::internal::WireFormatLite:: |
6712 | 401k | InternalWriteMessageToArray( |
6713 | 401k | 4, this->ql_batch(static_cast<int>(i)), deterministic, target); |
6714 | 401k | } |
6715 | | |
6716 | | // optional string trace_buffer = 5; |
6717 | 2.12M | if (cached_has_bits & 0x00000001u) { |
6718 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6719 | 0 | this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()), |
6720 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6721 | 0 | "yb.tserver.ReadResponsePB.trace_buffer"); |
6722 | 0 | target = |
6723 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6724 | 0 | 5, this->trace_buffer(), target); |
6725 | 0 | } |
6726 | | |
6727 | | // optional fixed64 propagated_hybrid_time = 6; |
6728 | 2.12M | if (cached_has_bits & 0x00000010u) { |
6729 | 2.05M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->propagated_hybrid_time(), target); |
6730 | 2.05M | } |
6731 | | |
6732 | | // optional .yb.ReadHybridTimePB restart_read_time = 7; |
6733 | 2.12M | if (cached_has_bits & 0x00000004u) { |
6734 | 1.18k | target = ::google::protobuf::internal::WireFormatLite:: |
6735 | 1.18k | InternalWriteMessageToArray( |
6736 | 1.18k | 7, *this->restart_read_time_, deterministic, target); |
6737 | 1.18k | } |
6738 | | |
6739 | | // repeated .yb.PgsqlResponsePB pgsql_batch = 8; |
6740 | 2.12M | for (unsigned int i = 0, |
6741 | 4.84M | n = static_cast<unsigned int>(this->pgsql_batch_size()); i < n; i++2.72M ) { |
6742 | 2.72M | target = ::google::protobuf::internal::WireFormatLite:: |
6743 | 2.72M | InternalWriteMessageToArray( |
6744 | 2.72M | 8, this->pgsql_batch(static_cast<int>(i)), deterministic, target); |
6745 | 2.72M | } |
6746 | | |
6747 | | // optional .yb.ReadHybridTimePB used_read_time = 9; |
6748 | 2.12M | if (cached_has_bits & 0x00000008u) { |
6749 | 629k | target = ::google::protobuf::internal::WireFormatLite:: |
6750 | 629k | InternalWriteMessageToArray( |
6751 | 629k | 9, *this->used_read_time_, deterministic, target); |
6752 | 629k | } |
6753 | | |
6754 | | // optional fixed64 local_limit_ht = 10; |
6755 | 2.12M | if (cached_has_bits & 0x00000020u) { |
6756 | 1.41M | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(10, this->local_limit_ht(), target); |
6757 | 1.41M | } |
6758 | | |
6759 | 2.12M | if (_internal_metadata_.have_unknown_fields()) { |
6760 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6761 | 0 | _internal_metadata_.unknown_fields(), target); |
6762 | 0 | } |
6763 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.ReadResponsePB) |
6764 | 2.12M | return target; |
6765 | 2.12M | } |
6766 | | |
6767 | 4.25M | size_t ReadResponsePB::ByteSizeLong() const { |
6768 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.ReadResponsePB) |
6769 | 4.25M | size_t total_size = 0; |
6770 | | |
6771 | 4.25M | if (_internal_metadata_.have_unknown_fields()) { |
6772 | 0 | total_size += |
6773 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6774 | 0 | _internal_metadata_.unknown_fields()); |
6775 | 0 | } |
6776 | | // repeated .yb.RedisResponsePB redis_batch = 1; |
6777 | 4.25M | { |
6778 | 4.25M | unsigned int count = static_cast<unsigned int>(this->redis_batch_size()); |
6779 | 4.25M | total_size += 1UL * count; |
6780 | 4.29M | for (unsigned int i = 0; i < count; i++40.4k ) { |
6781 | 40.4k | total_size += |
6782 | 40.4k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6783 | 40.4k | this->redis_batch(static_cast<int>(i))); |
6784 | 40.4k | } |
6785 | 4.25M | } |
6786 | | |
6787 | | // repeated .yb.QLResponsePB ql_batch = 4; |
6788 | 4.25M | { |
6789 | 4.25M | unsigned int count = static_cast<unsigned int>(this->ql_batch_size()); |
6790 | 4.25M | total_size += 1UL * count; |
6791 | 5.05M | for (unsigned int i = 0; i < count; i++802k ) { |
6792 | 802k | total_size += |
6793 | 802k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6794 | 802k | this->ql_batch(static_cast<int>(i))); |
6795 | 802k | } |
6796 | 4.25M | } |
6797 | | |
6798 | | // repeated .yb.PgsqlResponsePB pgsql_batch = 8; |
6799 | 4.25M | { |
6800 | 4.25M | unsigned int count = static_cast<unsigned int>(this->pgsql_batch_size()); |
6801 | 4.25M | total_size += 1UL * count; |
6802 | 9.70M | for (unsigned int i = 0; i < count; i++5.44M ) { |
6803 | 5.44M | total_size += |
6804 | 5.44M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6805 | 5.44M | this->pgsql_batch(static_cast<int>(i))); |
6806 | 5.44M | } |
6807 | 4.25M | } |
6808 | | |
6809 | 4.25M | if (_has_bits_[0 / 32] & 63u) { |
6810 | | // optional string trace_buffer = 5; |
6811 | 4.24M | if (has_trace_buffer()) { |
6812 | 0 | total_size += 1 + |
6813 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6814 | 0 | this->trace_buffer()); |
6815 | 0 | } |
6816 | | |
6817 | | // optional .yb.tserver.TabletServerErrorPB error = 3; |
6818 | 4.24M | if (has_error()) { |
6819 | 152k | total_size += 1 + |
6820 | 152k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6821 | 152k | *this->error_); |
6822 | 152k | } |
6823 | | |
6824 | | // optional .yb.ReadHybridTimePB restart_read_time = 7; |
6825 | 4.24M | if (has_restart_read_time()) { |
6826 | 2.37k | total_size += 1 + |
6827 | 2.37k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6828 | 2.37k | *this->restart_read_time_); |
6829 | 2.37k | } |
6830 | | |
6831 | | // optional .yb.ReadHybridTimePB used_read_time = 9; |
6832 | 4.24M | if (has_used_read_time()) { |
6833 | 1.25M | total_size += 1 + |
6834 | 1.25M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6835 | 1.25M | *this->used_read_time_); |
6836 | 1.25M | } |
6837 | | |
6838 | | // optional fixed64 propagated_hybrid_time = 6; |
6839 | 4.24M | if (has_propagated_hybrid_time()) { |
6840 | 4.09M | total_size += 1 + 8; |
6841 | 4.09M | } |
6842 | | |
6843 | | // optional fixed64 local_limit_ht = 10; |
6844 | 4.24M | if (has_local_limit_ht()) { |
6845 | 2.83M | total_size += 1 + 8; |
6846 | 2.83M | } |
6847 | | |
6848 | 4.24M | } |
6849 | 4.25M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6850 | 4.25M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6851 | 4.25M | _cached_size_ = cached_size; |
6852 | 4.25M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6853 | 4.25M | return total_size; |
6854 | 4.25M | } |
6855 | | |
6856 | 0 | void ReadResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
6857 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.ReadResponsePB) |
6858 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6859 | 0 | const ReadResponsePB* source = |
6860 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ReadResponsePB>( |
6861 | 0 | &from); |
6862 | 0 | if (source == NULL) { |
6863 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.ReadResponsePB) |
6864 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6865 | 0 | } else { |
6866 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.ReadResponsePB) |
6867 | 0 | MergeFrom(*source); |
6868 | 0 | } |
6869 | 0 | } |
6870 | | |
6871 | 0 | void ReadResponsePB::MergeFrom(const ReadResponsePB& from) { |
6872 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.ReadResponsePB) |
6873 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6874 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6875 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6876 | 0 | (void) cached_has_bits; |
6877 | |
|
6878 | 0 | redis_batch_.MergeFrom(from.redis_batch_); |
6879 | 0 | ql_batch_.MergeFrom(from.ql_batch_); |
6880 | 0 | pgsql_batch_.MergeFrom(from.pgsql_batch_); |
6881 | 0 | cached_has_bits = from._has_bits_[0]; |
6882 | 0 | if (cached_has_bits & 63u) { |
6883 | 0 | if (cached_has_bits & 0x00000001u) { |
6884 | 0 | set_has_trace_buffer(); |
6885 | 0 | trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_); |
6886 | 0 | } |
6887 | 0 | if (cached_has_bits & 0x00000002u) { |
6888 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
6889 | 0 | } |
6890 | 0 | if (cached_has_bits & 0x00000004u) { |
6891 | 0 | mutable_restart_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.restart_read_time()); |
6892 | 0 | } |
6893 | 0 | if (cached_has_bits & 0x00000008u) { |
6894 | 0 | mutable_used_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.used_read_time()); |
6895 | 0 | } |
6896 | 0 | if (cached_has_bits & 0x00000010u) { |
6897 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
6898 | 0 | } |
6899 | 0 | if (cached_has_bits & 0x00000020u) { |
6900 | 0 | local_limit_ht_ = from.local_limit_ht_; |
6901 | 0 | } |
6902 | 0 | _has_bits_[0] |= cached_has_bits; |
6903 | 0 | } |
6904 | 0 | } |
6905 | | |
6906 | 0 | void ReadResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
6907 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.ReadResponsePB) |
6908 | 0 | if (&from == this) return; |
6909 | 0 | Clear(); |
6910 | 0 | MergeFrom(from); |
6911 | 0 | } |
6912 | | |
6913 | 0 | void ReadResponsePB::CopyFrom(const ReadResponsePB& from) { |
6914 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.ReadResponsePB) |
6915 | 0 | if (&from == this) return; |
6916 | 0 | Clear(); |
6917 | 0 | MergeFrom(from); |
6918 | 0 | } |
6919 | | |
6920 | 4.25M | bool ReadResponsePB::IsInitialized() const { |
6921 | 4.25M | if (!::google::protobuf::internal::AllAreInitialized(this->ql_batch())) return false0 ; |
6922 | 4.25M | if (has_error()) { |
6923 | 152k | if (!this->error_->IsInitialized()) return false0 ; |
6924 | 152k | } |
6925 | 4.25M | return true; |
6926 | 4.25M | } |
6927 | | |
6928 | 0 | void ReadResponsePB::Swap(ReadResponsePB* other) { |
6929 | 0 | if (other == this) return; |
6930 | 0 | InternalSwap(other); |
6931 | 0 | } |
6932 | 0 | void ReadResponsePB::InternalSwap(ReadResponsePB* other) { |
6933 | 0 | using std::swap; |
6934 | 0 | redis_batch_.InternalSwap(&other->redis_batch_); |
6935 | 0 | ql_batch_.InternalSwap(&other->ql_batch_); |
6936 | 0 | pgsql_batch_.InternalSwap(&other->pgsql_batch_); |
6937 | 0 | trace_buffer_.Swap(&other->trace_buffer_); |
6938 | 0 | swap(error_, other->error_); |
6939 | 0 | swap(restart_read_time_, other->restart_read_time_); |
6940 | 0 | swap(used_read_time_, other->used_read_time_); |
6941 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
6942 | 0 | swap(local_limit_ht_, other->local_limit_ht_); |
6943 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6944 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6945 | 0 | swap(_cached_size_, other->_cached_size_); |
6946 | 0 | } |
6947 | | |
6948 | 8 | ::google::protobuf::Metadata ReadResponsePB::GetMetadata() const { |
6949 | 8 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
6950 | 8 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
6951 | 8 | } |
6952 | | |
6953 | | |
6954 | | // =================================================================== |
6955 | | |
6956 | 26.8k | void TruncateRequestPB::InitAsDefaultInstance() { |
6957 | 26.8k | ::yb::tserver::_TruncateRequestPB_default_instance_._instance.get_mutable()->truncate_ = const_cast< ::yb::tablet::TruncatePB*>( |
6958 | 26.8k | ::yb::tablet::TruncatePB::internal_default_instance()); |
6959 | 26.8k | } |
6960 | 0 | void TruncateRequestPB::clear_truncate() { |
6961 | 0 | if (truncate_ != NULL) truncate_->Clear(); |
6962 | 0 | clear_has_truncate(); |
6963 | 0 | } |
6964 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6965 | | const int TruncateRequestPB::kTabletIdFieldNumber; |
6966 | | const int TruncateRequestPB::kPropagatedHybridTimeFieldNumber; |
6967 | | const int TruncateRequestPB::kTruncateFieldNumber; |
6968 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6969 | | |
6970 | | TruncateRequestPB::TruncateRequestPB() |
6971 | 141k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6972 | 141k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6973 | 114k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateRequestPB(); |
6974 | 114k | } |
6975 | 141k | SharedCtor(); |
6976 | | // @@protoc_insertion_point(constructor:yb.tserver.TruncateRequestPB) |
6977 | 141k | } |
6978 | | TruncateRequestPB::TruncateRequestPB(const TruncateRequestPB& from) |
6979 | | : ::google::protobuf::Message(), |
6980 | | _internal_metadata_(NULL), |
6981 | | _has_bits_(from._has_bits_), |
6982 | 0 | _cached_size_(0) { |
6983 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6984 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6985 | 0 | if (from.has_tablet_id()) { |
6986 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
6987 | 0 | } |
6988 | 0 | if (from.has_truncate()) { |
6989 | 0 | truncate_ = new ::yb::tablet::TruncatePB(*from.truncate_); |
6990 | 0 | } else { |
6991 | 0 | truncate_ = NULL; |
6992 | 0 | } |
6993 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
6994 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.TruncateRequestPB) |
6995 | 0 | } |
6996 | | |
6997 | 140k | void TruncateRequestPB::SharedCtor() { |
6998 | 140k | _cached_size_ = 0; |
6999 | 140k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7000 | 140k | ::memset(&truncate_, 0, static_cast<size_t>( |
7001 | 140k | reinterpret_cast<char*>(&propagated_hybrid_time_) - |
7002 | 140k | reinterpret_cast<char*>(&truncate_)) + sizeof(propagated_hybrid_time_)); |
7003 | 140k | } |
7004 | | |
7005 | 114k | TruncateRequestPB::~TruncateRequestPB() { |
7006 | | // @@protoc_insertion_point(destructor:yb.tserver.TruncateRequestPB) |
7007 | 114k | SharedDtor(); |
7008 | 114k | } |
7009 | | |
7010 | 114k | void TruncateRequestPB::SharedDtor() { |
7011 | 114k | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7012 | 114k | if (this != internal_default_instance()) delete truncate_113k ; |
7013 | 114k | } |
7014 | | |
7015 | 0 | void TruncateRequestPB::SetCachedSize(int size) const { |
7016 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7017 | 0 | _cached_size_ = size; |
7018 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7019 | 0 | } |
7020 | 0 | const ::google::protobuf::Descriptor* TruncateRequestPB::descriptor() { |
7021 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7022 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7023 | 0 | } |
7024 | | |
7025 | 0 | const TruncateRequestPB& TruncateRequestPB::default_instance() { |
7026 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateRequestPB(); |
7027 | 0 | return *internal_default_instance(); |
7028 | 0 | } |
7029 | | |
7030 | 0 | TruncateRequestPB* TruncateRequestPB::New(::google::protobuf::Arena* arena) const { |
7031 | 0 | TruncateRequestPB* n = new TruncateRequestPB; |
7032 | 0 | if (arena != NULL) { |
7033 | 0 | arena->Own(n); |
7034 | 0 | } |
7035 | 0 | return n; |
7036 | 0 | } |
7037 | | |
7038 | 57.2k | void TruncateRequestPB::Clear() { |
7039 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.TruncateRequestPB) |
7040 | 57.2k | ::google::protobuf::uint32 cached_has_bits = 0; |
7041 | | // Prevent compiler warnings about cached_has_bits being unused |
7042 | 57.2k | (void) cached_has_bits; |
7043 | | |
7044 | 57.2k | cached_has_bits = _has_bits_[0]; |
7045 | 57.2k | if (cached_has_bits & 3u) { |
7046 | 0 | if (cached_has_bits & 0x00000001u) { |
7047 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7048 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
7049 | 0 | } |
7050 | 0 | if (cached_has_bits & 0x00000002u) { |
7051 | 0 | GOOGLE_DCHECK(truncate_ != NULL); |
7052 | 0 | truncate_->Clear(); |
7053 | 0 | } |
7054 | 0 | } |
7055 | 57.2k | propagated_hybrid_time_ = GOOGLE_ULONGLONG(0); |
7056 | 57.2k | _has_bits_.Clear(); |
7057 | 57.2k | _internal_metadata_.Clear(); |
7058 | 57.2k | } |
7059 | | |
7060 | | bool TruncateRequestPB::MergePartialFromCodedStream( |
7061 | 57.1k | ::google::protobuf::io::CodedInputStream* input) { |
7062 | 114k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7063 | 57.1k | ::google::protobuf::uint32 tag; |
7064 | | // @@protoc_insertion_point(parse_start:yb.tserver.TruncateRequestPB) |
7065 | 171k | for (;;) { |
7066 | 171k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7067 | 171k | tag = p.first; |
7068 | 171k | if (!p.second) goto handle_unusual57.1k ; |
7069 | 113k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7070 | | // optional bytes tablet_id = 1; |
7071 | 56.9k | case 1: { |
7072 | 56.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
7073 | 56.9k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7074 | 56.9k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
7075 | 56.9k | input, this->mutable_tablet_id())); |
7076 | 18.4E | } else { |
7077 | 18.4E | goto handle_unusual; |
7078 | 18.4E | } |
7079 | 56.9k | break; |
7080 | 56.9k | } |
7081 | | |
7082 | | // optional fixed64 propagated_hybrid_time = 2; |
7083 | 57.1k | case 2: { |
7084 | 57.1k | if (static_cast< ::google::protobuf::uint8>(tag) == |
7085 | 57.2k | static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { |
7086 | 57.2k | set_has_propagated_hybrid_time(); |
7087 | 57.2k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7088 | 57.2k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
7089 | 57.2k | input, &propagated_hybrid_time_))); |
7090 | 18.4E | } else { |
7091 | 18.4E | goto handle_unusual; |
7092 | 18.4E | } |
7093 | 57.2k | break; |
7094 | 57.1k | } |
7095 | | |
7096 | | // optional .yb.tablet.TruncatePB truncate = 3; |
7097 | 57.2k | case 3: { |
7098 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7099 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
7100 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7101 | 0 | input, mutable_truncate())); |
7102 | 0 | } else { |
7103 | 0 | goto handle_unusual; |
7104 | 0 | } |
7105 | 0 | break; |
7106 | 0 | } |
7107 | | |
7108 | 0 | default: { |
7109 | 57.1k | handle_unusual: |
7110 | 57.1k | if (tag == 057.1k ) { |
7111 | 57.1k | goto success; |
7112 | 57.1k | } |
7113 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7114 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7115 | 18.4E | break; |
7116 | 18.4E | } |
7117 | 113k | } |
7118 | 113k | } |
7119 | 57.1k | success: |
7120 | | // @@protoc_insertion_point(parse_success:yb.tserver.TruncateRequestPB) |
7121 | 57.1k | return true; |
7122 | 0 | failure: |
7123 | | // @@protoc_insertion_point(parse_failure:yb.tserver.TruncateRequestPB) |
7124 | 0 | return false; |
7125 | 57.1k | #undef DO_ |
7126 | 57.1k | } |
7127 | | |
7128 | | void TruncateRequestPB::SerializeWithCachedSizes( |
7129 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7130 | | // @@protoc_insertion_point(serialize_start:yb.tserver.TruncateRequestPB) |
7131 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7132 | 0 | (void) cached_has_bits; |
7133 | |
|
7134 | 0 | cached_has_bits = _has_bits_[0]; |
7135 | | // optional bytes tablet_id = 1; |
7136 | 0 | if (cached_has_bits & 0x00000001u) { |
7137 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
7138 | 0 | 1, this->tablet_id(), output); |
7139 | 0 | } |
7140 | | |
7141 | | // optional fixed64 propagated_hybrid_time = 2; |
7142 | 0 | if (cached_has_bits & 0x00000004u) { |
7143 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->propagated_hybrid_time(), output); |
7144 | 0 | } |
7145 | | |
7146 | | // optional .yb.tablet.TruncatePB truncate = 3; |
7147 | 0 | if (cached_has_bits & 0x00000002u) { |
7148 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7149 | 0 | 3, *this->truncate_, output); |
7150 | 0 | } |
7151 | |
|
7152 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7153 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7154 | 0 | _internal_metadata_.unknown_fields(), output); |
7155 | 0 | } |
7156 | | // @@protoc_insertion_point(serialize_end:yb.tserver.TruncateRequestPB) |
7157 | 0 | } |
7158 | | |
7159 | | ::google::protobuf::uint8* TruncateRequestPB::InternalSerializeWithCachedSizesToArray( |
7160 | 55.5k | bool deterministic, ::google::protobuf::uint8* target) const { |
7161 | 55.5k | (void)deterministic; // Unused |
7162 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TruncateRequestPB) |
7163 | 55.5k | ::google::protobuf::uint32 cached_has_bits = 0; |
7164 | 55.5k | (void) cached_has_bits; |
7165 | | |
7166 | 55.5k | cached_has_bits = _has_bits_[0]; |
7167 | | // optional bytes tablet_id = 1; |
7168 | 56.3k | if (cached_has_bits & 0x00000001u55.5k ) { |
7169 | 56.3k | target = |
7170 | 56.3k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
7171 | 56.3k | 1, this->tablet_id(), target); |
7172 | 56.3k | } |
7173 | | |
7174 | | // optional fixed64 propagated_hybrid_time = 2; |
7175 | 56.1k | if (cached_has_bits & 0x00000004u55.5k ) { |
7176 | 56.1k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target); |
7177 | 56.1k | } |
7178 | | |
7179 | | // optional .yb.tablet.TruncatePB truncate = 3; |
7180 | 55.5k | if (cached_has_bits & 0x00000002u) { |
7181 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
7182 | 0 | InternalWriteMessageToArray( |
7183 | 0 | 3, *this->truncate_, deterministic, target); |
7184 | 0 | } |
7185 | | |
7186 | 55.5k | if (_internal_metadata_.have_unknown_fields()) { |
7187 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7188 | 0 | _internal_metadata_.unknown_fields(), target); |
7189 | 0 | } |
7190 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.TruncateRequestPB) |
7191 | 55.5k | return target; |
7192 | 55.5k | } |
7193 | | |
7194 | 112k | size_t TruncateRequestPB::ByteSizeLong() const { |
7195 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.TruncateRequestPB) |
7196 | 112k | size_t total_size = 0; |
7197 | | |
7198 | 112k | if (_internal_metadata_.have_unknown_fields()) { |
7199 | 0 | total_size += |
7200 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7201 | 0 | _internal_metadata_.unknown_fields()); |
7202 | 0 | } |
7203 | 112k | if (_has_bits_[0 / 32] & 7u112k ) { |
7204 | | // optional bytes tablet_id = 1; |
7205 | 112k | if (has_tablet_id()) { |
7206 | 111k | total_size += 1 + |
7207 | 111k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
7208 | 111k | this->tablet_id()); |
7209 | 111k | } |
7210 | | |
7211 | | // optional .yb.tablet.TruncatePB truncate = 3; |
7212 | 112k | if (has_truncate()) { |
7213 | 0 | total_size += 1 + |
7214 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7215 | 0 | *this->truncate_); |
7216 | 0 | } |
7217 | | |
7218 | | // optional fixed64 propagated_hybrid_time = 2; |
7219 | 112k | if (has_propagated_hybrid_time()) { |
7220 | 111k | total_size += 1 + 8; |
7221 | 111k | } |
7222 | | |
7223 | 112k | } |
7224 | 112k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7225 | 112k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7226 | 112k | _cached_size_ = cached_size; |
7227 | 112k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7228 | 112k | return total_size; |
7229 | 112k | } |
7230 | | |
7231 | 0 | void TruncateRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7232 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.TruncateRequestPB) |
7233 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7234 | 0 | const TruncateRequestPB* source = |
7235 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TruncateRequestPB>( |
7236 | 0 | &from); |
7237 | 0 | if (source == NULL) { |
7238 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.TruncateRequestPB) |
7239 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7240 | 0 | } else { |
7241 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.TruncateRequestPB) |
7242 | 0 | MergeFrom(*source); |
7243 | 0 | } |
7244 | 0 | } |
7245 | | |
7246 | 0 | void TruncateRequestPB::MergeFrom(const TruncateRequestPB& from) { |
7247 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TruncateRequestPB) |
7248 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7249 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7250 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7251 | 0 | (void) cached_has_bits; |
7252 | |
|
7253 | 0 | cached_has_bits = from._has_bits_[0]; |
7254 | 0 | if (cached_has_bits & 7u) { |
7255 | 0 | if (cached_has_bits & 0x00000001u) { |
7256 | 0 | set_has_tablet_id(); |
7257 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
7258 | 0 | } |
7259 | 0 | if (cached_has_bits & 0x00000002u) { |
7260 | 0 | mutable_truncate()->::yb::tablet::TruncatePB::MergeFrom(from.truncate()); |
7261 | 0 | } |
7262 | 0 | if (cached_has_bits & 0x00000004u) { |
7263 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
7264 | 0 | } |
7265 | 0 | _has_bits_[0] |= cached_has_bits; |
7266 | 0 | } |
7267 | 0 | } |
7268 | | |
7269 | 0 | void TruncateRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7270 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.TruncateRequestPB) |
7271 | 0 | if (&from == this) return; |
7272 | 0 | Clear(); |
7273 | 0 | MergeFrom(from); |
7274 | 0 | } |
7275 | | |
7276 | 0 | void TruncateRequestPB::CopyFrom(const TruncateRequestPB& from) { |
7277 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TruncateRequestPB) |
7278 | 0 | if (&from == this) return; |
7279 | 0 | Clear(); |
7280 | 0 | MergeFrom(from); |
7281 | 0 | } |
7282 | | |
7283 | 113k | bool TruncateRequestPB::IsInitialized() const { |
7284 | 113k | return true; |
7285 | 113k | } |
7286 | | |
7287 | 0 | void TruncateRequestPB::Swap(TruncateRequestPB* other) { |
7288 | 0 | if (other == this) return; |
7289 | 0 | InternalSwap(other); |
7290 | 0 | } |
7291 | 0 | void TruncateRequestPB::InternalSwap(TruncateRequestPB* other) { |
7292 | 0 | using std::swap; |
7293 | 0 | tablet_id_.Swap(&other->tablet_id_); |
7294 | 0 | swap(truncate_, other->truncate_); |
7295 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
7296 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7297 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7298 | 0 | swap(_cached_size_, other->_cached_size_); |
7299 | 0 | } |
7300 | | |
7301 | 57.2k | ::google::protobuf::Metadata TruncateRequestPB::GetMetadata() const { |
7302 | 57.2k | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7303 | 57.2k | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
7304 | 57.2k | } |
7305 | | |
7306 | | |
7307 | | // =================================================================== |
7308 | | |
7309 | 26.8k | void TruncateResponsePB::InitAsDefaultInstance() { |
7310 | 26.8k | ::yb::tserver::_TruncateResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
7311 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
7312 | 26.8k | } |
7313 | 57.1k | void TruncateResponsePB::clear_error() { |
7314 | 57.1k | if (error_ != NULL) error_->Clear()0 ; |
7315 | 57.1k | clear_has_error(); |
7316 | 57.1k | } |
7317 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7318 | | const int TruncateResponsePB::kErrorFieldNumber; |
7319 | | const int TruncateResponsePB::kPropagatedHybridTimeFieldNumber; |
7320 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7321 | | |
7322 | | TruncateResponsePB::TruncateResponsePB() |
7323 | 141k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7324 | 141k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7325 | 114k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateResponsePB(); |
7326 | 114k | } |
7327 | 141k | SharedCtor(); |
7328 | | // @@protoc_insertion_point(constructor:yb.tserver.TruncateResponsePB) |
7329 | 141k | } |
7330 | | TruncateResponsePB::TruncateResponsePB(const TruncateResponsePB& from) |
7331 | | : ::google::protobuf::Message(), |
7332 | | _internal_metadata_(NULL), |
7333 | | _has_bits_(from._has_bits_), |
7334 | 0 | _cached_size_(0) { |
7335 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7336 | 0 | if (from.has_error()) { |
7337 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
7338 | 0 | } else { |
7339 | 0 | error_ = NULL; |
7340 | 0 | } |
7341 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
7342 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.TruncateResponsePB) |
7343 | 0 | } |
7344 | | |
7345 | 141k | void TruncateResponsePB::SharedCtor() { |
7346 | 141k | _cached_size_ = 0; |
7347 | 141k | ::memset(&error_, 0, static_cast<size_t>( |
7348 | 141k | reinterpret_cast<char*>(&propagated_hybrid_time_) - |
7349 | 141k | reinterpret_cast<char*>(&error_)) + sizeof(propagated_hybrid_time_)); |
7350 | 141k | } |
7351 | | |
7352 | 111k | TruncateResponsePB::~TruncateResponsePB() { |
7353 | | // @@protoc_insertion_point(destructor:yb.tserver.TruncateResponsePB) |
7354 | 111k | SharedDtor(); |
7355 | 111k | } |
7356 | | |
7357 | 111k | void TruncateResponsePB::SharedDtor() { |
7358 | 111k | if (this != internal_default_instance()) delete error_111k ; |
7359 | 111k | } |
7360 | | |
7361 | 0 | void TruncateResponsePB::SetCachedSize(int size) const { |
7362 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7363 | 0 | _cached_size_ = size; |
7364 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7365 | 0 | } |
7366 | 0 | const ::google::protobuf::Descriptor* TruncateResponsePB::descriptor() { |
7367 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7368 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7369 | 0 | } |
7370 | | |
7371 | 0 | const TruncateResponsePB& TruncateResponsePB::default_instance() { |
7372 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateResponsePB(); |
7373 | 0 | return *internal_default_instance(); |
7374 | 0 | } |
7375 | | |
7376 | 0 | TruncateResponsePB* TruncateResponsePB::New(::google::protobuf::Arena* arena) const { |
7377 | 0 | TruncateResponsePB* n = new TruncateResponsePB; |
7378 | 0 | if (arena != NULL) { |
7379 | 0 | arena->Own(n); |
7380 | 0 | } |
7381 | 0 | return n; |
7382 | 0 | } |
7383 | | |
7384 | 57.2k | void TruncateResponsePB::Clear() { |
7385 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.TruncateResponsePB) |
7386 | 57.2k | ::google::protobuf::uint32 cached_has_bits = 0; |
7387 | | // Prevent compiler warnings about cached_has_bits being unused |
7388 | 57.2k | (void) cached_has_bits; |
7389 | | |
7390 | 57.2k | cached_has_bits = _has_bits_[0]; |
7391 | 57.2k | if (cached_has_bits & 0x00000001u) { |
7392 | 10 | GOOGLE_DCHECK(error_ != NULL); |
7393 | 10 | error_->Clear(); |
7394 | 10 | } |
7395 | 57.2k | propagated_hybrid_time_ = GOOGLE_ULONGLONG(0); |
7396 | 57.2k | _has_bits_.Clear(); |
7397 | 57.2k | _internal_metadata_.Clear(); |
7398 | 57.2k | } |
7399 | | |
7400 | | bool TruncateResponsePB::MergePartialFromCodedStream( |
7401 | 57.0k | ::google::protobuf::io::CodedInputStream* input) { |
7402 | 57.2k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7403 | 57.0k | ::google::protobuf::uint32 tag; |
7404 | | // @@protoc_insertion_point(parse_start:yb.tserver.TruncateResponsePB) |
7405 | 114k | for (;;) { |
7406 | 114k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7407 | 114k | tag = p.first; |
7408 | 114k | if (!p.second) goto handle_unusual57.1k ; |
7409 | 56.9k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7410 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
7411 | 10 | case 1: { |
7412 | 10 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7413 | 10 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7414 | 10 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7415 | 10 | input, mutable_error())); |
7416 | 10 | } else { |
7417 | 0 | goto handle_unusual; |
7418 | 0 | } |
7419 | 10 | break; |
7420 | 10 | } |
7421 | | |
7422 | | // optional fixed64 propagated_hybrid_time = 2; |
7423 | 57.2k | case 2: { |
7424 | 57.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
7425 | 57.2k | static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { |
7426 | 57.2k | set_has_propagated_hybrid_time(); |
7427 | 57.2k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7428 | 57.2k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
7429 | 57.2k | input, &propagated_hybrid_time_))); |
7430 | 57.2k | } else { |
7431 | 1 | goto handle_unusual; |
7432 | 1 | } |
7433 | 57.2k | break; |
7434 | 57.2k | } |
7435 | | |
7436 | 57.2k | default: { |
7437 | 57.1k | handle_unusual: |
7438 | 57.2k | if (tag == 057.1k ) { |
7439 | 57.2k | goto success; |
7440 | 57.2k | } |
7441 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7442 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7443 | 18.4E | break; |
7444 | 18.4E | } |
7445 | 56.9k | } |
7446 | 56.9k | } |
7447 | 18.4E | success: |
7448 | | // @@protoc_insertion_point(parse_success:yb.tserver.TruncateResponsePB) |
7449 | 57.2k | return true; |
7450 | 0 | failure: |
7451 | | // @@protoc_insertion_point(parse_failure:yb.tserver.TruncateResponsePB) |
7452 | 0 | return false; |
7453 | 57.0k | #undef DO_ |
7454 | 57.0k | } |
7455 | | |
7456 | | void TruncateResponsePB::SerializeWithCachedSizes( |
7457 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7458 | | // @@protoc_insertion_point(serialize_start:yb.tserver.TruncateResponsePB) |
7459 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7460 | 0 | (void) cached_has_bits; |
7461 | |
|
7462 | 0 | cached_has_bits = _has_bits_[0]; |
7463 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
7464 | 0 | if (cached_has_bits & 0x00000001u) { |
7465 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7466 | 0 | 1, *this->error_, output); |
7467 | 0 | } |
7468 | | |
7469 | | // optional fixed64 propagated_hybrid_time = 2; |
7470 | 0 | if (cached_has_bits & 0x00000002u) { |
7471 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->propagated_hybrid_time(), output); |
7472 | 0 | } |
7473 | |
|
7474 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7475 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7476 | 0 | _internal_metadata_.unknown_fields(), output); |
7477 | 0 | } |
7478 | | // @@protoc_insertion_point(serialize_end:yb.tserver.TruncateResponsePB) |
7479 | 0 | } |
7480 | | |
7481 | | ::google::protobuf::uint8* TruncateResponsePB::InternalSerializeWithCachedSizesToArray( |
7482 | 57.2k | bool deterministic, ::google::protobuf::uint8* target) const { |
7483 | 57.2k | (void)deterministic; // Unused |
7484 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TruncateResponsePB) |
7485 | 57.2k | ::google::protobuf::uint32 cached_has_bits = 0; |
7486 | 57.2k | (void) cached_has_bits; |
7487 | | |
7488 | 57.2k | cached_has_bits = _has_bits_[0]; |
7489 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
7490 | 57.2k | if (cached_has_bits & 0x00000001u) { |
7491 | 10 | target = ::google::protobuf::internal::WireFormatLite:: |
7492 | 10 | InternalWriteMessageToArray( |
7493 | 10 | 1, *this->error_, deterministic, target); |
7494 | 10 | } |
7495 | | |
7496 | | // optional fixed64 propagated_hybrid_time = 2; |
7497 | 57.2k | if (cached_has_bits & 0x00000002u) { |
7498 | 57.1k | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target); |
7499 | 57.1k | } |
7500 | | |
7501 | 57.2k | if (_internal_metadata_.have_unknown_fields()) { |
7502 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7503 | 0 | _internal_metadata_.unknown_fields(), target); |
7504 | 0 | } |
7505 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.TruncateResponsePB) |
7506 | 57.2k | return target; |
7507 | 57.2k | } |
7508 | | |
7509 | 114k | size_t TruncateResponsePB::ByteSizeLong() const { |
7510 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.TruncateResponsePB) |
7511 | 114k | size_t total_size = 0; |
7512 | | |
7513 | 114k | if (_internal_metadata_.have_unknown_fields()) { |
7514 | 0 | total_size += |
7515 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7516 | 0 | _internal_metadata_.unknown_fields()); |
7517 | 0 | } |
7518 | 114k | if (_has_bits_[0 / 32] & 3u) { |
7519 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
7520 | 114k | if (has_error()) { |
7521 | 20 | total_size += 1 + |
7522 | 20 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7523 | 20 | *this->error_); |
7524 | 20 | } |
7525 | | |
7526 | | // optional fixed64 propagated_hybrid_time = 2; |
7527 | 114k | if (has_propagated_hybrid_time()) { |
7528 | 114k | total_size += 1 + 8; |
7529 | 114k | } |
7530 | | |
7531 | 114k | } |
7532 | 114k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7533 | 114k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7534 | 114k | _cached_size_ = cached_size; |
7535 | 114k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7536 | 114k | return total_size; |
7537 | 114k | } |
7538 | | |
7539 | 0 | void TruncateResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
7540 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.TruncateResponsePB) |
7541 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7542 | 0 | const TruncateResponsePB* source = |
7543 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TruncateResponsePB>( |
7544 | 0 | &from); |
7545 | 0 | if (source == NULL) { |
7546 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.TruncateResponsePB) |
7547 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7548 | 0 | } else { |
7549 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.TruncateResponsePB) |
7550 | 0 | MergeFrom(*source); |
7551 | 0 | } |
7552 | 0 | } |
7553 | | |
7554 | 0 | void TruncateResponsePB::MergeFrom(const TruncateResponsePB& from) { |
7555 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TruncateResponsePB) |
7556 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7557 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7558 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7559 | 0 | (void) cached_has_bits; |
7560 | |
|
7561 | 0 | cached_has_bits = from._has_bits_[0]; |
7562 | 0 | if (cached_has_bits & 3u) { |
7563 | 0 | if (cached_has_bits & 0x00000001u) { |
7564 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
7565 | 0 | } |
7566 | 0 | if (cached_has_bits & 0x00000002u) { |
7567 | 0 | propagated_hybrid_time_ = from.propagated_hybrid_time_; |
7568 | 0 | } |
7569 | 0 | _has_bits_[0] |= cached_has_bits; |
7570 | 0 | } |
7571 | 0 | } |
7572 | | |
7573 | 0 | void TruncateResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
7574 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.TruncateResponsePB) |
7575 | 0 | if (&from == this) return; |
7576 | 0 | Clear(); |
7577 | 0 | MergeFrom(from); |
7578 | 0 | } |
7579 | | |
7580 | 0 | void TruncateResponsePB::CopyFrom(const TruncateResponsePB& from) { |
7581 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TruncateResponsePB) |
7582 | 0 | if (&from == this) return; |
7583 | 0 | Clear(); |
7584 | 0 | MergeFrom(from); |
7585 | 0 | } |
7586 | | |
7587 | 114k | bool TruncateResponsePB::IsInitialized() const { |
7588 | 114k | if (has_error()) { |
7589 | 20 | if (!this->error_->IsInitialized()) return false0 ; |
7590 | 20 | } |
7591 | 114k | return true; |
7592 | 114k | } |
7593 | | |
7594 | 0 | void TruncateResponsePB::Swap(TruncateResponsePB* other) { |
7595 | 0 | if (other == this) return; |
7596 | 0 | InternalSwap(other); |
7597 | 0 | } |
7598 | 0 | void TruncateResponsePB::InternalSwap(TruncateResponsePB* other) { |
7599 | 0 | using std::swap; |
7600 | 0 | swap(error_, other->error_); |
7601 | 0 | swap(propagated_hybrid_time_, other->propagated_hybrid_time_); |
7602 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7603 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7604 | 0 | swap(_cached_size_, other->_cached_size_); |
7605 | 0 | } |
7606 | | |
7607 | 0 | ::google::protobuf::Metadata TruncateResponsePB::GetMetadata() const { |
7608 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7609 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
7610 | 0 | } |
7611 | | |
7612 | | |
7613 | | // =================================================================== |
7614 | | |
7615 | 26.8k | void GetTabletStatusRequestPB::InitAsDefaultInstance() { |
7616 | 26.8k | } |
7617 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7618 | | const int GetTabletStatusRequestPB::kTabletIdFieldNumber; |
7619 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7620 | | |
7621 | | GetTabletStatusRequestPB::GetTabletStatusRequestPB() |
7622 | 27.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7623 | 27.9k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7624 | 1.08k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetTabletStatusRequestPB(); |
7625 | 1.08k | } |
7626 | 27.9k | SharedCtor(); |
7627 | | // @@protoc_insertion_point(constructor:yb.tserver.GetTabletStatusRequestPB) |
7628 | 27.9k | } |
7629 | | GetTabletStatusRequestPB::GetTabletStatusRequestPB(const GetTabletStatusRequestPB& from) |
7630 | | : ::google::protobuf::Message(), |
7631 | | _internal_metadata_(NULL), |
7632 | | _has_bits_(from._has_bits_), |
7633 | 0 | _cached_size_(0) { |
7634 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7635 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7636 | 0 | if (from.has_tablet_id()) { |
7637 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
7638 | 0 | } |
7639 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.GetTabletStatusRequestPB) |
7640 | 0 | } |
7641 | | |
7642 | 27.9k | void GetTabletStatusRequestPB::SharedCtor() { |
7643 | 27.9k | _cached_size_ = 0; |
7644 | 27.9k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7645 | 27.9k | } |
7646 | | |
7647 | 1.08k | GetTabletStatusRequestPB::~GetTabletStatusRequestPB() { |
7648 | | // @@protoc_insertion_point(destructor:yb.tserver.GetTabletStatusRequestPB) |
7649 | 1.08k | SharedDtor(); |
7650 | 1.08k | } |
7651 | | |
7652 | 1.08k | void GetTabletStatusRequestPB::SharedDtor() { |
7653 | 1.08k | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7654 | 1.08k | } |
7655 | | |
7656 | 0 | void GetTabletStatusRequestPB::SetCachedSize(int size) const { |
7657 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7658 | 0 | _cached_size_ = size; |
7659 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7660 | 0 | } |
7661 | 0 | const ::google::protobuf::Descriptor* GetTabletStatusRequestPB::descriptor() { |
7662 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7663 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7664 | 0 | } |
7665 | | |
7666 | 0 | const GetTabletStatusRequestPB& GetTabletStatusRequestPB::default_instance() { |
7667 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetTabletStatusRequestPB(); |
7668 | 0 | return *internal_default_instance(); |
7669 | 0 | } |
7670 | | |
7671 | 0 | GetTabletStatusRequestPB* GetTabletStatusRequestPB::New(::google::protobuf::Arena* arena) const { |
7672 | 0 | GetTabletStatusRequestPB* n = new GetTabletStatusRequestPB; |
7673 | 0 | if (arena != NULL) { |
7674 | 0 | arena->Own(n); |
7675 | 0 | } |
7676 | 0 | return n; |
7677 | 0 | } |
7678 | | |
7679 | 1 | void GetTabletStatusRequestPB::Clear() { |
7680 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.GetTabletStatusRequestPB) |
7681 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
7682 | | // Prevent compiler warnings about cached_has_bits being unused |
7683 | 1 | (void) cached_has_bits; |
7684 | | |
7685 | 1 | cached_has_bits = _has_bits_[0]; |
7686 | 1 | if (cached_has_bits & 0x00000001u) { |
7687 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7688 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
7689 | 0 | } |
7690 | 1 | _has_bits_.Clear(); |
7691 | 1 | _internal_metadata_.Clear(); |
7692 | 1 | } |
7693 | | |
7694 | | bool GetTabletStatusRequestPB::MergePartialFromCodedStream( |
7695 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
7696 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7697 | 1 | ::google::protobuf::uint32 tag; |
7698 | | // @@protoc_insertion_point(parse_start:yb.tserver.GetTabletStatusRequestPB) |
7699 | 2 | for (;;) { |
7700 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7701 | 2 | tag = p.first; |
7702 | 2 | if (!p.second) goto handle_unusual1 ; |
7703 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7704 | | // optional bytes tablet_id = 1; |
7705 | 1 | case 1: { |
7706 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7707 | 1 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7708 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
7709 | 1 | input, this->mutable_tablet_id())); |
7710 | 1 | } else { |
7711 | 0 | goto handle_unusual; |
7712 | 0 | } |
7713 | 1 | break; |
7714 | 1 | } |
7715 | | |
7716 | 1 | default: { |
7717 | 1 | handle_unusual: |
7718 | 1 | if (tag == 0) { |
7719 | 1 | goto success; |
7720 | 1 | } |
7721 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7722 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7723 | 0 | break; |
7724 | 0 | } |
7725 | 1 | } |
7726 | 1 | } |
7727 | 1 | success: |
7728 | | // @@protoc_insertion_point(parse_success:yb.tserver.GetTabletStatusRequestPB) |
7729 | 1 | return true; |
7730 | 0 | failure: |
7731 | | // @@protoc_insertion_point(parse_failure:yb.tserver.GetTabletStatusRequestPB) |
7732 | 0 | return false; |
7733 | 1 | #undef DO_ |
7734 | 1 | } |
7735 | | |
7736 | | void GetTabletStatusRequestPB::SerializeWithCachedSizes( |
7737 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7738 | | // @@protoc_insertion_point(serialize_start:yb.tserver.GetTabletStatusRequestPB) |
7739 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7740 | 0 | (void) cached_has_bits; |
7741 | |
|
7742 | 0 | cached_has_bits = _has_bits_[0]; |
7743 | | // optional bytes tablet_id = 1; |
7744 | 0 | if (cached_has_bits & 0x00000001u) { |
7745 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
7746 | 0 | 1, this->tablet_id(), output); |
7747 | 0 | } |
7748 | |
|
7749 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7750 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7751 | 0 | _internal_metadata_.unknown_fields(), output); |
7752 | 0 | } |
7753 | | // @@protoc_insertion_point(serialize_end:yb.tserver.GetTabletStatusRequestPB) |
7754 | 0 | } |
7755 | | |
7756 | | ::google::protobuf::uint8* GetTabletStatusRequestPB::InternalSerializeWithCachedSizesToArray( |
7757 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
7758 | 1 | (void)deterministic; // Unused |
7759 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.GetTabletStatusRequestPB) |
7760 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
7761 | 1 | (void) cached_has_bits; |
7762 | | |
7763 | 1 | cached_has_bits = _has_bits_[0]; |
7764 | | // optional bytes tablet_id = 1; |
7765 | 1 | if (cached_has_bits & 0x00000001u) { |
7766 | 1 | target = |
7767 | 1 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
7768 | 1 | 1, this->tablet_id(), target); |
7769 | 1 | } |
7770 | | |
7771 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
7772 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7773 | 0 | _internal_metadata_.unknown_fields(), target); |
7774 | 0 | } |
7775 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.GetTabletStatusRequestPB) |
7776 | 1 | return target; |
7777 | 1 | } |
7778 | | |
7779 | 2 | size_t GetTabletStatusRequestPB::ByteSizeLong() const { |
7780 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.GetTabletStatusRequestPB) |
7781 | 2 | size_t total_size = 0; |
7782 | | |
7783 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
7784 | 0 | total_size += |
7785 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7786 | 0 | _internal_metadata_.unknown_fields()); |
7787 | 0 | } |
7788 | | // optional bytes tablet_id = 1; |
7789 | 2 | if (has_tablet_id()) { |
7790 | 2 | total_size += 1 + |
7791 | 2 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
7792 | 2 | this->tablet_id()); |
7793 | 2 | } |
7794 | | |
7795 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7796 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7797 | 2 | _cached_size_ = cached_size; |
7798 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7799 | 2 | return total_size; |
7800 | 2 | } |
7801 | | |
7802 | 0 | void GetTabletStatusRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7803 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.GetTabletStatusRequestPB) |
7804 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7805 | 0 | const GetTabletStatusRequestPB* source = |
7806 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetTabletStatusRequestPB>( |
7807 | 0 | &from); |
7808 | 0 | if (source == NULL) { |
7809 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.GetTabletStatusRequestPB) |
7810 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7811 | 0 | } else { |
7812 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.GetTabletStatusRequestPB) |
7813 | 0 | MergeFrom(*source); |
7814 | 0 | } |
7815 | 0 | } |
7816 | | |
7817 | 0 | void GetTabletStatusRequestPB::MergeFrom(const GetTabletStatusRequestPB& from) { |
7818 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.GetTabletStatusRequestPB) |
7819 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7820 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7821 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7822 | 0 | (void) cached_has_bits; |
7823 | |
|
7824 | 0 | if (from.has_tablet_id()) { |
7825 | 0 | set_has_tablet_id(); |
7826 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
7827 | 0 | } |
7828 | 0 | } |
7829 | | |
7830 | 0 | void GetTabletStatusRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7831 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.GetTabletStatusRequestPB) |
7832 | 0 | if (&from == this) return; |
7833 | 0 | Clear(); |
7834 | 0 | MergeFrom(from); |
7835 | 0 | } |
7836 | | |
7837 | 0 | void GetTabletStatusRequestPB::CopyFrom(const GetTabletStatusRequestPB& from) { |
7838 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.GetTabletStatusRequestPB) |
7839 | 0 | if (&from == this) return; |
7840 | 0 | Clear(); |
7841 | 0 | MergeFrom(from); |
7842 | 0 | } |
7843 | | |
7844 | 2 | bool GetTabletStatusRequestPB::IsInitialized() const { |
7845 | 2 | return true; |
7846 | 2 | } |
7847 | | |
7848 | 0 | void GetTabletStatusRequestPB::Swap(GetTabletStatusRequestPB* other) { |
7849 | 0 | if (other == this) return; |
7850 | 0 | InternalSwap(other); |
7851 | 0 | } |
7852 | 0 | void GetTabletStatusRequestPB::InternalSwap(GetTabletStatusRequestPB* other) { |
7853 | 0 | using std::swap; |
7854 | 0 | tablet_id_.Swap(&other->tablet_id_); |
7855 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7856 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7857 | 0 | swap(_cached_size_, other->_cached_size_); |
7858 | 0 | } |
7859 | | |
7860 | 1 | ::google::protobuf::Metadata GetTabletStatusRequestPB::GetMetadata() const { |
7861 | 1 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7862 | 1 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
7863 | 1 | } |
7864 | | |
7865 | | |
7866 | | // =================================================================== |
7867 | | |
7868 | 26.8k | void GetTabletStatusResponsePB::InitAsDefaultInstance() { |
7869 | 26.8k | ::yb::tserver::_GetTabletStatusResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
7870 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
7871 | 26.8k | ::yb::tserver::_GetTabletStatusResponsePB_default_instance_._instance.get_mutable()->tablet_status_ = const_cast< ::yb::tablet::TabletStatusPB*>( |
7872 | 26.8k | ::yb::tablet::TabletStatusPB::internal_default_instance()); |
7873 | 26.8k | } |
7874 | 0 | void GetTabletStatusResponsePB::clear_error() { |
7875 | 0 | if (error_ != NULL) error_->Clear(); |
7876 | 0 | clear_has_error(); |
7877 | 0 | } |
7878 | 0 | void GetTabletStatusResponsePB::clear_tablet_status() { |
7879 | 0 | if (tablet_status_ != NULL) tablet_status_->Clear(); |
7880 | 0 | clear_has_tablet_status(); |
7881 | 0 | } |
7882 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7883 | | const int GetTabletStatusResponsePB::kErrorFieldNumber; |
7884 | | const int GetTabletStatusResponsePB::kTabletStatusFieldNumber; |
7885 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7886 | | |
7887 | | GetTabletStatusResponsePB::GetTabletStatusResponsePB() |
7888 | 27.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7889 | 27.9k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7890 | 1.08k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetTabletStatusResponsePB(); |
7891 | 1.08k | } |
7892 | 27.9k | SharedCtor(); |
7893 | | // @@protoc_insertion_point(constructor:yb.tserver.GetTabletStatusResponsePB) |
7894 | 27.9k | } |
7895 | | GetTabletStatusResponsePB::GetTabletStatusResponsePB(const GetTabletStatusResponsePB& from) |
7896 | | : ::google::protobuf::Message(), |
7897 | | _internal_metadata_(NULL), |
7898 | | _has_bits_(from._has_bits_), |
7899 | 0 | _cached_size_(0) { |
7900 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7901 | 0 | if (from.has_error()) { |
7902 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
7903 | 0 | } else { |
7904 | 0 | error_ = NULL; |
7905 | 0 | } |
7906 | 0 | if (from.has_tablet_status()) { |
7907 | 0 | tablet_status_ = new ::yb::tablet::TabletStatusPB(*from.tablet_status_); |
7908 | 0 | } else { |
7909 | 0 | tablet_status_ = NULL; |
7910 | 0 | } |
7911 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.GetTabletStatusResponsePB) |
7912 | 0 | } |
7913 | | |
7914 | 27.9k | void GetTabletStatusResponsePB::SharedCtor() { |
7915 | 27.9k | _cached_size_ = 0; |
7916 | 27.9k | ::memset(&error_, 0, static_cast<size_t>( |
7917 | 27.9k | reinterpret_cast<char*>(&tablet_status_) - |
7918 | 27.9k | reinterpret_cast<char*>(&error_)) + sizeof(tablet_status_)); |
7919 | 27.9k | } |
7920 | | |
7921 | 1.08k | GetTabletStatusResponsePB::~GetTabletStatusResponsePB() { |
7922 | | // @@protoc_insertion_point(destructor:yb.tserver.GetTabletStatusResponsePB) |
7923 | 1.08k | SharedDtor(); |
7924 | 1.08k | } |
7925 | | |
7926 | 1.08k | void GetTabletStatusResponsePB::SharedDtor() { |
7927 | 1.08k | if (this != internal_default_instance()) delete error_; |
7928 | 1.08k | if (this != internal_default_instance()) delete tablet_status_; |
7929 | 1.08k | } |
7930 | | |
7931 | 0 | void GetTabletStatusResponsePB::SetCachedSize(int size) const { |
7932 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7933 | 0 | _cached_size_ = size; |
7934 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7935 | 0 | } |
7936 | 0 | const ::google::protobuf::Descriptor* GetTabletStatusResponsePB::descriptor() { |
7937 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
7938 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7939 | 0 | } |
7940 | | |
7941 | 0 | const GetTabletStatusResponsePB& GetTabletStatusResponsePB::default_instance() { |
7942 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetTabletStatusResponsePB(); |
7943 | 0 | return *internal_default_instance(); |
7944 | 0 | } |
7945 | | |
7946 | 0 | GetTabletStatusResponsePB* GetTabletStatusResponsePB::New(::google::protobuf::Arena* arena) const { |
7947 | 0 | GetTabletStatusResponsePB* n = new GetTabletStatusResponsePB; |
7948 | 0 | if (arena != NULL) { |
7949 | 0 | arena->Own(n); |
7950 | 0 | } |
7951 | 0 | return n; |
7952 | 0 | } |
7953 | | |
7954 | 1 | void GetTabletStatusResponsePB::Clear() { |
7955 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.GetTabletStatusResponsePB) |
7956 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
7957 | | // Prevent compiler warnings about cached_has_bits being unused |
7958 | 1 | (void) cached_has_bits; |
7959 | | |
7960 | 1 | cached_has_bits = _has_bits_[0]; |
7961 | 1 | if (cached_has_bits & 3u) { |
7962 | 0 | if (cached_has_bits & 0x00000001u) { |
7963 | 0 | GOOGLE_DCHECK(error_ != NULL); |
7964 | 0 | error_->Clear(); |
7965 | 0 | } |
7966 | 0 | if (cached_has_bits & 0x00000002u) { |
7967 | 0 | GOOGLE_DCHECK(tablet_status_ != NULL); |
7968 | 0 | tablet_status_->Clear(); |
7969 | 0 | } |
7970 | 0 | } |
7971 | 1 | _has_bits_.Clear(); |
7972 | 1 | _internal_metadata_.Clear(); |
7973 | 1 | } |
7974 | | |
7975 | | bool GetTabletStatusResponsePB::MergePartialFromCodedStream( |
7976 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
7977 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7978 | 1 | ::google::protobuf::uint32 tag; |
7979 | | // @@protoc_insertion_point(parse_start:yb.tserver.GetTabletStatusResponsePB) |
7980 | 2 | for (;;) { |
7981 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7982 | 2 | tag = p.first; |
7983 | 2 | if (!p.second) goto handle_unusual1 ; |
7984 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7985 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
7986 | 0 | case 1: { |
7987 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7988 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7989 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7990 | 0 | input, mutable_error())); |
7991 | 0 | } else { |
7992 | 0 | goto handle_unusual; |
7993 | 0 | } |
7994 | 0 | break; |
7995 | 0 | } |
7996 | | |
7997 | | // optional .yb.tablet.TabletStatusPB tablet_status = 2; |
7998 | 1 | case 2: { |
7999 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8000 | 1 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
8001 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8002 | 1 | input, mutable_tablet_status())); |
8003 | 1 | } else { |
8004 | 0 | goto handle_unusual; |
8005 | 0 | } |
8006 | 1 | break; |
8007 | 1 | } |
8008 | | |
8009 | 1 | default: { |
8010 | 1 | handle_unusual: |
8011 | 1 | if (tag == 0) { |
8012 | 1 | goto success; |
8013 | 1 | } |
8014 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8015 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8016 | 0 | break; |
8017 | 0 | } |
8018 | 1 | } |
8019 | 1 | } |
8020 | 1 | success: |
8021 | | // @@protoc_insertion_point(parse_success:yb.tserver.GetTabletStatusResponsePB) |
8022 | 1 | return true; |
8023 | 0 | failure: |
8024 | | // @@protoc_insertion_point(parse_failure:yb.tserver.GetTabletStatusResponsePB) |
8025 | 0 | return false; |
8026 | 1 | #undef DO_ |
8027 | 1 | } |
8028 | | |
8029 | | void GetTabletStatusResponsePB::SerializeWithCachedSizes( |
8030 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8031 | | // @@protoc_insertion_point(serialize_start:yb.tserver.GetTabletStatusResponsePB) |
8032 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8033 | 0 | (void) cached_has_bits; |
8034 | |
|
8035 | 0 | cached_has_bits = _has_bits_[0]; |
8036 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8037 | 0 | if (cached_has_bits & 0x00000001u) { |
8038 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8039 | 0 | 1, *this->error_, output); |
8040 | 0 | } |
8041 | | |
8042 | | // optional .yb.tablet.TabletStatusPB tablet_status = 2; |
8043 | 0 | if (cached_has_bits & 0x00000002u) { |
8044 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8045 | 0 | 2, *this->tablet_status_, output); |
8046 | 0 | } |
8047 | |
|
8048 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8049 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8050 | 0 | _internal_metadata_.unknown_fields(), output); |
8051 | 0 | } |
8052 | | // @@protoc_insertion_point(serialize_end:yb.tserver.GetTabletStatusResponsePB) |
8053 | 0 | } |
8054 | | |
8055 | | ::google::protobuf::uint8* GetTabletStatusResponsePB::InternalSerializeWithCachedSizesToArray( |
8056 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
8057 | 1 | (void)deterministic; // Unused |
8058 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.GetTabletStatusResponsePB) |
8059 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
8060 | 1 | (void) cached_has_bits; |
8061 | | |
8062 | 1 | cached_has_bits = _has_bits_[0]; |
8063 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8064 | 1 | if (cached_has_bits & 0x00000001u) { |
8065 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8066 | 0 | InternalWriteMessageToArray( |
8067 | 0 | 1, *this->error_, deterministic, target); |
8068 | 0 | } |
8069 | | |
8070 | | // optional .yb.tablet.TabletStatusPB tablet_status = 2; |
8071 | 1 | if (cached_has_bits & 0x00000002u) { |
8072 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
8073 | 1 | InternalWriteMessageToArray( |
8074 | 1 | 2, *this->tablet_status_, deterministic, target); |
8075 | 1 | } |
8076 | | |
8077 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
8078 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8079 | 0 | _internal_metadata_.unknown_fields(), target); |
8080 | 0 | } |
8081 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.GetTabletStatusResponsePB) |
8082 | 1 | return target; |
8083 | 1 | } |
8084 | | |
8085 | 2 | size_t GetTabletStatusResponsePB::ByteSizeLong() const { |
8086 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.GetTabletStatusResponsePB) |
8087 | 2 | size_t total_size = 0; |
8088 | | |
8089 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
8090 | 0 | total_size += |
8091 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8092 | 0 | _internal_metadata_.unknown_fields()); |
8093 | 0 | } |
8094 | 2 | if (_has_bits_[0 / 32] & 3u) { |
8095 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8096 | 2 | if (has_error()) { |
8097 | 0 | total_size += 1 + |
8098 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8099 | 0 | *this->error_); |
8100 | 0 | } |
8101 | | |
8102 | | // optional .yb.tablet.TabletStatusPB tablet_status = 2; |
8103 | 2 | if (has_tablet_status()) { |
8104 | 2 | total_size += 1 + |
8105 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8106 | 2 | *this->tablet_status_); |
8107 | 2 | } |
8108 | | |
8109 | 2 | } |
8110 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8111 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8112 | 2 | _cached_size_ = cached_size; |
8113 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8114 | 2 | return total_size; |
8115 | 2 | } |
8116 | | |
8117 | 0 | void GetTabletStatusResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
8118 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.GetTabletStatusResponsePB) |
8119 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8120 | 0 | const GetTabletStatusResponsePB* source = |
8121 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetTabletStatusResponsePB>( |
8122 | 0 | &from); |
8123 | 0 | if (source == NULL) { |
8124 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.GetTabletStatusResponsePB) |
8125 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8126 | 0 | } else { |
8127 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.GetTabletStatusResponsePB) |
8128 | 0 | MergeFrom(*source); |
8129 | 0 | } |
8130 | 0 | } |
8131 | | |
8132 | 0 | void GetTabletStatusResponsePB::MergeFrom(const GetTabletStatusResponsePB& from) { |
8133 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.GetTabletStatusResponsePB) |
8134 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8135 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8136 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8137 | 0 | (void) cached_has_bits; |
8138 | |
|
8139 | 0 | cached_has_bits = from._has_bits_[0]; |
8140 | 0 | if (cached_has_bits & 3u) { |
8141 | 0 | if (cached_has_bits & 0x00000001u) { |
8142 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
8143 | 0 | } |
8144 | 0 | if (cached_has_bits & 0x00000002u) { |
8145 | 0 | mutable_tablet_status()->::yb::tablet::TabletStatusPB::MergeFrom(from.tablet_status()); |
8146 | 0 | } |
8147 | 0 | } |
8148 | 0 | } |
8149 | | |
8150 | 0 | void GetTabletStatusResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
8151 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.GetTabletStatusResponsePB) |
8152 | 0 | if (&from == this) return; |
8153 | 0 | Clear(); |
8154 | 0 | MergeFrom(from); |
8155 | 0 | } |
8156 | | |
8157 | 0 | void GetTabletStatusResponsePB::CopyFrom(const GetTabletStatusResponsePB& from) { |
8158 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.GetTabletStatusResponsePB) |
8159 | 0 | if (&from == this) return; |
8160 | 0 | Clear(); |
8161 | 0 | MergeFrom(from); |
8162 | 0 | } |
8163 | | |
8164 | 2 | bool GetTabletStatusResponsePB::IsInitialized() const { |
8165 | 2 | if (has_error()) { |
8166 | 0 | if (!this->error_->IsInitialized()) return false; |
8167 | 0 | } |
8168 | 2 | if (has_tablet_status()) { |
8169 | 2 | if (!this->tablet_status_->IsInitialized()) return false0 ; |
8170 | 2 | } |
8171 | 2 | return true; |
8172 | 2 | } |
8173 | | |
8174 | 0 | void GetTabletStatusResponsePB::Swap(GetTabletStatusResponsePB* other) { |
8175 | 0 | if (other == this) return; |
8176 | 0 | InternalSwap(other); |
8177 | 0 | } |
8178 | 0 | void GetTabletStatusResponsePB::InternalSwap(GetTabletStatusResponsePB* other) { |
8179 | 0 | using std::swap; |
8180 | 0 | swap(error_, other->error_); |
8181 | 0 | swap(tablet_status_, other->tablet_status_); |
8182 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8183 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8184 | 0 | swap(_cached_size_, other->_cached_size_); |
8185 | 0 | } |
8186 | | |
8187 | 0 | ::google::protobuf::Metadata GetTabletStatusResponsePB::GetMetadata() const { |
8188 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8189 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
8190 | 0 | } |
8191 | | |
8192 | | |
8193 | | // =================================================================== |
8194 | | |
8195 | 26.8k | void GetMasterAddressesRequestPB::InitAsDefaultInstance() { |
8196 | 26.8k | } |
8197 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8198 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8199 | | |
8200 | | GetMasterAddressesRequestPB::GetMasterAddressesRequestPB() |
8201 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8202 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8203 | 9 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetMasterAddressesRequestPB(); |
8204 | 9 | } |
8205 | 26.8k | SharedCtor(); |
8206 | | // @@protoc_insertion_point(constructor:yb.tserver.GetMasterAddressesRequestPB) |
8207 | 26.8k | } |
8208 | | GetMasterAddressesRequestPB::GetMasterAddressesRequestPB(const GetMasterAddressesRequestPB& from) |
8209 | | : ::google::protobuf::Message(), |
8210 | | _internal_metadata_(NULL), |
8211 | | _has_bits_(from._has_bits_), |
8212 | 0 | _cached_size_(0) { |
8213 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8214 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.GetMasterAddressesRequestPB) |
8215 | 0 | } |
8216 | | |
8217 | 26.8k | void GetMasterAddressesRequestPB::SharedCtor() { |
8218 | 26.8k | _cached_size_ = 0; |
8219 | 26.8k | } |
8220 | | |
8221 | 9 | GetMasterAddressesRequestPB::~GetMasterAddressesRequestPB() { |
8222 | | // @@protoc_insertion_point(destructor:yb.tserver.GetMasterAddressesRequestPB) |
8223 | 9 | SharedDtor(); |
8224 | 9 | } |
8225 | | |
8226 | 9 | void GetMasterAddressesRequestPB::SharedDtor() { |
8227 | 9 | } |
8228 | | |
8229 | 0 | void GetMasterAddressesRequestPB::SetCachedSize(int size) const { |
8230 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8231 | 0 | _cached_size_ = size; |
8232 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8233 | 0 | } |
8234 | 0 | const ::google::protobuf::Descriptor* GetMasterAddressesRequestPB::descriptor() { |
8235 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8236 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8237 | 0 | } |
8238 | | |
8239 | 0 | const GetMasterAddressesRequestPB& GetMasterAddressesRequestPB::default_instance() { |
8240 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetMasterAddressesRequestPB(); |
8241 | 0 | return *internal_default_instance(); |
8242 | 0 | } |
8243 | | |
8244 | 0 | GetMasterAddressesRequestPB* GetMasterAddressesRequestPB::New(::google::protobuf::Arena* arena) const { |
8245 | 0 | GetMasterAddressesRequestPB* n = new GetMasterAddressesRequestPB; |
8246 | 0 | if (arena != NULL) { |
8247 | 0 | arena->Own(n); |
8248 | 0 | } |
8249 | 0 | return n; |
8250 | 0 | } |
8251 | | |
8252 | 9 | void GetMasterAddressesRequestPB::Clear() { |
8253 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.GetMasterAddressesRequestPB) |
8254 | 9 | ::google::protobuf::uint32 cached_has_bits = 0; |
8255 | | // Prevent compiler warnings about cached_has_bits being unused |
8256 | 9 | (void) cached_has_bits; |
8257 | | |
8258 | 9 | _has_bits_.Clear(); |
8259 | 9 | _internal_metadata_.Clear(); |
8260 | 9 | } |
8261 | | |
8262 | | bool GetMasterAddressesRequestPB::MergePartialFromCodedStream( |
8263 | 9 | ::google::protobuf::io::CodedInputStream* input) { |
8264 | 9 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8265 | 9 | ::google::protobuf::uint32 tag; |
8266 | | // @@protoc_insertion_point(parse_start:yb.tserver.GetMasterAddressesRequestPB) |
8267 | 9 | for (;;) { |
8268 | 9 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8269 | 9 | tag = p.first; |
8270 | 9 | if (!p.second) goto handle_unusual; |
8271 | 9 | handle_unusual: |
8272 | 9 | if (tag == 0) { |
8273 | 9 | goto success; |
8274 | 9 | } |
8275 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8276 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8277 | 0 | } |
8278 | 9 | success: |
8279 | | // @@protoc_insertion_point(parse_success:yb.tserver.GetMasterAddressesRequestPB) |
8280 | 9 | return true; |
8281 | 0 | failure: |
8282 | | // @@protoc_insertion_point(parse_failure:yb.tserver.GetMasterAddressesRequestPB) |
8283 | 0 | return false; |
8284 | 9 | #undef DO_ |
8285 | 9 | } |
8286 | | |
8287 | | void GetMasterAddressesRequestPB::SerializeWithCachedSizes( |
8288 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8289 | | // @@protoc_insertion_point(serialize_start:yb.tserver.GetMasterAddressesRequestPB) |
8290 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8291 | 0 | (void) cached_has_bits; |
8292 | |
|
8293 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8294 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8295 | 0 | _internal_metadata_.unknown_fields(), output); |
8296 | 0 | } |
8297 | | // @@protoc_insertion_point(serialize_end:yb.tserver.GetMasterAddressesRequestPB) |
8298 | 0 | } |
8299 | | |
8300 | | ::google::protobuf::uint8* GetMasterAddressesRequestPB::InternalSerializeWithCachedSizesToArray( |
8301 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8302 | 0 | (void)deterministic; // Unused |
8303 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.GetMasterAddressesRequestPB) |
8304 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8305 | 0 | (void) cached_has_bits; |
8306 | |
|
8307 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8308 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8309 | 0 | _internal_metadata_.unknown_fields(), target); |
8310 | 0 | } |
8311 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.GetMasterAddressesRequestPB) |
8312 | 0 | return target; |
8313 | 0 | } |
8314 | | |
8315 | 0 | size_t GetMasterAddressesRequestPB::ByteSizeLong() const { |
8316 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.GetMasterAddressesRequestPB) |
8317 | 0 | size_t total_size = 0; |
8318 | |
|
8319 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8320 | 0 | total_size += |
8321 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8322 | 0 | _internal_metadata_.unknown_fields()); |
8323 | 0 | } |
8324 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8325 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8326 | 0 | _cached_size_ = cached_size; |
8327 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8328 | 0 | return total_size; |
8329 | 0 | } |
8330 | | |
8331 | 0 | void GetMasterAddressesRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8332 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.GetMasterAddressesRequestPB) |
8333 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8334 | 0 | const GetMasterAddressesRequestPB* source = |
8335 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetMasterAddressesRequestPB>( |
8336 | 0 | &from); |
8337 | 0 | if (source == NULL) { |
8338 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.GetMasterAddressesRequestPB) |
8339 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8340 | 0 | } else { |
8341 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.GetMasterAddressesRequestPB) |
8342 | 0 | MergeFrom(*source); |
8343 | 0 | } |
8344 | 0 | } |
8345 | | |
8346 | 0 | void GetMasterAddressesRequestPB::MergeFrom(const GetMasterAddressesRequestPB& from) { |
8347 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.GetMasterAddressesRequestPB) |
8348 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8349 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8350 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8351 | 0 | (void) cached_has_bits; |
8352 | |
|
8353 | 0 | } |
8354 | | |
8355 | 0 | void GetMasterAddressesRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8356 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.GetMasterAddressesRequestPB) |
8357 | 0 | if (&from == this) return; |
8358 | 0 | Clear(); |
8359 | 0 | MergeFrom(from); |
8360 | 0 | } |
8361 | | |
8362 | 0 | void GetMasterAddressesRequestPB::CopyFrom(const GetMasterAddressesRequestPB& from) { |
8363 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.GetMasterAddressesRequestPB) |
8364 | 0 | if (&from == this) return; |
8365 | 0 | Clear(); |
8366 | 0 | MergeFrom(from); |
8367 | 0 | } |
8368 | | |
8369 | 9 | bool GetMasterAddressesRequestPB::IsInitialized() const { |
8370 | 9 | return true; |
8371 | 9 | } |
8372 | | |
8373 | 0 | void GetMasterAddressesRequestPB::Swap(GetMasterAddressesRequestPB* other) { |
8374 | 0 | if (other == this) return; |
8375 | 0 | InternalSwap(other); |
8376 | 0 | } |
8377 | 0 | void GetMasterAddressesRequestPB::InternalSwap(GetMasterAddressesRequestPB* other) { |
8378 | 0 | using std::swap; |
8379 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8380 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8381 | 0 | swap(_cached_size_, other->_cached_size_); |
8382 | 0 | } |
8383 | | |
8384 | 9 | ::google::protobuf::Metadata GetMasterAddressesRequestPB::GetMetadata() const { |
8385 | 9 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8386 | 9 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
8387 | 9 | } |
8388 | | |
8389 | | |
8390 | | // =================================================================== |
8391 | | |
8392 | 26.8k | void GetMasterAddressesResponsePB::InitAsDefaultInstance() { |
8393 | 26.8k | ::yb::tserver::_GetMasterAddressesResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
8394 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
8395 | 26.8k | } |
8396 | 0 | void GetMasterAddressesResponsePB::clear_error() { |
8397 | 0 | if (error_ != NULL) error_->Clear(); |
8398 | 0 | clear_has_error(); |
8399 | 0 | } |
8400 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8401 | | const int GetMasterAddressesResponsePB::kErrorFieldNumber; |
8402 | | const int GetMasterAddressesResponsePB::kMasterAddressesFieldNumber; |
8403 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8404 | | |
8405 | | GetMasterAddressesResponsePB::GetMasterAddressesResponsePB() |
8406 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8407 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8408 | 9 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetMasterAddressesResponsePB(); |
8409 | 9 | } |
8410 | 26.8k | SharedCtor(); |
8411 | | // @@protoc_insertion_point(constructor:yb.tserver.GetMasterAddressesResponsePB) |
8412 | 26.8k | } |
8413 | | GetMasterAddressesResponsePB::GetMasterAddressesResponsePB(const GetMasterAddressesResponsePB& from) |
8414 | | : ::google::protobuf::Message(), |
8415 | | _internal_metadata_(NULL), |
8416 | | _has_bits_(from._has_bits_), |
8417 | 0 | _cached_size_(0) { |
8418 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8419 | 0 | master_addresses_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8420 | 0 | if (from.has_master_addresses()) { |
8421 | 0 | master_addresses_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.master_addresses_); |
8422 | 0 | } |
8423 | 0 | if (from.has_error()) { |
8424 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
8425 | 0 | } else { |
8426 | 0 | error_ = NULL; |
8427 | 0 | } |
8428 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.GetMasterAddressesResponsePB) |
8429 | 0 | } |
8430 | | |
8431 | 26.8k | void GetMasterAddressesResponsePB::SharedCtor() { |
8432 | 26.8k | _cached_size_ = 0; |
8433 | 26.8k | master_addresses_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8434 | 26.8k | error_ = NULL; |
8435 | 26.8k | } |
8436 | | |
8437 | 9 | GetMasterAddressesResponsePB::~GetMasterAddressesResponsePB() { |
8438 | | // @@protoc_insertion_point(destructor:yb.tserver.GetMasterAddressesResponsePB) |
8439 | 9 | SharedDtor(); |
8440 | 9 | } |
8441 | | |
8442 | 9 | void GetMasterAddressesResponsePB::SharedDtor() { |
8443 | 9 | master_addresses_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8444 | 9 | if (this != internal_default_instance()) delete error_; |
8445 | 9 | } |
8446 | | |
8447 | 0 | void GetMasterAddressesResponsePB::SetCachedSize(int size) const { |
8448 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8449 | 0 | _cached_size_ = size; |
8450 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8451 | 0 | } |
8452 | 0 | const ::google::protobuf::Descriptor* GetMasterAddressesResponsePB::descriptor() { |
8453 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8454 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8455 | 0 | } |
8456 | | |
8457 | 0 | const GetMasterAddressesResponsePB& GetMasterAddressesResponsePB::default_instance() { |
8458 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsGetMasterAddressesResponsePB(); |
8459 | 0 | return *internal_default_instance(); |
8460 | 0 | } |
8461 | | |
8462 | 0 | GetMasterAddressesResponsePB* GetMasterAddressesResponsePB::New(::google::protobuf::Arena* arena) const { |
8463 | 0 | GetMasterAddressesResponsePB* n = new GetMasterAddressesResponsePB; |
8464 | 0 | if (arena != NULL) { |
8465 | 0 | arena->Own(n); |
8466 | 0 | } |
8467 | 0 | return n; |
8468 | 0 | } |
8469 | | |
8470 | 0 | void GetMasterAddressesResponsePB::Clear() { |
8471 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.GetMasterAddressesResponsePB) |
8472 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8473 | | // Prevent compiler warnings about cached_has_bits being unused |
8474 | 0 | (void) cached_has_bits; |
8475 | |
|
8476 | 0 | cached_has_bits = _has_bits_[0]; |
8477 | 0 | if (cached_has_bits & 3u) { |
8478 | 0 | if (cached_has_bits & 0x00000001u) { |
8479 | 0 | GOOGLE_DCHECK(!master_addresses_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8480 | 0 | (*master_addresses_.UnsafeRawStringPointer())->clear(); |
8481 | 0 | } |
8482 | 0 | if (cached_has_bits & 0x00000002u) { |
8483 | 0 | GOOGLE_DCHECK(error_ != NULL); |
8484 | 0 | error_->Clear(); |
8485 | 0 | } |
8486 | 0 | } |
8487 | 0 | _has_bits_.Clear(); |
8488 | 0 | _internal_metadata_.Clear(); |
8489 | 0 | } |
8490 | | |
8491 | | bool GetMasterAddressesResponsePB::MergePartialFromCodedStream( |
8492 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8493 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8494 | 0 | ::google::protobuf::uint32 tag; |
8495 | | // @@protoc_insertion_point(parse_start:yb.tserver.GetMasterAddressesResponsePB) |
8496 | 0 | for (;;) { |
8497 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8498 | 0 | tag = p.first; |
8499 | 0 | if (!p.second) goto handle_unusual; |
8500 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8501 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8502 | 0 | case 1: { |
8503 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8504 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8505 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8506 | 0 | input, mutable_error())); |
8507 | 0 | } else { |
8508 | 0 | goto handle_unusual; |
8509 | 0 | } |
8510 | 0 | break; |
8511 | 0 | } |
8512 | | |
8513 | | // optional string master_addresses = 2; |
8514 | 0 | case 2: { |
8515 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8516 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
8517 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8518 | 0 | input, this->mutable_master_addresses())); |
8519 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8520 | 0 | this->master_addresses().data(), static_cast<int>(this->master_addresses().length()), |
8521 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
8522 | 0 | "yb.tserver.GetMasterAddressesResponsePB.master_addresses"); |
8523 | 0 | } else { |
8524 | 0 | goto handle_unusual; |
8525 | 0 | } |
8526 | 0 | break; |
8527 | 0 | } |
8528 | | |
8529 | 0 | default: { |
8530 | 0 | handle_unusual: |
8531 | 0 | if (tag == 0) { |
8532 | 0 | goto success; |
8533 | 0 | } |
8534 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8535 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8536 | 0 | break; |
8537 | 0 | } |
8538 | 0 | } |
8539 | 0 | } |
8540 | 0 | success: |
8541 | | // @@protoc_insertion_point(parse_success:yb.tserver.GetMasterAddressesResponsePB) |
8542 | 0 | return true; |
8543 | 0 | failure: |
8544 | | // @@protoc_insertion_point(parse_failure:yb.tserver.GetMasterAddressesResponsePB) |
8545 | 0 | return false; |
8546 | 0 | #undef DO_ |
8547 | 0 | } |
8548 | | |
8549 | | void GetMasterAddressesResponsePB::SerializeWithCachedSizes( |
8550 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8551 | | // @@protoc_insertion_point(serialize_start:yb.tserver.GetMasterAddressesResponsePB) |
8552 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8553 | 0 | (void) cached_has_bits; |
8554 | |
|
8555 | 0 | cached_has_bits = _has_bits_[0]; |
8556 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8557 | 0 | if (cached_has_bits & 0x00000002u) { |
8558 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8559 | 0 | 1, *this->error_, output); |
8560 | 0 | } |
8561 | | |
8562 | | // optional string master_addresses = 2; |
8563 | 0 | if (cached_has_bits & 0x00000001u) { |
8564 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8565 | 0 | this->master_addresses().data(), static_cast<int>(this->master_addresses().length()), |
8566 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8567 | 0 | "yb.tserver.GetMasterAddressesResponsePB.master_addresses"); |
8568 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8569 | 0 | 2, this->master_addresses(), output); |
8570 | 0 | } |
8571 | |
|
8572 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8573 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8574 | 0 | _internal_metadata_.unknown_fields(), output); |
8575 | 0 | } |
8576 | | // @@protoc_insertion_point(serialize_end:yb.tserver.GetMasterAddressesResponsePB) |
8577 | 0 | } |
8578 | | |
8579 | | ::google::protobuf::uint8* GetMasterAddressesResponsePB::InternalSerializeWithCachedSizesToArray( |
8580 | 9 | bool deterministic, ::google::protobuf::uint8* target) const { |
8581 | 9 | (void)deterministic; // Unused |
8582 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.GetMasterAddressesResponsePB) |
8583 | 9 | ::google::protobuf::uint32 cached_has_bits = 0; |
8584 | 9 | (void) cached_has_bits; |
8585 | | |
8586 | 9 | cached_has_bits = _has_bits_[0]; |
8587 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8588 | 9 | if (cached_has_bits & 0x00000002u) { |
8589 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8590 | 0 | InternalWriteMessageToArray( |
8591 | 0 | 1, *this->error_, deterministic, target); |
8592 | 0 | } |
8593 | | |
8594 | | // optional string master_addresses = 2; |
8595 | 9 | if (cached_has_bits & 0x00000001u) { |
8596 | 9 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8597 | 9 | this->master_addresses().data(), static_cast<int>(this->master_addresses().length()), |
8598 | 9 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8599 | 9 | "yb.tserver.GetMasterAddressesResponsePB.master_addresses"); |
8600 | 9 | target = |
8601 | 9 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8602 | 9 | 2, this->master_addresses(), target); |
8603 | 9 | } |
8604 | | |
8605 | 9 | if (_internal_metadata_.have_unknown_fields()) { |
8606 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8607 | 0 | _internal_metadata_.unknown_fields(), target); |
8608 | 0 | } |
8609 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.GetMasterAddressesResponsePB) |
8610 | 9 | return target; |
8611 | 9 | } |
8612 | | |
8613 | 18 | size_t GetMasterAddressesResponsePB::ByteSizeLong() const { |
8614 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.GetMasterAddressesResponsePB) |
8615 | 18 | size_t total_size = 0; |
8616 | | |
8617 | 18 | if (_internal_metadata_.have_unknown_fields()) { |
8618 | 0 | total_size += |
8619 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8620 | 0 | _internal_metadata_.unknown_fields()); |
8621 | 0 | } |
8622 | 18 | if (_has_bits_[0 / 32] & 3u) { |
8623 | | // optional string master_addresses = 2; |
8624 | 18 | if (has_master_addresses()) { |
8625 | 18 | total_size += 1 + |
8626 | 18 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8627 | 18 | this->master_addresses()); |
8628 | 18 | } |
8629 | | |
8630 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
8631 | 18 | if (has_error()) { |
8632 | 0 | total_size += 1 + |
8633 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8634 | 0 | *this->error_); |
8635 | 0 | } |
8636 | | |
8637 | 18 | } |
8638 | 18 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8639 | 18 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8640 | 18 | _cached_size_ = cached_size; |
8641 | 18 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8642 | 18 | return total_size; |
8643 | 18 | } |
8644 | | |
8645 | 0 | void GetMasterAddressesResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
8646 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.GetMasterAddressesResponsePB) |
8647 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8648 | 0 | const GetMasterAddressesResponsePB* source = |
8649 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetMasterAddressesResponsePB>( |
8650 | 0 | &from); |
8651 | 0 | if (source == NULL) { |
8652 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.GetMasterAddressesResponsePB) |
8653 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8654 | 0 | } else { |
8655 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.GetMasterAddressesResponsePB) |
8656 | 0 | MergeFrom(*source); |
8657 | 0 | } |
8658 | 0 | } |
8659 | | |
8660 | 0 | void GetMasterAddressesResponsePB::MergeFrom(const GetMasterAddressesResponsePB& from) { |
8661 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.GetMasterAddressesResponsePB) |
8662 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8663 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8664 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8665 | 0 | (void) cached_has_bits; |
8666 | |
|
8667 | 0 | cached_has_bits = from._has_bits_[0]; |
8668 | 0 | if (cached_has_bits & 3u) { |
8669 | 0 | if (cached_has_bits & 0x00000001u) { |
8670 | 0 | set_has_master_addresses(); |
8671 | 0 | master_addresses_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.master_addresses_); |
8672 | 0 | } |
8673 | 0 | if (cached_has_bits & 0x00000002u) { |
8674 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
8675 | 0 | } |
8676 | 0 | } |
8677 | 0 | } |
8678 | | |
8679 | 0 | void GetMasterAddressesResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
8680 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.GetMasterAddressesResponsePB) |
8681 | 0 | if (&from == this) return; |
8682 | 0 | Clear(); |
8683 | 0 | MergeFrom(from); |
8684 | 0 | } |
8685 | | |
8686 | 0 | void GetMasterAddressesResponsePB::CopyFrom(const GetMasterAddressesResponsePB& from) { |
8687 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.GetMasterAddressesResponsePB) |
8688 | 0 | if (&from == this) return; |
8689 | 0 | Clear(); |
8690 | 0 | MergeFrom(from); |
8691 | 0 | } |
8692 | | |
8693 | 9 | bool GetMasterAddressesResponsePB::IsInitialized() const { |
8694 | 9 | if (has_error()) { |
8695 | 0 | if (!this->error_->IsInitialized()) return false; |
8696 | 0 | } |
8697 | 9 | return true; |
8698 | 9 | } |
8699 | | |
8700 | 0 | void GetMasterAddressesResponsePB::Swap(GetMasterAddressesResponsePB* other) { |
8701 | 0 | if (other == this) return; |
8702 | 0 | InternalSwap(other); |
8703 | 0 | } |
8704 | 0 | void GetMasterAddressesResponsePB::InternalSwap(GetMasterAddressesResponsePB* other) { |
8705 | 0 | using std::swap; |
8706 | 0 | master_addresses_.Swap(&other->master_addresses_); |
8707 | 0 | swap(error_, other->error_); |
8708 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8709 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8710 | 0 | swap(_cached_size_, other->_cached_size_); |
8711 | 0 | } |
8712 | | |
8713 | 0 | ::google::protobuf::Metadata GetMasterAddressesResponsePB::GetMetadata() const { |
8714 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8715 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
8716 | 0 | } |
8717 | | |
8718 | | |
8719 | | // =================================================================== |
8720 | | |
8721 | 26.8k | void PublishRequestPB::InitAsDefaultInstance() { |
8722 | 26.8k | } |
8723 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8724 | | const int PublishRequestPB::kChannelFieldNumber; |
8725 | | const int PublishRequestPB::kMessageFieldNumber; |
8726 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8727 | | |
8728 | | PublishRequestPB::PublishRequestPB() |
8729 | 28.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8730 | 28.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8731 | 1.36k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsPublishRequestPB(); |
8732 | 1.36k | } |
8733 | 28.2k | SharedCtor(); |
8734 | | // @@protoc_insertion_point(constructor:yb.tserver.PublishRequestPB) |
8735 | 28.2k | } |
8736 | | PublishRequestPB::PublishRequestPB(const PublishRequestPB& from) |
8737 | | : ::google::protobuf::Message(), |
8738 | | _internal_metadata_(NULL), |
8739 | | _has_bits_(from._has_bits_), |
8740 | 0 | _cached_size_(0) { |
8741 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8742 | 0 | channel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8743 | 0 | if (from.has_channel()) { |
8744 | 0 | channel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.channel_); |
8745 | 0 | } |
8746 | 0 | message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8747 | 0 | if (from.has_message()) { |
8748 | 0 | message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); |
8749 | 0 | } |
8750 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.PublishRequestPB) |
8751 | 0 | } |
8752 | | |
8753 | 28.2k | void PublishRequestPB::SharedCtor() { |
8754 | 28.2k | _cached_size_ = 0; |
8755 | 28.2k | channel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8756 | 28.2k | message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8757 | 28.2k | } |
8758 | | |
8759 | 1.36k | PublishRequestPB::~PublishRequestPB() { |
8760 | | // @@protoc_insertion_point(destructor:yb.tserver.PublishRequestPB) |
8761 | 1.36k | SharedDtor(); |
8762 | 1.36k | } |
8763 | | |
8764 | 1.36k | void PublishRequestPB::SharedDtor() { |
8765 | 1.36k | channel_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8766 | 1.36k | message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8767 | 1.36k | } |
8768 | | |
8769 | 0 | void PublishRequestPB::SetCachedSize(int size) const { |
8770 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8771 | 0 | _cached_size_ = size; |
8772 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8773 | 0 | } |
8774 | 0 | const ::google::protobuf::Descriptor* PublishRequestPB::descriptor() { |
8775 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
8776 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8777 | 0 | } |
8778 | | |
8779 | 0 | const PublishRequestPB& PublishRequestPB::default_instance() { |
8780 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsPublishRequestPB(); |
8781 | 0 | return *internal_default_instance(); |
8782 | 0 | } |
8783 | | |
8784 | 0 | PublishRequestPB* PublishRequestPB::New(::google::protobuf::Arena* arena) const { |
8785 | 0 | PublishRequestPB* n = new PublishRequestPB; |
8786 | 0 | if (arena != NULL) { |
8787 | 0 | arena->Own(n); |
8788 | 0 | } |
8789 | 0 | return n; |
8790 | 0 | } |
8791 | | |
8792 | 684 | void PublishRequestPB::Clear() { |
8793 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.PublishRequestPB) |
8794 | 684 | ::google::protobuf::uint32 cached_has_bits = 0; |
8795 | | // Prevent compiler warnings about cached_has_bits being unused |
8796 | 684 | (void) cached_has_bits; |
8797 | | |
8798 | 684 | cached_has_bits = _has_bits_[0]; |
8799 | 684 | if (cached_has_bits & 3u) { |
8800 | 0 | if (cached_has_bits & 0x00000001u) { |
8801 | 0 | GOOGLE_DCHECK(!channel_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8802 | 0 | (*channel_.UnsafeRawStringPointer())->clear(); |
8803 | 0 | } |
8804 | 0 | if (cached_has_bits & 0x00000002u) { |
8805 | 0 | GOOGLE_DCHECK(!message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8806 | 0 | (*message_.UnsafeRawStringPointer())->clear(); |
8807 | 0 | } |
8808 | 0 | } |
8809 | 684 | _has_bits_.Clear(); |
8810 | 684 | _internal_metadata_.Clear(); |
8811 | 684 | } |
8812 | | |
8813 | | bool PublishRequestPB::MergePartialFromCodedStream( |
8814 | 684 | ::google::protobuf::io::CodedInputStream* input) { |
8815 | 1.36k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
8816 | 684 | ::google::protobuf::uint32 tag; |
8817 | | // @@protoc_insertion_point(parse_start:yb.tserver.PublishRequestPB) |
8818 | 2.05k | for (;;) { |
8819 | 2.05k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8820 | 2.05k | tag = p.first; |
8821 | 2.05k | if (!p.second) goto handle_unusual684 ; |
8822 | 1.36k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8823 | | // required bytes channel = 1; |
8824 | 684 | case 1: { |
8825 | 684 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8826 | 684 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8827 | 684 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8828 | 684 | input, this->mutable_channel())); |
8829 | 684 | } else { |
8830 | 0 | goto handle_unusual; |
8831 | 0 | } |
8832 | 684 | break; |
8833 | 684 | } |
8834 | | |
8835 | | // required bytes message = 2; |
8836 | 684 | case 2: { |
8837 | 684 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8838 | 684 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
8839 | 684 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8840 | 684 | input, this->mutable_message())); |
8841 | 684 | } else { |
8842 | 0 | goto handle_unusual; |
8843 | 0 | } |
8844 | 684 | break; |
8845 | 684 | } |
8846 | | |
8847 | 684 | default: { |
8848 | 684 | handle_unusual: |
8849 | 684 | if (tag == 0) { |
8850 | 684 | goto success; |
8851 | 684 | } |
8852 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8853 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8854 | 0 | break; |
8855 | 0 | } |
8856 | 1.36k | } |
8857 | 1.36k | } |
8858 | 684 | success: |
8859 | | // @@protoc_insertion_point(parse_success:yb.tserver.PublishRequestPB) |
8860 | 684 | return true; |
8861 | 0 | failure: |
8862 | | // @@protoc_insertion_point(parse_failure:yb.tserver.PublishRequestPB) |
8863 | 0 | return false; |
8864 | 684 | #undef DO_ |
8865 | 684 | } |
8866 | | |
8867 | | void PublishRequestPB::SerializeWithCachedSizes( |
8868 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8869 | | // @@protoc_insertion_point(serialize_start:yb.tserver.PublishRequestPB) |
8870 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8871 | 0 | (void) cached_has_bits; |
8872 | |
|
8873 | 0 | cached_has_bits = _has_bits_[0]; |
8874 | | // required bytes channel = 1; |
8875 | 0 | if (cached_has_bits & 0x00000001u) { |
8876 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
8877 | 0 | 1, this->channel(), output); |
8878 | 0 | } |
8879 | | |
8880 | | // required bytes message = 2; |
8881 | 0 | if (cached_has_bits & 0x00000002u) { |
8882 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
8883 | 0 | 2, this->message(), output); |
8884 | 0 | } |
8885 | |
|
8886 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8887 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8888 | 0 | _internal_metadata_.unknown_fields(), output); |
8889 | 0 | } |
8890 | | // @@protoc_insertion_point(serialize_end:yb.tserver.PublishRequestPB) |
8891 | 0 | } |
8892 | | |
8893 | | ::google::protobuf::uint8* PublishRequestPB::InternalSerializeWithCachedSizesToArray( |
8894 | 684 | bool deterministic, ::google::protobuf::uint8* target) const { |
8895 | 684 | (void)deterministic; // Unused |
8896 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.PublishRequestPB) |
8897 | 684 | ::google::protobuf::uint32 cached_has_bits = 0; |
8898 | 684 | (void) cached_has_bits; |
8899 | | |
8900 | 684 | cached_has_bits = _has_bits_[0]; |
8901 | | // required bytes channel = 1; |
8902 | 684 | if (cached_has_bits & 0x00000001u) { |
8903 | 684 | target = |
8904 | 684 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
8905 | 684 | 1, this->channel(), target); |
8906 | 684 | } |
8907 | | |
8908 | | // required bytes message = 2; |
8909 | 684 | if (cached_has_bits & 0x00000002u) { |
8910 | 684 | target = |
8911 | 684 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
8912 | 684 | 2, this->message(), target); |
8913 | 684 | } |
8914 | | |
8915 | 684 | if (_internal_metadata_.have_unknown_fields()) { |
8916 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8917 | 0 | _internal_metadata_.unknown_fields(), target); |
8918 | 0 | } |
8919 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.PublishRequestPB) |
8920 | 684 | return target; |
8921 | 684 | } |
8922 | | |
8923 | 0 | size_t PublishRequestPB::RequiredFieldsByteSizeFallback() const { |
8924 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tserver.PublishRequestPB) |
8925 | 0 | size_t total_size = 0; |
8926 | |
|
8927 | 0 | if (has_channel()) { |
8928 | | // required bytes channel = 1; |
8929 | 0 | total_size += 1 + |
8930 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8931 | 0 | this->channel()); |
8932 | 0 | } |
8933 | |
|
8934 | 0 | if (has_message()) { |
8935 | | // required bytes message = 2; |
8936 | 0 | total_size += 1 + |
8937 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8938 | 0 | this->message()); |
8939 | 0 | } |
8940 | |
|
8941 | 0 | return total_size; |
8942 | 0 | } |
8943 | 1.36k | size_t PublishRequestPB::ByteSizeLong() const { |
8944 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.PublishRequestPB) |
8945 | 1.36k | size_t total_size = 0; |
8946 | | |
8947 | 1.36k | if (_internal_metadata_.have_unknown_fields()) { |
8948 | 0 | total_size += |
8949 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8950 | 0 | _internal_metadata_.unknown_fields()); |
8951 | 0 | } |
8952 | 1.36k | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
8953 | | // required bytes channel = 1; |
8954 | 1.36k | total_size += 1 + |
8955 | 1.36k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8956 | 1.36k | this->channel()); |
8957 | | |
8958 | | // required bytes message = 2; |
8959 | 1.36k | total_size += 1 + |
8960 | 1.36k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8961 | 1.36k | this->message()); |
8962 | | |
8963 | 1.36k | } else { |
8964 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
8965 | 0 | } |
8966 | 1.36k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8967 | 1.36k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8968 | 1.36k | _cached_size_ = cached_size; |
8969 | 1.36k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8970 | 1.36k | return total_size; |
8971 | 1.36k | } |
8972 | | |
8973 | 0 | void PublishRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8974 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.PublishRequestPB) |
8975 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8976 | 0 | const PublishRequestPB* source = |
8977 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const PublishRequestPB>( |
8978 | 0 | &from); |
8979 | 0 | if (source == NULL) { |
8980 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.PublishRequestPB) |
8981 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8982 | 0 | } else { |
8983 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.PublishRequestPB) |
8984 | 0 | MergeFrom(*source); |
8985 | 0 | } |
8986 | 0 | } |
8987 | | |
8988 | 0 | void PublishRequestPB::MergeFrom(const PublishRequestPB& from) { |
8989 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.PublishRequestPB) |
8990 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8991 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8992 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8993 | 0 | (void) cached_has_bits; |
8994 | |
|
8995 | 0 | cached_has_bits = from._has_bits_[0]; |
8996 | 0 | if (cached_has_bits & 3u) { |
8997 | 0 | if (cached_has_bits & 0x00000001u) { |
8998 | 0 | set_has_channel(); |
8999 | 0 | channel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.channel_); |
9000 | 0 | } |
9001 | 0 | if (cached_has_bits & 0x00000002u) { |
9002 | 0 | set_has_message(); |
9003 | 0 | message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); |
9004 | 0 | } |
9005 | 0 | } |
9006 | 0 | } |
9007 | | |
9008 | 0 | void PublishRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9009 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.PublishRequestPB) |
9010 | 0 | if (&from == this) return; |
9011 | 0 | Clear(); |
9012 | 0 | MergeFrom(from); |
9013 | 0 | } |
9014 | | |
9015 | 0 | void PublishRequestPB::CopyFrom(const PublishRequestPB& from) { |
9016 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.PublishRequestPB) |
9017 | 0 | if (&from == this) return; |
9018 | 0 | Clear(); |
9019 | 0 | MergeFrom(from); |
9020 | 0 | } |
9021 | | |
9022 | 1.36k | bool PublishRequestPB::IsInitialized() const { |
9023 | 1.36k | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false0 ; |
9024 | 1.36k | return true; |
9025 | 1.36k | } |
9026 | | |
9027 | 0 | void PublishRequestPB::Swap(PublishRequestPB* other) { |
9028 | 0 | if (other == this) return; |
9029 | 0 | InternalSwap(other); |
9030 | 0 | } |
9031 | 0 | void PublishRequestPB::InternalSwap(PublishRequestPB* other) { |
9032 | 0 | using std::swap; |
9033 | 0 | channel_.Swap(&other->channel_); |
9034 | 0 | message_.Swap(&other->message_); |
9035 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9036 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9037 | 0 | swap(_cached_size_, other->_cached_size_); |
9038 | 0 | } |
9039 | | |
9040 | 684 | ::google::protobuf::Metadata PublishRequestPB::GetMetadata() const { |
9041 | 684 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9042 | 684 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
9043 | 684 | } |
9044 | | |
9045 | | |
9046 | | // =================================================================== |
9047 | | |
9048 | 26.8k | void PublishResponsePB::InitAsDefaultInstance() { |
9049 | 26.8k | } |
9050 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9051 | | const int PublishResponsePB::kNumClientsForwardedToFieldNumber; |
9052 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9053 | | |
9054 | | PublishResponsePB::PublishResponsePB() |
9055 | 28.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9056 | 28.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9057 | 1.36k | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsPublishResponsePB(); |
9058 | 1.36k | } |
9059 | 28.2k | SharedCtor(); |
9060 | | // @@protoc_insertion_point(constructor:yb.tserver.PublishResponsePB) |
9061 | 28.2k | } |
9062 | | PublishResponsePB::PublishResponsePB(const PublishResponsePB& from) |
9063 | | : ::google::protobuf::Message(), |
9064 | | _internal_metadata_(NULL), |
9065 | | _has_bits_(from._has_bits_), |
9066 | 0 | _cached_size_(0) { |
9067 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9068 | 0 | num_clients_forwarded_to_ = from.num_clients_forwarded_to_; |
9069 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.PublishResponsePB) |
9070 | 0 | } |
9071 | | |
9072 | 28.2k | void PublishResponsePB::SharedCtor() { |
9073 | 28.2k | _cached_size_ = 0; |
9074 | 28.2k | num_clients_forwarded_to_ = 0; |
9075 | 28.2k | } |
9076 | | |
9077 | 1.36k | PublishResponsePB::~PublishResponsePB() { |
9078 | | // @@protoc_insertion_point(destructor:yb.tserver.PublishResponsePB) |
9079 | 1.36k | SharedDtor(); |
9080 | 1.36k | } |
9081 | | |
9082 | 1.36k | void PublishResponsePB::SharedDtor() { |
9083 | 1.36k | } |
9084 | | |
9085 | 0 | void PublishResponsePB::SetCachedSize(int size) const { |
9086 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9087 | 0 | _cached_size_ = size; |
9088 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9089 | 0 | } |
9090 | 0 | const ::google::protobuf::Descriptor* PublishResponsePB::descriptor() { |
9091 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9092 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9093 | 0 | } |
9094 | | |
9095 | 0 | const PublishResponsePB& PublishResponsePB::default_instance() { |
9096 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsPublishResponsePB(); |
9097 | 0 | return *internal_default_instance(); |
9098 | 0 | } |
9099 | | |
9100 | 0 | PublishResponsePB* PublishResponsePB::New(::google::protobuf::Arena* arena) const { |
9101 | 0 | PublishResponsePB* n = new PublishResponsePB; |
9102 | 0 | if (arena != NULL) { |
9103 | 0 | arena->Own(n); |
9104 | 0 | } |
9105 | 0 | return n; |
9106 | 0 | } |
9107 | | |
9108 | 684 | void PublishResponsePB::Clear() { |
9109 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.PublishResponsePB) |
9110 | 684 | ::google::protobuf::uint32 cached_has_bits = 0; |
9111 | | // Prevent compiler warnings about cached_has_bits being unused |
9112 | 684 | (void) cached_has_bits; |
9113 | | |
9114 | 684 | num_clients_forwarded_to_ = 0; |
9115 | 684 | _has_bits_.Clear(); |
9116 | 684 | _internal_metadata_.Clear(); |
9117 | 684 | } |
9118 | | |
9119 | | bool PublishResponsePB::MergePartialFromCodedStream( |
9120 | 682 | ::google::protobuf::io::CodedInputStream* input) { |
9121 | 682 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
9122 | 682 | ::google::protobuf::uint32 tag; |
9123 | | // @@protoc_insertion_point(parse_start:yb.tserver.PublishResponsePB) |
9124 | 1.36k | for (;;) { |
9125 | 1.36k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9126 | 1.36k | tag = p.first; |
9127 | 1.36k | if (!p.second) goto handle_unusual684 ; |
9128 | 681 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9129 | | // required int32 num_clients_forwarded_to = 1; |
9130 | 682 | case 1: { |
9131 | 682 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9132 | 682 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
9133 | 682 | set_has_num_clients_forwarded_to(); |
9134 | 682 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9135 | 682 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9136 | 682 | input, &num_clients_forwarded_to_))); |
9137 | 682 | } else { |
9138 | 0 | goto handle_unusual; |
9139 | 0 | } |
9140 | 682 | break; |
9141 | 682 | } |
9142 | | |
9143 | 682 | default: { |
9144 | 684 | handle_unusual: |
9145 | 684 | if (tag == 0) { |
9146 | 684 | goto success; |
9147 | 684 | } |
9148 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9149 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9150 | 0 | break; |
9151 | 0 | } |
9152 | 681 | } |
9153 | 681 | } |
9154 | 18.4E | success: |
9155 | | // @@protoc_insertion_point(parse_success:yb.tserver.PublishResponsePB) |
9156 | 684 | return true; |
9157 | 0 | failure: |
9158 | | // @@protoc_insertion_point(parse_failure:yb.tserver.PublishResponsePB) |
9159 | 0 | return false; |
9160 | 682 | #undef DO_ |
9161 | 682 | } |
9162 | | |
9163 | | void PublishResponsePB::SerializeWithCachedSizes( |
9164 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9165 | | // @@protoc_insertion_point(serialize_start:yb.tserver.PublishResponsePB) |
9166 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9167 | 0 | (void) cached_has_bits; |
9168 | |
|
9169 | 0 | cached_has_bits = _has_bits_[0]; |
9170 | | // required int32 num_clients_forwarded_to = 1; |
9171 | 0 | if (cached_has_bits & 0x00000001u) { |
9172 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num_clients_forwarded_to(), output); |
9173 | 0 | } |
9174 | |
|
9175 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9176 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9177 | 0 | _internal_metadata_.unknown_fields(), output); |
9178 | 0 | } |
9179 | | // @@protoc_insertion_point(serialize_end:yb.tserver.PublishResponsePB) |
9180 | 0 | } |
9181 | | |
9182 | | ::google::protobuf::uint8* PublishResponsePB::InternalSerializeWithCachedSizesToArray( |
9183 | 684 | bool deterministic, ::google::protobuf::uint8* target) const { |
9184 | 684 | (void)deterministic; // Unused |
9185 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.PublishResponsePB) |
9186 | 684 | ::google::protobuf::uint32 cached_has_bits = 0; |
9187 | 684 | (void) cached_has_bits; |
9188 | | |
9189 | 684 | cached_has_bits = _has_bits_[0]; |
9190 | | // required int32 num_clients_forwarded_to = 1; |
9191 | 684 | if (cached_has_bits & 0x00000001u) { |
9192 | 684 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num_clients_forwarded_to(), target); |
9193 | 684 | } |
9194 | | |
9195 | 684 | if (_internal_metadata_.have_unknown_fields()) { |
9196 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9197 | 0 | _internal_metadata_.unknown_fields(), target); |
9198 | 0 | } |
9199 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.PublishResponsePB) |
9200 | 684 | return target; |
9201 | 684 | } |
9202 | | |
9203 | 1.36k | size_t PublishResponsePB::ByteSizeLong() const { |
9204 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.PublishResponsePB) |
9205 | 1.36k | size_t total_size = 0; |
9206 | | |
9207 | 1.36k | if (_internal_metadata_.have_unknown_fields()) { |
9208 | 0 | total_size += |
9209 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9210 | 0 | _internal_metadata_.unknown_fields()); |
9211 | 0 | } |
9212 | | // required int32 num_clients_forwarded_to = 1; |
9213 | 1.36k | if (has_num_clients_forwarded_to()) { |
9214 | 1.36k | total_size += 1 + |
9215 | 1.36k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9216 | 1.36k | this->num_clients_forwarded_to()); |
9217 | 1.36k | } |
9218 | 1.36k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9219 | 1.36k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9220 | 1.36k | _cached_size_ = cached_size; |
9221 | 1.36k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9222 | 1.36k | return total_size; |
9223 | 1.36k | } |
9224 | | |
9225 | 0 | void PublishResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
9226 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.PublishResponsePB) |
9227 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9228 | 0 | const PublishResponsePB* source = |
9229 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const PublishResponsePB>( |
9230 | 0 | &from); |
9231 | 0 | if (source == NULL) { |
9232 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.PublishResponsePB) |
9233 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9234 | 0 | } else { |
9235 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.PublishResponsePB) |
9236 | 0 | MergeFrom(*source); |
9237 | 0 | } |
9238 | 0 | } |
9239 | | |
9240 | 0 | void PublishResponsePB::MergeFrom(const PublishResponsePB& from) { |
9241 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.PublishResponsePB) |
9242 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9243 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9244 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9245 | 0 | (void) cached_has_bits; |
9246 | |
|
9247 | 0 | if (from.has_num_clients_forwarded_to()) { |
9248 | 0 | set_num_clients_forwarded_to(from.num_clients_forwarded_to()); |
9249 | 0 | } |
9250 | 0 | } |
9251 | | |
9252 | 0 | void PublishResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
9253 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.PublishResponsePB) |
9254 | 0 | if (&from == this) return; |
9255 | 0 | Clear(); |
9256 | 0 | MergeFrom(from); |
9257 | 0 | } |
9258 | | |
9259 | 0 | void PublishResponsePB::CopyFrom(const PublishResponsePB& from) { |
9260 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.PublishResponsePB) |
9261 | 0 | if (&from == this) return; |
9262 | 0 | Clear(); |
9263 | 0 | MergeFrom(from); |
9264 | 0 | } |
9265 | | |
9266 | 1.36k | bool PublishResponsePB::IsInitialized() const { |
9267 | 1.36k | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
9268 | 1.36k | return true; |
9269 | 1.36k | } |
9270 | | |
9271 | 0 | void PublishResponsePB::Swap(PublishResponsePB* other) { |
9272 | 0 | if (other == this) return; |
9273 | 0 | InternalSwap(other); |
9274 | 0 | } |
9275 | 0 | void PublishResponsePB::InternalSwap(PublishResponsePB* other) { |
9276 | 0 | using std::swap; |
9277 | 0 | swap(num_clients_forwarded_to_, other->num_clients_forwarded_to_); |
9278 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9279 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9280 | 0 | swap(_cached_size_, other->_cached_size_); |
9281 | 0 | } |
9282 | | |
9283 | 0 | ::google::protobuf::Metadata PublishResponsePB::GetMetadata() const { |
9284 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9285 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
9286 | 0 | } |
9287 | | |
9288 | | |
9289 | | // =================================================================== |
9290 | | |
9291 | 26.8k | void IsTabletServerReadyRequestPB::InitAsDefaultInstance() { |
9292 | 26.8k | } |
9293 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9294 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9295 | | |
9296 | | IsTabletServerReadyRequestPB::IsTabletServerReadyRequestPB() |
9297 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9298 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9299 | 18 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsIsTabletServerReadyRequestPB(); |
9300 | 18 | } |
9301 | 26.8k | SharedCtor(); |
9302 | | // @@protoc_insertion_point(constructor:yb.tserver.IsTabletServerReadyRequestPB) |
9303 | 26.8k | } |
9304 | | IsTabletServerReadyRequestPB::IsTabletServerReadyRequestPB(const IsTabletServerReadyRequestPB& from) |
9305 | | : ::google::protobuf::Message(), |
9306 | | _internal_metadata_(NULL), |
9307 | | _has_bits_(from._has_bits_), |
9308 | 0 | _cached_size_(0) { |
9309 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9310 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.IsTabletServerReadyRequestPB) |
9311 | 0 | } |
9312 | | |
9313 | 26.8k | void IsTabletServerReadyRequestPB::SharedCtor() { |
9314 | 26.8k | _cached_size_ = 0; |
9315 | 26.8k | } |
9316 | | |
9317 | 18 | IsTabletServerReadyRequestPB::~IsTabletServerReadyRequestPB() { |
9318 | | // @@protoc_insertion_point(destructor:yb.tserver.IsTabletServerReadyRequestPB) |
9319 | 18 | SharedDtor(); |
9320 | 18 | } |
9321 | | |
9322 | 18 | void IsTabletServerReadyRequestPB::SharedDtor() { |
9323 | 18 | } |
9324 | | |
9325 | 0 | void IsTabletServerReadyRequestPB::SetCachedSize(int size) const { |
9326 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9327 | 0 | _cached_size_ = size; |
9328 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9329 | 0 | } |
9330 | 0 | const ::google::protobuf::Descriptor* IsTabletServerReadyRequestPB::descriptor() { |
9331 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9332 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9333 | 0 | } |
9334 | | |
9335 | 0 | const IsTabletServerReadyRequestPB& IsTabletServerReadyRequestPB::default_instance() { |
9336 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsIsTabletServerReadyRequestPB(); |
9337 | 0 | return *internal_default_instance(); |
9338 | 0 | } |
9339 | | |
9340 | 0 | IsTabletServerReadyRequestPB* IsTabletServerReadyRequestPB::New(::google::protobuf::Arena* arena) const { |
9341 | 0 | IsTabletServerReadyRequestPB* n = new IsTabletServerReadyRequestPB; |
9342 | 0 | if (arena != NULL) { |
9343 | 0 | arena->Own(n); |
9344 | 0 | } |
9345 | 0 | return n; |
9346 | 0 | } |
9347 | | |
9348 | 18 | void IsTabletServerReadyRequestPB::Clear() { |
9349 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.IsTabletServerReadyRequestPB) |
9350 | 18 | ::google::protobuf::uint32 cached_has_bits = 0; |
9351 | | // Prevent compiler warnings about cached_has_bits being unused |
9352 | 18 | (void) cached_has_bits; |
9353 | | |
9354 | 18 | _has_bits_.Clear(); |
9355 | 18 | _internal_metadata_.Clear(); |
9356 | 18 | } |
9357 | | |
9358 | | bool IsTabletServerReadyRequestPB::MergePartialFromCodedStream( |
9359 | 18 | ::google::protobuf::io::CodedInputStream* input) { |
9360 | 18 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
9361 | 18 | ::google::protobuf::uint32 tag; |
9362 | | // @@protoc_insertion_point(parse_start:yb.tserver.IsTabletServerReadyRequestPB) |
9363 | 18 | for (;;) { |
9364 | 18 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9365 | 18 | tag = p.first; |
9366 | 18 | if (!p.second) goto handle_unusual; |
9367 | 18 | handle_unusual: |
9368 | 18 | if (tag == 0) { |
9369 | 18 | goto success; |
9370 | 18 | } |
9371 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9372 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9373 | 0 | } |
9374 | 18 | success: |
9375 | | // @@protoc_insertion_point(parse_success:yb.tserver.IsTabletServerReadyRequestPB) |
9376 | 18 | return true; |
9377 | 0 | failure: |
9378 | | // @@protoc_insertion_point(parse_failure:yb.tserver.IsTabletServerReadyRequestPB) |
9379 | 0 | return false; |
9380 | 18 | #undef DO_ |
9381 | 18 | } |
9382 | | |
9383 | | void IsTabletServerReadyRequestPB::SerializeWithCachedSizes( |
9384 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9385 | | // @@protoc_insertion_point(serialize_start:yb.tserver.IsTabletServerReadyRequestPB) |
9386 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9387 | 0 | (void) cached_has_bits; |
9388 | |
|
9389 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9390 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9391 | 0 | _internal_metadata_.unknown_fields(), output); |
9392 | 0 | } |
9393 | | // @@protoc_insertion_point(serialize_end:yb.tserver.IsTabletServerReadyRequestPB) |
9394 | 0 | } |
9395 | | |
9396 | | ::google::protobuf::uint8* IsTabletServerReadyRequestPB::InternalSerializeWithCachedSizesToArray( |
9397 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9398 | 0 | (void)deterministic; // Unused |
9399 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.IsTabletServerReadyRequestPB) |
9400 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9401 | 0 | (void) cached_has_bits; |
9402 | |
|
9403 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9404 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9405 | 0 | _internal_metadata_.unknown_fields(), target); |
9406 | 0 | } |
9407 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.IsTabletServerReadyRequestPB) |
9408 | 0 | return target; |
9409 | 0 | } |
9410 | | |
9411 | 0 | size_t IsTabletServerReadyRequestPB::ByteSizeLong() const { |
9412 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.IsTabletServerReadyRequestPB) |
9413 | 0 | size_t total_size = 0; |
9414 | |
|
9415 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9416 | 0 | total_size += |
9417 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9418 | 0 | _internal_metadata_.unknown_fields()); |
9419 | 0 | } |
9420 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9421 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9422 | 0 | _cached_size_ = cached_size; |
9423 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9424 | 0 | return total_size; |
9425 | 0 | } |
9426 | | |
9427 | 0 | void IsTabletServerReadyRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9428 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.IsTabletServerReadyRequestPB) |
9429 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9430 | 0 | const IsTabletServerReadyRequestPB* source = |
9431 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsTabletServerReadyRequestPB>( |
9432 | 0 | &from); |
9433 | 0 | if (source == NULL) { |
9434 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.IsTabletServerReadyRequestPB) |
9435 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9436 | 0 | } else { |
9437 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.IsTabletServerReadyRequestPB) |
9438 | 0 | MergeFrom(*source); |
9439 | 0 | } |
9440 | 0 | } |
9441 | | |
9442 | 0 | void IsTabletServerReadyRequestPB::MergeFrom(const IsTabletServerReadyRequestPB& from) { |
9443 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.IsTabletServerReadyRequestPB) |
9444 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9445 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9446 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9447 | 0 | (void) cached_has_bits; |
9448 | |
|
9449 | 0 | } |
9450 | | |
9451 | 0 | void IsTabletServerReadyRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9452 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.IsTabletServerReadyRequestPB) |
9453 | 0 | if (&from == this) return; |
9454 | 0 | Clear(); |
9455 | 0 | MergeFrom(from); |
9456 | 0 | } |
9457 | | |
9458 | 0 | void IsTabletServerReadyRequestPB::CopyFrom(const IsTabletServerReadyRequestPB& from) { |
9459 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.IsTabletServerReadyRequestPB) |
9460 | 0 | if (&from == this) return; |
9461 | 0 | Clear(); |
9462 | 0 | MergeFrom(from); |
9463 | 0 | } |
9464 | | |
9465 | 18 | bool IsTabletServerReadyRequestPB::IsInitialized() const { |
9466 | 18 | return true; |
9467 | 18 | } |
9468 | | |
9469 | 0 | void IsTabletServerReadyRequestPB::Swap(IsTabletServerReadyRequestPB* other) { |
9470 | 0 | if (other == this) return; |
9471 | 0 | InternalSwap(other); |
9472 | 0 | } |
9473 | 0 | void IsTabletServerReadyRequestPB::InternalSwap(IsTabletServerReadyRequestPB* other) { |
9474 | 0 | using std::swap; |
9475 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9476 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9477 | 0 | swap(_cached_size_, other->_cached_size_); |
9478 | 0 | } |
9479 | | |
9480 | 18 | ::google::protobuf::Metadata IsTabletServerReadyRequestPB::GetMetadata() const { |
9481 | 18 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9482 | 18 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
9483 | 18 | } |
9484 | | |
9485 | | |
9486 | | // =================================================================== |
9487 | | |
9488 | 26.8k | void IsTabletServerReadyResponsePB::InitAsDefaultInstance() { |
9489 | 26.8k | ::yb::tserver::_IsTabletServerReadyResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>( |
9490 | 26.8k | ::yb::tserver::TabletServerErrorPB::internal_default_instance()); |
9491 | 26.8k | } |
9492 | 0 | void IsTabletServerReadyResponsePB::clear_error() { |
9493 | 0 | if (error_ != NULL) error_->Clear(); |
9494 | 0 | clear_has_error(); |
9495 | 0 | } |
9496 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9497 | | const int IsTabletServerReadyResponsePB::kErrorFieldNumber; |
9498 | | const int IsTabletServerReadyResponsePB::kNumTabletsNotRunningFieldNumber; |
9499 | | const int IsTabletServerReadyResponsePB::kTotalTabletsFieldNumber; |
9500 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9501 | | |
9502 | | IsTabletServerReadyResponsePB::IsTabletServerReadyResponsePB() |
9503 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9504 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9505 | 18 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsIsTabletServerReadyResponsePB(); |
9506 | 18 | } |
9507 | 26.8k | SharedCtor(); |
9508 | | // @@protoc_insertion_point(constructor:yb.tserver.IsTabletServerReadyResponsePB) |
9509 | 26.8k | } |
9510 | | IsTabletServerReadyResponsePB::IsTabletServerReadyResponsePB(const IsTabletServerReadyResponsePB& from) |
9511 | | : ::google::protobuf::Message(), |
9512 | | _internal_metadata_(NULL), |
9513 | | _has_bits_(from._has_bits_), |
9514 | 0 | _cached_size_(0) { |
9515 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9516 | 0 | if (from.has_error()) { |
9517 | 0 | error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_); |
9518 | 0 | } else { |
9519 | 0 | error_ = NULL; |
9520 | 0 | } |
9521 | 0 | ::memcpy(&num_tablets_not_running_, &from.num_tablets_not_running_, |
9522 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&total_tablets_) - |
9523 | 0 | reinterpret_cast<char*>(&num_tablets_not_running_)) + sizeof(total_tablets_)); |
9524 | | // @@protoc_insertion_point(copy_constructor:yb.tserver.IsTabletServerReadyResponsePB) |
9525 | 0 | } |
9526 | | |
9527 | 26.8k | void IsTabletServerReadyResponsePB::SharedCtor() { |
9528 | 26.8k | _cached_size_ = 0; |
9529 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
9530 | 26.8k | reinterpret_cast<char*>(&total_tablets_) - |
9531 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(total_tablets_)); |
9532 | 26.8k | } |
9533 | | |
9534 | 18 | IsTabletServerReadyResponsePB::~IsTabletServerReadyResponsePB() { |
9535 | | // @@protoc_insertion_point(destructor:yb.tserver.IsTabletServerReadyResponsePB) |
9536 | 18 | SharedDtor(); |
9537 | 18 | } |
9538 | | |
9539 | 18 | void IsTabletServerReadyResponsePB::SharedDtor() { |
9540 | 18 | if (this != internal_default_instance()) delete error_; |
9541 | 18 | } |
9542 | | |
9543 | 0 | void IsTabletServerReadyResponsePB::SetCachedSize(int size) const { |
9544 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9545 | 0 | _cached_size_ = size; |
9546 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9547 | 0 | } |
9548 | 0 | const ::google::protobuf::Descriptor* IsTabletServerReadyResponsePB::descriptor() { |
9549 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9550 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9551 | 0 | } |
9552 | | |
9553 | 0 | const IsTabletServerReadyResponsePB& IsTabletServerReadyResponsePB::default_instance() { |
9554 | 0 | ::protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsIsTabletServerReadyResponsePB(); |
9555 | 0 | return *internal_default_instance(); |
9556 | 0 | } |
9557 | | |
9558 | 0 | IsTabletServerReadyResponsePB* IsTabletServerReadyResponsePB::New(::google::protobuf::Arena* arena) const { |
9559 | 0 | IsTabletServerReadyResponsePB* n = new IsTabletServerReadyResponsePB; |
9560 | 0 | if (arena != NULL) { |
9561 | 0 | arena->Own(n); |
9562 | 0 | } |
9563 | 0 | return n; |
9564 | 0 | } |
9565 | | |
9566 | 0 | void IsTabletServerReadyResponsePB::Clear() { |
9567 | | // @@protoc_insertion_point(message_clear_start:yb.tserver.IsTabletServerReadyResponsePB) |
9568 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9569 | | // Prevent compiler warnings about cached_has_bits being unused |
9570 | 0 | (void) cached_has_bits; |
9571 | |
|
9572 | 0 | cached_has_bits = _has_bits_[0]; |
9573 | 0 | if (cached_has_bits & 0x00000001u) { |
9574 | 0 | GOOGLE_DCHECK(error_ != NULL); |
9575 | 0 | error_->Clear(); |
9576 | 0 | } |
9577 | 0 | if (cached_has_bits & 6u) { |
9578 | 0 | ::memset(&num_tablets_not_running_, 0, static_cast<size_t>( |
9579 | 0 | reinterpret_cast<char*>(&total_tablets_) - |
9580 | 0 | reinterpret_cast<char*>(&num_tablets_not_running_)) + sizeof(total_tablets_)); |
9581 | 0 | } |
9582 | 0 | _has_bits_.Clear(); |
9583 | 0 | _internal_metadata_.Clear(); |
9584 | 0 | } |
9585 | | |
9586 | | bool IsTabletServerReadyResponsePB::MergePartialFromCodedStream( |
9587 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9588 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9589 | 0 | ::google::protobuf::uint32 tag; |
9590 | | // @@protoc_insertion_point(parse_start:yb.tserver.IsTabletServerReadyResponsePB) |
9591 | 0 | for (;;) { |
9592 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9593 | 0 | tag = p.first; |
9594 | 0 | if (!p.second) goto handle_unusual; |
9595 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9596 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
9597 | 0 | case 1: { |
9598 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9599 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9600 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9601 | 0 | input, mutable_error())); |
9602 | 0 | } else { |
9603 | 0 | goto handle_unusual; |
9604 | 0 | } |
9605 | 0 | break; |
9606 | 0 | } |
9607 | | |
9608 | | // optional int32 num_tablets_not_running = 2; |
9609 | 0 | case 2: { |
9610 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9611 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9612 | 0 | set_has_num_tablets_not_running(); |
9613 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9614 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9615 | 0 | input, &num_tablets_not_running_))); |
9616 | 0 | } else { |
9617 | 0 | goto handle_unusual; |
9618 | 0 | } |
9619 | 0 | break; |
9620 | 0 | } |
9621 | | |
9622 | | // optional int32 total_tablets = 3 [default = 0]; |
9623 | 0 | case 3: { |
9624 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9625 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
9626 | 0 | set_has_total_tablets(); |
9627 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9628 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9629 | 0 | input, &total_tablets_))); |
9630 | 0 | } else { |
9631 | 0 | goto handle_unusual; |
9632 | 0 | } |
9633 | 0 | break; |
9634 | 0 | } |
9635 | | |
9636 | 0 | default: { |
9637 | 0 | handle_unusual: |
9638 | 0 | if (tag == 0) { |
9639 | 0 | goto success; |
9640 | 0 | } |
9641 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9642 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9643 | 0 | break; |
9644 | 0 | } |
9645 | 0 | } |
9646 | 0 | } |
9647 | 0 | success: |
9648 | | // @@protoc_insertion_point(parse_success:yb.tserver.IsTabletServerReadyResponsePB) |
9649 | 0 | return true; |
9650 | 0 | failure: |
9651 | | // @@protoc_insertion_point(parse_failure:yb.tserver.IsTabletServerReadyResponsePB) |
9652 | 0 | return false; |
9653 | 0 | #undef DO_ |
9654 | 0 | } |
9655 | | |
9656 | | void IsTabletServerReadyResponsePB::SerializeWithCachedSizes( |
9657 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9658 | | // @@protoc_insertion_point(serialize_start:yb.tserver.IsTabletServerReadyResponsePB) |
9659 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9660 | 0 | (void) cached_has_bits; |
9661 | |
|
9662 | 0 | cached_has_bits = _has_bits_[0]; |
9663 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
9664 | 0 | if (cached_has_bits & 0x00000001u) { |
9665 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9666 | 0 | 1, *this->error_, output); |
9667 | 0 | } |
9668 | | |
9669 | | // optional int32 num_tablets_not_running = 2; |
9670 | 0 | if (cached_has_bits & 0x00000002u) { |
9671 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_tablets_not_running(), output); |
9672 | 0 | } |
9673 | | |
9674 | | // optional int32 total_tablets = 3 [default = 0]; |
9675 | 0 | if (cached_has_bits & 0x00000004u) { |
9676 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->total_tablets(), output); |
9677 | 0 | } |
9678 | |
|
9679 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9680 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9681 | 0 | _internal_metadata_.unknown_fields(), output); |
9682 | 0 | } |
9683 | | // @@protoc_insertion_point(serialize_end:yb.tserver.IsTabletServerReadyResponsePB) |
9684 | 0 | } |
9685 | | |
9686 | | ::google::protobuf::uint8* IsTabletServerReadyResponsePB::InternalSerializeWithCachedSizesToArray( |
9687 | 18 | bool deterministic, ::google::protobuf::uint8* target) const { |
9688 | 18 | (void)deterministic; // Unused |
9689 | | // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.IsTabletServerReadyResponsePB) |
9690 | 18 | ::google::protobuf::uint32 cached_has_bits = 0; |
9691 | 18 | (void) cached_has_bits; |
9692 | | |
9693 | 18 | cached_has_bits = _has_bits_[0]; |
9694 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
9695 | 18 | if (cached_has_bits & 0x00000001u) { |
9696 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
9697 | 0 | InternalWriteMessageToArray( |
9698 | 0 | 1, *this->error_, deterministic, target); |
9699 | 0 | } |
9700 | | |
9701 | | // optional int32 num_tablets_not_running = 2; |
9702 | 18 | if (cached_has_bits & 0x00000002u) { |
9703 | 18 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_tablets_not_running(), target); |
9704 | 18 | } |
9705 | | |
9706 | | // optional int32 total_tablets = 3 [default = 0]; |
9707 | 18 | if (cached_has_bits & 0x00000004u) { |
9708 | 18 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->total_tablets(), target); |
9709 | 18 | } |
9710 | | |
9711 | 18 | if (_internal_metadata_.have_unknown_fields()) { |
9712 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9713 | 0 | _internal_metadata_.unknown_fields(), target); |
9714 | 0 | } |
9715 | | // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.IsTabletServerReadyResponsePB) |
9716 | 18 | return target; |
9717 | 18 | } |
9718 | | |
9719 | 36 | size_t IsTabletServerReadyResponsePB::ByteSizeLong() const { |
9720 | | // @@protoc_insertion_point(message_byte_size_start:yb.tserver.IsTabletServerReadyResponsePB) |
9721 | 36 | size_t total_size = 0; |
9722 | | |
9723 | 36 | if (_internal_metadata_.have_unknown_fields()) { |
9724 | 0 | total_size += |
9725 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9726 | 0 | _internal_metadata_.unknown_fields()); |
9727 | 0 | } |
9728 | 36 | if (_has_bits_[0 / 32] & 7u) { |
9729 | | // optional .yb.tserver.TabletServerErrorPB error = 1; |
9730 | 36 | if (has_error()) { |
9731 | 0 | total_size += 1 + |
9732 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9733 | 0 | *this->error_); |
9734 | 0 | } |
9735 | | |
9736 | | // optional int32 num_tablets_not_running = 2; |
9737 | 36 | if (has_num_tablets_not_running()) { |
9738 | 36 | total_size += 1 + |
9739 | 36 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9740 | 36 | this->num_tablets_not_running()); |
9741 | 36 | } |
9742 | | |
9743 | | // optional int32 total_tablets = 3 [default = 0]; |
9744 | 36 | if (has_total_tablets()) { |
9745 | 36 | total_size += 1 + |
9746 | 36 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9747 | 36 | this->total_tablets()); |
9748 | 36 | } |
9749 | | |
9750 | 36 | } |
9751 | 36 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9752 | 36 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9753 | 36 | _cached_size_ = cached_size; |
9754 | 36 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9755 | 36 | return total_size; |
9756 | 36 | } |
9757 | | |
9758 | 0 | void IsTabletServerReadyResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
9759 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.IsTabletServerReadyResponsePB) |
9760 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9761 | 0 | const IsTabletServerReadyResponsePB* source = |
9762 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsTabletServerReadyResponsePB>( |
9763 | 0 | &from); |
9764 | 0 | if (source == NULL) { |
9765 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.IsTabletServerReadyResponsePB) |
9766 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9767 | 0 | } else { |
9768 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.IsTabletServerReadyResponsePB) |
9769 | 0 | MergeFrom(*source); |
9770 | 0 | } |
9771 | 0 | } |
9772 | | |
9773 | 0 | void IsTabletServerReadyResponsePB::MergeFrom(const IsTabletServerReadyResponsePB& from) { |
9774 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.IsTabletServerReadyResponsePB) |
9775 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9776 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9777 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9778 | 0 | (void) cached_has_bits; |
9779 | |
|
9780 | 0 | cached_has_bits = from._has_bits_[0]; |
9781 | 0 | if (cached_has_bits & 7u) { |
9782 | 0 | if (cached_has_bits & 0x00000001u) { |
9783 | 0 | mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error()); |
9784 | 0 | } |
9785 | 0 | if (cached_has_bits & 0x00000002u) { |
9786 | 0 | num_tablets_not_running_ = from.num_tablets_not_running_; |
9787 | 0 | } |
9788 | 0 | if (cached_has_bits & 0x00000004u) { |
9789 | 0 | total_tablets_ = from.total_tablets_; |
9790 | 0 | } |
9791 | 0 | _has_bits_[0] |= cached_has_bits; |
9792 | 0 | } |
9793 | 0 | } |
9794 | | |
9795 | 0 | void IsTabletServerReadyResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
9796 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.IsTabletServerReadyResponsePB) |
9797 | 0 | if (&from == this) return; |
9798 | 0 | Clear(); |
9799 | 0 | MergeFrom(from); |
9800 | 0 | } |
9801 | | |
9802 | 0 | void IsTabletServerReadyResponsePB::CopyFrom(const IsTabletServerReadyResponsePB& from) { |
9803 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.IsTabletServerReadyResponsePB) |
9804 | 0 | if (&from == this) return; |
9805 | 0 | Clear(); |
9806 | 0 | MergeFrom(from); |
9807 | 0 | } |
9808 | | |
9809 | 18 | bool IsTabletServerReadyResponsePB::IsInitialized() const { |
9810 | 18 | if (has_error()) { |
9811 | 0 | if (!this->error_->IsInitialized()) return false; |
9812 | 0 | } |
9813 | 18 | return true; |
9814 | 18 | } |
9815 | | |
9816 | 0 | void IsTabletServerReadyResponsePB::Swap(IsTabletServerReadyResponsePB* other) { |
9817 | 0 | if (other == this) return; |
9818 | 0 | InternalSwap(other); |
9819 | 0 | } |
9820 | 0 | void IsTabletServerReadyResponsePB::InternalSwap(IsTabletServerReadyResponsePB* other) { |
9821 | 0 | using std::swap; |
9822 | 0 | swap(error_, other->error_); |
9823 | 0 | swap(num_tablets_not_running_, other->num_tablets_not_running_); |
9824 | 0 | swap(total_tablets_, other->total_tablets_); |
9825 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9826 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9827 | 0 | swap(_cached_size_, other->_cached_size_); |
9828 | 0 | } |
9829 | | |
9830 | 0 | ::google::protobuf::Metadata IsTabletServerReadyResponsePB::GetMetadata() const { |
9831 | 0 | protobuf_yb_2ftserver_2ftserver_2eproto::protobuf_AssignDescriptorsOnce(); |
9832 | 0 | return ::protobuf_yb_2ftserver_2ftserver_2eproto::file_level_metadata[kIndexInFileMessages]; |
9833 | 0 | } |
9834 | | |
9835 | | |
9836 | | // @@protoc_insertion_point(namespace_scope) |
9837 | | } // namespace tserver |
9838 | | } // namespace yb |
9839 | | |
9840 | | // @@protoc_insertion_point(global_scope) |