/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/cdc/cdc_service.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/cdc/cdc_service.proto |
3 | | |
4 | | #include "yb/cdc/cdc_service.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 cdc { |
25 | | class CDCErrorPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCErrorPB> |
28 | | _instance; |
29 | | } _CDCErrorPB_default_instance_; |
30 | | class CreateCDCStreamRequestPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateCDCStreamRequestPB> |
33 | | _instance; |
34 | | } _CreateCDCStreamRequestPB_default_instance_; |
35 | | class CreateCDCStreamResponsePBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateCDCStreamResponsePB> |
38 | | _instance; |
39 | | } _CreateCDCStreamResponsePB_default_instance_; |
40 | | class DeleteCDCStreamRequestPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteCDCStreamRequestPB> |
43 | | _instance; |
44 | | } _DeleteCDCStreamRequestPB_default_instance_; |
45 | | class DeleteCDCStreamResponsePBDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteCDCStreamResponsePB> |
48 | | _instance; |
49 | | } _DeleteCDCStreamResponsePB_default_instance_; |
50 | | class ListTabletsRequestPBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<ListTabletsRequestPB> |
53 | | _instance; |
54 | | } _ListTabletsRequestPB_default_instance_; |
55 | | class ListTabletsResponsePBDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<ListTabletsResponsePB> |
58 | | _instance; |
59 | | } _ListTabletsResponsePB_default_instance_; |
60 | | class CDCTabletPB_ReplicaPBDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCTabletPB_ReplicaPB> |
63 | | _instance; |
64 | | } _CDCTabletPB_ReplicaPB_default_instance_; |
65 | | class CDCTabletPBDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCTabletPB> |
68 | | _instance; |
69 | | } _CDCTabletPB_default_instance_; |
70 | | class CDCSDKCheckpointPBDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKCheckpointPB> |
73 | | _instance; |
74 | | } _CDCSDKCheckpointPB_default_instance_; |
75 | | class CDCCheckpointPBDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCCheckpointPB> |
78 | | _instance; |
79 | | } _CDCCheckpointPB_default_instance_; |
80 | | class GetChangesRequestPBDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<GetChangesRequestPB> |
83 | | _instance; |
84 | | } _GetChangesRequestPB_default_instance_; |
85 | | class KeyValuePairPBDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<KeyValuePairPB> |
88 | | _instance; |
89 | | } _KeyValuePairPB_default_instance_; |
90 | | class CDCRecordPBDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCRecordPB> |
93 | | _instance; |
94 | | } _CDCRecordPB_default_instance_; |
95 | | class CDCSDKColumnInfoPBDefaultTypeInternal { |
96 | | public: |
97 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKColumnInfoPB> |
98 | | _instance; |
99 | | } _CDCSDKColumnInfoPB_default_instance_; |
100 | | class CDCSDKTablePropertiesPBDefaultTypeInternal { |
101 | | public: |
102 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKTablePropertiesPB> |
103 | | _instance; |
104 | | } _CDCSDKTablePropertiesPB_default_instance_; |
105 | | class CDCSDKSchemaPBDefaultTypeInternal { |
106 | | public: |
107 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKSchemaPB> |
108 | | _instance; |
109 | | } _CDCSDKSchemaPB_default_instance_; |
110 | | class CDCSDKOpIdPBDefaultTypeInternal { |
111 | | public: |
112 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKOpIdPB> |
113 | | _instance; |
114 | | } _CDCSDKOpIdPB_default_instance_; |
115 | | class TypeInfoDefaultTypeInternal { |
116 | | public: |
117 | | ::google::protobuf::internal::ExplicitlyConstructed<TypeInfo> |
118 | | _instance; |
119 | | } _TypeInfo_default_instance_; |
120 | | class RowMessageDefaultTypeInternal { |
121 | | public: |
122 | | ::google::protobuf::internal::ExplicitlyConstructed<RowMessage> |
123 | | _instance; |
124 | | } _RowMessage_default_instance_; |
125 | | class CDCSDKProtoRecordPBDefaultTypeInternal { |
126 | | public: |
127 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCSDKProtoRecordPB> |
128 | | _instance; |
129 | | } _CDCSDKProtoRecordPB_default_instance_; |
130 | | class GetChangesResponsePBDefaultTypeInternal { |
131 | | public: |
132 | | ::google::protobuf::internal::ExplicitlyConstructed<GetChangesResponsePB> |
133 | | _instance; |
134 | | } _GetChangesResponsePB_default_instance_; |
135 | | class GetCheckpointRequestPBDefaultTypeInternal { |
136 | | public: |
137 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCheckpointRequestPB> |
138 | | _instance; |
139 | | } _GetCheckpointRequestPB_default_instance_; |
140 | | class GetCheckpointResponsePBDefaultTypeInternal { |
141 | | public: |
142 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCheckpointResponsePB> |
143 | | _instance; |
144 | | } _GetCheckpointResponsePB_default_instance_; |
145 | | class UpdateCdcReplicatedIndexRequestPBDefaultTypeInternal { |
146 | | public: |
147 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateCdcReplicatedIndexRequestPB> |
148 | | _instance; |
149 | | } _UpdateCdcReplicatedIndexRequestPB_default_instance_; |
150 | | class UpdateCdcReplicatedIndexResponsePBDefaultTypeInternal { |
151 | | public: |
152 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateCdcReplicatedIndexResponsePB> |
153 | | _instance; |
154 | | } _UpdateCdcReplicatedIndexResponsePB_default_instance_; |
155 | | class BootstrapProducerRequestPBDefaultTypeInternal { |
156 | | public: |
157 | | ::google::protobuf::internal::ExplicitlyConstructed<BootstrapProducerRequestPB> |
158 | | _instance; |
159 | | } _BootstrapProducerRequestPB_default_instance_; |
160 | | class BootstrapProducerResponsePBDefaultTypeInternal { |
161 | | public: |
162 | | ::google::protobuf::internal::ExplicitlyConstructed<BootstrapProducerResponsePB> |
163 | | _instance; |
164 | | } _BootstrapProducerResponsePB_default_instance_; |
165 | | class GetLatestEntryOpIdRequestPBDefaultTypeInternal { |
166 | | public: |
167 | | ::google::protobuf::internal::ExplicitlyConstructed<GetLatestEntryOpIdRequestPB> |
168 | | _instance; |
169 | | } _GetLatestEntryOpIdRequestPB_default_instance_; |
170 | | class GetLatestEntryOpIdResponsePBDefaultTypeInternal { |
171 | | public: |
172 | | ::google::protobuf::internal::ExplicitlyConstructed<GetLatestEntryOpIdResponsePB> |
173 | | _instance; |
174 | | } _GetLatestEntryOpIdResponsePB_default_instance_; |
175 | | class TableInfoDefaultTypeInternal { |
176 | | public: |
177 | | ::google::protobuf::internal::ExplicitlyConstructed<TableInfo> |
178 | | _instance; |
179 | | } _TableInfo_default_instance_; |
180 | | class GetCDCDBStreamInfoRequestPBDefaultTypeInternal { |
181 | | public: |
182 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCDBStreamInfoRequestPB> |
183 | | _instance; |
184 | | } _GetCDCDBStreamInfoRequestPB_default_instance_; |
185 | | class GetCDCDBStreamInfoResponsePBDefaultTypeInternal { |
186 | | public: |
187 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCDBStreamInfoResponsePB> |
188 | | _instance; |
189 | | } _GetCDCDBStreamInfoResponsePB_default_instance_; |
190 | | class SetCDCCheckpointRequestPBDefaultTypeInternal { |
191 | | public: |
192 | | ::google::protobuf::internal::ExplicitlyConstructed<SetCDCCheckpointRequestPB> |
193 | | _instance; |
194 | | } _SetCDCCheckpointRequestPB_default_instance_; |
195 | | class SetCDCCheckpointResponsePBDefaultTypeInternal { |
196 | | public: |
197 | | ::google::protobuf::internal::ExplicitlyConstructed<SetCDCCheckpointResponsePB> |
198 | | _instance; |
199 | | } _SetCDCCheckpointResponsePB_default_instance_; |
200 | | } // namespace cdc |
201 | | } // namespace yb |
202 | | namespace protobuf_yb_2fcdc_2fcdc_5fservice_2eproto { |
203 | 16.4k | void InitDefaultsCDCErrorPBImpl() { |
204 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
205 | | |
206 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
207 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
208 | | #else |
209 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
210 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
211 | 16.4k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
212 | 16.4k | { |
213 | 16.4k | void* ptr = &::yb::cdc::_CDCErrorPB_default_instance_; |
214 | 16.4k | new (ptr) ::yb::cdc::CDCErrorPB(); |
215 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
216 | 16.4k | } |
217 | 16.4k | ::yb::cdc::CDCErrorPB::InitAsDefaultInstance(); |
218 | 16.4k | } |
219 | | |
220 | 181k | void InitDefaultsCDCErrorPB() { |
221 | 181k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
222 | 181k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCErrorPBImpl); |
223 | 181k | } |
224 | | |
225 | 16.4k | void InitDefaultsCreateCDCStreamRequestPBImpl() { |
226 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
227 | | |
228 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
229 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
230 | | #else |
231 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
232 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
233 | 16.4k | { |
234 | 16.4k | void* ptr = &::yb::cdc::_CreateCDCStreamRequestPB_default_instance_; |
235 | 16.4k | new (ptr) ::yb::cdc::CreateCDCStreamRequestPB(); |
236 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
237 | 16.4k | } |
238 | 16.4k | ::yb::cdc::CreateCDCStreamRequestPB::InitAsDefaultInstance(); |
239 | 16.4k | } |
240 | | |
241 | 16.7k | void InitDefaultsCreateCDCStreamRequestPB() { |
242 | 16.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
243 | 16.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamRequestPBImpl); |
244 | 16.7k | } |
245 | | |
246 | 16.4k | void InitDefaultsCreateCDCStreamResponsePBImpl() { |
247 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
248 | | |
249 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
250 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
251 | | #else |
252 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
253 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
254 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
255 | 16.4k | { |
256 | 16.4k | void* ptr = &::yb::cdc::_CreateCDCStreamResponsePB_default_instance_; |
257 | 16.4k | new (ptr) ::yb::cdc::CreateCDCStreamResponsePB(); |
258 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
259 | 16.4k | } |
260 | 16.4k | ::yb::cdc::CreateCDCStreamResponsePB::InitAsDefaultInstance(); |
261 | 16.4k | } |
262 | | |
263 | 16.7k | void InitDefaultsCreateCDCStreamResponsePB() { |
264 | 16.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
265 | 16.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamResponsePBImpl); |
266 | 16.7k | } |
267 | | |
268 | 16.4k | void InitDefaultsDeleteCDCStreamRequestPBImpl() { |
269 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
270 | | |
271 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
272 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
273 | | #else |
274 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
275 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
276 | 16.4k | { |
277 | 16.4k | void* ptr = &::yb::cdc::_DeleteCDCStreamRequestPB_default_instance_; |
278 | 16.4k | new (ptr) ::yb::cdc::DeleteCDCStreamRequestPB(); |
279 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
280 | 16.4k | } |
281 | 16.4k | ::yb::cdc::DeleteCDCStreamRequestPB::InitAsDefaultInstance(); |
282 | 16.4k | } |
283 | | |
284 | 16.4k | void InitDefaultsDeleteCDCStreamRequestPB() { |
285 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
286 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamRequestPBImpl); |
287 | 16.4k | } |
288 | | |
289 | 16.4k | void InitDefaultsDeleteCDCStreamResponsePBImpl() { |
290 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
291 | | |
292 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
293 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
294 | | #else |
295 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
296 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
297 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
298 | 16.4k | { |
299 | 16.4k | void* ptr = &::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_; |
300 | 16.4k | new (ptr) ::yb::cdc::DeleteCDCStreamResponsePB(); |
301 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
302 | 16.4k | } |
303 | 16.4k | ::yb::cdc::DeleteCDCStreamResponsePB::InitAsDefaultInstance(); |
304 | 16.4k | } |
305 | | |
306 | 16.4k | void InitDefaultsDeleteCDCStreamResponsePB() { |
307 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
308 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamResponsePBImpl); |
309 | 16.4k | } |
310 | | |
311 | 16.4k | void InitDefaultsListTabletsRequestPBImpl() { |
312 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
313 | | |
314 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
315 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
316 | | #else |
317 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
318 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
319 | 16.4k | { |
320 | 16.4k | void* ptr = &::yb::cdc::_ListTabletsRequestPB_default_instance_; |
321 | 16.4k | new (ptr) ::yb::cdc::ListTabletsRequestPB(); |
322 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
323 | 16.4k | } |
324 | 16.4k | ::yb::cdc::ListTabletsRequestPB::InitAsDefaultInstance(); |
325 | 16.4k | } |
326 | | |
327 | 16.4k | void InitDefaultsListTabletsRequestPB() { |
328 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
329 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsRequestPBImpl); |
330 | 16.4k | } |
331 | | |
332 | 16.4k | void InitDefaultsListTabletsResponsePBImpl() { |
333 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
334 | | |
335 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
336 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
337 | | #else |
338 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
339 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
340 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
341 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB(); |
342 | 16.4k | { |
343 | 16.4k | void* ptr = &::yb::cdc::_ListTabletsResponsePB_default_instance_; |
344 | 16.4k | new (ptr) ::yb::cdc::ListTabletsResponsePB(); |
345 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
346 | 16.4k | } |
347 | 16.4k | ::yb::cdc::ListTabletsResponsePB::InitAsDefaultInstance(); |
348 | 16.4k | } |
349 | | |
350 | 16.4k | void InitDefaultsListTabletsResponsePB() { |
351 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
352 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsResponsePBImpl); |
353 | 16.4k | } |
354 | | |
355 | 16.4k | void InitDefaultsCDCTabletPB_ReplicaPBImpl() { |
356 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
357 | | |
358 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
359 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
360 | | #else |
361 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
362 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
363 | 16.4k | protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB(); |
364 | 16.4k | { |
365 | 16.4k | void* ptr = &::yb::cdc::_CDCTabletPB_ReplicaPB_default_instance_; |
366 | 16.4k | new (ptr) ::yb::cdc::CDCTabletPB_ReplicaPB(); |
367 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
368 | 16.4k | } |
369 | 16.4k | ::yb::cdc::CDCTabletPB_ReplicaPB::InitAsDefaultInstance(); |
370 | 16.4k | } |
371 | | |
372 | 32.9k | void InitDefaultsCDCTabletPB_ReplicaPB() { |
373 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
374 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCTabletPB_ReplicaPBImpl); |
375 | 32.9k | } |
376 | | |
377 | 16.4k | void InitDefaultsCDCTabletPBImpl() { |
378 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
379 | | |
380 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
381 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
382 | | #else |
383 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
384 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
385 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB(); |
386 | 16.4k | { |
387 | 16.4k | void* ptr = &::yb::cdc::_CDCTabletPB_default_instance_; |
388 | 16.4k | new (ptr) ::yb::cdc::CDCTabletPB(); |
389 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
390 | 16.4k | } |
391 | 16.4k | ::yb::cdc::CDCTabletPB::InitAsDefaultInstance(); |
392 | 16.4k | } |
393 | | |
394 | 32.9k | void InitDefaultsCDCTabletPB() { |
395 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
396 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCTabletPBImpl); |
397 | 32.9k | } |
398 | | |
399 | 16.4k | void InitDefaultsCDCSDKCheckpointPBImpl() { |
400 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
401 | | |
402 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
403 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
404 | | #else |
405 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
406 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
407 | 16.4k | { |
408 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKCheckpointPB_default_instance_; |
409 | 16.4k | new (ptr) ::yb::cdc::CDCSDKCheckpointPB(); |
410 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
411 | 16.4k | } |
412 | 16.4k | ::yb::cdc::CDCSDKCheckpointPB::InitAsDefaultInstance(); |
413 | 16.4k | } |
414 | | |
415 | 67.8k | void InitDefaultsCDCSDKCheckpointPB() { |
416 | 67.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
417 | 67.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKCheckpointPBImpl); |
418 | 67.8k | } |
419 | | |
420 | 16.4k | void InitDefaultsCDCCheckpointPBImpl() { |
421 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
422 | | |
423 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
424 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
425 | | #else |
426 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
427 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
428 | 16.4k | protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB(); |
429 | 16.4k | { |
430 | 16.4k | void* ptr = &::yb::cdc::_CDCCheckpointPB_default_instance_; |
431 | 16.4k | new (ptr) ::yb::cdc::CDCCheckpointPB(); |
432 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
433 | 16.4k | } |
434 | 16.4k | ::yb::cdc::CDCCheckpointPB::InitAsDefaultInstance(); |
435 | 16.4k | } |
436 | | |
437 | 83.0k | void InitDefaultsCDCCheckpointPB() { |
438 | 83.0k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
439 | 83.0k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCCheckpointPBImpl); |
440 | 83.0k | } |
441 | | |
442 | 16.4k | void InitDefaultsGetChangesRequestPBImpl() { |
443 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
444 | | |
445 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
446 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
447 | | #else |
448 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
449 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
450 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
451 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB(); |
452 | 16.4k | { |
453 | 16.4k | void* ptr = &::yb::cdc::_GetChangesRequestPB_default_instance_; |
454 | 16.4k | new (ptr) ::yb::cdc::GetChangesRequestPB(); |
455 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
456 | 16.4k | } |
457 | 16.4k | ::yb::cdc::GetChangesRequestPB::InitAsDefaultInstance(); |
458 | 16.4k | } |
459 | | |
460 | 17.1k | void InitDefaultsGetChangesRequestPB() { |
461 | 17.1k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
462 | 17.1k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetChangesRequestPBImpl); |
463 | 17.1k | } |
464 | | |
465 | 16.4k | void InitDefaultsKeyValuePairPBImpl() { |
466 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
467 | | |
468 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
469 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
470 | | #else |
471 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
472 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
473 | 16.4k | protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB(); |
474 | 16.4k | { |
475 | 16.4k | void* ptr = &::yb::cdc::_KeyValuePairPB_default_instance_; |
476 | 16.4k | new (ptr) ::yb::cdc::KeyValuePairPB(); |
477 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
478 | 16.4k | } |
479 | 16.4k | ::yb::cdc::KeyValuePairPB::InitAsDefaultInstance(); |
480 | 16.4k | } |
481 | | |
482 | 32.9k | void InitDefaultsKeyValuePairPB() { |
483 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
484 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsKeyValuePairPBImpl); |
485 | 32.9k | } |
486 | | |
487 | 16.4k | void InitDefaultsCDCRecordPBImpl() { |
488 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
489 | | |
490 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
491 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
492 | | #else |
493 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
494 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
495 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB(); |
496 | 16.4k | protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB(); |
497 | 16.4k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB(); |
498 | 16.4k | protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB(); |
499 | 16.4k | { |
500 | 16.4k | void* ptr = &::yb::cdc::_CDCRecordPB_default_instance_; |
501 | 16.4k | new (ptr) ::yb::cdc::CDCRecordPB(); |
502 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
503 | 16.4k | } |
504 | 16.4k | ::yb::cdc::CDCRecordPB::InitAsDefaultInstance(); |
505 | 16.4k | } |
506 | | |
507 | 32.9k | void InitDefaultsCDCRecordPB() { |
508 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
509 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCRecordPBImpl); |
510 | 32.9k | } |
511 | | |
512 | 16.4k | void InitDefaultsCDCSDKColumnInfoPBImpl() { |
513 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
514 | | |
515 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
516 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
517 | | #else |
518 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
519 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
520 | 16.4k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB(); |
521 | 16.4k | { |
522 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKColumnInfoPB_default_instance_; |
523 | 16.4k | new (ptr) ::yb::cdc::CDCSDKColumnInfoPB(); |
524 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
525 | 16.4k | } |
526 | 16.4k | ::yb::cdc::CDCSDKColumnInfoPB::InitAsDefaultInstance(); |
527 | 16.4k | } |
528 | | |
529 | 34.7k | void InitDefaultsCDCSDKColumnInfoPB() { |
530 | 34.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
531 | 34.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKColumnInfoPBImpl); |
532 | 34.7k | } |
533 | | |
534 | 16.4k | void InitDefaultsCDCSDKTablePropertiesPBImpl() { |
535 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
536 | | |
537 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
538 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
539 | | #else |
540 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
541 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
542 | 16.4k | { |
543 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKTablePropertiesPB_default_instance_; |
544 | 16.4k | new (ptr) ::yb::cdc::CDCSDKTablePropertiesPB(); |
545 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
546 | 16.4k | } |
547 | 16.4k | ::yb::cdc::CDCSDKTablePropertiesPB::InitAsDefaultInstance(); |
548 | 16.4k | } |
549 | | |
550 | 33.5k | void InitDefaultsCDCSDKTablePropertiesPB() { |
551 | 33.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
552 | 33.5k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKTablePropertiesPBImpl); |
553 | 33.5k | } |
554 | | |
555 | 16.4k | void InitDefaultsCDCSDKSchemaPBImpl() { |
556 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
557 | | |
558 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
559 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
560 | | #else |
561 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
562 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
563 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB(); |
564 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB(); |
565 | 16.4k | { |
566 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKSchemaPB_default_instance_; |
567 | 16.4k | new (ptr) ::yb::cdc::CDCSDKSchemaPB(); |
568 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
569 | 16.4k | } |
570 | 16.4k | ::yb::cdc::CDCSDKSchemaPB::InitAsDefaultInstance(); |
571 | 16.4k | } |
572 | | |
573 | 33.5k | void InitDefaultsCDCSDKSchemaPB() { |
574 | 33.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
575 | 33.5k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKSchemaPBImpl); |
576 | 33.5k | } |
577 | | |
578 | 16.4k | void InitDefaultsCDCSDKOpIdPBImpl() { |
579 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
580 | | |
581 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
582 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
583 | | #else |
584 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
585 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
586 | 16.4k | { |
587 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKOpIdPB_default_instance_; |
588 | 16.4k | new (ptr) ::yb::cdc::CDCSDKOpIdPB(); |
589 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
590 | 16.4k | } |
591 | 16.4k | ::yb::cdc::CDCSDKOpIdPB::InitAsDefaultInstance(); |
592 | 16.4k | } |
593 | | |
594 | 34.3k | void InitDefaultsCDCSDKOpIdPB() { |
595 | 34.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
596 | 34.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKOpIdPBImpl); |
597 | 34.3k | } |
598 | | |
599 | 16.4k | void InitDefaultsTypeInfoImpl() { |
600 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
601 | | |
602 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
603 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
604 | | #else |
605 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
606 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
607 | 16.4k | { |
608 | 16.4k | void* ptr = &::yb::cdc::_TypeInfo_default_instance_; |
609 | 16.4k | new (ptr) ::yb::cdc::TypeInfo(); |
610 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
611 | 16.4k | } |
612 | 16.4k | ::yb::cdc::TypeInfo::InitAsDefaultInstance(); |
613 | 16.4k | } |
614 | | |
615 | 32.9k | void InitDefaultsTypeInfo() { |
616 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
617 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTypeInfoImpl); |
618 | 32.9k | } |
619 | | |
620 | 16.4k | void InitDefaultsRowMessageImpl() { |
621 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
622 | | |
623 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
624 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
625 | | #else |
626 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
627 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
628 | 16.4k | protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsDatumMessagePB(); |
629 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo(); |
630 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB(); |
631 | 16.4k | protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateRequestPB(); |
632 | 16.4k | { |
633 | 16.4k | void* ptr = &::yb::cdc::_RowMessage_default_instance_; |
634 | 16.4k | new (ptr) ::yb::cdc::RowMessage(); |
635 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
636 | 16.4k | } |
637 | 16.4k | ::yb::cdc::RowMessage::InitAsDefaultInstance(); |
638 | 16.4k | } |
639 | | |
640 | 60.3k | void InitDefaultsRowMessage() { |
641 | 60.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
642 | 60.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRowMessageImpl); |
643 | 60.3k | } |
644 | | |
645 | 16.4k | void InitDefaultsCDCSDKProtoRecordPBImpl() { |
646 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
647 | | |
648 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
649 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
650 | | #else |
651 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
652 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
653 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage(); |
654 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB(); |
655 | 16.4k | { |
656 | 16.4k | void* ptr = &::yb::cdc::_CDCSDKProtoRecordPB_default_instance_; |
657 | 16.4k | new (ptr) ::yb::cdc::CDCSDKProtoRecordPB(); |
658 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
659 | 16.4k | } |
660 | 16.4k | ::yb::cdc::CDCSDKProtoRecordPB::InitAsDefaultInstance(); |
661 | 16.4k | } |
662 | | |
663 | 60.3k | void InitDefaultsCDCSDKProtoRecordPB() { |
664 | 60.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
665 | 60.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKProtoRecordPBImpl); |
666 | 60.3k | } |
667 | | |
668 | 16.4k | void InitDefaultsGetChangesResponsePBImpl() { |
669 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
670 | | |
671 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
672 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
673 | | #else |
674 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
675 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
676 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
677 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB(); |
678 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
679 | 16.4k | protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB(); |
680 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB(); |
681 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB(); |
682 | 16.4k | { |
683 | 16.4k | void* ptr = &::yb::cdc::_GetChangesResponsePB_default_instance_; |
684 | 16.4k | new (ptr) ::yb::cdc::GetChangesResponsePB(); |
685 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
686 | 16.4k | } |
687 | 16.4k | ::yb::cdc::GetChangesResponsePB::InitAsDefaultInstance(); |
688 | 16.4k | } |
689 | | |
690 | 17.1k | void InitDefaultsGetChangesResponsePB() { |
691 | 17.1k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
692 | 17.1k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetChangesResponsePBImpl); |
693 | 17.1k | } |
694 | | |
695 | 16.4k | void InitDefaultsGetCheckpointRequestPBImpl() { |
696 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
697 | | |
698 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
699 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
700 | | #else |
701 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
702 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
703 | 16.4k | { |
704 | 16.4k | void* ptr = &::yb::cdc::_GetCheckpointRequestPB_default_instance_; |
705 | 16.4k | new (ptr) ::yb::cdc::GetCheckpointRequestPB(); |
706 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
707 | 16.4k | } |
708 | 16.4k | ::yb::cdc::GetCheckpointRequestPB::InitAsDefaultInstance(); |
709 | 16.4k | } |
710 | | |
711 | 16.4k | void InitDefaultsGetCheckpointRequestPB() { |
712 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
713 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCheckpointRequestPBImpl); |
714 | 16.4k | } |
715 | | |
716 | 16.4k | void InitDefaultsGetCheckpointResponsePBImpl() { |
717 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
718 | | |
719 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
720 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
721 | | #else |
722 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
723 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
724 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
725 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
726 | 16.4k | { |
727 | 16.4k | void* ptr = &::yb::cdc::_GetCheckpointResponsePB_default_instance_; |
728 | 16.4k | new (ptr) ::yb::cdc::GetCheckpointResponsePB(); |
729 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
730 | 16.4k | } |
731 | 16.4k | ::yb::cdc::GetCheckpointResponsePB::InitAsDefaultInstance(); |
732 | 16.4k | } |
733 | | |
734 | 16.4k | void InitDefaultsGetCheckpointResponsePB() { |
735 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
736 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCheckpointResponsePBImpl); |
737 | 16.4k | } |
738 | | |
739 | 16.4k | void InitDefaultsUpdateCdcReplicatedIndexRequestPBImpl() { |
740 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
741 | | |
742 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
743 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
744 | | #else |
745 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
746 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
747 | 16.4k | { |
748 | 16.4k | void* ptr = &::yb::cdc::_UpdateCdcReplicatedIndexRequestPB_default_instance_; |
749 | 16.4k | new (ptr) ::yb::cdc::UpdateCdcReplicatedIndexRequestPB(); |
750 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
751 | 16.4k | } |
752 | 16.4k | ::yb::cdc::UpdateCdcReplicatedIndexRequestPB::InitAsDefaultInstance(); |
753 | 16.4k | } |
754 | | |
755 | 16.9k | void InitDefaultsUpdateCdcReplicatedIndexRequestPB() { |
756 | 16.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
757 | 16.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCdcReplicatedIndexRequestPBImpl); |
758 | 16.9k | } |
759 | | |
760 | 16.4k | void InitDefaultsUpdateCdcReplicatedIndexResponsePBImpl() { |
761 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
762 | | |
763 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
764 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
765 | | #else |
766 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
767 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
768 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
769 | 16.4k | { |
770 | 16.4k | void* ptr = &::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_; |
771 | 16.4k | new (ptr) ::yb::cdc::UpdateCdcReplicatedIndexResponsePB(); |
772 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
773 | 16.4k | } |
774 | 16.4k | ::yb::cdc::UpdateCdcReplicatedIndexResponsePB::InitAsDefaultInstance(); |
775 | 16.4k | } |
776 | | |
777 | 16.9k | void InitDefaultsUpdateCdcReplicatedIndexResponsePB() { |
778 | 16.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
779 | 16.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCdcReplicatedIndexResponsePBImpl); |
780 | 16.9k | } |
781 | | |
782 | 16.4k | void InitDefaultsBootstrapProducerRequestPBImpl() { |
783 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
784 | | |
785 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
786 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
787 | | #else |
788 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
789 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
790 | 16.4k | { |
791 | 16.4k | void* ptr = &::yb::cdc::_BootstrapProducerRequestPB_default_instance_; |
792 | 16.4k | new (ptr) ::yb::cdc::BootstrapProducerRequestPB(); |
793 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
794 | 16.4k | } |
795 | 16.4k | ::yb::cdc::BootstrapProducerRequestPB::InitAsDefaultInstance(); |
796 | 16.4k | } |
797 | | |
798 | 16.4k | void InitDefaultsBootstrapProducerRequestPB() { |
799 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
800 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBootstrapProducerRequestPBImpl); |
801 | 16.4k | } |
802 | | |
803 | 16.4k | void InitDefaultsBootstrapProducerResponsePBImpl() { |
804 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
805 | | |
806 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
807 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
808 | | #else |
809 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
810 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
811 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
812 | 16.4k | { |
813 | 16.4k | void* ptr = &::yb::cdc::_BootstrapProducerResponsePB_default_instance_; |
814 | 16.4k | new (ptr) ::yb::cdc::BootstrapProducerResponsePB(); |
815 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
816 | 16.4k | } |
817 | 16.4k | ::yb::cdc::BootstrapProducerResponsePB::InitAsDefaultInstance(); |
818 | 16.4k | } |
819 | | |
820 | 16.4k | void InitDefaultsBootstrapProducerResponsePB() { |
821 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
822 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBootstrapProducerResponsePBImpl); |
823 | 16.4k | } |
824 | | |
825 | 16.4k | void InitDefaultsGetLatestEntryOpIdRequestPBImpl() { |
826 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
827 | | |
828 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
829 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
830 | | #else |
831 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
832 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
833 | 16.4k | { |
834 | 16.4k | void* ptr = &::yb::cdc::_GetLatestEntryOpIdRequestPB_default_instance_; |
835 | 16.4k | new (ptr) ::yb::cdc::GetLatestEntryOpIdRequestPB(); |
836 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
837 | 16.4k | } |
838 | 16.4k | ::yb::cdc::GetLatestEntryOpIdRequestPB::InitAsDefaultInstance(); |
839 | 16.4k | } |
840 | | |
841 | 16.4k | void InitDefaultsGetLatestEntryOpIdRequestPB() { |
842 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
843 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLatestEntryOpIdRequestPBImpl); |
844 | 16.4k | } |
845 | | |
846 | 16.4k | void InitDefaultsGetLatestEntryOpIdResponsePBImpl() { |
847 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
848 | | |
849 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
850 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
851 | | #else |
852 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
853 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
854 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
855 | 16.4k | protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB(); |
856 | 16.4k | { |
857 | 16.4k | void* ptr = &::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_; |
858 | 16.4k | new (ptr) ::yb::cdc::GetLatestEntryOpIdResponsePB(); |
859 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
860 | 16.4k | } |
861 | 16.4k | ::yb::cdc::GetLatestEntryOpIdResponsePB::InitAsDefaultInstance(); |
862 | 16.4k | } |
863 | | |
864 | 16.4k | void InitDefaultsGetLatestEntryOpIdResponsePB() { |
865 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
866 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLatestEntryOpIdResponsePBImpl); |
867 | 16.4k | } |
868 | | |
869 | 16.4k | void InitDefaultsTableInfoImpl() { |
870 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
871 | | |
872 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
873 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
874 | | #else |
875 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
876 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
877 | 16.4k | { |
878 | 16.4k | void* ptr = &::yb::cdc::_TableInfo_default_instance_; |
879 | 16.4k | new (ptr) ::yb::cdc::TableInfo(); |
880 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
881 | 16.4k | } |
882 | 16.4k | ::yb::cdc::TableInfo::InitAsDefaultInstance(); |
883 | 16.4k | } |
884 | | |
885 | 32.9k | void InitDefaultsTableInfo() { |
886 | 32.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
887 | 32.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTableInfoImpl); |
888 | 32.9k | } |
889 | | |
890 | 16.4k | void InitDefaultsGetCDCDBStreamInfoRequestPBImpl() { |
891 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
892 | | |
893 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
894 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
895 | | #else |
896 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
897 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
898 | 16.4k | { |
899 | 16.4k | void* ptr = &::yb::cdc::_GetCDCDBStreamInfoRequestPB_default_instance_; |
900 | 16.4k | new (ptr) ::yb::cdc::GetCDCDBStreamInfoRequestPB(); |
901 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
902 | 16.4k | } |
903 | 16.4k | ::yb::cdc::GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance(); |
904 | 16.4k | } |
905 | | |
906 | 16.4k | void InitDefaultsGetCDCDBStreamInfoRequestPB() { |
907 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
908 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoRequestPBImpl); |
909 | 16.4k | } |
910 | | |
911 | 16.4k | void InitDefaultsGetCDCDBStreamInfoResponsePBImpl() { |
912 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
913 | | |
914 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
915 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
916 | | #else |
917 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
918 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
919 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
920 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo(); |
921 | 16.4k | { |
922 | 16.4k | void* ptr = &::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_; |
923 | 16.4k | new (ptr) ::yb::cdc::GetCDCDBStreamInfoResponsePB(); |
924 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
925 | 16.4k | } |
926 | 16.4k | ::yb::cdc::GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance(); |
927 | 16.4k | } |
928 | | |
929 | 16.4k | void InitDefaultsGetCDCDBStreamInfoResponsePB() { |
930 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
931 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoResponsePBImpl); |
932 | 16.4k | } |
933 | | |
934 | 16.4k | void InitDefaultsSetCDCCheckpointRequestPBImpl() { |
935 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
936 | | |
937 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
938 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
939 | | #else |
940 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
941 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
942 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
943 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB(); |
944 | 16.4k | { |
945 | 16.4k | void* ptr = &::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_; |
946 | 16.4k | new (ptr) ::yb::cdc::SetCDCCheckpointRequestPB(); |
947 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
948 | 16.4k | } |
949 | 16.4k | ::yb::cdc::SetCDCCheckpointRequestPB::InitAsDefaultInstance(); |
950 | 16.4k | } |
951 | | |
952 | 16.4k | void InitDefaultsSetCDCCheckpointRequestPB() { |
953 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
954 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetCDCCheckpointRequestPBImpl); |
955 | 16.4k | } |
956 | | |
957 | 16.4k | void InitDefaultsSetCDCCheckpointResponsePBImpl() { |
958 | 16.4k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
959 | | |
960 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
961 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
962 | | #else |
963 | 16.4k | ::google::protobuf::internal::InitProtobufDefaults(); |
964 | 16.4k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
965 | 16.4k | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
966 | 16.4k | { |
967 | 16.4k | void* ptr = &::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_; |
968 | 16.4k | new (ptr) ::yb::cdc::SetCDCCheckpointResponsePB(); |
969 | 16.4k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
970 | 16.4k | } |
971 | 16.4k | ::yb::cdc::SetCDCCheckpointResponsePB::InitAsDefaultInstance(); |
972 | 16.4k | } |
973 | | |
974 | 16.4k | void InitDefaultsSetCDCCheckpointResponsePB() { |
975 | 16.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
976 | 16.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetCDCCheckpointResponsePBImpl); |
977 | 16.4k | } |
978 | | |
979 | | ::google::protobuf::Metadata file_level_metadata[35]; |
980 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[7]; |
981 | | |
982 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
983 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCErrorPB, _has_bits_), |
984 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCErrorPB, _internal_metadata_), |
985 | | ~0u, // no _extensions_ |
986 | | ~0u, // no _oneof_case_ |
987 | | ~0u, // no _weak_field_map_ |
988 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCErrorPB, code_), |
989 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCErrorPB, status_), |
990 | | 1, |
991 | | 0, |
992 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, _has_bits_), |
993 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, _internal_metadata_), |
994 | | ~0u, // no _extensions_ |
995 | | ~0u, // no _oneof_case_ |
996 | | ~0u, // no _weak_field_map_ |
997 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, table_id_), |
998 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, record_type_), |
999 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, record_format_), |
1000 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, namespace_name_), |
1001 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, source_type_), |
1002 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamRequestPB, checkpoint_type_), |
1003 | | 0, |
1004 | | 2, |
1005 | | 3, |
1006 | | 1, |
1007 | | 4, |
1008 | | 5, |
1009 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamResponsePB, _has_bits_), |
1010 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamResponsePB, _internal_metadata_), |
1011 | | ~0u, // no _extensions_ |
1012 | | ~0u, // no _oneof_case_ |
1013 | | ~0u, // no _weak_field_map_ |
1014 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamResponsePB, error_), |
1015 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamResponsePB, stream_id_), |
1016 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CreateCDCStreamResponsePB, db_stream_id_), |
1017 | | 2, |
1018 | | 0, |
1019 | | 1, |
1020 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamRequestPB, _has_bits_), |
1021 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamRequestPB, _internal_metadata_), |
1022 | | ~0u, // no _extensions_ |
1023 | | ~0u, // no _oneof_case_ |
1024 | | ~0u, // no _weak_field_map_ |
1025 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamRequestPB, stream_id_), |
1026 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamRequestPB, ignore_errors_), |
1027 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamRequestPB, force_delete_), |
1028 | | ~0u, |
1029 | | 0, |
1030 | | 1, |
1031 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamResponsePB, _has_bits_), |
1032 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamResponsePB, _internal_metadata_), |
1033 | | ~0u, // no _extensions_ |
1034 | | ~0u, // no _oneof_case_ |
1035 | | ~0u, // no _weak_field_map_ |
1036 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::DeleteCDCStreamResponsePB, error_), |
1037 | | 0, |
1038 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsRequestPB, _has_bits_), |
1039 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsRequestPB, _internal_metadata_), |
1040 | | ~0u, // no _extensions_ |
1041 | | ~0u, // no _oneof_case_ |
1042 | | ~0u, // no _weak_field_map_ |
1043 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsRequestPB, stream_id_), |
1044 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsRequestPB, local_only_), |
1045 | | 0, |
1046 | | 1, |
1047 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsResponsePB, _has_bits_), |
1048 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsResponsePB, _internal_metadata_), |
1049 | | ~0u, // no _extensions_ |
1050 | | ~0u, // no _oneof_case_ |
1051 | | ~0u, // no _weak_field_map_ |
1052 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsResponsePB, error_), |
1053 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ListTabletsResponsePB, tablets_), |
1054 | | 0, |
1055 | | ~0u, |
1056 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB_ReplicaPB, _has_bits_), |
1057 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB_ReplicaPB, _internal_metadata_), |
1058 | | ~0u, // no _extensions_ |
1059 | | ~0u, // no _oneof_case_ |
1060 | | ~0u, // no _weak_field_map_ |
1061 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB_ReplicaPB, broadcast_addresses_), |
1062 | | ~0u, |
1063 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB, _has_bits_), |
1064 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB, _internal_metadata_), |
1065 | | ~0u, // no _extensions_ |
1066 | | ~0u, // no _oneof_case_ |
1067 | | ~0u, // no _weak_field_map_ |
1068 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB, tablet_id_), |
1069 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCTabletPB, tservers_), |
1070 | | 0, |
1071 | | ~0u, |
1072 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, _has_bits_), |
1073 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, _internal_metadata_), |
1074 | | ~0u, // no _extensions_ |
1075 | | ~0u, // no _oneof_case_ |
1076 | | ~0u, // no _weak_field_map_ |
1077 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, term_), |
1078 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, index_), |
1079 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, key_), |
1080 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, write_id_), |
1081 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKCheckpointPB, snapshot_time_), |
1082 | | 1, |
1083 | | 2, |
1084 | | 0, |
1085 | | 4, |
1086 | | 3, |
1087 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCCheckpointPB, _has_bits_), |
1088 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCCheckpointPB, _internal_metadata_), |
1089 | | ~0u, // no _extensions_ |
1090 | | ~0u, // no _oneof_case_ |
1091 | | ~0u, // no _weak_field_map_ |
1092 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCCheckpointPB, op_id_), |
1093 | | 0, |
1094 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, _has_bits_), |
1095 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, _internal_metadata_), |
1096 | | ~0u, // no _extensions_ |
1097 | | ~0u, // no _oneof_case_ |
1098 | | ~0u, // no _weak_field_map_ |
1099 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, stream_id_), |
1100 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, tablet_id_), |
1101 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, from_checkpoint_), |
1102 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, max_records_), |
1103 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, serve_as_proxy_), |
1104 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, db_stream_id_), |
1105 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, table_id_), |
1106 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesRequestPB, from_cdc_sdk_checkpoint_), |
1107 | | 0, |
1108 | | 1, |
1109 | | 4, |
1110 | | 6, |
1111 | | 7, |
1112 | | 2, |
1113 | | 3, |
1114 | | 5, |
1115 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::KeyValuePairPB, _has_bits_), |
1116 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::KeyValuePairPB, _internal_metadata_), |
1117 | | ~0u, // no _extensions_ |
1118 | | ~0u, // no _oneof_case_ |
1119 | | ~0u, // no _weak_field_map_ |
1120 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::KeyValuePairPB, key_), |
1121 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::KeyValuePairPB, value_), |
1122 | | 0, |
1123 | | 1, |
1124 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, _has_bits_), |
1125 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, _internal_metadata_), |
1126 | | ~0u, // no _extensions_ |
1127 | | ~0u, // no _oneof_case_ |
1128 | | ~0u, // no _weak_field_map_ |
1129 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, time_), |
1130 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, operation_), |
1131 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, key_), |
1132 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, changes_), |
1133 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, before_), |
1134 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, after_), |
1135 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, transaction_state_), |
1136 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, partition_), |
1137 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCRecordPB, split_tablet_request_), |
1138 | | 3, |
1139 | | 4, |
1140 | | ~0u, |
1141 | | ~0u, |
1142 | | ~0u, |
1143 | | ~0u, |
1144 | | 0, |
1145 | | 1, |
1146 | | 2, |
1147 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, _has_bits_), |
1148 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, _internal_metadata_), |
1149 | | ~0u, // no _extensions_ |
1150 | | ~0u, // no _oneof_case_ |
1151 | | ~0u, // no _weak_field_map_ |
1152 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, name_), |
1153 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, type_), |
1154 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, is_key_), |
1155 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, is_hash_key_), |
1156 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, is_nullable_), |
1157 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKColumnInfoPB, oid_), |
1158 | | 0, |
1159 | | 1, |
1160 | | 2, |
1161 | | 3, |
1162 | | 4, |
1163 | | 5, |
1164 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKTablePropertiesPB, _has_bits_), |
1165 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKTablePropertiesPB, _internal_metadata_), |
1166 | | ~0u, // no _extensions_ |
1167 | | ~0u, // no _oneof_case_ |
1168 | | ~0u, // no _weak_field_map_ |
1169 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKTablePropertiesPB, default_time_to_live_), |
1170 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKTablePropertiesPB, num_tablets_), |
1171 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKTablePropertiesPB, is_ysql_catalog_table_), |
1172 | | 0, |
1173 | | 1, |
1174 | | 2, |
1175 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKSchemaPB, _has_bits_), |
1176 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKSchemaPB, _internal_metadata_), |
1177 | | ~0u, // no _extensions_ |
1178 | | ~0u, // no _oneof_case_ |
1179 | | ~0u, // no _weak_field_map_ |
1180 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKSchemaPB, column_info_), |
1181 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKSchemaPB, tab_info_), |
1182 | | ~0u, |
1183 | | 0, |
1184 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, _has_bits_), |
1185 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, _internal_metadata_), |
1186 | | ~0u, // no _extensions_ |
1187 | | ~0u, // no _oneof_case_ |
1188 | | ~0u, // no _weak_field_map_ |
1189 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, term_), |
1190 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, index_), |
1191 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, write_id_), |
1192 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKOpIdPB, write_id_key_), |
1193 | | 1, |
1194 | | 2, |
1195 | | 3, |
1196 | | 0, |
1197 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TypeInfo, _has_bits_), |
1198 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TypeInfo, _internal_metadata_), |
1199 | | ~0u, // no _extensions_ |
1200 | | ~0u, // no _oneof_case_ |
1201 | | ~0u, // no _weak_field_map_ |
1202 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TypeInfo, modifier_), |
1203 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TypeInfo, value_optional_), |
1204 | | 0, |
1205 | | 1, |
1206 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, _has_bits_), |
1207 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, _internal_metadata_), |
1208 | | ~0u, // no _extensions_ |
1209 | | ~0u, // no _oneof_case_ |
1210 | | ~0u, // no _weak_field_map_ |
1211 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, transaction_id_), |
1212 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, commit_time_), |
1213 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, table_), |
1214 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, op_), |
1215 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, new_tuple_), |
1216 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, old_tuple_), |
1217 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, new_typeinfo_), |
1218 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, schema_), |
1219 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, schema_version_), |
1220 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, new_table_name_), |
1221 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, pgschema_name_), |
1222 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::RowMessage, truncate_request_info_), |
1223 | | 0, |
1224 | | 6, |
1225 | | 1, |
1226 | | 8, |
1227 | | ~0u, |
1228 | | ~0u, |
1229 | | ~0u, |
1230 | | 4, |
1231 | | 7, |
1232 | | 2, |
1233 | | 3, |
1234 | | 5, |
1235 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKProtoRecordPB, _has_bits_), |
1236 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKProtoRecordPB, _internal_metadata_), |
1237 | | ~0u, // no _extensions_ |
1238 | | ~0u, // no _oneof_case_ |
1239 | | ~0u, // no _weak_field_map_ |
1240 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKProtoRecordPB, row_message_), |
1241 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::CDCSDKProtoRecordPB, cdc_sdk_op_id_), |
1242 | | 0, |
1243 | | 1, |
1244 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, _has_bits_), |
1245 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, _internal_metadata_), |
1246 | | ~0u, // no _extensions_ |
1247 | | ~0u, // no _oneof_case_ |
1248 | | ~0u, // no _weak_field_map_ |
1249 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, error_), |
1250 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, record_type_), |
1251 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, record_format_), |
1252 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, records_), |
1253 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, checkpoint_), |
1254 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, tserver_), |
1255 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, cdc_sdk_proto_records_), |
1256 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, cdc_sdk_checkpoint_), |
1257 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetChangesResponsePB, safe_hybrid_time_), |
1258 | | 0, |
1259 | | 4, |
1260 | | 5, |
1261 | | ~0u, |
1262 | | 1, |
1263 | | ~0u, |
1264 | | ~0u, |
1265 | | 2, |
1266 | | 3, |
1267 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, _has_bits_), |
1268 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, _internal_metadata_), |
1269 | | ~0u, // no _extensions_ |
1270 | | ~0u, // no _oneof_case_ |
1271 | | ~0u, // no _weak_field_map_ |
1272 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, stream_id_), |
1273 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, tablet_id_), |
1274 | | 0, |
1275 | | 1, |
1276 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, _has_bits_), |
1277 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, _internal_metadata_), |
1278 | | ~0u, // no _extensions_ |
1279 | | ~0u, // no _oneof_case_ |
1280 | | ~0u, // no _weak_field_map_ |
1281 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, error_), |
1282 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, checkpoint_), |
1283 | | 0, |
1284 | | 1, |
1285 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, _has_bits_), |
1286 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, _internal_metadata_), |
1287 | | ~0u, // no _extensions_ |
1288 | | ~0u, // no _oneof_case_ |
1289 | | ~0u, // no _weak_field_map_ |
1290 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, tablet_id_), |
1291 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, replicated_index_), |
1292 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, replicated_term_), |
1293 | | 0, |
1294 | | 1, |
1295 | | 2, |
1296 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, _has_bits_), |
1297 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, _internal_metadata_), |
1298 | | ~0u, // no _extensions_ |
1299 | | ~0u, // no _oneof_case_ |
1300 | | ~0u, // no _weak_field_map_ |
1301 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, error_), |
1302 | | 0, |
1303 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, _has_bits_), |
1304 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, _internal_metadata_), |
1305 | | ~0u, // no _extensions_ |
1306 | | ~0u, // no _oneof_case_ |
1307 | | ~0u, // no _weak_field_map_ |
1308 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, table_ids_), |
1309 | | ~0u, |
1310 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, _has_bits_), |
1311 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, _internal_metadata_), |
1312 | | ~0u, // no _extensions_ |
1313 | | ~0u, // no _oneof_case_ |
1314 | | ~0u, // no _weak_field_map_ |
1315 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, error_), |
1316 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, cdc_bootstrap_ids_), |
1317 | | 0, |
1318 | | ~0u, |
1319 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, _has_bits_), |
1320 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, _internal_metadata_), |
1321 | | ~0u, // no _extensions_ |
1322 | | ~0u, // no _oneof_case_ |
1323 | | ~0u, // no _weak_field_map_ |
1324 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, tablet_id_), |
1325 | | 0, |
1326 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, _has_bits_), |
1327 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, _internal_metadata_), |
1328 | | ~0u, // no _extensions_ |
1329 | | ~0u, // no _oneof_case_ |
1330 | | ~0u, // no _weak_field_map_ |
1331 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, error_), |
1332 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, op_id_), |
1333 | | 0, |
1334 | | 1, |
1335 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, _has_bits_), |
1336 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, _internal_metadata_), |
1337 | | ~0u, // no _extensions_ |
1338 | | ~0u, // no _oneof_case_ |
1339 | | ~0u, // no _weak_field_map_ |
1340 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, stream_id_), |
1341 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, table_id_), |
1342 | | 0, |
1343 | | 1, |
1344 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, _has_bits_), |
1345 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, _internal_metadata_), |
1346 | | ~0u, // no _extensions_ |
1347 | | ~0u, // no _oneof_case_ |
1348 | | ~0u, // no _weak_field_map_ |
1349 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, db_stream_id_), |
1350 | | 0, |
1351 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, _has_bits_), |
1352 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, _internal_metadata_), |
1353 | | ~0u, // no _extensions_ |
1354 | | ~0u, // no _oneof_case_ |
1355 | | ~0u, // no _weak_field_map_ |
1356 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, error_), |
1357 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, namespace_id_), |
1358 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, table_info_), |
1359 | | 1, |
1360 | | 0, |
1361 | | ~0u, |
1362 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, _has_bits_), |
1363 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, _internal_metadata_), |
1364 | | ~0u, // no _extensions_ |
1365 | | ~0u, // no _oneof_case_ |
1366 | | ~0u, // no _weak_field_map_ |
1367 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, checkpoint_), |
1368 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, cdc_sdk_checkpoint_), |
1369 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, stream_id_), |
1370 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, tablet_id_), |
1371 | | 2, |
1372 | | 3, |
1373 | | 0, |
1374 | | 1, |
1375 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, _has_bits_), |
1376 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, _internal_metadata_), |
1377 | | ~0u, // no _extensions_ |
1378 | | ~0u, // no _oneof_case_ |
1379 | | ~0u, // no _weak_field_map_ |
1380 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, error_), |
1381 | | 0, |
1382 | | }; |
1383 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1384 | | { 0, 7, sizeof(::yb::cdc::CDCErrorPB)}, |
1385 | | { 9, 20, sizeof(::yb::cdc::CreateCDCStreamRequestPB)}, |
1386 | | { 26, 34, sizeof(::yb::cdc::CreateCDCStreamResponsePB)}, |
1387 | | { 37, 45, sizeof(::yb::cdc::DeleteCDCStreamRequestPB)}, |
1388 | | { 48, 54, sizeof(::yb::cdc::DeleteCDCStreamResponsePB)}, |
1389 | | { 55, 62, sizeof(::yb::cdc::ListTabletsRequestPB)}, |
1390 | | { 64, 71, sizeof(::yb::cdc::ListTabletsResponsePB)}, |
1391 | | { 73, 79, sizeof(::yb::cdc::CDCTabletPB_ReplicaPB)}, |
1392 | | { 80, 87, sizeof(::yb::cdc::CDCTabletPB)}, |
1393 | | { 89, 99, sizeof(::yb::cdc::CDCSDKCheckpointPB)}, |
1394 | | { 104, 110, sizeof(::yb::cdc::CDCCheckpointPB)}, |
1395 | | { 111, 124, sizeof(::yb::cdc::GetChangesRequestPB)}, |
1396 | | { 132, 139, sizeof(::yb::cdc::KeyValuePairPB)}, |
1397 | | { 141, 155, sizeof(::yb::cdc::CDCRecordPB)}, |
1398 | | { 164, 175, sizeof(::yb::cdc::CDCSDKColumnInfoPB)}, |
1399 | | { 181, 189, sizeof(::yb::cdc::CDCSDKTablePropertiesPB)}, |
1400 | | { 192, 199, sizeof(::yb::cdc::CDCSDKSchemaPB)}, |
1401 | | { 201, 210, sizeof(::yb::cdc::CDCSDKOpIdPB)}, |
1402 | | { 214, 221, sizeof(::yb::cdc::TypeInfo)}, |
1403 | | { 223, 240, sizeof(::yb::cdc::RowMessage)}, |
1404 | | { 252, 259, sizeof(::yb::cdc::CDCSDKProtoRecordPB)}, |
1405 | | { 261, 275, sizeof(::yb::cdc::GetChangesResponsePB)}, |
1406 | | { 284, 291, sizeof(::yb::cdc::GetCheckpointRequestPB)}, |
1407 | | { 293, 300, sizeof(::yb::cdc::GetCheckpointResponsePB)}, |
1408 | | { 302, 310, sizeof(::yb::cdc::UpdateCdcReplicatedIndexRequestPB)}, |
1409 | | { 313, 319, sizeof(::yb::cdc::UpdateCdcReplicatedIndexResponsePB)}, |
1410 | | { 320, 326, sizeof(::yb::cdc::BootstrapProducerRequestPB)}, |
1411 | | { 327, 334, sizeof(::yb::cdc::BootstrapProducerResponsePB)}, |
1412 | | { 336, 342, sizeof(::yb::cdc::GetLatestEntryOpIdRequestPB)}, |
1413 | | { 343, 350, sizeof(::yb::cdc::GetLatestEntryOpIdResponsePB)}, |
1414 | | { 352, 359, sizeof(::yb::cdc::TableInfo)}, |
1415 | | { 361, 367, sizeof(::yb::cdc::GetCDCDBStreamInfoRequestPB)}, |
1416 | | { 368, 376, sizeof(::yb::cdc::GetCDCDBStreamInfoResponsePB)}, |
1417 | | { 379, 388, sizeof(::yb::cdc::SetCDCCheckpointRequestPB)}, |
1418 | | { 392, 398, sizeof(::yb::cdc::SetCDCCheckpointResponsePB)}, |
1419 | | }; |
1420 | | |
1421 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
1422 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCErrorPB_default_instance_), |
1423 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CreateCDCStreamRequestPB_default_instance_), |
1424 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CreateCDCStreamResponsePB_default_instance_), |
1425 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_DeleteCDCStreamRequestPB_default_instance_), |
1426 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_), |
1427 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ListTabletsRequestPB_default_instance_), |
1428 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ListTabletsResponsePB_default_instance_), |
1429 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCTabletPB_ReplicaPB_default_instance_), |
1430 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCTabletPB_default_instance_), |
1431 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKCheckpointPB_default_instance_), |
1432 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCCheckpointPB_default_instance_), |
1433 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetChangesRequestPB_default_instance_), |
1434 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_KeyValuePairPB_default_instance_), |
1435 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCRecordPB_default_instance_), |
1436 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKColumnInfoPB_default_instance_), |
1437 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKTablePropertiesPB_default_instance_), |
1438 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKSchemaPB_default_instance_), |
1439 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKOpIdPB_default_instance_), |
1440 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_TypeInfo_default_instance_), |
1441 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_RowMessage_default_instance_), |
1442 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKProtoRecordPB_default_instance_), |
1443 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetChangesResponsePB_default_instance_), |
1444 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCheckpointRequestPB_default_instance_), |
1445 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCheckpointResponsePB_default_instance_), |
1446 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_UpdateCdcReplicatedIndexRequestPB_default_instance_), |
1447 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_), |
1448 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_BootstrapProducerRequestPB_default_instance_), |
1449 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_BootstrapProducerResponsePB_default_instance_), |
1450 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetLatestEntryOpIdRequestPB_default_instance_), |
1451 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_), |
1452 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_TableInfo_default_instance_), |
1453 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCDCDBStreamInfoRequestPB_default_instance_), |
1454 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_), |
1455 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_), |
1456 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_), |
1457 | | }; |
1458 | | |
1459 | 99 | void protobuf_AssignDescriptors() { |
1460 | 99 | AddDescriptors(); |
1461 | 99 | ::google::protobuf::MessageFactory* factory = NULL; |
1462 | 99 | AssignDescriptors( |
1463 | 99 | "yb/cdc/cdc_service.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
1464 | 99 | file_level_metadata, file_level_enum_descriptors, NULL); |
1465 | 99 | } |
1466 | | |
1467 | 2.65k | void protobuf_AssignDescriptorsOnce() { |
1468 | 2.65k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1469 | 2.65k | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
1470 | 2.65k | } |
1471 | | |
1472 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
1473 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
1474 | 0 | protobuf_AssignDescriptorsOnce(); |
1475 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 35); |
1476 | 0 | } |
1477 | | |
1478 | 16.4k | void AddDescriptorsImpl() { |
1479 | 16.4k | InitDefaults(); |
1480 | 16.4k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1481 | 16.4k | "\n\030yb/cdc/cdc_service.proto\022\006yb.cdc\032\026yb/c" |
1482 | 16.4k | "ommon/common.proto\032\032yb/common/common_net" |
1483 | 16.4k | ".proto\032\025yb/common/value.proto\032\035yb/common" |
1484 | 16.4k | "/wire_protocol.proto\032\024yb/rpc/service.pro" |
1485 | 16.4k | "to\032\032yb/tablet/operations.proto\032\030yb/tserv" |
1486 | 16.4k | "er/tserver.proto\032\022yb/util/opid.proto\"\324\002\n" |
1487 | 16.4k | "\nCDCErrorPB\0224\n\004code\030\001 \001(\0162\027.yb.cdc.CDCEr" |
1488 | 16.4k | "rorPB.Code:\rUNKNOWN_ERROR\022\037\n\006status\030\002 \001(" |
1489 | 16.4k | "\0132\017.yb.AppStatusPB\"\356\001\n\004Code\022\021\n\rUNKNOWN_E" |
1490 | 16.4k | "RROR\020\001\022\024\n\020TABLET_NOT_FOUND\020\002\022\023\n\017TABLE_NO" |
1491 | 16.4k | "T_FOUND\020\003\022\030\n\024SUBSCRIBER_NOT_FOUND\020\004\022\026\n\022C" |
1492 | 16.4k | "HECKPOINT_TOO_OLD\020\005\022\026\n\022TABLET_NOT_RUNNIN" |
1493 | 16.4k | "G\020\006\022\016\n\nNOT_LEADER\020\007\022\024\n\020LEADER_NOT_READY\020" |
1494 | 16.4k | "\013\022\017\n\013NOT_RUNNING\020\010\022\022\n\016INTERNAL_ERROR\020\t\022\023" |
1495 | 16.4k | "\n\017INVALID_REQUEST\020\n\"\245\002\n\030CreateCDCStreamR" |
1496 | 16.4k | "equestPB\022\020\n\010table_id\030\001 \001(\t\0222\n\013record_typ" |
1497 | 16.4k | "e\030\002 \001(\0162\025.yb.cdc.CDCRecordType:\006CHANGE\0224" |
1498 | 16.4k | "\n\rrecord_format\030\003 \001(\0162\027.yb.cdc.CDCRecord" |
1499 | 16.4k | "Format:\004JSON\022\026\n\016namespace_name\030\004 \001(\t\0227\n\013" |
1500 | 16.4k | "source_type\030\005 \001(\0162\030.yb.cdc.CDCRequestSou" |
1501 | 16.4k | "rce:\010XCLUSTER\022<\n\017checkpoint_type\030\006 \001(\0162\031" |
1502 | 16.4k | ".yb.cdc.CDCCheckpointType:\010IMPLICIT\"g\n\031C" |
1503 | 16.4k | "reateCDCStreamResponsePB\022!\n\005error\030\001 \001(\0132" |
1504 | 16.4k | "\022.yb.cdc.CDCErrorPB\022\021\n\tstream_id\030\002 \001(\014\022\024" |
1505 | 16.4k | "\n\014db_stream_id\030\003 \001(\014\"h\n\030DeleteCDCStreamR" |
1506 | 16.4k | "equestPB\022\021\n\tstream_id\030\001 \003(\014\022\034\n\rignore_er" |
1507 | 16.4k | "rors\030\002 \001(\010:\005false\022\033\n\014force_delete\030\003 \001(\010:" |
1508 | 16.4k | "\005false\">\n\031DeleteCDCStreamResponsePB\022!\n\005e" |
1509 | 16.4k | "rror\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\"D\n\024ListTa" |
1510 | 16.4k | "bletsRequestPB\022\021\n\tstream_id\030\001 \001(\t\022\031\n\nloc" |
1511 | 16.4k | "al_only\030\002 \001(\010:\005false\"`\n\025ListTabletsRespo" |
1512 | 16.4k | "nsePB\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB" |
1513 | 16.4k | "\022$\n\007tablets\030\002 \003(\0132\023.yb.cdc.CDCTabletPB\"\213" |
1514 | 16.4k | "\001\n\013CDCTabletPB\022\021\n\ttablet_id\030\001 \001(\014\022/\n\010tse" |
1515 | 16.4k | "rvers\030\002 \003(\0132\035.yb.cdc.CDCTabletPB.Replica" |
1516 | 16.4k | "PB\0328\n\tReplicaPB\022+\n\023broadcast_addresses\030\001" |
1517 | 16.4k | " \003(\0132\016.yb.HostPortPB\"j\n\022CDCSDKCheckpoint" |
1518 | 16.4k | "PB\022\014\n\004term\030\001 \001(\003\022\r\n\005index\030\002 \001(\003\022\013\n\003key\030\003" |
1519 | 16.4k | " \001(\014\022\023\n\010write_id\030\004 \001(\005:\0010\022\025\n\rsnapshot_ti" |
1520 | 16.4k | "me\030\005 \001(\004\",\n\017CDCCheckpointPB\022\031\n\005op_id\030\001 \001" |
1521 | 16.4k | "(\0132\n.yb.OpIdPB\"\205\002\n\023GetChangesRequestPB\022\021" |
1522 | 16.4k | "\n\tstream_id\030\001 \001(\014\022\021\n\ttablet_id\030\002 \001(\014\0220\n\017" |
1523 | 16.4k | "from_checkpoint\030\003 \001(\0132\027.yb.cdc.CDCCheckp" |
1524 | 16.4k | "ointPB\022\023\n\013max_records\030\004 \001(\r\022\034\n\016serve_as_" |
1525 | 16.4k | "proxy\030\005 \001(\010:\004true\022\024\n\014db_stream_id\030\006 \001(\014\022" |
1526 | 16.4k | "\020\n\010table_id\030\007 \001(\014\022;\n\027from_cdc_sdk_checkp" |
1527 | 16.4k | "oint\030\010 \001(\0132\032.yb.cdc.CDCSDKCheckpointPB\";" |
1528 | 16.4k | "\n\016KeyValuePairPB\022\013\n\003key\030\001 \001(\014\022\034\n\005value\030\002" |
1529 | 16.4k | " \001(\0132\r.yb.QLValuePB\"\314\003\n\013CDCRecordPB\022\014\n\004t" |
1530 | 16.4k | "ime\030\001 \001(\004\0224\n\toperation\030\002 \001(\0162!.yb.cdc.CD" |
1531 | 16.4k | "CRecordPB.OperationType\022#\n\003key\030\003 \003(\0132\026.y" |
1532 | 16.4k | "b.cdc.KeyValuePairPB\022\'\n\007changes\030\004 \003(\0132\026." |
1533 | 16.4k | "yb.cdc.KeyValuePairPB\022&\n\006before\030\005 \003(\0132\026." |
1534 | 16.4k | "yb.cdc.KeyValuePairPB\022%\n\005after\030\006 \003(\0132\026.y" |
1535 | 16.4k | "b.cdc.KeyValuePairPB\0228\n\021transaction_stat" |
1536 | 16.4k | "e\030\007 \001(\0132\035.yb.tablet.TransactionStatePB\022\"" |
1537 | 16.4k | "\n\tpartition\030\t \001(\0132\017.yb.PartitionPB\022=\n\024sp" |
1538 | 16.4k | "lit_tablet_request\030\n \001(\0132\037.yb.tablet.Spl" |
1539 | 16.4k | "itTabletRequestPB\"\?\n\rOperationType\022\t\n\005WR" |
1540 | 16.4k | "ITE\020\001\022\n\n\006DELETE\020\002\022\t\n\005APPLY\020\003\022\014\n\010SPLIT_OP" |
1541 | 16.4k | "\020\004\"\235\001\n\022CDCSDKColumnInfoPB\022\014\n\004name\030\001 \001(\t\022" |
1542 | 16.4k | "\032\n\004type\030\002 \001(\0132\014.yb.QLTypePB\022\025\n\006is_key\030\003 " |
1543 | 16.4k | "\001(\010:\005false\022\032\n\013is_hash_key\030\004 \001(\010:\005false\022\032" |
1544 | 16.4k | "\n\013is_nullable\030\005 \001(\010:\005false\022\016\n\003oid\030\006 \001(\005:" |
1545 | 16.4k | "\0010\"u\n\027CDCSDKTablePropertiesPB\022\034\n\024default" |
1546 | 16.4k | "_time_to_live\030\001 \001(\004\022\026\n\013num_tablets\030\002 \001(\005" |
1547 | 16.4k | ":\0010\022$\n\025is_ysql_catalog_table\030\003 \001(\010:\005fals" |
1548 | 16.4k | "e\"t\n\016CDCSDKSchemaPB\022/\n\013column_info\030\001 \003(\013" |
1549 | 16.4k | "2\032.yb.cdc.CDCSDKColumnInfoPB\0221\n\010tab_info" |
1550 | 16.4k | "\030\002 \001(\0132\037.yb.cdc.CDCSDKTablePropertiesPB\"" |
1551 | 16.4k | "X\n\014CDCSDKOpIdPB\022\014\n\004term\030\001 \001(\003\022\r\n\005index\030\002" |
1552 | 16.4k | " \001(\003\022\023\n\010write_id\030\003 \001(\r:\0010\022\026\n\014write_id_ke" |
1553 | 16.4k | "y\030\004 \001(\014:\000\"4\n\010TypeInfo\022\020\n\010modifier\030\001 \001(\t\022" |
1554 | 16.4k | "\026\n\016value_optional\030\002 \001(\010\"\206\004\n\nRowMessage\022\026" |
1555 | 16.4k | "\n\016transaction_id\030\001 \001(\014\022\023\n\013commit_time\030\002 " |
1556 | 16.4k | "\001(\004\022\r\n\005table\030\003 \001(\t\022!\n\002op\030\004 \001(\0162\025.yb.cdc." |
1557 | 16.4k | "RowMessage.Op\022%\n\tnew_tuple\030\005 \003(\0132\022.yb.Da" |
1558 | 16.4k | "tumMessagePB\022%\n\told_tuple\030\006 \003(\0132\022.yb.Dat" |
1559 | 16.4k | "umMessagePB\022&\n\014new_typeinfo\030\007 \003(\0132\020.yb.c" |
1560 | 16.4k | "dc.TypeInfo\022&\n\006schema\030\010 \001(\0132\026.yb.cdc.CDC" |
1561 | 16.4k | "SDKSchemaPB\022\026\n\016schema_version\030\t \001(\r\022\026\n\016n" |
1562 | 16.4k | "ew_table_name\030\n \001(\t\022\025\n\rpgschema_name\030\013 \001" |
1563 | 16.4k | "(\t\022<\n\025truncate_request_info\030\r \001(\0132\035.yb.t" |
1564 | 16.4k | "server.TruncateRequestPB\"v\n\002Op\022\024\n\007UNKNOW" |
1565 | 16.4k | "N\020\377\377\377\377\377\377\377\377\377\001\022\n\n\006INSERT\020\000\022\n\n\006UPDATE\020\001\022\n\n\006" |
1566 | 16.4k | "DELETE\020\002\022\t\n\005BEGIN\020\003\022\n\n\006COMMIT\020\004\022\007\n\003DDL\020\005" |
1567 | 16.4k | "\022\014\n\010TRUNCATE\020\006\022\010\n\004READ\020\007\"k\n\023CDCSDKProtoR" |
1568 | 16.4k | "ecordPB\022\'\n\013row_message\030\001 \001(\0132\022.yb.cdc.Ro" |
1569 | 16.4k | "wMessage\022+\n\rcdc_sdk_op_id\030\002 \001(\0132\024.yb.cdc" |
1570 | 16.4k | ".CDCSDKOpIdPB\"\237\003\n\024GetChangesResponsePB\022!" |
1571 | 16.4k | "\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\0222\n\013rec" |
1572 | 16.4k | "ord_type\030\002 \001(\0162\025.yb.cdc.CDCRecordType:\006C" |
1573 | 16.4k | "HANGE\022.\n\rrecord_format\030\003 \001(\0162\027.yb.cdc.CD" |
1574 | 16.4k | "CRecordFormat\022$\n\007records\030\004 \003(\0132\023.yb.cdc." |
1575 | 16.4k | "CDCRecordPB\022+\n\ncheckpoint\030\005 \001(\0132\027.yb.cdc" |
1576 | 16.4k | ".CDCCheckpointPB\022\037\n\007tserver\030\006 \003(\0132\016.yb.H" |
1577 | 16.4k | "ostPortPB\022:\n\025cdc_sdk_proto_records\030\010 \003(\013" |
1578 | 16.4k | "2\033.yb.cdc.CDCSDKProtoRecordPB\0226\n\022cdc_sdk" |
1579 | 16.4k | "_checkpoint\030\t \001(\0132\032.yb.cdc.CDCSDKCheckpo" |
1580 | 16.4k | "intPB\022\030\n\020safe_hybrid_time\030\n \001(\003\">\n\026GetCh" |
1581 | 16.4k | "eckpointRequestPB\022\021\n\tstream_id\030\001 \001(\014\022\021\n\t" |
1582 | 16.4k | "tablet_id\030\002 \001(\014\"i\n\027GetCheckpointResponse" |
1583 | 16.4k | "PB\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\022+\n" |
1584 | 16.4k | "\ncheckpoint\030\002 \001(\0132\027.yb.cdc.CDCCheckpoint" |
1585 | 16.4k | "PB\"i\n!UpdateCdcReplicatedIndexRequestPB\022" |
1586 | 16.4k | "\021\n\ttablet_id\030\001 \001(\014\022\030\n\020replicated_index\030\002" |
1587 | 16.4k | " \001(\003\022\027\n\017replicated_term\030\003 \001(\003\"G\n\"UpdateC" |
1588 | 16.4k | "dcReplicatedIndexResponsePB\022!\n\005error\030\001 \001" |
1589 | 16.4k | "(\0132\022.yb.cdc.CDCErrorPB\"/\n\032BootstrapProdu" |
1590 | 16.4k | "cerRequestPB\022\021\n\ttable_ids\030\001 \003(\t\"[\n\033Boots" |
1591 | 16.4k | "trapProducerResponsePB\022!\n\005error\030\001 \001(\0132\022." |
1592 | 16.4k | "yb.cdc.CDCErrorPB\022\031\n\021cdc_bootstrap_ids\030\002" |
1593 | 16.4k | " \003(\014\"0\n\033GetLatestEntryOpIdRequestPB\022\021\n\tt" |
1594 | 16.4k | "ablet_id\030\001 \001(\014\"\\\n\034GetLatestEntryOpIdResp" |
1595 | 16.4k | "onsePB\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorP" |
1596 | 16.4k | "B\022\031\n\005op_id\030\002 \001(\0132\n.yb.OpIdPB\"0\n\tTableInf" |
1597 | 16.4k | "o\022\021\n\tstream_id\030\001 \001(\014\022\020\n\010table_id\030\002 \001(\014\"3" |
1598 | 16.4k | "\n\033GetCDCDBStreamInfoRequestPB\022\024\n\014db_stre" |
1599 | 16.4k | "am_id\030\001 \001(\014\"~\n\034GetCDCDBStreamInfoRespons" |
1600 | 16.4k | "ePB\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\022\024" |
1601 | 16.4k | "\n\014namespace_id\030\002 \001(\014\022%\n\ntable_info\030\003 \003(\013" |
1602 | 16.4k | "2\021.yb.cdc.TableInfo\"\246\001\n\031SetCDCCheckpoint" |
1603 | 16.4k | "RequestPB\022+\n\ncheckpoint\030\001 \001(\0132\027.yb.cdc.C" |
1604 | 16.4k | "DCCheckpointPB\0226\n\022cdc_sdk_checkpoint\030\002 \001" |
1605 | 16.4k | "(\0132\032.yb.cdc.CDCSDKCheckpointPB\022\021\n\tstream" |
1606 | 16.4k | "_id\030\003 \001(\014\022\021\n\ttablet_id\030\004 \001(\014\"\?\n\032SetCDCCh" |
1607 | 16.4k | "eckpointResponsePB\022!\n\005error\030\001 \001(\0132\022.yb.c" |
1608 | 16.4k | "dc.CDCErrorPB*/\n\rCDCRecordType\022\n\n\006CHANGE" |
1609 | 16.4k | "\020\001\022\t\n\005AFTER\020\002\022\007\n\003ALL\020\003*/\n\017CDCRecordForma" |
1610 | 16.4k | "t\022\010\n\004JSON\020\001\022\007\n\003WAL\020\002\022\t\n\005PROTO\020\003*,\n\020CDCRe" |
1611 | 16.4k | "questSource\022\014\n\010XCLUSTER\020\001\022\n\n\006CDCSDK\020\002*/\n" |
1612 | 16.4k | "\021CDCCheckpointType\022\014\n\010IMPLICIT\020\001\022\014\n\010EXPL" |
1613 | 16.4k | "ICIT\020\0022\227\007\n\nCDCService\022V\n\017CreateCDCStream" |
1614 | 16.4k | "\022 .yb.cdc.CreateCDCStreamRequestPB\032!.yb." |
1615 | 16.4k | "cdc.CreateCDCStreamResponsePB\022V\n\017DeleteC" |
1616 | 16.4k | "DCStream\022 .yb.cdc.DeleteCDCStreamRequest" |
1617 | 16.4k | "PB\032!.yb.cdc.DeleteCDCStreamResponsePB\022J\n" |
1618 | 16.4k | "\013ListTablets\022\034.yb.cdc.ListTabletsRequest" |
1619 | 16.4k | "PB\032\035.yb.cdc.ListTabletsResponsePB\022G\n\nGet" |
1620 | 16.4k | "Changes\022\033.yb.cdc.GetChangesRequestPB\032\034.y" |
1621 | 16.4k | "b.cdc.GetChangesResponsePB\022P\n\rGetCheckpo" |
1622 | 16.4k | "int\022\036.yb.cdc.GetCheckpointRequestPB\032\037.yb" |
1623 | 16.4k | ".cdc.GetCheckpointResponsePB\022q\n\030UpdateCd" |
1624 | 16.4k | "cReplicatedIndex\022).yb.cdc.UpdateCdcRepli" |
1625 | 16.4k | "catedIndexRequestPB\032*.yb.cdc.UpdateCdcRe" |
1626 | 16.4k | "plicatedIndexResponsePB\022\\\n\021BootstrapProd" |
1627 | 16.4k | "ucer\022\".yb.cdc.BootstrapProducerRequestPB" |
1628 | 16.4k | "\032#.yb.cdc.BootstrapProducerResponsePB\022_\n" |
1629 | 16.4k | "\022GetLatestEntryOpId\022#.yb.cdc.GetLatestEn" |
1630 | 16.4k | "tryOpIdRequestPB\032$.yb.cdc.GetLatestEntry" |
1631 | 16.4k | "OpIdResponsePB\022_\n\022GetCDCDBStreamInfo\022#.y" |
1632 | 16.4k | "b.cdc.GetCDCDBStreamInfoRequestPB\032$.yb.c" |
1633 | 16.4k | "dc.GetCDCDBStreamInfoResponsePB\022_\n\020SetCD" |
1634 | 16.4k | "CCheckpoint\022!.yb.cdc.SetCDCCheckpointReq" |
1635 | 16.4k | "uestPB\032\".yb.cdc.SetCDCCheckpointResponse" |
1636 | 16.4k | "PB\"\004\210\265\030\001B\014\n\norg.yb.cdc" |
1637 | 16.4k | }; |
1638 | 16.4k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
1639 | 16.4k | descriptor, 6222); |
1640 | 16.4k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
1641 | 16.4k | "yb/cdc/cdc_service.proto", &protobuf_RegisterTypes); |
1642 | 16.4k | ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors(); |
1643 | 16.4k | ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors(); |
1644 | 16.4k | ::protobuf_yb_2fcommon_2fvalue_2eproto::AddDescriptors(); |
1645 | 16.4k | ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors(); |
1646 | 16.4k | ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors(); |
1647 | 16.4k | ::protobuf_yb_2ftablet_2foperations_2eproto::AddDescriptors(); |
1648 | 16.4k | ::protobuf_yb_2ftserver_2ftserver_2eproto::AddDescriptors(); |
1649 | 16.4k | ::protobuf_yb_2futil_2fopid_2eproto::AddDescriptors(); |
1650 | 16.4k | } |
1651 | | |
1652 | 16.5k | void AddDescriptors() { |
1653 | 16.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1654 | 16.5k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
1655 | 16.5k | } |
1656 | | // Force AddDescriptors() to be called at dynamic initialization time. |
1657 | | struct StaticDescriptorInitializer { |
1658 | 16.4k | StaticDescriptorInitializer() { |
1659 | 16.4k | AddDescriptors(); |
1660 | 16.4k | } |
1661 | | } static_descriptor_initializer; |
1662 | | } // namespace protobuf_yb_2fcdc_2fcdc_5fservice_2eproto |
1663 | | namespace yb { |
1664 | | namespace cdc { |
1665 | 0 | const ::google::protobuf::EnumDescriptor* CDCErrorPB_Code_descriptor() { |
1666 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1667 | 0 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[0]; |
1668 | 0 | } |
1669 | 2 | bool CDCErrorPB_Code_IsValid(int value) { |
1670 | 2 | switch (value) { |
1671 | 0 | case 1: |
1672 | 0 | case 2: |
1673 | 0 | case 3: |
1674 | 0 | case 4: |
1675 | 0 | case 5: |
1676 | 0 | case 6: |
1677 | 0 | case 7: |
1678 | 0 | case 8: |
1679 | 0 | case 9: |
1680 | 2 | case 10: |
1681 | 2 | case 11: |
1682 | 2 | return true; |
1683 | 0 | default: |
1684 | 0 | return false; |
1685 | 2 | } |
1686 | 2 | } |
1687 | | |
1688 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1689 | | const CDCErrorPB_Code CDCErrorPB::UNKNOWN_ERROR; |
1690 | | const CDCErrorPB_Code CDCErrorPB::TABLET_NOT_FOUND; |
1691 | | const CDCErrorPB_Code CDCErrorPB::TABLE_NOT_FOUND; |
1692 | | const CDCErrorPB_Code CDCErrorPB::SUBSCRIBER_NOT_FOUND; |
1693 | | const CDCErrorPB_Code CDCErrorPB::CHECKPOINT_TOO_OLD; |
1694 | | const CDCErrorPB_Code CDCErrorPB::TABLET_NOT_RUNNING; |
1695 | | const CDCErrorPB_Code CDCErrorPB::NOT_LEADER; |
1696 | | const CDCErrorPB_Code CDCErrorPB::LEADER_NOT_READY; |
1697 | | const CDCErrorPB_Code CDCErrorPB::NOT_RUNNING; |
1698 | | const CDCErrorPB_Code CDCErrorPB::INTERNAL_ERROR; |
1699 | | const CDCErrorPB_Code CDCErrorPB::INVALID_REQUEST; |
1700 | | const CDCErrorPB_Code CDCErrorPB::Code_MIN; |
1701 | | const CDCErrorPB_Code CDCErrorPB::Code_MAX; |
1702 | | const int CDCErrorPB::Code_ARRAYSIZE; |
1703 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1704 | 0 | const ::google::protobuf::EnumDescriptor* CDCRecordPB_OperationType_descriptor() { |
1705 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1706 | 0 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[1]; |
1707 | 0 | } |
1708 | 0 | bool CDCRecordPB_OperationType_IsValid(int value) { |
1709 | 0 | switch (value) { |
1710 | 0 | case 1: |
1711 | 0 | case 2: |
1712 | 0 | case 3: |
1713 | 0 | case 4: |
1714 | 0 | return true; |
1715 | 0 | default: |
1716 | 0 | return false; |
1717 | 0 | } |
1718 | 0 | } |
1719 | | |
1720 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1721 | | const CDCRecordPB_OperationType CDCRecordPB::WRITE; |
1722 | | const CDCRecordPB_OperationType CDCRecordPB::DELETE; |
1723 | | const CDCRecordPB_OperationType CDCRecordPB::APPLY; |
1724 | | const CDCRecordPB_OperationType CDCRecordPB::SPLIT_OP; |
1725 | | const CDCRecordPB_OperationType CDCRecordPB::OperationType_MIN; |
1726 | | const CDCRecordPB_OperationType CDCRecordPB::OperationType_MAX; |
1727 | | const int CDCRecordPB::OperationType_ARRAYSIZE; |
1728 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1729 | 0 | const ::google::protobuf::EnumDescriptor* RowMessage_Op_descriptor() { |
1730 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1731 | 0 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[2]; |
1732 | 0 | } |
1733 | 27.5k | bool RowMessage_Op_IsValid(int value) { |
1734 | 27.5k | switch (value) { |
1735 | 0 | case -1: |
1736 | 648 | case 0: |
1737 | 886 | case 1: |
1738 | 1.10k | case 2: |
1739 | 1.24k | case 3: |
1740 | 1.39k | case 4: |
1741 | 2.02k | case 5: |
1742 | 2.02k | case 6: |
1743 | 27.5k | case 7: |
1744 | 27.5k | return true; |
1745 | 0 | default: |
1746 | 0 | return false; |
1747 | 27.5k | } |
1748 | 27.5k | } |
1749 | | |
1750 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1751 | | const RowMessage_Op RowMessage::UNKNOWN; |
1752 | | const RowMessage_Op RowMessage::INSERT; |
1753 | | const RowMessage_Op RowMessage::UPDATE; |
1754 | | const RowMessage_Op RowMessage::DELETE; |
1755 | | const RowMessage_Op RowMessage::BEGIN; |
1756 | | const RowMessage_Op RowMessage::COMMIT; |
1757 | | const RowMessage_Op RowMessage::DDL; |
1758 | | const RowMessage_Op RowMessage::TRUNCATE; |
1759 | | const RowMessage_Op RowMessage::READ; |
1760 | | const RowMessage_Op RowMessage::Op_MIN; |
1761 | | const RowMessage_Op RowMessage::Op_MAX; |
1762 | | const int RowMessage::Op_ARRAYSIZE; |
1763 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1764 | 306 | const ::google::protobuf::EnumDescriptor* CDCRecordType_descriptor() { |
1765 | 306 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1766 | 306 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[3]; |
1767 | 306 | } |
1768 | 6 | bool CDCRecordType_IsValid(int value) { |
1769 | 6 | switch (value) { |
1770 | 6 | case 1: |
1771 | 6 | case 2: |
1772 | 6 | case 3: |
1773 | 6 | return true; |
1774 | 0 | default: |
1775 | 0 | return false; |
1776 | 6 | } |
1777 | 6 | } |
1778 | | |
1779 | 306 | const ::google::protobuf::EnumDescriptor* CDCRecordFormat_descriptor() { |
1780 | 306 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1781 | 306 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[4]; |
1782 | 306 | } |
1783 | 614 | bool CDCRecordFormat_IsValid(int value) { |
1784 | 614 | switch (value) { |
1785 | 0 | case 1: |
1786 | 0 | case 2: |
1787 | 614 | case 3: |
1788 | 614 | return true; |
1789 | 0 | default: |
1790 | 0 | return false; |
1791 | 614 | } |
1792 | 614 | } |
1793 | | |
1794 | 306 | const ::google::protobuf::EnumDescriptor* CDCRequestSource_descriptor() { |
1795 | 306 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1796 | 306 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[5]; |
1797 | 306 | } |
1798 | 614 | bool CDCRequestSource_IsValid(int value) { |
1799 | 614 | switch (value) { |
1800 | 0 | case 1: |
1801 | 614 | case 2: |
1802 | 614 | return true; |
1803 | 0 | default: |
1804 | 0 | return false; |
1805 | 614 | } |
1806 | 614 | } |
1807 | | |
1808 | 306 | const ::google::protobuf::EnumDescriptor* CDCCheckpointType_descriptor() { |
1809 | 306 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1810 | 306 | return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[6]; |
1811 | 306 | } |
1812 | 614 | bool CDCCheckpointType_IsValid(int value) { |
1813 | 614 | switch (value) { |
1814 | 606 | case 1: |
1815 | 614 | case 2: |
1816 | 614 | return true; |
1817 | 0 | default: |
1818 | 0 | return false; |
1819 | 614 | } |
1820 | 614 | } |
1821 | | |
1822 | | |
1823 | | // =================================================================== |
1824 | | |
1825 | 16.4k | void CDCErrorPB::InitAsDefaultInstance() { |
1826 | 16.4k | ::yb::cdc::_CDCErrorPB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>( |
1827 | 16.4k | ::yb::AppStatusPB::internal_default_instance()); |
1828 | 16.4k | } |
1829 | 0 | void CDCErrorPB::clear_status() { |
1830 | 0 | if (status_ != NULL) status_->Clear(); |
1831 | 0 | clear_has_status(); |
1832 | 0 | } |
1833 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1834 | | const int CDCErrorPB::kCodeFieldNumber; |
1835 | | const int CDCErrorPB::kStatusFieldNumber; |
1836 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1837 | | |
1838 | | CDCErrorPB::CDCErrorPB() |
1839 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1840 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1841 | 2 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
1842 | 2 | } |
1843 | 16.4k | SharedCtor(); |
1844 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCErrorPB) |
1845 | 16.4k | } |
1846 | | CDCErrorPB::CDCErrorPB(const CDCErrorPB& from) |
1847 | | : ::google::protobuf::Message(), |
1848 | | _internal_metadata_(NULL), |
1849 | | _has_bits_(from._has_bits_), |
1850 | 0 | _cached_size_(0) { |
1851 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1852 | 0 | if (from.has_status()) { |
1853 | 0 | status_ = new ::yb::AppStatusPB(*from.status_); |
1854 | 0 | } else { |
1855 | 0 | status_ = NULL; |
1856 | 0 | } |
1857 | 0 | code_ = from.code_; |
1858 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCErrorPB) |
1859 | 0 | } |
1860 | | |
1861 | 16.4k | void CDCErrorPB::SharedCtor() { |
1862 | 16.4k | _cached_size_ = 0; |
1863 | 16.4k | status_ = NULL; |
1864 | 16.4k | code_ = 1; |
1865 | 16.4k | } |
1866 | | |
1867 | 2 | CDCErrorPB::~CDCErrorPB() { |
1868 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCErrorPB) |
1869 | 2 | SharedDtor(); |
1870 | 2 | } |
1871 | | |
1872 | 2 | void CDCErrorPB::SharedDtor() { |
1873 | 2 | if (this != internal_default_instance()) delete status_; |
1874 | 2 | } |
1875 | | |
1876 | 0 | void CDCErrorPB::SetCachedSize(int size) const { |
1877 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1878 | 0 | _cached_size_ = size; |
1879 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1880 | 0 | } |
1881 | 0 | const ::google::protobuf::Descriptor* CDCErrorPB::descriptor() { |
1882 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
1883 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1884 | 0 | } |
1885 | | |
1886 | 0 | const CDCErrorPB& CDCErrorPB::default_instance() { |
1887 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB(); |
1888 | 0 | return *internal_default_instance(); |
1889 | 0 | } |
1890 | | |
1891 | 0 | CDCErrorPB* CDCErrorPB::New(::google::protobuf::Arena* arena) const { |
1892 | 0 | CDCErrorPB* n = new CDCErrorPB; |
1893 | 0 | if (arena != NULL) { |
1894 | 0 | arena->Own(n); |
1895 | 0 | } |
1896 | 0 | return n; |
1897 | 0 | } |
1898 | | |
1899 | 0 | void CDCErrorPB::Clear() { |
1900 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCErrorPB) |
1901 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1902 | | // Prevent compiler warnings about cached_has_bits being unused |
1903 | 0 | (void) cached_has_bits; |
1904 | |
|
1905 | 0 | cached_has_bits = _has_bits_[0]; |
1906 | 0 | if (cached_has_bits & 3u) { |
1907 | 0 | if (cached_has_bits & 0x00000001u) { |
1908 | 0 | GOOGLE_DCHECK(status_ != NULL); |
1909 | 0 | status_->Clear(); |
1910 | 0 | } |
1911 | 0 | code_ = 1; |
1912 | 0 | } |
1913 | 0 | _has_bits_.Clear(); |
1914 | 0 | _internal_metadata_.Clear(); |
1915 | 0 | } |
1916 | | |
1917 | | bool CDCErrorPB::MergePartialFromCodedStream( |
1918 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1919 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1920 | 0 | ::google::protobuf::uint32 tag; |
1921 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCErrorPB) |
1922 | 0 | for (;;) { |
1923 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1924 | 0 | tag = p.first; |
1925 | 0 | if (!p.second) goto handle_unusual; |
1926 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1927 | | // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
1928 | 0 | case 1: { |
1929 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1930 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1931 | 0 | int value; |
1932 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1933 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
1934 | 0 | input, &value))); |
1935 | 0 | if (::yb::cdc::CDCErrorPB_Code_IsValid(value)) { |
1936 | 0 | set_code(static_cast< ::yb::cdc::CDCErrorPB_Code >(value)); |
1937 | 0 | } else { |
1938 | 0 | mutable_unknown_fields()->AddVarint( |
1939 | 0 | 1, static_cast< ::google::protobuf::uint64>(value)); |
1940 | 0 | } |
1941 | 0 | } else { |
1942 | 0 | goto handle_unusual; |
1943 | 0 | } |
1944 | 0 | break; |
1945 | 0 | } |
1946 | | |
1947 | | // optional .yb.AppStatusPB status = 2; |
1948 | 0 | case 2: { |
1949 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1950 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1951 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1952 | 0 | input, mutable_status())); |
1953 | 0 | } else { |
1954 | 0 | goto handle_unusual; |
1955 | 0 | } |
1956 | 0 | break; |
1957 | 0 | } |
1958 | | |
1959 | 0 | default: { |
1960 | 0 | handle_unusual: |
1961 | 0 | if (tag == 0) { |
1962 | 0 | goto success; |
1963 | 0 | } |
1964 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1965 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1966 | 0 | break; |
1967 | 0 | } |
1968 | 0 | } |
1969 | 0 | } |
1970 | 0 | success: |
1971 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCErrorPB) |
1972 | 0 | return true; |
1973 | 0 | failure: |
1974 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCErrorPB) |
1975 | 0 | return false; |
1976 | 0 | #undef DO_ |
1977 | 0 | } |
1978 | | |
1979 | | void CDCErrorPB::SerializeWithCachedSizes( |
1980 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1981 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCErrorPB) |
1982 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1983 | 0 | (void) cached_has_bits; |
1984 | |
|
1985 | 0 | cached_has_bits = _has_bits_[0]; |
1986 | | // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
1987 | 0 | if (cached_has_bits & 0x00000002u) { |
1988 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
1989 | 0 | 1, this->code(), output); |
1990 | 0 | } |
1991 | | |
1992 | | // optional .yb.AppStatusPB status = 2; |
1993 | 0 | if (cached_has_bits & 0x00000001u) { |
1994 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1995 | 0 | 2, *this->status_, output); |
1996 | 0 | } |
1997 | |
|
1998 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1999 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2000 | 0 | _internal_metadata_.unknown_fields(), output); |
2001 | 0 | } |
2002 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCErrorPB) |
2003 | 0 | } |
2004 | | |
2005 | | ::google::protobuf::uint8* CDCErrorPB::InternalSerializeWithCachedSizesToArray( |
2006 | 2 | bool deterministic, ::google::protobuf::uint8* target) const { |
2007 | 2 | (void)deterministic; // Unused |
2008 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCErrorPB) |
2009 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
2010 | 2 | (void) cached_has_bits; |
2011 | | |
2012 | 2 | cached_has_bits = _has_bits_[0]; |
2013 | | // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
2014 | 2 | if (cached_has_bits & 0x00000002u) { |
2015 | 2 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2016 | 2 | 1, this->code(), target); |
2017 | 2 | } |
2018 | | |
2019 | | // optional .yb.AppStatusPB status = 2; |
2020 | 2 | if (cached_has_bits & 0x00000001u) { |
2021 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
2022 | 2 | InternalWriteMessageToArray( |
2023 | 2 | 2, *this->status_, deterministic, target); |
2024 | 2 | } |
2025 | | |
2026 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
2027 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2028 | 0 | _internal_metadata_.unknown_fields(), target); |
2029 | 0 | } |
2030 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCErrorPB) |
2031 | 2 | return target; |
2032 | 2 | } |
2033 | | |
2034 | 4 | size_t CDCErrorPB::ByteSizeLong() const { |
2035 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCErrorPB) |
2036 | 4 | size_t total_size = 0; |
2037 | | |
2038 | 4 | if (_internal_metadata_.have_unknown_fields()) { |
2039 | 0 | total_size += |
2040 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2041 | 0 | _internal_metadata_.unknown_fields()); |
2042 | 0 | } |
2043 | 4 | if (_has_bits_[0 / 32] & 3u) { |
2044 | | // optional .yb.AppStatusPB status = 2; |
2045 | 4 | if (has_status()) { |
2046 | 4 | total_size += 1 + |
2047 | 4 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2048 | 4 | *this->status_); |
2049 | 4 | } |
2050 | | |
2051 | | // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
2052 | 4 | if (has_code()) { |
2053 | 4 | total_size += 1 + |
2054 | 4 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); |
2055 | 4 | } |
2056 | | |
2057 | 4 | } |
2058 | 4 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2059 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2060 | 4 | _cached_size_ = cached_size; |
2061 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2062 | 4 | return total_size; |
2063 | 4 | } |
2064 | | |
2065 | 0 | void CDCErrorPB::MergeFrom(const ::google::protobuf::Message& from) { |
2066 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCErrorPB) |
2067 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2068 | 0 | const CDCErrorPB* source = |
2069 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCErrorPB>( |
2070 | 0 | &from); |
2071 | 0 | if (source == NULL) { |
2072 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCErrorPB) |
2073 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2074 | 0 | } else { |
2075 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCErrorPB) |
2076 | 0 | MergeFrom(*source); |
2077 | 0 | } |
2078 | 0 | } |
2079 | | |
2080 | 0 | void CDCErrorPB::MergeFrom(const CDCErrorPB& from) { |
2081 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCErrorPB) |
2082 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2083 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2084 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2085 | 0 | (void) cached_has_bits; |
2086 | |
|
2087 | 0 | cached_has_bits = from._has_bits_[0]; |
2088 | 0 | if (cached_has_bits & 3u) { |
2089 | 0 | if (cached_has_bits & 0x00000001u) { |
2090 | 0 | mutable_status()->::yb::AppStatusPB::MergeFrom(from.status()); |
2091 | 0 | } |
2092 | 0 | if (cached_has_bits & 0x00000002u) { |
2093 | 0 | code_ = from.code_; |
2094 | 0 | } |
2095 | 0 | _has_bits_[0] |= cached_has_bits; |
2096 | 0 | } |
2097 | 0 | } |
2098 | | |
2099 | 0 | void CDCErrorPB::CopyFrom(const ::google::protobuf::Message& from) { |
2100 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCErrorPB) |
2101 | 0 | if (&from == this) return; |
2102 | 0 | Clear(); |
2103 | 0 | MergeFrom(from); |
2104 | 0 | } |
2105 | | |
2106 | 0 | void CDCErrorPB::CopyFrom(const CDCErrorPB& from) { |
2107 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCErrorPB) |
2108 | 0 | if (&from == this) return; |
2109 | 0 | Clear(); |
2110 | 0 | MergeFrom(from); |
2111 | 0 | } |
2112 | | |
2113 | 2 | bool CDCErrorPB::IsInitialized() const { |
2114 | 2 | if (has_status()) { |
2115 | 2 | if (!this->status_->IsInitialized()) return false0 ; |
2116 | 2 | } |
2117 | 2 | return true; |
2118 | 2 | } |
2119 | | |
2120 | 0 | void CDCErrorPB::Swap(CDCErrorPB* other) { |
2121 | 0 | if (other == this) return; |
2122 | 0 | InternalSwap(other); |
2123 | 0 | } |
2124 | 0 | void CDCErrorPB::InternalSwap(CDCErrorPB* other) { |
2125 | 0 | using std::swap; |
2126 | 0 | swap(status_, other->status_); |
2127 | 0 | swap(code_, other->code_); |
2128 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2129 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2130 | 0 | swap(_cached_size_, other->_cached_size_); |
2131 | 0 | } |
2132 | | |
2133 | 0 | ::google::protobuf::Metadata CDCErrorPB::GetMetadata() const { |
2134 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
2135 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
2136 | 0 | } |
2137 | | |
2138 | | |
2139 | | // =================================================================== |
2140 | | |
2141 | 16.4k | void CreateCDCStreamRequestPB::InitAsDefaultInstance() { |
2142 | 16.4k | } |
2143 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2144 | | const int CreateCDCStreamRequestPB::kTableIdFieldNumber; |
2145 | | const int CreateCDCStreamRequestPB::kRecordTypeFieldNumber; |
2146 | | const int CreateCDCStreamRequestPB::kRecordFormatFieldNumber; |
2147 | | const int CreateCDCStreamRequestPB::kNamespaceNameFieldNumber; |
2148 | | const int CreateCDCStreamRequestPB::kSourceTypeFieldNumber; |
2149 | | const int CreateCDCStreamRequestPB::kCheckpointTypeFieldNumber; |
2150 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2151 | | |
2152 | | CreateCDCStreamRequestPB::CreateCDCStreamRequestPB() |
2153 | 16.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2154 | 16.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2155 | 307 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamRequestPB(); |
2156 | 307 | } |
2157 | 16.7k | SharedCtor(); |
2158 | | // @@protoc_insertion_point(constructor:yb.cdc.CreateCDCStreamRequestPB) |
2159 | 16.7k | } |
2160 | | CreateCDCStreamRequestPB::CreateCDCStreamRequestPB(const CreateCDCStreamRequestPB& from) |
2161 | | : ::google::protobuf::Message(), |
2162 | | _internal_metadata_(NULL), |
2163 | | _has_bits_(from._has_bits_), |
2164 | 0 | _cached_size_(0) { |
2165 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2166 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2167 | 0 | if (from.has_table_id()) { |
2168 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
2169 | 0 | } |
2170 | 0 | namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2171 | 0 | if (from.has_namespace_name()) { |
2172 | 0 | namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_); |
2173 | 0 | } |
2174 | 0 | ::memcpy(&record_type_, &from.record_type_, |
2175 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&checkpoint_type_) - |
2176 | 0 | reinterpret_cast<char*>(&record_type_)) + sizeof(checkpoint_type_)); |
2177 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CreateCDCStreamRequestPB) |
2178 | 0 | } |
2179 | | |
2180 | 16.7k | void CreateCDCStreamRequestPB::SharedCtor() { |
2181 | 16.7k | _cached_size_ = 0; |
2182 | 16.7k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2183 | 16.7k | namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2184 | 16.7k | record_type_ = 1; |
2185 | 16.7k | record_format_ = 1; |
2186 | 16.7k | source_type_ = 1; |
2187 | 16.7k | checkpoint_type_ = 1; |
2188 | 16.7k | } |
2189 | | |
2190 | 307 | CreateCDCStreamRequestPB::~CreateCDCStreamRequestPB() { |
2191 | | // @@protoc_insertion_point(destructor:yb.cdc.CreateCDCStreamRequestPB) |
2192 | 307 | SharedDtor(); |
2193 | 307 | } |
2194 | | |
2195 | 307 | void CreateCDCStreamRequestPB::SharedDtor() { |
2196 | 307 | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2197 | 307 | namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2198 | 307 | } |
2199 | | |
2200 | 0 | void CreateCDCStreamRequestPB::SetCachedSize(int size) const { |
2201 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2202 | 0 | _cached_size_ = size; |
2203 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2204 | 0 | } |
2205 | 0 | const ::google::protobuf::Descriptor* CreateCDCStreamRequestPB::descriptor() { |
2206 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
2207 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2208 | 0 | } |
2209 | | |
2210 | 0 | const CreateCDCStreamRequestPB& CreateCDCStreamRequestPB::default_instance() { |
2211 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamRequestPB(); |
2212 | 0 | return *internal_default_instance(); |
2213 | 0 | } |
2214 | | |
2215 | 0 | CreateCDCStreamRequestPB* CreateCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
2216 | 0 | CreateCDCStreamRequestPB* n = new CreateCDCStreamRequestPB; |
2217 | 0 | if (arena != NULL) { |
2218 | 0 | arena->Own(n); |
2219 | 0 | } |
2220 | 0 | return n; |
2221 | 0 | } |
2222 | | |
2223 | 307 | void CreateCDCStreamRequestPB::Clear() { |
2224 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CreateCDCStreamRequestPB) |
2225 | 307 | ::google::protobuf::uint32 cached_has_bits = 0; |
2226 | | // Prevent compiler warnings about cached_has_bits being unused |
2227 | 307 | (void) cached_has_bits; |
2228 | | |
2229 | 307 | cached_has_bits = _has_bits_[0]; |
2230 | 307 | if (cached_has_bits & 63u) { |
2231 | 0 | if (cached_has_bits & 0x00000001u) { |
2232 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2233 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
2234 | 0 | } |
2235 | 0 | if (cached_has_bits & 0x00000002u) { |
2236 | 0 | GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2237 | 0 | (*namespace_name_.UnsafeRawStringPointer())->clear(); |
2238 | 0 | } |
2239 | 0 | record_type_ = 1; |
2240 | 0 | record_format_ = 1; |
2241 | 0 | source_type_ = 1; |
2242 | 0 | checkpoint_type_ = 1; |
2243 | 0 | } |
2244 | 307 | _has_bits_.Clear(); |
2245 | 307 | _internal_metadata_.Clear(); |
2246 | 307 | } |
2247 | | |
2248 | | bool CreateCDCStreamRequestPB::MergePartialFromCodedStream( |
2249 | 307 | ::google::protobuf::io::CodedInputStream* input) { |
2250 | 1.23k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2251 | 307 | ::google::protobuf::uint32 tag; |
2252 | | // @@protoc_insertion_point(parse_start:yb.cdc.CreateCDCStreamRequestPB) |
2253 | 1.53k | for (;;) { |
2254 | 1.53k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2255 | 1.53k | tag = p.first; |
2256 | 1.53k | if (!p.second) goto handle_unusual307 ; |
2257 | 1.23k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2258 | | // optional string table_id = 1; |
2259 | 0 | case 1: { |
2260 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2261 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2262 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2263 | 0 | input, this->mutable_table_id())); |
2264 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2265 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2266 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
2267 | 0 | "yb.cdc.CreateCDCStreamRequestPB.table_id"); |
2268 | 0 | } else { |
2269 | 0 | goto handle_unusual; |
2270 | 0 | } |
2271 | 0 | break; |
2272 | 0 | } |
2273 | | |
2274 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
2275 | 3 | case 2: { |
2276 | 3 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2277 | 3 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2278 | 3 | int value; |
2279 | 3 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2280 | 3 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2281 | 3 | input, &value))); |
2282 | 3 | if (::yb::cdc::CDCRecordType_IsValid(value)) { |
2283 | 3 | set_record_type(static_cast< ::yb::cdc::CDCRecordType >(value)); |
2284 | 3 | } else { |
2285 | 0 | mutable_unknown_fields()->AddVarint( |
2286 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
2287 | 0 | } |
2288 | 3 | } else { |
2289 | 0 | goto handle_unusual; |
2290 | 0 | } |
2291 | 3 | break; |
2292 | 3 | } |
2293 | | |
2294 | | // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON]; |
2295 | 307 | case 3: { |
2296 | 307 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2297 | 307 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2298 | 307 | int value; |
2299 | 307 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2300 | 307 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2301 | 307 | input, &value))); |
2302 | 307 | if (::yb::cdc::CDCRecordFormat_IsValid(value)) { |
2303 | 307 | set_record_format(static_cast< ::yb::cdc::CDCRecordFormat >(value)); |
2304 | 307 | } else { |
2305 | 0 | mutable_unknown_fields()->AddVarint( |
2306 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
2307 | 0 | } |
2308 | 307 | } else { |
2309 | 0 | goto handle_unusual; |
2310 | 0 | } |
2311 | 307 | break; |
2312 | 307 | } |
2313 | | |
2314 | | // optional string namespace_name = 4; |
2315 | 307 | case 4: { |
2316 | 307 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2317 | 307 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
2318 | 307 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2319 | 307 | input, this->mutable_namespace_name())); |
2320 | 307 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2321 | 307 | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
2322 | 307 | ::google::protobuf::internal::WireFormat::PARSE, |
2323 | 307 | "yb.cdc.CreateCDCStreamRequestPB.namespace_name"); |
2324 | 307 | } else { |
2325 | 0 | goto handle_unusual; |
2326 | 0 | } |
2327 | 307 | break; |
2328 | 307 | } |
2329 | | |
2330 | | // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER]; |
2331 | 307 | case 5: { |
2332 | 307 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2333 | 307 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2334 | 307 | int value; |
2335 | 307 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2336 | 307 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2337 | 307 | input, &value))); |
2338 | 307 | if (::yb::cdc::CDCRequestSource_IsValid(value)) { |
2339 | 307 | set_source_type(static_cast< ::yb::cdc::CDCRequestSource >(value)); |
2340 | 307 | } else { |
2341 | 0 | mutable_unknown_fields()->AddVarint( |
2342 | 0 | 5, static_cast< ::google::protobuf::uint64>(value)); |
2343 | 0 | } |
2344 | 307 | } else { |
2345 | 0 | goto handle_unusual; |
2346 | 0 | } |
2347 | 307 | break; |
2348 | 307 | } |
2349 | | |
2350 | | // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT]; |
2351 | 307 | case 6: { |
2352 | 307 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2353 | 307 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
2354 | 307 | int value; |
2355 | 307 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2356 | 307 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2357 | 307 | input, &value))); |
2358 | 307 | if (::yb::cdc::CDCCheckpointType_IsValid(value)) { |
2359 | 307 | set_checkpoint_type(static_cast< ::yb::cdc::CDCCheckpointType >(value)); |
2360 | 307 | } else { |
2361 | 0 | mutable_unknown_fields()->AddVarint( |
2362 | 0 | 6, static_cast< ::google::protobuf::uint64>(value)); |
2363 | 0 | } |
2364 | 307 | } else { |
2365 | 0 | goto handle_unusual; |
2366 | 0 | } |
2367 | 307 | break; |
2368 | 307 | } |
2369 | | |
2370 | 307 | default: { |
2371 | 307 | handle_unusual: |
2372 | 307 | if (tag == 0) { |
2373 | 307 | goto success; |
2374 | 307 | } |
2375 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2376 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2377 | 0 | break; |
2378 | 0 | } |
2379 | 1.23k | } |
2380 | 1.23k | } |
2381 | 307 | success: |
2382 | | // @@protoc_insertion_point(parse_success:yb.cdc.CreateCDCStreamRequestPB) |
2383 | 307 | return true; |
2384 | 0 | failure: |
2385 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CreateCDCStreamRequestPB) |
2386 | 0 | return false; |
2387 | 307 | #undef DO_ |
2388 | 307 | } |
2389 | | |
2390 | | void CreateCDCStreamRequestPB::SerializeWithCachedSizes( |
2391 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2392 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CreateCDCStreamRequestPB) |
2393 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2394 | 0 | (void) cached_has_bits; |
2395 | |
|
2396 | 0 | cached_has_bits = _has_bits_[0]; |
2397 | | // optional string table_id = 1; |
2398 | 0 | if (cached_has_bits & 0x00000001u) { |
2399 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2400 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2401 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2402 | 0 | "yb.cdc.CreateCDCStreamRequestPB.table_id"); |
2403 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2404 | 0 | 1, this->table_id(), output); |
2405 | 0 | } |
2406 | | |
2407 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
2408 | 0 | if (cached_has_bits & 0x00000004u) { |
2409 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2410 | 0 | 2, this->record_type(), output); |
2411 | 0 | } |
2412 | | |
2413 | | // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON]; |
2414 | 0 | if (cached_has_bits & 0x00000008u) { |
2415 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2416 | 0 | 3, this->record_format(), output); |
2417 | 0 | } |
2418 | | |
2419 | | // optional string namespace_name = 4; |
2420 | 0 | if (cached_has_bits & 0x00000002u) { |
2421 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2422 | 0 | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
2423 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2424 | 0 | "yb.cdc.CreateCDCStreamRequestPB.namespace_name"); |
2425 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2426 | 0 | 4, this->namespace_name(), output); |
2427 | 0 | } |
2428 | | |
2429 | | // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER]; |
2430 | 0 | if (cached_has_bits & 0x00000010u) { |
2431 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2432 | 0 | 5, this->source_type(), output); |
2433 | 0 | } |
2434 | | |
2435 | | // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT]; |
2436 | 0 | if (cached_has_bits & 0x00000020u) { |
2437 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2438 | 0 | 6, this->checkpoint_type(), output); |
2439 | 0 | } |
2440 | |
|
2441 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2442 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2443 | 0 | _internal_metadata_.unknown_fields(), output); |
2444 | 0 | } |
2445 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CreateCDCStreamRequestPB) |
2446 | 0 | } |
2447 | | |
2448 | | ::google::protobuf::uint8* CreateCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
2449 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2450 | 0 | (void)deterministic; // Unused |
2451 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CreateCDCStreamRequestPB) |
2452 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2453 | 0 | (void) cached_has_bits; |
2454 | |
|
2455 | 0 | cached_has_bits = _has_bits_[0]; |
2456 | | // optional string table_id = 1; |
2457 | 0 | if (cached_has_bits & 0x00000001u) { |
2458 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2459 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2460 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2461 | 0 | "yb.cdc.CreateCDCStreamRequestPB.table_id"); |
2462 | 0 | target = |
2463 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2464 | 0 | 1, this->table_id(), target); |
2465 | 0 | } |
2466 | | |
2467 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
2468 | 0 | if (cached_has_bits & 0x00000004u) { |
2469 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2470 | 0 | 2, this->record_type(), target); |
2471 | 0 | } |
2472 | | |
2473 | | // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON]; |
2474 | 0 | if (cached_has_bits & 0x00000008u) { |
2475 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2476 | 0 | 3, this->record_format(), target); |
2477 | 0 | } |
2478 | | |
2479 | | // optional string namespace_name = 4; |
2480 | 0 | if (cached_has_bits & 0x00000002u) { |
2481 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2482 | 0 | this->namespace_name().data(), static_cast<int>(this->namespace_name().length()), |
2483 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2484 | 0 | "yb.cdc.CreateCDCStreamRequestPB.namespace_name"); |
2485 | 0 | target = |
2486 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2487 | 0 | 4, this->namespace_name(), target); |
2488 | 0 | } |
2489 | | |
2490 | | // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER]; |
2491 | 0 | if (cached_has_bits & 0x00000010u) { |
2492 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2493 | 0 | 5, this->source_type(), target); |
2494 | 0 | } |
2495 | | |
2496 | | // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT]; |
2497 | 0 | if (cached_has_bits & 0x00000020u) { |
2498 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2499 | 0 | 6, this->checkpoint_type(), target); |
2500 | 0 | } |
2501 | |
|
2502 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2503 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2504 | 0 | _internal_metadata_.unknown_fields(), target); |
2505 | 0 | } |
2506 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CreateCDCStreamRequestPB) |
2507 | 0 | return target; |
2508 | 0 | } |
2509 | | |
2510 | 0 | size_t CreateCDCStreamRequestPB::ByteSizeLong() const { |
2511 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CreateCDCStreamRequestPB) |
2512 | 0 | size_t total_size = 0; |
2513 | |
|
2514 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2515 | 0 | total_size += |
2516 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2517 | 0 | _internal_metadata_.unknown_fields()); |
2518 | 0 | } |
2519 | 0 | if (_has_bits_[0 / 32] & 63u) { |
2520 | | // optional string table_id = 1; |
2521 | 0 | if (has_table_id()) { |
2522 | 0 | total_size += 1 + |
2523 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2524 | 0 | this->table_id()); |
2525 | 0 | } |
2526 | | |
2527 | | // optional string namespace_name = 4; |
2528 | 0 | if (has_namespace_name()) { |
2529 | 0 | total_size += 1 + |
2530 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2531 | 0 | this->namespace_name()); |
2532 | 0 | } |
2533 | | |
2534 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
2535 | 0 | if (has_record_type()) { |
2536 | 0 | total_size += 1 + |
2537 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_type()); |
2538 | 0 | } |
2539 | | |
2540 | | // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON]; |
2541 | 0 | if (has_record_format()) { |
2542 | 0 | total_size += 1 + |
2543 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_format()); |
2544 | 0 | } |
2545 | | |
2546 | | // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER]; |
2547 | 0 | if (has_source_type()) { |
2548 | 0 | total_size += 1 + |
2549 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->source_type()); |
2550 | 0 | } |
2551 | | |
2552 | | // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT]; |
2553 | 0 | if (has_checkpoint_type()) { |
2554 | 0 | total_size += 1 + |
2555 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->checkpoint_type()); |
2556 | 0 | } |
2557 | |
|
2558 | 0 | } |
2559 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2560 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2561 | 0 | _cached_size_ = cached_size; |
2562 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2563 | 0 | return total_size; |
2564 | 0 | } |
2565 | | |
2566 | 0 | void CreateCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2567 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CreateCDCStreamRequestPB) |
2568 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2569 | 0 | const CreateCDCStreamRequestPB* source = |
2570 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamRequestPB>( |
2571 | 0 | &from); |
2572 | 0 | if (source == NULL) { |
2573 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CreateCDCStreamRequestPB) |
2574 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2575 | 0 | } else { |
2576 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CreateCDCStreamRequestPB) |
2577 | 0 | MergeFrom(*source); |
2578 | 0 | } |
2579 | 0 | } |
2580 | | |
2581 | 0 | void CreateCDCStreamRequestPB::MergeFrom(const CreateCDCStreamRequestPB& from) { |
2582 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CreateCDCStreamRequestPB) |
2583 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2584 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2585 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2586 | 0 | (void) cached_has_bits; |
2587 | |
|
2588 | 0 | cached_has_bits = from._has_bits_[0]; |
2589 | 0 | if (cached_has_bits & 63u) { |
2590 | 0 | if (cached_has_bits & 0x00000001u) { |
2591 | 0 | set_has_table_id(); |
2592 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
2593 | 0 | } |
2594 | 0 | if (cached_has_bits & 0x00000002u) { |
2595 | 0 | set_has_namespace_name(); |
2596 | 0 | namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_); |
2597 | 0 | } |
2598 | 0 | if (cached_has_bits & 0x00000004u) { |
2599 | 0 | record_type_ = from.record_type_; |
2600 | 0 | } |
2601 | 0 | if (cached_has_bits & 0x00000008u) { |
2602 | 0 | record_format_ = from.record_format_; |
2603 | 0 | } |
2604 | 0 | if (cached_has_bits & 0x00000010u) { |
2605 | 0 | source_type_ = from.source_type_; |
2606 | 0 | } |
2607 | 0 | if (cached_has_bits & 0x00000020u) { |
2608 | 0 | checkpoint_type_ = from.checkpoint_type_; |
2609 | 0 | } |
2610 | 0 | _has_bits_[0] |= cached_has_bits; |
2611 | 0 | } |
2612 | 0 | } |
2613 | | |
2614 | 0 | void CreateCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2615 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CreateCDCStreamRequestPB) |
2616 | 0 | if (&from == this) return; |
2617 | 0 | Clear(); |
2618 | 0 | MergeFrom(from); |
2619 | 0 | } |
2620 | | |
2621 | 0 | void CreateCDCStreamRequestPB::CopyFrom(const CreateCDCStreamRequestPB& from) { |
2622 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CreateCDCStreamRequestPB) |
2623 | 0 | if (&from == this) return; |
2624 | 0 | Clear(); |
2625 | 0 | MergeFrom(from); |
2626 | 0 | } |
2627 | | |
2628 | 307 | bool CreateCDCStreamRequestPB::IsInitialized() const { |
2629 | 307 | return true; |
2630 | 307 | } |
2631 | | |
2632 | 0 | void CreateCDCStreamRequestPB::Swap(CreateCDCStreamRequestPB* other) { |
2633 | 0 | if (other == this) return; |
2634 | 0 | InternalSwap(other); |
2635 | 0 | } |
2636 | 0 | void CreateCDCStreamRequestPB::InternalSwap(CreateCDCStreamRequestPB* other) { |
2637 | 0 | using std::swap; |
2638 | 0 | table_id_.Swap(&other->table_id_); |
2639 | 0 | namespace_name_.Swap(&other->namespace_name_); |
2640 | 0 | swap(record_type_, other->record_type_); |
2641 | 0 | swap(record_format_, other->record_format_); |
2642 | 0 | swap(source_type_, other->source_type_); |
2643 | 0 | swap(checkpoint_type_, other->checkpoint_type_); |
2644 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2645 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2646 | 0 | swap(_cached_size_, other->_cached_size_); |
2647 | 0 | } |
2648 | | |
2649 | 307 | ::google::protobuf::Metadata CreateCDCStreamRequestPB::GetMetadata() const { |
2650 | 307 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
2651 | 307 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
2652 | 307 | } |
2653 | | |
2654 | | |
2655 | | // =================================================================== |
2656 | | |
2657 | 16.4k | void CreateCDCStreamResponsePB::InitAsDefaultInstance() { |
2658 | 16.4k | ::yb::cdc::_CreateCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
2659 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
2660 | 16.4k | } |
2661 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2662 | | const int CreateCDCStreamResponsePB::kErrorFieldNumber; |
2663 | | const int CreateCDCStreamResponsePB::kStreamIdFieldNumber; |
2664 | | const int CreateCDCStreamResponsePB::kDbStreamIdFieldNumber; |
2665 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2666 | | |
2667 | | CreateCDCStreamResponsePB::CreateCDCStreamResponsePB() |
2668 | 16.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2669 | 16.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2670 | 307 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamResponsePB(); |
2671 | 307 | } |
2672 | 16.7k | SharedCtor(); |
2673 | | // @@protoc_insertion_point(constructor:yb.cdc.CreateCDCStreamResponsePB) |
2674 | 16.7k | } |
2675 | | CreateCDCStreamResponsePB::CreateCDCStreamResponsePB(const CreateCDCStreamResponsePB& from) |
2676 | | : ::google::protobuf::Message(), |
2677 | | _internal_metadata_(NULL), |
2678 | | _has_bits_(from._has_bits_), |
2679 | 0 | _cached_size_(0) { |
2680 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2681 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2682 | 0 | if (from.has_stream_id()) { |
2683 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
2684 | 0 | } |
2685 | 0 | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2686 | 0 | if (from.has_db_stream_id()) { |
2687 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
2688 | 0 | } |
2689 | 0 | if (from.has_error()) { |
2690 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
2691 | 0 | } else { |
2692 | 0 | error_ = NULL; |
2693 | 0 | } |
2694 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CreateCDCStreamResponsePB) |
2695 | 0 | } |
2696 | | |
2697 | 16.7k | void CreateCDCStreamResponsePB::SharedCtor() { |
2698 | 16.7k | _cached_size_ = 0; |
2699 | 16.7k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2700 | 16.7k | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2701 | 16.7k | error_ = NULL; |
2702 | 16.7k | } |
2703 | | |
2704 | 307 | CreateCDCStreamResponsePB::~CreateCDCStreamResponsePB() { |
2705 | | // @@protoc_insertion_point(destructor:yb.cdc.CreateCDCStreamResponsePB) |
2706 | 307 | SharedDtor(); |
2707 | 307 | } |
2708 | | |
2709 | 307 | void CreateCDCStreamResponsePB::SharedDtor() { |
2710 | 307 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2711 | 307 | db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2712 | 307 | if (this != internal_default_instance()) delete error_; |
2713 | 307 | } |
2714 | | |
2715 | 0 | void CreateCDCStreamResponsePB::SetCachedSize(int size) const { |
2716 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2717 | 0 | _cached_size_ = size; |
2718 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2719 | 0 | } |
2720 | 0 | const ::google::protobuf::Descriptor* CreateCDCStreamResponsePB::descriptor() { |
2721 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
2722 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2723 | 0 | } |
2724 | | |
2725 | 0 | const CreateCDCStreamResponsePB& CreateCDCStreamResponsePB::default_instance() { |
2726 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamResponsePB(); |
2727 | 0 | return *internal_default_instance(); |
2728 | 0 | } |
2729 | | |
2730 | 0 | CreateCDCStreamResponsePB* CreateCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
2731 | 0 | CreateCDCStreamResponsePB* n = new CreateCDCStreamResponsePB; |
2732 | 0 | if (arena != NULL) { |
2733 | 0 | arena->Own(n); |
2734 | 0 | } |
2735 | 0 | return n; |
2736 | 0 | } |
2737 | | |
2738 | 0 | void CreateCDCStreamResponsePB::Clear() { |
2739 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CreateCDCStreamResponsePB) |
2740 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2741 | | // Prevent compiler warnings about cached_has_bits being unused |
2742 | 0 | (void) cached_has_bits; |
2743 | |
|
2744 | 0 | cached_has_bits = _has_bits_[0]; |
2745 | 0 | if (cached_has_bits & 7u) { |
2746 | 0 | if (cached_has_bits & 0x00000001u) { |
2747 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2748 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
2749 | 0 | } |
2750 | 0 | if (cached_has_bits & 0x00000002u) { |
2751 | 0 | GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2752 | 0 | (*db_stream_id_.UnsafeRawStringPointer())->clear(); |
2753 | 0 | } |
2754 | 0 | if (cached_has_bits & 0x00000004u) { |
2755 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2756 | 0 | error_->Clear(); |
2757 | 0 | } |
2758 | 0 | } |
2759 | 0 | _has_bits_.Clear(); |
2760 | 0 | _internal_metadata_.Clear(); |
2761 | 0 | } |
2762 | | |
2763 | | bool CreateCDCStreamResponsePB::MergePartialFromCodedStream( |
2764 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2765 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2766 | 0 | ::google::protobuf::uint32 tag; |
2767 | | // @@protoc_insertion_point(parse_start:yb.cdc.CreateCDCStreamResponsePB) |
2768 | 0 | for (;;) { |
2769 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2770 | 0 | tag = p.first; |
2771 | 0 | if (!p.second) goto handle_unusual; |
2772 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2773 | | // optional .yb.cdc.CDCErrorPB error = 1; |
2774 | 0 | case 1: { |
2775 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2776 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2777 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2778 | 0 | input, mutable_error())); |
2779 | 0 | } else { |
2780 | 0 | goto handle_unusual; |
2781 | 0 | } |
2782 | 0 | break; |
2783 | 0 | } |
2784 | | |
2785 | | // optional bytes stream_id = 2; |
2786 | 0 | case 2: { |
2787 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2788 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2789 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2790 | 0 | input, this->mutable_stream_id())); |
2791 | 0 | } else { |
2792 | 0 | goto handle_unusual; |
2793 | 0 | } |
2794 | 0 | break; |
2795 | 0 | } |
2796 | | |
2797 | | // optional bytes db_stream_id = 3; |
2798 | 0 | case 3: { |
2799 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2800 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2801 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2802 | 0 | input, this->mutable_db_stream_id())); |
2803 | 0 | } else { |
2804 | 0 | goto handle_unusual; |
2805 | 0 | } |
2806 | 0 | break; |
2807 | 0 | } |
2808 | | |
2809 | 0 | default: { |
2810 | 0 | handle_unusual: |
2811 | 0 | if (tag == 0) { |
2812 | 0 | goto success; |
2813 | 0 | } |
2814 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2815 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2816 | 0 | break; |
2817 | 0 | } |
2818 | 0 | } |
2819 | 0 | } |
2820 | 0 | success: |
2821 | | // @@protoc_insertion_point(parse_success:yb.cdc.CreateCDCStreamResponsePB) |
2822 | 0 | return true; |
2823 | 0 | failure: |
2824 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CreateCDCStreamResponsePB) |
2825 | 0 | return false; |
2826 | 0 | #undef DO_ |
2827 | 0 | } |
2828 | | |
2829 | | void CreateCDCStreamResponsePB::SerializeWithCachedSizes( |
2830 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2831 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CreateCDCStreamResponsePB) |
2832 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2833 | 0 | (void) cached_has_bits; |
2834 | |
|
2835 | 0 | cached_has_bits = _has_bits_[0]; |
2836 | | // optional .yb.cdc.CDCErrorPB error = 1; |
2837 | 0 | if (cached_has_bits & 0x00000004u) { |
2838 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2839 | 0 | 1, *this->error_, output); |
2840 | 0 | } |
2841 | | |
2842 | | // optional bytes stream_id = 2; |
2843 | 0 | if (cached_has_bits & 0x00000001u) { |
2844 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2845 | 0 | 2, this->stream_id(), output); |
2846 | 0 | } |
2847 | | |
2848 | | // optional bytes db_stream_id = 3; |
2849 | 0 | if (cached_has_bits & 0x00000002u) { |
2850 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2851 | 0 | 3, this->db_stream_id(), output); |
2852 | 0 | } |
2853 | |
|
2854 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2855 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2856 | 0 | _internal_metadata_.unknown_fields(), output); |
2857 | 0 | } |
2858 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CreateCDCStreamResponsePB) |
2859 | 0 | } |
2860 | | |
2861 | | ::google::protobuf::uint8* CreateCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
2862 | 307 | bool deterministic, ::google::protobuf::uint8* target) const { |
2863 | 307 | (void)deterministic; // Unused |
2864 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CreateCDCStreamResponsePB) |
2865 | 307 | ::google::protobuf::uint32 cached_has_bits = 0; |
2866 | 307 | (void) cached_has_bits; |
2867 | | |
2868 | 307 | cached_has_bits = _has_bits_[0]; |
2869 | | // optional .yb.cdc.CDCErrorPB error = 1; |
2870 | 307 | if (cached_has_bits & 0x00000004u) { |
2871 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
2872 | 1 | InternalWriteMessageToArray( |
2873 | 1 | 1, *this->error_, deterministic, target); |
2874 | 1 | } |
2875 | | |
2876 | | // optional bytes stream_id = 2; |
2877 | 307 | if (cached_has_bits & 0x00000001u) { |
2878 | 0 | target = |
2879 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2880 | 0 | 2, this->stream_id(), target); |
2881 | 0 | } |
2882 | | |
2883 | | // optional bytes db_stream_id = 3; |
2884 | 307 | if (cached_has_bits & 0x00000002u) { |
2885 | 306 | target = |
2886 | 306 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2887 | 306 | 3, this->db_stream_id(), target); |
2888 | 306 | } |
2889 | | |
2890 | 307 | if (_internal_metadata_.have_unknown_fields()) { |
2891 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2892 | 0 | _internal_metadata_.unknown_fields(), target); |
2893 | 0 | } |
2894 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CreateCDCStreamResponsePB) |
2895 | 307 | return target; |
2896 | 307 | } |
2897 | | |
2898 | 614 | size_t CreateCDCStreamResponsePB::ByteSizeLong() const { |
2899 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CreateCDCStreamResponsePB) |
2900 | 614 | size_t total_size = 0; |
2901 | | |
2902 | 614 | if (_internal_metadata_.have_unknown_fields()) { |
2903 | 0 | total_size += |
2904 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2905 | 0 | _internal_metadata_.unknown_fields()); |
2906 | 0 | } |
2907 | 614 | if (_has_bits_[0 / 32] & 7u) { |
2908 | | // optional bytes stream_id = 2; |
2909 | 614 | if (has_stream_id()) { |
2910 | 0 | total_size += 1 + |
2911 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2912 | 0 | this->stream_id()); |
2913 | 0 | } |
2914 | | |
2915 | | // optional bytes db_stream_id = 3; |
2916 | 614 | if (has_db_stream_id()) { |
2917 | 612 | total_size += 1 + |
2918 | 612 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2919 | 612 | this->db_stream_id()); |
2920 | 612 | } |
2921 | | |
2922 | | // optional .yb.cdc.CDCErrorPB error = 1; |
2923 | 614 | if (has_error()) { |
2924 | 2 | total_size += 1 + |
2925 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2926 | 2 | *this->error_); |
2927 | 2 | } |
2928 | | |
2929 | 614 | } |
2930 | 614 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2931 | 614 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2932 | 614 | _cached_size_ = cached_size; |
2933 | 614 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2934 | 614 | return total_size; |
2935 | 614 | } |
2936 | | |
2937 | 0 | void CreateCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2938 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CreateCDCStreamResponsePB) |
2939 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2940 | 0 | const CreateCDCStreamResponsePB* source = |
2941 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamResponsePB>( |
2942 | 0 | &from); |
2943 | 0 | if (source == NULL) { |
2944 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CreateCDCStreamResponsePB) |
2945 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2946 | 0 | } else { |
2947 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CreateCDCStreamResponsePB) |
2948 | 0 | MergeFrom(*source); |
2949 | 0 | } |
2950 | 0 | } |
2951 | | |
2952 | 0 | void CreateCDCStreamResponsePB::MergeFrom(const CreateCDCStreamResponsePB& from) { |
2953 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CreateCDCStreamResponsePB) |
2954 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2955 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2956 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2957 | 0 | (void) cached_has_bits; |
2958 | |
|
2959 | 0 | cached_has_bits = from._has_bits_[0]; |
2960 | 0 | if (cached_has_bits & 7u) { |
2961 | 0 | if (cached_has_bits & 0x00000001u) { |
2962 | 0 | set_has_stream_id(); |
2963 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
2964 | 0 | } |
2965 | 0 | if (cached_has_bits & 0x00000002u) { |
2966 | 0 | set_has_db_stream_id(); |
2967 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
2968 | 0 | } |
2969 | 0 | if (cached_has_bits & 0x00000004u) { |
2970 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
2971 | 0 | } |
2972 | 0 | } |
2973 | 0 | } |
2974 | | |
2975 | 0 | void CreateCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
2976 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CreateCDCStreamResponsePB) |
2977 | 0 | if (&from == this) return; |
2978 | 0 | Clear(); |
2979 | 0 | MergeFrom(from); |
2980 | 0 | } |
2981 | | |
2982 | 0 | void CreateCDCStreamResponsePB::CopyFrom(const CreateCDCStreamResponsePB& from) { |
2983 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CreateCDCStreamResponsePB) |
2984 | 0 | if (&from == this) return; |
2985 | 0 | Clear(); |
2986 | 0 | MergeFrom(from); |
2987 | 0 | } |
2988 | | |
2989 | 307 | bool CreateCDCStreamResponsePB::IsInitialized() const { |
2990 | 307 | if (has_error()) { |
2991 | 1 | if (!this->error_->IsInitialized()) return false0 ; |
2992 | 1 | } |
2993 | 307 | return true; |
2994 | 307 | } |
2995 | | |
2996 | 0 | void CreateCDCStreamResponsePB::Swap(CreateCDCStreamResponsePB* other) { |
2997 | 0 | if (other == this) return; |
2998 | 0 | InternalSwap(other); |
2999 | 0 | } |
3000 | 0 | void CreateCDCStreamResponsePB::InternalSwap(CreateCDCStreamResponsePB* other) { |
3001 | 0 | using std::swap; |
3002 | 0 | stream_id_.Swap(&other->stream_id_); |
3003 | 0 | db_stream_id_.Swap(&other->db_stream_id_); |
3004 | 0 | swap(error_, other->error_); |
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 | 0 | ::google::protobuf::Metadata CreateCDCStreamResponsePB::GetMetadata() const { |
3011 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3012 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
3013 | 0 | } |
3014 | | |
3015 | | |
3016 | | // =================================================================== |
3017 | | |
3018 | 16.4k | void DeleteCDCStreamRequestPB::InitAsDefaultInstance() { |
3019 | 16.4k | } |
3020 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3021 | | const int DeleteCDCStreamRequestPB::kStreamIdFieldNumber; |
3022 | | const int DeleteCDCStreamRequestPB::kIgnoreErrorsFieldNumber; |
3023 | | const int DeleteCDCStreamRequestPB::kForceDeleteFieldNumber; |
3024 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3025 | | |
3026 | | DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB() |
3027 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3028 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3029 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamRequestPB(); |
3030 | 0 | } |
3031 | 16.4k | SharedCtor(); |
3032 | | // @@protoc_insertion_point(constructor:yb.cdc.DeleteCDCStreamRequestPB) |
3033 | 16.4k | } |
3034 | | DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB(const DeleteCDCStreamRequestPB& from) |
3035 | | : ::google::protobuf::Message(), |
3036 | | _internal_metadata_(NULL), |
3037 | | _has_bits_(from._has_bits_), |
3038 | | _cached_size_(0), |
3039 | 0 | stream_id_(from.stream_id_) { |
3040 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3041 | 0 | ::memcpy(&ignore_errors_, &from.ignore_errors_, |
3042 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&force_delete_) - |
3043 | 0 | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3044 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.DeleteCDCStreamRequestPB) |
3045 | 0 | } |
3046 | | |
3047 | 16.4k | void DeleteCDCStreamRequestPB::SharedCtor() { |
3048 | 16.4k | _cached_size_ = 0; |
3049 | 16.4k | ::memset(&ignore_errors_, 0, static_cast<size_t>( |
3050 | 16.4k | reinterpret_cast<char*>(&force_delete_) - |
3051 | 16.4k | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3052 | 16.4k | } |
3053 | | |
3054 | 0 | DeleteCDCStreamRequestPB::~DeleteCDCStreamRequestPB() { |
3055 | | // @@protoc_insertion_point(destructor:yb.cdc.DeleteCDCStreamRequestPB) |
3056 | 0 | SharedDtor(); |
3057 | 0 | } |
3058 | | |
3059 | 0 | void DeleteCDCStreamRequestPB::SharedDtor() { |
3060 | 0 | } |
3061 | | |
3062 | 0 | void DeleteCDCStreamRequestPB::SetCachedSize(int size) const { |
3063 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3064 | 0 | _cached_size_ = size; |
3065 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3066 | 0 | } |
3067 | 0 | const ::google::protobuf::Descriptor* DeleteCDCStreamRequestPB::descriptor() { |
3068 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3069 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3070 | 0 | } |
3071 | | |
3072 | 0 | const DeleteCDCStreamRequestPB& DeleteCDCStreamRequestPB::default_instance() { |
3073 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamRequestPB(); |
3074 | 0 | return *internal_default_instance(); |
3075 | 0 | } |
3076 | | |
3077 | 0 | DeleteCDCStreamRequestPB* DeleteCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
3078 | 0 | DeleteCDCStreamRequestPB* n = new DeleteCDCStreamRequestPB; |
3079 | 0 | if (arena != NULL) { |
3080 | 0 | arena->Own(n); |
3081 | 0 | } |
3082 | 0 | return n; |
3083 | 0 | } |
3084 | | |
3085 | 0 | void DeleteCDCStreamRequestPB::Clear() { |
3086 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.DeleteCDCStreamRequestPB) |
3087 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3088 | | // Prevent compiler warnings about cached_has_bits being unused |
3089 | 0 | (void) cached_has_bits; |
3090 | |
|
3091 | 0 | stream_id_.Clear(); |
3092 | 0 | ::memset(&ignore_errors_, 0, static_cast<size_t>( |
3093 | 0 | reinterpret_cast<char*>(&force_delete_) - |
3094 | 0 | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3095 | 0 | _has_bits_.Clear(); |
3096 | 0 | _internal_metadata_.Clear(); |
3097 | 0 | } |
3098 | | |
3099 | | bool DeleteCDCStreamRequestPB::MergePartialFromCodedStream( |
3100 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3101 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3102 | 0 | ::google::protobuf::uint32 tag; |
3103 | | // @@protoc_insertion_point(parse_start:yb.cdc.DeleteCDCStreamRequestPB) |
3104 | 0 | for (;;) { |
3105 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3106 | 0 | tag = p.first; |
3107 | 0 | if (!p.second) goto handle_unusual; |
3108 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3109 | | // repeated bytes stream_id = 1; |
3110 | 0 | case 1: { |
3111 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3112 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3113 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3114 | 0 | input, this->add_stream_id())); |
3115 | 0 | } else { |
3116 | 0 | goto handle_unusual; |
3117 | 0 | } |
3118 | 0 | break; |
3119 | 0 | } |
3120 | | |
3121 | | // optional bool ignore_errors = 2 [default = false]; |
3122 | 0 | case 2: { |
3123 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3124 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3125 | 0 | set_has_ignore_errors(); |
3126 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3127 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3128 | 0 | input, &ignore_errors_))); |
3129 | 0 | } else { |
3130 | 0 | goto handle_unusual; |
3131 | 0 | } |
3132 | 0 | break; |
3133 | 0 | } |
3134 | | |
3135 | | // optional bool force_delete = 3 [default = false]; |
3136 | 0 | case 3: { |
3137 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3138 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
3139 | 0 | set_has_force_delete(); |
3140 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3141 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3142 | 0 | input, &force_delete_))); |
3143 | 0 | } else { |
3144 | 0 | goto handle_unusual; |
3145 | 0 | } |
3146 | 0 | break; |
3147 | 0 | } |
3148 | | |
3149 | 0 | default: { |
3150 | 0 | handle_unusual: |
3151 | 0 | if (tag == 0) { |
3152 | 0 | goto success; |
3153 | 0 | } |
3154 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3155 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3156 | 0 | break; |
3157 | 0 | } |
3158 | 0 | } |
3159 | 0 | } |
3160 | 0 | success: |
3161 | | // @@protoc_insertion_point(parse_success:yb.cdc.DeleteCDCStreamRequestPB) |
3162 | 0 | return true; |
3163 | 0 | failure: |
3164 | | // @@protoc_insertion_point(parse_failure:yb.cdc.DeleteCDCStreamRequestPB) |
3165 | 0 | return false; |
3166 | 0 | #undef DO_ |
3167 | 0 | } |
3168 | | |
3169 | | void DeleteCDCStreamRequestPB::SerializeWithCachedSizes( |
3170 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3171 | | // @@protoc_insertion_point(serialize_start:yb.cdc.DeleteCDCStreamRequestPB) |
3172 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3173 | 0 | (void) cached_has_bits; |
3174 | | |
3175 | | // repeated bytes stream_id = 1; |
3176 | 0 | for (int i = 0, n = this->stream_id_size(); i < n; i++) { |
3177 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
3178 | 0 | 1, this->stream_id(i), output); |
3179 | 0 | } |
3180 | |
|
3181 | 0 | cached_has_bits = _has_bits_[0]; |
3182 | | // optional bool ignore_errors = 2 [default = false]; |
3183 | 0 | if (cached_has_bits & 0x00000001u) { |
3184 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ignore_errors(), output); |
3185 | 0 | } |
3186 | | |
3187 | | // optional bool force_delete = 3 [default = false]; |
3188 | 0 | if (cached_has_bits & 0x00000002u) { |
3189 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->force_delete(), output); |
3190 | 0 | } |
3191 | |
|
3192 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3193 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3194 | 0 | _internal_metadata_.unknown_fields(), output); |
3195 | 0 | } |
3196 | | // @@protoc_insertion_point(serialize_end:yb.cdc.DeleteCDCStreamRequestPB) |
3197 | 0 | } |
3198 | | |
3199 | | ::google::protobuf::uint8* DeleteCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
3200 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3201 | 0 | (void)deterministic; // Unused |
3202 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.DeleteCDCStreamRequestPB) |
3203 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3204 | 0 | (void) cached_has_bits; |
3205 | | |
3206 | | // repeated bytes stream_id = 1; |
3207 | 0 | for (int i = 0, n = this->stream_id_size(); i < n; i++) { |
3208 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3209 | 0 | WriteBytesToArray(1, this->stream_id(i), target); |
3210 | 0 | } |
3211 | |
|
3212 | 0 | cached_has_bits = _has_bits_[0]; |
3213 | | // optional bool ignore_errors = 2 [default = false]; |
3214 | 0 | if (cached_has_bits & 0x00000001u) { |
3215 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ignore_errors(), target); |
3216 | 0 | } |
3217 | | |
3218 | | // optional bool force_delete = 3 [default = false]; |
3219 | 0 | if (cached_has_bits & 0x00000002u) { |
3220 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->force_delete(), target); |
3221 | 0 | } |
3222 | |
|
3223 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3224 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3225 | 0 | _internal_metadata_.unknown_fields(), target); |
3226 | 0 | } |
3227 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.DeleteCDCStreamRequestPB) |
3228 | 0 | return target; |
3229 | 0 | } |
3230 | | |
3231 | 0 | size_t DeleteCDCStreamRequestPB::ByteSizeLong() const { |
3232 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.DeleteCDCStreamRequestPB) |
3233 | 0 | size_t total_size = 0; |
3234 | |
|
3235 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3236 | 0 | total_size += |
3237 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3238 | 0 | _internal_metadata_.unknown_fields()); |
3239 | 0 | } |
3240 | | // repeated bytes stream_id = 1; |
3241 | 0 | total_size += 1 * |
3242 | 0 | ::google::protobuf::internal::FromIntSize(this->stream_id_size()); |
3243 | 0 | for (int i = 0, n = this->stream_id_size(); i < n; i++) { |
3244 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3245 | 0 | this->stream_id(i)); |
3246 | 0 | } |
3247 | |
|
3248 | 0 | if (_has_bits_[0 / 32] & 3u) { |
3249 | | // optional bool ignore_errors = 2 [default = false]; |
3250 | 0 | if (has_ignore_errors()) { |
3251 | 0 | total_size += 1 + 1; |
3252 | 0 | } |
3253 | | |
3254 | | // optional bool force_delete = 3 [default = false]; |
3255 | 0 | if (has_force_delete()) { |
3256 | 0 | total_size += 1 + 1; |
3257 | 0 | } |
3258 | |
|
3259 | 0 | } |
3260 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3261 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3262 | 0 | _cached_size_ = cached_size; |
3263 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3264 | 0 | return total_size; |
3265 | 0 | } |
3266 | | |
3267 | 0 | void DeleteCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3268 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.DeleteCDCStreamRequestPB) |
3269 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3270 | 0 | const DeleteCDCStreamRequestPB* source = |
3271 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamRequestPB>( |
3272 | 0 | &from); |
3273 | 0 | if (source == NULL) { |
3274 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.DeleteCDCStreamRequestPB) |
3275 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3276 | 0 | } else { |
3277 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.DeleteCDCStreamRequestPB) |
3278 | 0 | MergeFrom(*source); |
3279 | 0 | } |
3280 | 0 | } |
3281 | | |
3282 | 0 | void DeleteCDCStreamRequestPB::MergeFrom(const DeleteCDCStreamRequestPB& from) { |
3283 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.DeleteCDCStreamRequestPB) |
3284 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3285 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3286 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3287 | 0 | (void) cached_has_bits; |
3288 | |
|
3289 | 0 | stream_id_.MergeFrom(from.stream_id_); |
3290 | 0 | cached_has_bits = from._has_bits_[0]; |
3291 | 0 | if (cached_has_bits & 3u) { |
3292 | 0 | if (cached_has_bits & 0x00000001u) { |
3293 | 0 | ignore_errors_ = from.ignore_errors_; |
3294 | 0 | } |
3295 | 0 | if (cached_has_bits & 0x00000002u) { |
3296 | 0 | force_delete_ = from.force_delete_; |
3297 | 0 | } |
3298 | 0 | _has_bits_[0] |= cached_has_bits; |
3299 | 0 | } |
3300 | 0 | } |
3301 | | |
3302 | 0 | void DeleteCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3303 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.DeleteCDCStreamRequestPB) |
3304 | 0 | if (&from == this) return; |
3305 | 0 | Clear(); |
3306 | 0 | MergeFrom(from); |
3307 | 0 | } |
3308 | | |
3309 | 0 | void DeleteCDCStreamRequestPB::CopyFrom(const DeleteCDCStreamRequestPB& from) { |
3310 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.DeleteCDCStreamRequestPB) |
3311 | 0 | if (&from == this) return; |
3312 | 0 | Clear(); |
3313 | 0 | MergeFrom(from); |
3314 | 0 | } |
3315 | | |
3316 | 0 | bool DeleteCDCStreamRequestPB::IsInitialized() const { |
3317 | 0 | return true; |
3318 | 0 | } |
3319 | | |
3320 | 0 | void DeleteCDCStreamRequestPB::Swap(DeleteCDCStreamRequestPB* other) { |
3321 | 0 | if (other == this) return; |
3322 | 0 | InternalSwap(other); |
3323 | 0 | } |
3324 | 0 | void DeleteCDCStreamRequestPB::InternalSwap(DeleteCDCStreamRequestPB* other) { |
3325 | 0 | using std::swap; |
3326 | 0 | stream_id_.InternalSwap(&other->stream_id_); |
3327 | 0 | swap(ignore_errors_, other->ignore_errors_); |
3328 | 0 | swap(force_delete_, other->force_delete_); |
3329 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3330 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3331 | 0 | swap(_cached_size_, other->_cached_size_); |
3332 | 0 | } |
3333 | | |
3334 | 0 | ::google::protobuf::Metadata DeleteCDCStreamRequestPB::GetMetadata() const { |
3335 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3336 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
3337 | 0 | } |
3338 | | |
3339 | | |
3340 | | // =================================================================== |
3341 | | |
3342 | 16.4k | void DeleteCDCStreamResponsePB::InitAsDefaultInstance() { |
3343 | 16.4k | ::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
3344 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
3345 | 16.4k | } |
3346 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3347 | | const int DeleteCDCStreamResponsePB::kErrorFieldNumber; |
3348 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3349 | | |
3350 | | DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB() |
3351 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3352 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3353 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamResponsePB(); |
3354 | 0 | } |
3355 | 16.4k | SharedCtor(); |
3356 | | // @@protoc_insertion_point(constructor:yb.cdc.DeleteCDCStreamResponsePB) |
3357 | 16.4k | } |
3358 | | DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB(const DeleteCDCStreamResponsePB& from) |
3359 | | : ::google::protobuf::Message(), |
3360 | | _internal_metadata_(NULL), |
3361 | | _has_bits_(from._has_bits_), |
3362 | 0 | _cached_size_(0) { |
3363 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3364 | 0 | if (from.has_error()) { |
3365 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
3366 | 0 | } else { |
3367 | 0 | error_ = NULL; |
3368 | 0 | } |
3369 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.DeleteCDCStreamResponsePB) |
3370 | 0 | } |
3371 | | |
3372 | 16.4k | void DeleteCDCStreamResponsePB::SharedCtor() { |
3373 | 16.4k | _cached_size_ = 0; |
3374 | 16.4k | error_ = NULL; |
3375 | 16.4k | } |
3376 | | |
3377 | 0 | DeleteCDCStreamResponsePB::~DeleteCDCStreamResponsePB() { |
3378 | | // @@protoc_insertion_point(destructor:yb.cdc.DeleteCDCStreamResponsePB) |
3379 | 0 | SharedDtor(); |
3380 | 0 | } |
3381 | | |
3382 | 0 | void DeleteCDCStreamResponsePB::SharedDtor() { |
3383 | 0 | if (this != internal_default_instance()) delete error_; |
3384 | 0 | } |
3385 | | |
3386 | 0 | void DeleteCDCStreamResponsePB::SetCachedSize(int size) const { |
3387 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3388 | 0 | _cached_size_ = size; |
3389 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3390 | 0 | } |
3391 | 0 | const ::google::protobuf::Descriptor* DeleteCDCStreamResponsePB::descriptor() { |
3392 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3393 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3394 | 0 | } |
3395 | | |
3396 | 0 | const DeleteCDCStreamResponsePB& DeleteCDCStreamResponsePB::default_instance() { |
3397 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamResponsePB(); |
3398 | 0 | return *internal_default_instance(); |
3399 | 0 | } |
3400 | | |
3401 | 0 | DeleteCDCStreamResponsePB* DeleteCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
3402 | 0 | DeleteCDCStreamResponsePB* n = new DeleteCDCStreamResponsePB; |
3403 | 0 | if (arena != NULL) { |
3404 | 0 | arena->Own(n); |
3405 | 0 | } |
3406 | 0 | return n; |
3407 | 0 | } |
3408 | | |
3409 | 0 | void DeleteCDCStreamResponsePB::Clear() { |
3410 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.DeleteCDCStreamResponsePB) |
3411 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3412 | | // Prevent compiler warnings about cached_has_bits being unused |
3413 | 0 | (void) cached_has_bits; |
3414 | |
|
3415 | 0 | cached_has_bits = _has_bits_[0]; |
3416 | 0 | if (cached_has_bits & 0x00000001u) { |
3417 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3418 | 0 | error_->Clear(); |
3419 | 0 | } |
3420 | 0 | _has_bits_.Clear(); |
3421 | 0 | _internal_metadata_.Clear(); |
3422 | 0 | } |
3423 | | |
3424 | | bool DeleteCDCStreamResponsePB::MergePartialFromCodedStream( |
3425 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3426 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3427 | 0 | ::google::protobuf::uint32 tag; |
3428 | | // @@protoc_insertion_point(parse_start:yb.cdc.DeleteCDCStreamResponsePB) |
3429 | 0 | for (;;) { |
3430 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3431 | 0 | tag = p.first; |
3432 | 0 | if (!p.second) goto handle_unusual; |
3433 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3434 | | // optional .yb.cdc.CDCErrorPB error = 1; |
3435 | 0 | case 1: { |
3436 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3437 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3438 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3439 | 0 | input, mutable_error())); |
3440 | 0 | } else { |
3441 | 0 | goto handle_unusual; |
3442 | 0 | } |
3443 | 0 | break; |
3444 | 0 | } |
3445 | | |
3446 | 0 | default: { |
3447 | 0 | handle_unusual: |
3448 | 0 | if (tag == 0) { |
3449 | 0 | goto success; |
3450 | 0 | } |
3451 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3452 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3453 | 0 | break; |
3454 | 0 | } |
3455 | 0 | } |
3456 | 0 | } |
3457 | 0 | success: |
3458 | | // @@protoc_insertion_point(parse_success:yb.cdc.DeleteCDCStreamResponsePB) |
3459 | 0 | return true; |
3460 | 0 | failure: |
3461 | | // @@protoc_insertion_point(parse_failure:yb.cdc.DeleteCDCStreamResponsePB) |
3462 | 0 | return false; |
3463 | 0 | #undef DO_ |
3464 | 0 | } |
3465 | | |
3466 | | void DeleteCDCStreamResponsePB::SerializeWithCachedSizes( |
3467 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3468 | | // @@protoc_insertion_point(serialize_start:yb.cdc.DeleteCDCStreamResponsePB) |
3469 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3470 | 0 | (void) cached_has_bits; |
3471 | |
|
3472 | 0 | cached_has_bits = _has_bits_[0]; |
3473 | | // optional .yb.cdc.CDCErrorPB error = 1; |
3474 | 0 | if (cached_has_bits & 0x00000001u) { |
3475 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3476 | 0 | 1, *this->error_, output); |
3477 | 0 | } |
3478 | |
|
3479 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3480 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3481 | 0 | _internal_metadata_.unknown_fields(), output); |
3482 | 0 | } |
3483 | | // @@protoc_insertion_point(serialize_end:yb.cdc.DeleteCDCStreamResponsePB) |
3484 | 0 | } |
3485 | | |
3486 | | ::google::protobuf::uint8* DeleteCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
3487 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3488 | 0 | (void)deterministic; // Unused |
3489 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.DeleteCDCStreamResponsePB) |
3490 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3491 | 0 | (void) cached_has_bits; |
3492 | |
|
3493 | 0 | cached_has_bits = _has_bits_[0]; |
3494 | | // optional .yb.cdc.CDCErrorPB error = 1; |
3495 | 0 | if (cached_has_bits & 0x00000001u) { |
3496 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3497 | 0 | InternalWriteMessageToArray( |
3498 | 0 | 1, *this->error_, deterministic, target); |
3499 | 0 | } |
3500 | |
|
3501 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3502 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3503 | 0 | _internal_metadata_.unknown_fields(), target); |
3504 | 0 | } |
3505 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.DeleteCDCStreamResponsePB) |
3506 | 0 | return target; |
3507 | 0 | } |
3508 | | |
3509 | 0 | size_t DeleteCDCStreamResponsePB::ByteSizeLong() const { |
3510 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.DeleteCDCStreamResponsePB) |
3511 | 0 | size_t total_size = 0; |
3512 | |
|
3513 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3514 | 0 | total_size += |
3515 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3516 | 0 | _internal_metadata_.unknown_fields()); |
3517 | 0 | } |
3518 | | // optional .yb.cdc.CDCErrorPB error = 1; |
3519 | 0 | if (has_error()) { |
3520 | 0 | total_size += 1 + |
3521 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3522 | 0 | *this->error_); |
3523 | 0 | } |
3524 | |
|
3525 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3526 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3527 | 0 | _cached_size_ = cached_size; |
3528 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3529 | 0 | return total_size; |
3530 | 0 | } |
3531 | | |
3532 | 0 | void DeleteCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
3533 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.DeleteCDCStreamResponsePB) |
3534 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3535 | 0 | const DeleteCDCStreamResponsePB* source = |
3536 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamResponsePB>( |
3537 | 0 | &from); |
3538 | 0 | if (source == NULL) { |
3539 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.DeleteCDCStreamResponsePB) |
3540 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3541 | 0 | } else { |
3542 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.DeleteCDCStreamResponsePB) |
3543 | 0 | MergeFrom(*source); |
3544 | 0 | } |
3545 | 0 | } |
3546 | | |
3547 | 0 | void DeleteCDCStreamResponsePB::MergeFrom(const DeleteCDCStreamResponsePB& from) { |
3548 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.DeleteCDCStreamResponsePB) |
3549 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3550 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3551 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3552 | 0 | (void) cached_has_bits; |
3553 | |
|
3554 | 0 | if (from.has_error()) { |
3555 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
3556 | 0 | } |
3557 | 0 | } |
3558 | | |
3559 | 0 | void DeleteCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
3560 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.DeleteCDCStreamResponsePB) |
3561 | 0 | if (&from == this) return; |
3562 | 0 | Clear(); |
3563 | 0 | MergeFrom(from); |
3564 | 0 | } |
3565 | | |
3566 | 0 | void DeleteCDCStreamResponsePB::CopyFrom(const DeleteCDCStreamResponsePB& from) { |
3567 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.DeleteCDCStreamResponsePB) |
3568 | 0 | if (&from == this) return; |
3569 | 0 | Clear(); |
3570 | 0 | MergeFrom(from); |
3571 | 0 | } |
3572 | | |
3573 | 0 | bool DeleteCDCStreamResponsePB::IsInitialized() const { |
3574 | 0 | if (has_error()) { |
3575 | 0 | if (!this->error_->IsInitialized()) return false; |
3576 | 0 | } |
3577 | 0 | return true; |
3578 | 0 | } |
3579 | | |
3580 | 0 | void DeleteCDCStreamResponsePB::Swap(DeleteCDCStreamResponsePB* other) { |
3581 | 0 | if (other == this) return; |
3582 | 0 | InternalSwap(other); |
3583 | 0 | } |
3584 | 0 | void DeleteCDCStreamResponsePB::InternalSwap(DeleteCDCStreamResponsePB* other) { |
3585 | 0 | using std::swap; |
3586 | 0 | swap(error_, other->error_); |
3587 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3588 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3589 | 0 | swap(_cached_size_, other->_cached_size_); |
3590 | 0 | } |
3591 | | |
3592 | 0 | ::google::protobuf::Metadata DeleteCDCStreamResponsePB::GetMetadata() const { |
3593 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3594 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
3595 | 0 | } |
3596 | | |
3597 | | |
3598 | | // =================================================================== |
3599 | | |
3600 | 16.4k | void ListTabletsRequestPB::InitAsDefaultInstance() { |
3601 | 16.4k | } |
3602 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3603 | | const int ListTabletsRequestPB::kStreamIdFieldNumber; |
3604 | | const int ListTabletsRequestPB::kLocalOnlyFieldNumber; |
3605 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3606 | | |
3607 | | ListTabletsRequestPB::ListTabletsRequestPB() |
3608 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3609 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3610 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsRequestPB(); |
3611 | 0 | } |
3612 | 16.4k | SharedCtor(); |
3613 | | // @@protoc_insertion_point(constructor:yb.cdc.ListTabletsRequestPB) |
3614 | 16.4k | } |
3615 | | ListTabletsRequestPB::ListTabletsRequestPB(const ListTabletsRequestPB& from) |
3616 | | : ::google::protobuf::Message(), |
3617 | | _internal_metadata_(NULL), |
3618 | | _has_bits_(from._has_bits_), |
3619 | 0 | _cached_size_(0) { |
3620 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3621 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3622 | 0 | if (from.has_stream_id()) { |
3623 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
3624 | 0 | } |
3625 | 0 | local_only_ = from.local_only_; |
3626 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.ListTabletsRequestPB) |
3627 | 0 | } |
3628 | | |
3629 | 16.4k | void ListTabletsRequestPB::SharedCtor() { |
3630 | 16.4k | _cached_size_ = 0; |
3631 | 16.4k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3632 | 16.4k | local_only_ = false; |
3633 | 16.4k | } |
3634 | | |
3635 | 0 | ListTabletsRequestPB::~ListTabletsRequestPB() { |
3636 | | // @@protoc_insertion_point(destructor:yb.cdc.ListTabletsRequestPB) |
3637 | 0 | SharedDtor(); |
3638 | 0 | } |
3639 | | |
3640 | 0 | void ListTabletsRequestPB::SharedDtor() { |
3641 | 0 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3642 | 0 | } |
3643 | | |
3644 | 0 | void ListTabletsRequestPB::SetCachedSize(int size) const { |
3645 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3646 | 0 | _cached_size_ = size; |
3647 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3648 | 0 | } |
3649 | 0 | const ::google::protobuf::Descriptor* ListTabletsRequestPB::descriptor() { |
3650 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3651 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3652 | 0 | } |
3653 | | |
3654 | 0 | const ListTabletsRequestPB& ListTabletsRequestPB::default_instance() { |
3655 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsRequestPB(); |
3656 | 0 | return *internal_default_instance(); |
3657 | 0 | } |
3658 | | |
3659 | 0 | ListTabletsRequestPB* ListTabletsRequestPB::New(::google::protobuf::Arena* arena) const { |
3660 | 0 | ListTabletsRequestPB* n = new ListTabletsRequestPB; |
3661 | 0 | if (arena != NULL) { |
3662 | 0 | arena->Own(n); |
3663 | 0 | } |
3664 | 0 | return n; |
3665 | 0 | } |
3666 | | |
3667 | 0 | void ListTabletsRequestPB::Clear() { |
3668 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.ListTabletsRequestPB) |
3669 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3670 | | // Prevent compiler warnings about cached_has_bits being unused |
3671 | 0 | (void) cached_has_bits; |
3672 | |
|
3673 | 0 | cached_has_bits = _has_bits_[0]; |
3674 | 0 | if (cached_has_bits & 0x00000001u) { |
3675 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3676 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
3677 | 0 | } |
3678 | 0 | local_only_ = false; |
3679 | 0 | _has_bits_.Clear(); |
3680 | 0 | _internal_metadata_.Clear(); |
3681 | 0 | } |
3682 | | |
3683 | | bool ListTabletsRequestPB::MergePartialFromCodedStream( |
3684 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3685 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3686 | 0 | ::google::protobuf::uint32 tag; |
3687 | | // @@protoc_insertion_point(parse_start:yb.cdc.ListTabletsRequestPB) |
3688 | 0 | for (;;) { |
3689 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3690 | 0 | tag = p.first; |
3691 | 0 | if (!p.second) goto handle_unusual; |
3692 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3693 | | // optional string stream_id = 1; |
3694 | 0 | case 1: { |
3695 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3696 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3697 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3698 | 0 | input, this->mutable_stream_id())); |
3699 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3700 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
3701 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3702 | 0 | "yb.cdc.ListTabletsRequestPB.stream_id"); |
3703 | 0 | } else { |
3704 | 0 | goto handle_unusual; |
3705 | 0 | } |
3706 | 0 | break; |
3707 | 0 | } |
3708 | | |
3709 | | // optional bool local_only = 2 [default = false]; |
3710 | 0 | case 2: { |
3711 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3712 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3713 | 0 | set_has_local_only(); |
3714 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3715 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3716 | 0 | input, &local_only_))); |
3717 | 0 | } else { |
3718 | 0 | goto handle_unusual; |
3719 | 0 | } |
3720 | 0 | break; |
3721 | 0 | } |
3722 | | |
3723 | 0 | default: { |
3724 | 0 | handle_unusual: |
3725 | 0 | if (tag == 0) { |
3726 | 0 | goto success; |
3727 | 0 | } |
3728 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3729 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3730 | 0 | break; |
3731 | 0 | } |
3732 | 0 | } |
3733 | 0 | } |
3734 | 0 | success: |
3735 | | // @@protoc_insertion_point(parse_success:yb.cdc.ListTabletsRequestPB) |
3736 | 0 | return true; |
3737 | 0 | failure: |
3738 | | // @@protoc_insertion_point(parse_failure:yb.cdc.ListTabletsRequestPB) |
3739 | 0 | return false; |
3740 | 0 | #undef DO_ |
3741 | 0 | } |
3742 | | |
3743 | | void ListTabletsRequestPB::SerializeWithCachedSizes( |
3744 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3745 | | // @@protoc_insertion_point(serialize_start:yb.cdc.ListTabletsRequestPB) |
3746 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3747 | 0 | (void) cached_has_bits; |
3748 | |
|
3749 | 0 | cached_has_bits = _has_bits_[0]; |
3750 | | // optional string stream_id = 1; |
3751 | 0 | if (cached_has_bits & 0x00000001u) { |
3752 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3753 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
3754 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3755 | 0 | "yb.cdc.ListTabletsRequestPB.stream_id"); |
3756 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3757 | 0 | 1, this->stream_id(), output); |
3758 | 0 | } |
3759 | | |
3760 | | // optional bool local_only = 2 [default = false]; |
3761 | 0 | if (cached_has_bits & 0x00000002u) { |
3762 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->local_only(), output); |
3763 | 0 | } |
3764 | |
|
3765 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3766 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3767 | 0 | _internal_metadata_.unknown_fields(), output); |
3768 | 0 | } |
3769 | | // @@protoc_insertion_point(serialize_end:yb.cdc.ListTabletsRequestPB) |
3770 | 0 | } |
3771 | | |
3772 | | ::google::protobuf::uint8* ListTabletsRequestPB::InternalSerializeWithCachedSizesToArray( |
3773 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3774 | 0 | (void)deterministic; // Unused |
3775 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ListTabletsRequestPB) |
3776 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3777 | 0 | (void) cached_has_bits; |
3778 | |
|
3779 | 0 | cached_has_bits = _has_bits_[0]; |
3780 | | // optional string stream_id = 1; |
3781 | 0 | if (cached_has_bits & 0x00000001u) { |
3782 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3783 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
3784 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3785 | 0 | "yb.cdc.ListTabletsRequestPB.stream_id"); |
3786 | 0 | target = |
3787 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3788 | 0 | 1, this->stream_id(), target); |
3789 | 0 | } |
3790 | | |
3791 | | // optional bool local_only = 2 [default = false]; |
3792 | 0 | if (cached_has_bits & 0x00000002u) { |
3793 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->local_only(), target); |
3794 | 0 | } |
3795 | |
|
3796 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3797 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3798 | 0 | _internal_metadata_.unknown_fields(), target); |
3799 | 0 | } |
3800 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ListTabletsRequestPB) |
3801 | 0 | return target; |
3802 | 0 | } |
3803 | | |
3804 | 0 | size_t ListTabletsRequestPB::ByteSizeLong() const { |
3805 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.ListTabletsRequestPB) |
3806 | 0 | size_t total_size = 0; |
3807 | |
|
3808 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3809 | 0 | total_size += |
3810 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3811 | 0 | _internal_metadata_.unknown_fields()); |
3812 | 0 | } |
3813 | 0 | if (_has_bits_[0 / 32] & 3u) { |
3814 | | // optional string stream_id = 1; |
3815 | 0 | if (has_stream_id()) { |
3816 | 0 | total_size += 1 + |
3817 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3818 | 0 | this->stream_id()); |
3819 | 0 | } |
3820 | | |
3821 | | // optional bool local_only = 2 [default = false]; |
3822 | 0 | if (has_local_only()) { |
3823 | 0 | total_size += 1 + 1; |
3824 | 0 | } |
3825 | |
|
3826 | 0 | } |
3827 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3828 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3829 | 0 | _cached_size_ = cached_size; |
3830 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3831 | 0 | return total_size; |
3832 | 0 | } |
3833 | | |
3834 | 0 | void ListTabletsRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3835 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ListTabletsRequestPB) |
3836 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3837 | 0 | const ListTabletsRequestPB* source = |
3838 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsRequestPB>( |
3839 | 0 | &from); |
3840 | 0 | if (source == NULL) { |
3841 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ListTabletsRequestPB) |
3842 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3843 | 0 | } else { |
3844 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ListTabletsRequestPB) |
3845 | 0 | MergeFrom(*source); |
3846 | 0 | } |
3847 | 0 | } |
3848 | | |
3849 | 0 | void ListTabletsRequestPB::MergeFrom(const ListTabletsRequestPB& from) { |
3850 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ListTabletsRequestPB) |
3851 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3852 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3853 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3854 | 0 | (void) cached_has_bits; |
3855 | |
|
3856 | 0 | cached_has_bits = from._has_bits_[0]; |
3857 | 0 | if (cached_has_bits & 3u) { |
3858 | 0 | if (cached_has_bits & 0x00000001u) { |
3859 | 0 | set_has_stream_id(); |
3860 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
3861 | 0 | } |
3862 | 0 | if (cached_has_bits & 0x00000002u) { |
3863 | 0 | local_only_ = from.local_only_; |
3864 | 0 | } |
3865 | 0 | _has_bits_[0] |= cached_has_bits; |
3866 | 0 | } |
3867 | 0 | } |
3868 | | |
3869 | 0 | void ListTabletsRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3870 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ListTabletsRequestPB) |
3871 | 0 | if (&from == this) return; |
3872 | 0 | Clear(); |
3873 | 0 | MergeFrom(from); |
3874 | 0 | } |
3875 | | |
3876 | 0 | void ListTabletsRequestPB::CopyFrom(const ListTabletsRequestPB& from) { |
3877 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ListTabletsRequestPB) |
3878 | 0 | if (&from == this) return; |
3879 | 0 | Clear(); |
3880 | 0 | MergeFrom(from); |
3881 | 0 | } |
3882 | | |
3883 | 0 | bool ListTabletsRequestPB::IsInitialized() const { |
3884 | 0 | return true; |
3885 | 0 | } |
3886 | | |
3887 | 0 | void ListTabletsRequestPB::Swap(ListTabletsRequestPB* other) { |
3888 | 0 | if (other == this) return; |
3889 | 0 | InternalSwap(other); |
3890 | 0 | } |
3891 | 0 | void ListTabletsRequestPB::InternalSwap(ListTabletsRequestPB* other) { |
3892 | 0 | using std::swap; |
3893 | 0 | stream_id_.Swap(&other->stream_id_); |
3894 | 0 | swap(local_only_, other->local_only_); |
3895 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3896 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3897 | 0 | swap(_cached_size_, other->_cached_size_); |
3898 | 0 | } |
3899 | | |
3900 | 0 | ::google::protobuf::Metadata ListTabletsRequestPB::GetMetadata() const { |
3901 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3902 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
3903 | 0 | } |
3904 | | |
3905 | | |
3906 | | // =================================================================== |
3907 | | |
3908 | 16.4k | void ListTabletsResponsePB::InitAsDefaultInstance() { |
3909 | 16.4k | ::yb::cdc::_ListTabletsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
3910 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
3911 | 16.4k | } |
3912 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3913 | | const int ListTabletsResponsePB::kErrorFieldNumber; |
3914 | | const int ListTabletsResponsePB::kTabletsFieldNumber; |
3915 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3916 | | |
3917 | | ListTabletsResponsePB::ListTabletsResponsePB() |
3918 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3919 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3920 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsResponsePB(); |
3921 | 0 | } |
3922 | 16.4k | SharedCtor(); |
3923 | | // @@protoc_insertion_point(constructor:yb.cdc.ListTabletsResponsePB) |
3924 | 16.4k | } |
3925 | | ListTabletsResponsePB::ListTabletsResponsePB(const ListTabletsResponsePB& from) |
3926 | | : ::google::protobuf::Message(), |
3927 | | _internal_metadata_(NULL), |
3928 | | _has_bits_(from._has_bits_), |
3929 | | _cached_size_(0), |
3930 | 0 | tablets_(from.tablets_) { |
3931 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3932 | 0 | if (from.has_error()) { |
3933 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
3934 | 0 | } else { |
3935 | 0 | error_ = NULL; |
3936 | 0 | } |
3937 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.ListTabletsResponsePB) |
3938 | 0 | } |
3939 | | |
3940 | 16.4k | void ListTabletsResponsePB::SharedCtor() { |
3941 | 16.4k | _cached_size_ = 0; |
3942 | 16.4k | error_ = NULL; |
3943 | 16.4k | } |
3944 | | |
3945 | 0 | ListTabletsResponsePB::~ListTabletsResponsePB() { |
3946 | | // @@protoc_insertion_point(destructor:yb.cdc.ListTabletsResponsePB) |
3947 | 0 | SharedDtor(); |
3948 | 0 | } |
3949 | | |
3950 | 0 | void ListTabletsResponsePB::SharedDtor() { |
3951 | 0 | if (this != internal_default_instance()) delete error_; |
3952 | 0 | } |
3953 | | |
3954 | 0 | void ListTabletsResponsePB::SetCachedSize(int size) const { |
3955 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3956 | 0 | _cached_size_ = size; |
3957 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3958 | 0 | } |
3959 | 0 | const ::google::protobuf::Descriptor* ListTabletsResponsePB::descriptor() { |
3960 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
3961 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3962 | 0 | } |
3963 | | |
3964 | 0 | const ListTabletsResponsePB& ListTabletsResponsePB::default_instance() { |
3965 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsResponsePB(); |
3966 | 0 | return *internal_default_instance(); |
3967 | 0 | } |
3968 | | |
3969 | 0 | ListTabletsResponsePB* ListTabletsResponsePB::New(::google::protobuf::Arena* arena) const { |
3970 | 0 | ListTabletsResponsePB* n = new ListTabletsResponsePB; |
3971 | 0 | if (arena != NULL) { |
3972 | 0 | arena->Own(n); |
3973 | 0 | } |
3974 | 0 | return n; |
3975 | 0 | } |
3976 | | |
3977 | 0 | void ListTabletsResponsePB::Clear() { |
3978 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.ListTabletsResponsePB) |
3979 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3980 | | // Prevent compiler warnings about cached_has_bits being unused |
3981 | 0 | (void) cached_has_bits; |
3982 | |
|
3983 | 0 | tablets_.Clear(); |
3984 | 0 | cached_has_bits = _has_bits_[0]; |
3985 | 0 | if (cached_has_bits & 0x00000001u) { |
3986 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3987 | 0 | error_->Clear(); |
3988 | 0 | } |
3989 | 0 | _has_bits_.Clear(); |
3990 | 0 | _internal_metadata_.Clear(); |
3991 | 0 | } |
3992 | | |
3993 | | bool ListTabletsResponsePB::MergePartialFromCodedStream( |
3994 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3995 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3996 | 0 | ::google::protobuf::uint32 tag; |
3997 | | // @@protoc_insertion_point(parse_start:yb.cdc.ListTabletsResponsePB) |
3998 | 0 | for (;;) { |
3999 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4000 | 0 | tag = p.first; |
4001 | 0 | if (!p.second) goto handle_unusual; |
4002 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4003 | | // optional .yb.cdc.CDCErrorPB error = 1; |
4004 | 0 | case 1: { |
4005 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4006 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4007 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4008 | 0 | input, mutable_error())); |
4009 | 0 | } else { |
4010 | 0 | goto handle_unusual; |
4011 | 0 | } |
4012 | 0 | break; |
4013 | 0 | } |
4014 | | |
4015 | | // repeated .yb.cdc.CDCTabletPB tablets = 2; |
4016 | 0 | case 2: { |
4017 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4018 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4019 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablets())); |
4020 | 0 | } else { |
4021 | 0 | goto handle_unusual; |
4022 | 0 | } |
4023 | 0 | break; |
4024 | 0 | } |
4025 | | |
4026 | 0 | default: { |
4027 | 0 | handle_unusual: |
4028 | 0 | if (tag == 0) { |
4029 | 0 | goto success; |
4030 | 0 | } |
4031 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4032 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4033 | 0 | break; |
4034 | 0 | } |
4035 | 0 | } |
4036 | 0 | } |
4037 | 0 | success: |
4038 | | // @@protoc_insertion_point(parse_success:yb.cdc.ListTabletsResponsePB) |
4039 | 0 | return true; |
4040 | 0 | failure: |
4041 | | // @@protoc_insertion_point(parse_failure:yb.cdc.ListTabletsResponsePB) |
4042 | 0 | return false; |
4043 | 0 | #undef DO_ |
4044 | 0 | } |
4045 | | |
4046 | | void ListTabletsResponsePB::SerializeWithCachedSizes( |
4047 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4048 | | // @@protoc_insertion_point(serialize_start:yb.cdc.ListTabletsResponsePB) |
4049 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4050 | 0 | (void) cached_has_bits; |
4051 | |
|
4052 | 0 | cached_has_bits = _has_bits_[0]; |
4053 | | // optional .yb.cdc.CDCErrorPB error = 1; |
4054 | 0 | if (cached_has_bits & 0x00000001u) { |
4055 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4056 | 0 | 1, *this->error_, output); |
4057 | 0 | } |
4058 | | |
4059 | | // repeated .yb.cdc.CDCTabletPB tablets = 2; |
4060 | 0 | for (unsigned int i = 0, |
4061 | 0 | n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) { |
4062 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4063 | 0 | 2, this->tablets(static_cast<int>(i)), output); |
4064 | 0 | } |
4065 | |
|
4066 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4067 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4068 | 0 | _internal_metadata_.unknown_fields(), output); |
4069 | 0 | } |
4070 | | // @@protoc_insertion_point(serialize_end:yb.cdc.ListTabletsResponsePB) |
4071 | 0 | } |
4072 | | |
4073 | | ::google::protobuf::uint8* ListTabletsResponsePB::InternalSerializeWithCachedSizesToArray( |
4074 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4075 | 0 | (void)deterministic; // Unused |
4076 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ListTabletsResponsePB) |
4077 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4078 | 0 | (void) cached_has_bits; |
4079 | |
|
4080 | 0 | cached_has_bits = _has_bits_[0]; |
4081 | | // optional .yb.cdc.CDCErrorPB error = 1; |
4082 | 0 | if (cached_has_bits & 0x00000001u) { |
4083 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4084 | 0 | InternalWriteMessageToArray( |
4085 | 0 | 1, *this->error_, deterministic, target); |
4086 | 0 | } |
4087 | | |
4088 | | // repeated .yb.cdc.CDCTabletPB tablets = 2; |
4089 | 0 | for (unsigned int i = 0, |
4090 | 0 | n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) { |
4091 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4092 | 0 | InternalWriteMessageToArray( |
4093 | 0 | 2, this->tablets(static_cast<int>(i)), deterministic, target); |
4094 | 0 | } |
4095 | |
|
4096 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4097 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4098 | 0 | _internal_metadata_.unknown_fields(), target); |
4099 | 0 | } |
4100 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ListTabletsResponsePB) |
4101 | 0 | return target; |
4102 | 0 | } |
4103 | | |
4104 | 0 | size_t ListTabletsResponsePB::ByteSizeLong() const { |
4105 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.ListTabletsResponsePB) |
4106 | 0 | size_t total_size = 0; |
4107 | |
|
4108 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4109 | 0 | total_size += |
4110 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4111 | 0 | _internal_metadata_.unknown_fields()); |
4112 | 0 | } |
4113 | | // repeated .yb.cdc.CDCTabletPB tablets = 2; |
4114 | 0 | { |
4115 | 0 | unsigned int count = static_cast<unsigned int>(this->tablets_size()); |
4116 | 0 | total_size += 1UL * count; |
4117 | 0 | for (unsigned int i = 0; i < count; i++) { |
4118 | 0 | total_size += |
4119 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4120 | 0 | this->tablets(static_cast<int>(i))); |
4121 | 0 | } |
4122 | 0 | } |
4123 | | |
4124 | | // optional .yb.cdc.CDCErrorPB error = 1; |
4125 | 0 | if (has_error()) { |
4126 | 0 | total_size += 1 + |
4127 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4128 | 0 | *this->error_); |
4129 | 0 | } |
4130 | |
|
4131 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4132 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4133 | 0 | _cached_size_ = cached_size; |
4134 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4135 | 0 | return total_size; |
4136 | 0 | } |
4137 | | |
4138 | 0 | void ListTabletsResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4139 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ListTabletsResponsePB) |
4140 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4141 | 0 | const ListTabletsResponsePB* source = |
4142 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsResponsePB>( |
4143 | 0 | &from); |
4144 | 0 | if (source == NULL) { |
4145 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ListTabletsResponsePB) |
4146 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4147 | 0 | } else { |
4148 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ListTabletsResponsePB) |
4149 | 0 | MergeFrom(*source); |
4150 | 0 | } |
4151 | 0 | } |
4152 | | |
4153 | 0 | void ListTabletsResponsePB::MergeFrom(const ListTabletsResponsePB& from) { |
4154 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ListTabletsResponsePB) |
4155 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4156 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4157 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4158 | 0 | (void) cached_has_bits; |
4159 | |
|
4160 | 0 | tablets_.MergeFrom(from.tablets_); |
4161 | 0 | if (from.has_error()) { |
4162 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
4163 | 0 | } |
4164 | 0 | } |
4165 | | |
4166 | 0 | void ListTabletsResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4167 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ListTabletsResponsePB) |
4168 | 0 | if (&from == this) return; |
4169 | 0 | Clear(); |
4170 | 0 | MergeFrom(from); |
4171 | 0 | } |
4172 | | |
4173 | 0 | void ListTabletsResponsePB::CopyFrom(const ListTabletsResponsePB& from) { |
4174 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ListTabletsResponsePB) |
4175 | 0 | if (&from == this) return; |
4176 | 0 | Clear(); |
4177 | 0 | MergeFrom(from); |
4178 | 0 | } |
4179 | | |
4180 | 0 | bool ListTabletsResponsePB::IsInitialized() const { |
4181 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->tablets())) return false; |
4182 | 0 | if (has_error()) { |
4183 | 0 | if (!this->error_->IsInitialized()) return false; |
4184 | 0 | } |
4185 | 0 | return true; |
4186 | 0 | } |
4187 | | |
4188 | 0 | void ListTabletsResponsePB::Swap(ListTabletsResponsePB* other) { |
4189 | 0 | if (other == this) return; |
4190 | 0 | InternalSwap(other); |
4191 | 0 | } |
4192 | 0 | void ListTabletsResponsePB::InternalSwap(ListTabletsResponsePB* other) { |
4193 | 0 | using std::swap; |
4194 | 0 | tablets_.InternalSwap(&other->tablets_); |
4195 | 0 | swap(error_, other->error_); |
4196 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4197 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4198 | 0 | swap(_cached_size_, other->_cached_size_); |
4199 | 0 | } |
4200 | | |
4201 | 0 | ::google::protobuf::Metadata ListTabletsResponsePB::GetMetadata() const { |
4202 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4203 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
4204 | 0 | } |
4205 | | |
4206 | | |
4207 | | // =================================================================== |
4208 | | |
4209 | 16.4k | void CDCTabletPB_ReplicaPB::InitAsDefaultInstance() { |
4210 | 16.4k | } |
4211 | 0 | void CDCTabletPB_ReplicaPB::clear_broadcast_addresses() { |
4212 | 0 | broadcast_addresses_.Clear(); |
4213 | 0 | } |
4214 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4215 | | const int CDCTabletPB_ReplicaPB::kBroadcastAddressesFieldNumber; |
4216 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4217 | | |
4218 | | CDCTabletPB_ReplicaPB::CDCTabletPB_ReplicaPB() |
4219 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4220 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4221 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB(); |
4222 | 0 | } |
4223 | 16.4k | SharedCtor(); |
4224 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCTabletPB.ReplicaPB) |
4225 | 16.4k | } |
4226 | | CDCTabletPB_ReplicaPB::CDCTabletPB_ReplicaPB(const CDCTabletPB_ReplicaPB& from) |
4227 | | : ::google::protobuf::Message(), |
4228 | | _internal_metadata_(NULL), |
4229 | | _has_bits_(from._has_bits_), |
4230 | | _cached_size_(0), |
4231 | 0 | broadcast_addresses_(from.broadcast_addresses_) { |
4232 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4233 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCTabletPB.ReplicaPB) |
4234 | 0 | } |
4235 | | |
4236 | 16.4k | void CDCTabletPB_ReplicaPB::SharedCtor() { |
4237 | 16.4k | _cached_size_ = 0; |
4238 | 16.4k | } |
4239 | | |
4240 | 0 | CDCTabletPB_ReplicaPB::~CDCTabletPB_ReplicaPB() { |
4241 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCTabletPB.ReplicaPB) |
4242 | 0 | SharedDtor(); |
4243 | 0 | } |
4244 | | |
4245 | 0 | void CDCTabletPB_ReplicaPB::SharedDtor() { |
4246 | 0 | } |
4247 | | |
4248 | 0 | void CDCTabletPB_ReplicaPB::SetCachedSize(int size) const { |
4249 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4250 | 0 | _cached_size_ = size; |
4251 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4252 | 0 | } |
4253 | 0 | const ::google::protobuf::Descriptor* CDCTabletPB_ReplicaPB::descriptor() { |
4254 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4255 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4256 | 0 | } |
4257 | | |
4258 | 0 | const CDCTabletPB_ReplicaPB& CDCTabletPB_ReplicaPB::default_instance() { |
4259 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB(); |
4260 | 0 | return *internal_default_instance(); |
4261 | 0 | } |
4262 | | |
4263 | 0 | CDCTabletPB_ReplicaPB* CDCTabletPB_ReplicaPB::New(::google::protobuf::Arena* arena) const { |
4264 | 0 | CDCTabletPB_ReplicaPB* n = new CDCTabletPB_ReplicaPB; |
4265 | 0 | if (arena != NULL) { |
4266 | 0 | arena->Own(n); |
4267 | 0 | } |
4268 | 0 | return n; |
4269 | 0 | } |
4270 | | |
4271 | 0 | void CDCTabletPB_ReplicaPB::Clear() { |
4272 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4273 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4274 | | // Prevent compiler warnings about cached_has_bits being unused |
4275 | 0 | (void) cached_has_bits; |
4276 | |
|
4277 | 0 | broadcast_addresses_.Clear(); |
4278 | 0 | _has_bits_.Clear(); |
4279 | 0 | _internal_metadata_.Clear(); |
4280 | 0 | } |
4281 | | |
4282 | | bool CDCTabletPB_ReplicaPB::MergePartialFromCodedStream( |
4283 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4284 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4285 | 0 | ::google::protobuf::uint32 tag; |
4286 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4287 | 0 | for (;;) { |
4288 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4289 | 0 | tag = p.first; |
4290 | 0 | if (!p.second) goto handle_unusual; |
4291 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4292 | | // repeated .yb.HostPortPB broadcast_addresses = 1; |
4293 | 0 | case 1: { |
4294 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4295 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4296 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_broadcast_addresses())); |
4297 | 0 | } else { |
4298 | 0 | goto handle_unusual; |
4299 | 0 | } |
4300 | 0 | break; |
4301 | 0 | } |
4302 | | |
4303 | 0 | default: { |
4304 | 0 | handle_unusual: |
4305 | 0 | if (tag == 0) { |
4306 | 0 | goto success; |
4307 | 0 | } |
4308 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4309 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4310 | 0 | break; |
4311 | 0 | } |
4312 | 0 | } |
4313 | 0 | } |
4314 | 0 | success: |
4315 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCTabletPB.ReplicaPB) |
4316 | 0 | return true; |
4317 | 0 | failure: |
4318 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCTabletPB.ReplicaPB) |
4319 | 0 | return false; |
4320 | 0 | #undef DO_ |
4321 | 0 | } |
4322 | | |
4323 | | void CDCTabletPB_ReplicaPB::SerializeWithCachedSizes( |
4324 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4325 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4326 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4327 | 0 | (void) cached_has_bits; |
4328 | | |
4329 | | // repeated .yb.HostPortPB broadcast_addresses = 1; |
4330 | 0 | for (unsigned int i = 0, |
4331 | 0 | n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) { |
4332 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4333 | 0 | 1, this->broadcast_addresses(static_cast<int>(i)), output); |
4334 | 0 | } |
4335 | |
|
4336 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4337 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4338 | 0 | _internal_metadata_.unknown_fields(), output); |
4339 | 0 | } |
4340 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCTabletPB.ReplicaPB) |
4341 | 0 | } |
4342 | | |
4343 | | ::google::protobuf::uint8* CDCTabletPB_ReplicaPB::InternalSerializeWithCachedSizesToArray( |
4344 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4345 | 0 | (void)deterministic; // Unused |
4346 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4347 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4348 | 0 | (void) cached_has_bits; |
4349 | | |
4350 | | // repeated .yb.HostPortPB broadcast_addresses = 1; |
4351 | 0 | for (unsigned int i = 0, |
4352 | 0 | n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) { |
4353 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4354 | 0 | InternalWriteMessageToArray( |
4355 | 0 | 1, this->broadcast_addresses(static_cast<int>(i)), deterministic, target); |
4356 | 0 | } |
4357 | |
|
4358 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4359 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4360 | 0 | _internal_metadata_.unknown_fields(), target); |
4361 | 0 | } |
4362 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCTabletPB.ReplicaPB) |
4363 | 0 | return target; |
4364 | 0 | } |
4365 | | |
4366 | 0 | size_t CDCTabletPB_ReplicaPB::ByteSizeLong() const { |
4367 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4368 | 0 | size_t total_size = 0; |
4369 | |
|
4370 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4371 | 0 | total_size += |
4372 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4373 | 0 | _internal_metadata_.unknown_fields()); |
4374 | 0 | } |
4375 | | // repeated .yb.HostPortPB broadcast_addresses = 1; |
4376 | 0 | { |
4377 | 0 | unsigned int count = static_cast<unsigned int>(this->broadcast_addresses_size()); |
4378 | 0 | total_size += 1UL * count; |
4379 | 0 | for (unsigned int i = 0; i < count; i++) { |
4380 | 0 | total_size += |
4381 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4382 | 0 | this->broadcast_addresses(static_cast<int>(i))); |
4383 | 0 | } |
4384 | 0 | } |
4385 | |
|
4386 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4387 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4388 | 0 | _cached_size_ = cached_size; |
4389 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4390 | 0 | return total_size; |
4391 | 0 | } |
4392 | | |
4393 | 0 | void CDCTabletPB_ReplicaPB::MergeFrom(const ::google::protobuf::Message& from) { |
4394 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4395 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4396 | 0 | const CDCTabletPB_ReplicaPB* source = |
4397 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCTabletPB_ReplicaPB>( |
4398 | 0 | &from); |
4399 | 0 | if (source == NULL) { |
4400 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCTabletPB.ReplicaPB) |
4401 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4402 | 0 | } else { |
4403 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCTabletPB.ReplicaPB) |
4404 | 0 | MergeFrom(*source); |
4405 | 0 | } |
4406 | 0 | } |
4407 | | |
4408 | 0 | void CDCTabletPB_ReplicaPB::MergeFrom(const CDCTabletPB_ReplicaPB& from) { |
4409 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4410 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4411 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4412 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4413 | 0 | (void) cached_has_bits; |
4414 | |
|
4415 | 0 | broadcast_addresses_.MergeFrom(from.broadcast_addresses_); |
4416 | 0 | } |
4417 | | |
4418 | 0 | void CDCTabletPB_ReplicaPB::CopyFrom(const ::google::protobuf::Message& from) { |
4419 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4420 | 0 | if (&from == this) return; |
4421 | 0 | Clear(); |
4422 | 0 | MergeFrom(from); |
4423 | 0 | } |
4424 | | |
4425 | 0 | void CDCTabletPB_ReplicaPB::CopyFrom(const CDCTabletPB_ReplicaPB& from) { |
4426 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCTabletPB.ReplicaPB) |
4427 | 0 | if (&from == this) return; |
4428 | 0 | Clear(); |
4429 | 0 | MergeFrom(from); |
4430 | 0 | } |
4431 | | |
4432 | 0 | bool CDCTabletPB_ReplicaPB::IsInitialized() const { |
4433 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->broadcast_addresses())) return false; |
4434 | 0 | return true; |
4435 | 0 | } |
4436 | | |
4437 | 0 | void CDCTabletPB_ReplicaPB::Swap(CDCTabletPB_ReplicaPB* other) { |
4438 | 0 | if (other == this) return; |
4439 | 0 | InternalSwap(other); |
4440 | 0 | } |
4441 | 0 | void CDCTabletPB_ReplicaPB::InternalSwap(CDCTabletPB_ReplicaPB* other) { |
4442 | 0 | using std::swap; |
4443 | 0 | broadcast_addresses_.InternalSwap(&other->broadcast_addresses_); |
4444 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4445 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4446 | 0 | swap(_cached_size_, other->_cached_size_); |
4447 | 0 | } |
4448 | | |
4449 | 0 | ::google::protobuf::Metadata CDCTabletPB_ReplicaPB::GetMetadata() const { |
4450 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4451 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
4452 | 0 | } |
4453 | | |
4454 | | |
4455 | | // =================================================================== |
4456 | | |
4457 | 16.4k | void CDCTabletPB::InitAsDefaultInstance() { |
4458 | 16.4k | } |
4459 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4460 | | const int CDCTabletPB::kTabletIdFieldNumber; |
4461 | | const int CDCTabletPB::kTserversFieldNumber; |
4462 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4463 | | |
4464 | | CDCTabletPB::CDCTabletPB() |
4465 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4466 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4467 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB(); |
4468 | 0 | } |
4469 | 16.4k | SharedCtor(); |
4470 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCTabletPB) |
4471 | 16.4k | } |
4472 | | CDCTabletPB::CDCTabletPB(const CDCTabletPB& from) |
4473 | | : ::google::protobuf::Message(), |
4474 | | _internal_metadata_(NULL), |
4475 | | _has_bits_(from._has_bits_), |
4476 | | _cached_size_(0), |
4477 | 0 | tservers_(from.tservers_) { |
4478 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4479 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4480 | 0 | if (from.has_tablet_id()) { |
4481 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4482 | 0 | } |
4483 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCTabletPB) |
4484 | 0 | } |
4485 | | |
4486 | 16.4k | void CDCTabletPB::SharedCtor() { |
4487 | 16.4k | _cached_size_ = 0; |
4488 | 16.4k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4489 | 16.4k | } |
4490 | | |
4491 | 0 | CDCTabletPB::~CDCTabletPB() { |
4492 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCTabletPB) |
4493 | 0 | SharedDtor(); |
4494 | 0 | } |
4495 | | |
4496 | 0 | void CDCTabletPB::SharedDtor() { |
4497 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4498 | 0 | } |
4499 | | |
4500 | 0 | void CDCTabletPB::SetCachedSize(int size) const { |
4501 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4502 | 0 | _cached_size_ = size; |
4503 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4504 | 0 | } |
4505 | 0 | const ::google::protobuf::Descriptor* CDCTabletPB::descriptor() { |
4506 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4507 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4508 | 0 | } |
4509 | | |
4510 | 0 | const CDCTabletPB& CDCTabletPB::default_instance() { |
4511 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB(); |
4512 | 0 | return *internal_default_instance(); |
4513 | 0 | } |
4514 | | |
4515 | 0 | CDCTabletPB* CDCTabletPB::New(::google::protobuf::Arena* arena) const { |
4516 | 0 | CDCTabletPB* n = new CDCTabletPB; |
4517 | 0 | if (arena != NULL) { |
4518 | 0 | arena->Own(n); |
4519 | 0 | } |
4520 | 0 | return n; |
4521 | 0 | } |
4522 | | |
4523 | 0 | void CDCTabletPB::Clear() { |
4524 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCTabletPB) |
4525 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4526 | | // Prevent compiler warnings about cached_has_bits being unused |
4527 | 0 | (void) cached_has_bits; |
4528 | |
|
4529 | 0 | tservers_.Clear(); |
4530 | 0 | cached_has_bits = _has_bits_[0]; |
4531 | 0 | if (cached_has_bits & 0x00000001u) { |
4532 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4533 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
4534 | 0 | } |
4535 | 0 | _has_bits_.Clear(); |
4536 | 0 | _internal_metadata_.Clear(); |
4537 | 0 | } |
4538 | | |
4539 | | bool CDCTabletPB::MergePartialFromCodedStream( |
4540 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4541 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4542 | 0 | ::google::protobuf::uint32 tag; |
4543 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCTabletPB) |
4544 | 0 | for (;;) { |
4545 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4546 | 0 | tag = p.first; |
4547 | 0 | if (!p.second) goto handle_unusual; |
4548 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4549 | | // optional bytes tablet_id = 1; |
4550 | 0 | case 1: { |
4551 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4552 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4553 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4554 | 0 | input, this->mutable_tablet_id())); |
4555 | 0 | } else { |
4556 | 0 | goto handle_unusual; |
4557 | 0 | } |
4558 | 0 | break; |
4559 | 0 | } |
4560 | | |
4561 | | // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2; |
4562 | 0 | case 2: { |
4563 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4564 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4565 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tservers())); |
4566 | 0 | } else { |
4567 | 0 | goto handle_unusual; |
4568 | 0 | } |
4569 | 0 | break; |
4570 | 0 | } |
4571 | | |
4572 | 0 | default: { |
4573 | 0 | handle_unusual: |
4574 | 0 | if (tag == 0) { |
4575 | 0 | goto success; |
4576 | 0 | } |
4577 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4578 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4579 | 0 | break; |
4580 | 0 | } |
4581 | 0 | } |
4582 | 0 | } |
4583 | 0 | success: |
4584 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCTabletPB) |
4585 | 0 | return true; |
4586 | 0 | failure: |
4587 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCTabletPB) |
4588 | 0 | return false; |
4589 | 0 | #undef DO_ |
4590 | 0 | } |
4591 | | |
4592 | | void CDCTabletPB::SerializeWithCachedSizes( |
4593 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4594 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCTabletPB) |
4595 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4596 | 0 | (void) cached_has_bits; |
4597 | |
|
4598 | 0 | cached_has_bits = _has_bits_[0]; |
4599 | | // optional bytes tablet_id = 1; |
4600 | 0 | if (cached_has_bits & 0x00000001u) { |
4601 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4602 | 0 | 1, this->tablet_id(), output); |
4603 | 0 | } |
4604 | | |
4605 | | // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2; |
4606 | 0 | for (unsigned int i = 0, |
4607 | 0 | n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) { |
4608 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4609 | 0 | 2, this->tservers(static_cast<int>(i)), output); |
4610 | 0 | } |
4611 | |
|
4612 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4613 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4614 | 0 | _internal_metadata_.unknown_fields(), output); |
4615 | 0 | } |
4616 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCTabletPB) |
4617 | 0 | } |
4618 | | |
4619 | | ::google::protobuf::uint8* CDCTabletPB::InternalSerializeWithCachedSizesToArray( |
4620 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
4621 | 0 | (void)deterministic; // Unused |
4622 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCTabletPB) |
4623 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4624 | 0 | (void) cached_has_bits; |
4625 | |
|
4626 | 0 | cached_has_bits = _has_bits_[0]; |
4627 | | // optional bytes tablet_id = 1; |
4628 | 0 | if (cached_has_bits & 0x00000001u) { |
4629 | 0 | target = |
4630 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4631 | 0 | 1, this->tablet_id(), target); |
4632 | 0 | } |
4633 | | |
4634 | | // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2; |
4635 | 0 | for (unsigned int i = 0, |
4636 | 0 | n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) { |
4637 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4638 | 0 | InternalWriteMessageToArray( |
4639 | 0 | 2, this->tservers(static_cast<int>(i)), deterministic, target); |
4640 | 0 | } |
4641 | |
|
4642 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4643 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4644 | 0 | _internal_metadata_.unknown_fields(), target); |
4645 | 0 | } |
4646 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCTabletPB) |
4647 | 0 | return target; |
4648 | 0 | } |
4649 | | |
4650 | 0 | size_t CDCTabletPB::ByteSizeLong() const { |
4651 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCTabletPB) |
4652 | 0 | size_t total_size = 0; |
4653 | |
|
4654 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4655 | 0 | total_size += |
4656 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4657 | 0 | _internal_metadata_.unknown_fields()); |
4658 | 0 | } |
4659 | | // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2; |
4660 | 0 | { |
4661 | 0 | unsigned int count = static_cast<unsigned int>(this->tservers_size()); |
4662 | 0 | total_size += 1UL * count; |
4663 | 0 | for (unsigned int i = 0; i < count; i++) { |
4664 | 0 | total_size += |
4665 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4666 | 0 | this->tservers(static_cast<int>(i))); |
4667 | 0 | } |
4668 | 0 | } |
4669 | | |
4670 | | // optional bytes tablet_id = 1; |
4671 | 0 | if (has_tablet_id()) { |
4672 | 0 | total_size += 1 + |
4673 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4674 | 0 | this->tablet_id()); |
4675 | 0 | } |
4676 | |
|
4677 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4678 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4679 | 0 | _cached_size_ = cached_size; |
4680 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4681 | 0 | return total_size; |
4682 | 0 | } |
4683 | | |
4684 | 0 | void CDCTabletPB::MergeFrom(const ::google::protobuf::Message& from) { |
4685 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCTabletPB) |
4686 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4687 | 0 | const CDCTabletPB* source = |
4688 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCTabletPB>( |
4689 | 0 | &from); |
4690 | 0 | if (source == NULL) { |
4691 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCTabletPB) |
4692 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4693 | 0 | } else { |
4694 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCTabletPB) |
4695 | 0 | MergeFrom(*source); |
4696 | 0 | } |
4697 | 0 | } |
4698 | | |
4699 | 0 | void CDCTabletPB::MergeFrom(const CDCTabletPB& from) { |
4700 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCTabletPB) |
4701 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4702 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4703 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4704 | 0 | (void) cached_has_bits; |
4705 | |
|
4706 | 0 | tservers_.MergeFrom(from.tservers_); |
4707 | 0 | if (from.has_tablet_id()) { |
4708 | 0 | set_has_tablet_id(); |
4709 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
4710 | 0 | } |
4711 | 0 | } |
4712 | | |
4713 | 0 | void CDCTabletPB::CopyFrom(const ::google::protobuf::Message& from) { |
4714 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCTabletPB) |
4715 | 0 | if (&from == this) return; |
4716 | 0 | Clear(); |
4717 | 0 | MergeFrom(from); |
4718 | 0 | } |
4719 | | |
4720 | 0 | void CDCTabletPB::CopyFrom(const CDCTabletPB& from) { |
4721 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCTabletPB) |
4722 | 0 | if (&from == this) return; |
4723 | 0 | Clear(); |
4724 | 0 | MergeFrom(from); |
4725 | 0 | } |
4726 | | |
4727 | 0 | bool CDCTabletPB::IsInitialized() const { |
4728 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->tservers())) return false; |
4729 | 0 | return true; |
4730 | 0 | } |
4731 | | |
4732 | 0 | void CDCTabletPB::Swap(CDCTabletPB* other) { |
4733 | 0 | if (other == this) return; |
4734 | 0 | InternalSwap(other); |
4735 | 0 | } |
4736 | 0 | void CDCTabletPB::InternalSwap(CDCTabletPB* other) { |
4737 | 0 | using std::swap; |
4738 | 0 | tservers_.InternalSwap(&other->tservers_); |
4739 | 0 | tablet_id_.Swap(&other->tablet_id_); |
4740 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4741 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4742 | 0 | swap(_cached_size_, other->_cached_size_); |
4743 | 0 | } |
4744 | | |
4745 | 0 | ::google::protobuf::Metadata CDCTabletPB::GetMetadata() const { |
4746 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4747 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
4748 | 0 | } |
4749 | | |
4750 | | |
4751 | | // =================================================================== |
4752 | | |
4753 | 16.4k | void CDCSDKCheckpointPB::InitAsDefaultInstance() { |
4754 | 16.4k | } |
4755 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4756 | | const int CDCSDKCheckpointPB::kTermFieldNumber; |
4757 | | const int CDCSDKCheckpointPB::kIndexFieldNumber; |
4758 | | const int CDCSDKCheckpointPB::kKeyFieldNumber; |
4759 | | const int CDCSDKCheckpointPB::kWriteIdFieldNumber; |
4760 | | const int CDCSDKCheckpointPB::kSnapshotTimeFieldNumber; |
4761 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4762 | | |
4763 | | CDCSDKCheckpointPB::CDCSDKCheckpointPB() |
4764 | 18.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4765 | 18.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4766 | 1.95k | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB(); |
4767 | 1.95k | } |
4768 | 18.4k | SharedCtor(); |
4769 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKCheckpointPB) |
4770 | 18.4k | } |
4771 | | CDCSDKCheckpointPB::CDCSDKCheckpointPB(const CDCSDKCheckpointPB& from) |
4772 | | : ::google::protobuf::Message(), |
4773 | | _internal_metadata_(NULL), |
4774 | | _has_bits_(from._has_bits_), |
4775 | 0 | _cached_size_(0) { |
4776 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4777 | 0 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4778 | 0 | if (from.has_key()) { |
4779 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
4780 | 0 | } |
4781 | 0 | ::memcpy(&term_, &from.term_, |
4782 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&write_id_) - |
4783 | 0 | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
4784 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKCheckpointPB) |
4785 | 0 | } |
4786 | | |
4787 | 18.4k | void CDCSDKCheckpointPB::SharedCtor() { |
4788 | 18.4k | _cached_size_ = 0; |
4789 | 18.4k | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4790 | 18.4k | ::memset(&term_, 0, static_cast<size_t>( |
4791 | 18.4k | reinterpret_cast<char*>(&write_id_) - |
4792 | 18.4k | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
4793 | 18.4k | } |
4794 | | |
4795 | 1.95k | CDCSDKCheckpointPB::~CDCSDKCheckpointPB() { |
4796 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKCheckpointPB) |
4797 | 1.95k | SharedDtor(); |
4798 | 1.95k | } |
4799 | | |
4800 | 1.95k | void CDCSDKCheckpointPB::SharedDtor() { |
4801 | 1.95k | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4802 | 1.95k | } |
4803 | | |
4804 | 0 | void CDCSDKCheckpointPB::SetCachedSize(int size) const { |
4805 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4806 | 0 | _cached_size_ = size; |
4807 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4808 | 0 | } |
4809 | 0 | const ::google::protobuf::Descriptor* CDCSDKCheckpointPB::descriptor() { |
4810 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
4811 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4812 | 0 | } |
4813 | | |
4814 | 0 | const CDCSDKCheckpointPB& CDCSDKCheckpointPB::default_instance() { |
4815 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB(); |
4816 | 0 | return *internal_default_instance(); |
4817 | 0 | } |
4818 | | |
4819 | 0 | CDCSDKCheckpointPB* CDCSDKCheckpointPB::New(::google::protobuf::Arena* arena) const { |
4820 | 0 | CDCSDKCheckpointPB* n = new CDCSDKCheckpointPB; |
4821 | 0 | if (arena != NULL) { |
4822 | 0 | arena->Own(n); |
4823 | 0 | } |
4824 | 0 | return n; |
4825 | 0 | } |
4826 | | |
4827 | 677 | void CDCSDKCheckpointPB::Clear() { |
4828 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKCheckpointPB) |
4829 | 677 | ::google::protobuf::uint32 cached_has_bits = 0; |
4830 | | // Prevent compiler warnings about cached_has_bits being unused |
4831 | 677 | (void) cached_has_bits; |
4832 | | |
4833 | 677 | cached_has_bits = _has_bits_[0]; |
4834 | 677 | if (cached_has_bits & 0x00000001u) { |
4835 | 0 | GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4836 | 0 | (*key_.UnsafeRawStringPointer())->clear(); |
4837 | 0 | } |
4838 | 677 | if (cached_has_bits & 30u) { |
4839 | 0 | ::memset(&term_, 0, static_cast<size_t>( |
4840 | 0 | reinterpret_cast<char*>(&write_id_) - |
4841 | 0 | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
4842 | 0 | } |
4843 | 677 | _has_bits_.Clear(); |
4844 | 677 | _internal_metadata_.Clear(); |
4845 | 677 | } |
4846 | | |
4847 | | bool CDCSDKCheckpointPB::MergePartialFromCodedStream( |
4848 | 36 | ::google::protobuf::io::CodedInputStream* input) { |
4849 | 180 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4850 | 36 | ::google::protobuf::uint32 tag; |
4851 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKCheckpointPB) |
4852 | 216 | for (;;) { |
4853 | 216 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4854 | 216 | tag = p.first; |
4855 | 216 | if (!p.second) goto handle_unusual36 ; |
4856 | 180 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4857 | | // optional int64 term = 1; |
4858 | 36 | case 1: { |
4859 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4860 | 36 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4861 | 36 | set_has_term(); |
4862 | 36 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4863 | 36 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4864 | 36 | input, &term_))); |
4865 | 36 | } else { |
4866 | 0 | goto handle_unusual; |
4867 | 0 | } |
4868 | 36 | break; |
4869 | 36 | } |
4870 | | |
4871 | | // optional int64 index = 2; |
4872 | 36 | case 2: { |
4873 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4874 | 36 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4875 | 36 | set_has_index(); |
4876 | 36 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4877 | 36 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4878 | 36 | input, &index_))); |
4879 | 36 | } else { |
4880 | 0 | goto handle_unusual; |
4881 | 0 | } |
4882 | 36 | break; |
4883 | 36 | } |
4884 | | |
4885 | | // optional bytes key = 3; |
4886 | 36 | case 3: { |
4887 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4888 | 36 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4889 | 36 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4890 | 36 | input, this->mutable_key())); |
4891 | 36 | } else { |
4892 | 0 | goto handle_unusual; |
4893 | 0 | } |
4894 | 36 | break; |
4895 | 36 | } |
4896 | | |
4897 | | // optional int32 write_id = 4 [default = 0]; |
4898 | 36 | case 4: { |
4899 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4900 | 36 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4901 | 36 | set_has_write_id(); |
4902 | 36 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4903 | 36 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4904 | 36 | input, &write_id_))); |
4905 | 36 | } else { |
4906 | 0 | goto handle_unusual; |
4907 | 0 | } |
4908 | 36 | break; |
4909 | 36 | } |
4910 | | |
4911 | | // optional uint64 snapshot_time = 5; |
4912 | 36 | case 5: { |
4913 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4914 | 36 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
4915 | 36 | set_has_snapshot_time(); |
4916 | 36 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4917 | 36 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4918 | 36 | input, &snapshot_time_))); |
4919 | 36 | } else { |
4920 | 0 | goto handle_unusual; |
4921 | 0 | } |
4922 | 36 | break; |
4923 | 36 | } |
4924 | | |
4925 | 36 | default: { |
4926 | 36 | handle_unusual: |
4927 | 36 | if (tag == 0) { |
4928 | 36 | goto success; |
4929 | 36 | } |
4930 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4931 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4932 | 0 | break; |
4933 | 0 | } |
4934 | 180 | } |
4935 | 180 | } |
4936 | 36 | success: |
4937 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKCheckpointPB) |
4938 | 36 | return true; |
4939 | 0 | failure: |
4940 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKCheckpointPB) |
4941 | 0 | return false; |
4942 | 36 | #undef DO_ |
4943 | 36 | } |
4944 | | |
4945 | | void CDCSDKCheckpointPB::SerializeWithCachedSizes( |
4946 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4947 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKCheckpointPB) |
4948 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4949 | 0 | (void) cached_has_bits; |
4950 | |
|
4951 | 0 | cached_has_bits = _has_bits_[0]; |
4952 | | // optional int64 term = 1; |
4953 | 0 | if (cached_has_bits & 0x00000002u) { |
4954 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->term(), output); |
4955 | 0 | } |
4956 | | |
4957 | | // optional int64 index = 2; |
4958 | 0 | if (cached_has_bits & 0x00000004u) { |
4959 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->index(), output); |
4960 | 0 | } |
4961 | | |
4962 | | // optional bytes key = 3; |
4963 | 0 | if (cached_has_bits & 0x00000001u) { |
4964 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4965 | 0 | 3, this->key(), output); |
4966 | 0 | } |
4967 | | |
4968 | | // optional int32 write_id = 4 [default = 0]; |
4969 | 0 | if (cached_has_bits & 0x00000010u) { |
4970 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->write_id(), output); |
4971 | 0 | } |
4972 | | |
4973 | | // optional uint64 snapshot_time = 5; |
4974 | 0 | if (cached_has_bits & 0x00000008u) { |
4975 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->snapshot_time(), output); |
4976 | 0 | } |
4977 | |
|
4978 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4979 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4980 | 0 | _internal_metadata_.unknown_fields(), output); |
4981 | 0 | } |
4982 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKCheckpointPB) |
4983 | 0 | } |
4984 | | |
4985 | | ::google::protobuf::uint8* CDCSDKCheckpointPB::InternalSerializeWithCachedSizesToArray( |
4986 | 641 | bool deterministic, ::google::protobuf::uint8* target) const { |
4987 | 641 | (void)deterministic; // Unused |
4988 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKCheckpointPB) |
4989 | 641 | ::google::protobuf::uint32 cached_has_bits = 0; |
4990 | 641 | (void) cached_has_bits; |
4991 | | |
4992 | 641 | cached_has_bits = _has_bits_[0]; |
4993 | | // optional int64 term = 1; |
4994 | 641 | if (cached_has_bits & 0x00000002u) { |
4995 | 641 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->term(), target); |
4996 | 641 | } |
4997 | | |
4998 | | // optional int64 index = 2; |
4999 | 641 | if (cached_has_bits & 0x00000004u) { |
5000 | 641 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->index(), target); |
5001 | 641 | } |
5002 | | |
5003 | | // optional bytes key = 3; |
5004 | 641 | if (cached_has_bits & 0x00000001u) { |
5005 | 641 | target = |
5006 | 641 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5007 | 641 | 3, this->key(), target); |
5008 | 641 | } |
5009 | | |
5010 | | // optional int32 write_id = 4 [default = 0]; |
5011 | 641 | if (cached_has_bits & 0x00000010u) { |
5012 | 641 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->write_id(), target); |
5013 | 641 | } |
5014 | | |
5015 | | // optional uint64 snapshot_time = 5; |
5016 | 641 | if (cached_has_bits & 0x00000008u) { |
5017 | 641 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->snapshot_time(), target); |
5018 | 641 | } |
5019 | | |
5020 | 641 | if (_internal_metadata_.have_unknown_fields()) { |
5021 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5022 | 0 | _internal_metadata_.unknown_fields(), target); |
5023 | 0 | } |
5024 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKCheckpointPB) |
5025 | 641 | return target; |
5026 | 641 | } |
5027 | | |
5028 | 1.28k | size_t CDCSDKCheckpointPB::ByteSizeLong() const { |
5029 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKCheckpointPB) |
5030 | 1.28k | size_t total_size = 0; |
5031 | | |
5032 | 1.28k | if (_internal_metadata_.have_unknown_fields()) { |
5033 | 0 | total_size += |
5034 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5035 | 0 | _internal_metadata_.unknown_fields()); |
5036 | 0 | } |
5037 | 1.28k | if (_has_bits_[0 / 32] & 31u) { |
5038 | | // optional bytes key = 3; |
5039 | 1.28k | if (has_key()) { |
5040 | 1.28k | total_size += 1 + |
5041 | 1.28k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5042 | 1.28k | this->key()); |
5043 | 1.28k | } |
5044 | | |
5045 | | // optional int64 term = 1; |
5046 | 1.28k | if (has_term()) { |
5047 | 1.28k | total_size += 1 + |
5048 | 1.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
5049 | 1.28k | this->term()); |
5050 | 1.28k | } |
5051 | | |
5052 | | // optional int64 index = 2; |
5053 | 1.28k | if (has_index()) { |
5054 | 1.28k | total_size += 1 + |
5055 | 1.28k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
5056 | 1.28k | this->index()); |
5057 | 1.28k | } |
5058 | | |
5059 | | // optional uint64 snapshot_time = 5; |
5060 | 1.28k | if (has_snapshot_time()) { |
5061 | 1.28k | total_size += 1 + |
5062 | 1.28k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
5063 | 1.28k | this->snapshot_time()); |
5064 | 1.28k | } |
5065 | | |
5066 | | // optional int32 write_id = 4 [default = 0]; |
5067 | 1.28k | if (has_write_id()) { |
5068 | 1.28k | total_size += 1 + |
5069 | 1.28k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5070 | 1.28k | this->write_id()); |
5071 | 1.28k | } |
5072 | | |
5073 | 1.28k | } |
5074 | 1.28k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5075 | 1.28k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5076 | 1.28k | _cached_size_ = cached_size; |
5077 | 1.28k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5078 | 1.28k | return total_size; |
5079 | 1.28k | } |
5080 | | |
5081 | 0 | void CDCSDKCheckpointPB::MergeFrom(const ::google::protobuf::Message& from) { |
5082 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKCheckpointPB) |
5083 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5084 | 0 | const CDCSDKCheckpointPB* source = |
5085 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKCheckpointPB>( |
5086 | 0 | &from); |
5087 | 0 | if (source == NULL) { |
5088 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKCheckpointPB) |
5089 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5090 | 0 | } else { |
5091 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKCheckpointPB) |
5092 | 0 | MergeFrom(*source); |
5093 | 0 | } |
5094 | 0 | } |
5095 | | |
5096 | 677 | void CDCSDKCheckpointPB::MergeFrom(const CDCSDKCheckpointPB& from) { |
5097 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKCheckpointPB) |
5098 | 677 | GOOGLE_DCHECK_NE(&from, this); |
5099 | 677 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5100 | 677 | ::google::protobuf::uint32 cached_has_bits = 0; |
5101 | 677 | (void) cached_has_bits; |
5102 | | |
5103 | 677 | cached_has_bits = from._has_bits_[0]; |
5104 | 677 | if (cached_has_bits & 31u) { |
5105 | 677 | if (cached_has_bits & 0x00000001u) { |
5106 | 677 | set_has_key(); |
5107 | 677 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
5108 | 677 | } |
5109 | 677 | if (cached_has_bits & 0x00000002u) { |
5110 | 677 | term_ = from.term_; |
5111 | 677 | } |
5112 | 677 | if (cached_has_bits & 0x00000004u) { |
5113 | 677 | index_ = from.index_; |
5114 | 677 | } |
5115 | 677 | if (cached_has_bits & 0x00000008u) { |
5116 | 677 | snapshot_time_ = from.snapshot_time_; |
5117 | 677 | } |
5118 | 677 | if (cached_has_bits & 0x00000010u) { |
5119 | 677 | write_id_ = from.write_id_; |
5120 | 677 | } |
5121 | 677 | _has_bits_[0] |= cached_has_bits; |
5122 | 677 | } |
5123 | 677 | } |
5124 | | |
5125 | 0 | void CDCSDKCheckpointPB::CopyFrom(const ::google::protobuf::Message& from) { |
5126 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKCheckpointPB) |
5127 | 0 | if (&from == this) return; |
5128 | 0 | Clear(); |
5129 | 0 | MergeFrom(from); |
5130 | 0 | } |
5131 | | |
5132 | 677 | void CDCSDKCheckpointPB::CopyFrom(const CDCSDKCheckpointPB& from) { |
5133 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKCheckpointPB) |
5134 | 677 | if (&from == this) return0 ; |
5135 | 677 | Clear(); |
5136 | 677 | MergeFrom(from); |
5137 | 677 | } |
5138 | | |
5139 | 0 | bool CDCSDKCheckpointPB::IsInitialized() const { |
5140 | 0 | return true; |
5141 | 0 | } |
5142 | | |
5143 | 0 | void CDCSDKCheckpointPB::Swap(CDCSDKCheckpointPB* other) { |
5144 | 0 | if (other == this) return; |
5145 | 0 | InternalSwap(other); |
5146 | 0 | } |
5147 | 0 | void CDCSDKCheckpointPB::InternalSwap(CDCSDKCheckpointPB* other) { |
5148 | 0 | using std::swap; |
5149 | 0 | key_.Swap(&other->key_); |
5150 | 0 | swap(term_, other->term_); |
5151 | 0 | swap(index_, other->index_); |
5152 | 0 | swap(snapshot_time_, other->snapshot_time_); |
5153 | 0 | swap(write_id_, other->write_id_); |
5154 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5155 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5156 | 0 | swap(_cached_size_, other->_cached_size_); |
5157 | 0 | } |
5158 | | |
5159 | 50 | ::google::protobuf::Metadata CDCSDKCheckpointPB::GetMetadata() const { |
5160 | 50 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
5161 | 50 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
5162 | 50 | } |
5163 | | |
5164 | | |
5165 | | // =================================================================== |
5166 | | |
5167 | 16.4k | void CDCCheckpointPB::InitAsDefaultInstance() { |
5168 | 16.4k | ::yb::cdc::_CDCCheckpointPB_default_instance_._instance.get_mutable()->op_id_ = const_cast< ::yb::OpIdPB*>( |
5169 | 16.4k | ::yb::OpIdPB::internal_default_instance()); |
5170 | 16.4k | } |
5171 | 0 | void CDCCheckpointPB::clear_op_id() { |
5172 | 0 | if (op_id_ != NULL) op_id_->Clear(); |
5173 | 0 | clear_has_op_id(); |
5174 | 0 | } |
5175 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5176 | | const int CDCCheckpointPB::kOpIdFieldNumber; |
5177 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5178 | | |
5179 | | CDCCheckpointPB::CDCCheckpointPB() |
5180 | 17.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5181 | 17.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5182 | 637 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
5183 | 637 | } |
5184 | 17.1k | SharedCtor(); |
5185 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCCheckpointPB) |
5186 | 17.1k | } |
5187 | | CDCCheckpointPB::CDCCheckpointPB(const CDCCheckpointPB& from) |
5188 | | : ::google::protobuf::Message(), |
5189 | | _internal_metadata_(NULL), |
5190 | | _has_bits_(from._has_bits_), |
5191 | 0 | _cached_size_(0) { |
5192 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5193 | 0 | if (from.has_op_id()) { |
5194 | 0 | op_id_ = new ::yb::OpIdPB(*from.op_id_); |
5195 | 0 | } else { |
5196 | 0 | op_id_ = NULL; |
5197 | 0 | } |
5198 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCCheckpointPB) |
5199 | 0 | } |
5200 | | |
5201 | 17.1k | void CDCCheckpointPB::SharedCtor() { |
5202 | 17.1k | _cached_size_ = 0; |
5203 | 17.1k | op_id_ = NULL; |
5204 | 17.1k | } |
5205 | | |
5206 | 637 | CDCCheckpointPB::~CDCCheckpointPB() { |
5207 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCCheckpointPB) |
5208 | 637 | SharedDtor(); |
5209 | 637 | } |
5210 | | |
5211 | 637 | void CDCCheckpointPB::SharedDtor() { |
5212 | 637 | if (this != internal_default_instance()) delete op_id_; |
5213 | 637 | } |
5214 | | |
5215 | 0 | void CDCCheckpointPB::SetCachedSize(int size) const { |
5216 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5217 | 0 | _cached_size_ = size; |
5218 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5219 | 0 | } |
5220 | 0 | const ::google::protobuf::Descriptor* CDCCheckpointPB::descriptor() { |
5221 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
5222 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5223 | 0 | } |
5224 | | |
5225 | 0 | const CDCCheckpointPB& CDCCheckpointPB::default_instance() { |
5226 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB(); |
5227 | 0 | return *internal_default_instance(); |
5228 | 0 | } |
5229 | | |
5230 | 0 | CDCCheckpointPB* CDCCheckpointPB::New(::google::protobuf::Arena* arena) const { |
5231 | 0 | CDCCheckpointPB* n = new CDCCheckpointPB; |
5232 | 0 | if (arena != NULL) { |
5233 | 0 | arena->Own(n); |
5234 | 0 | } |
5235 | 0 | return n; |
5236 | 0 | } |
5237 | | |
5238 | 0 | void CDCCheckpointPB::Clear() { |
5239 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCCheckpointPB) |
5240 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5241 | | // Prevent compiler warnings about cached_has_bits being unused |
5242 | 0 | (void) cached_has_bits; |
5243 | |
|
5244 | 0 | cached_has_bits = _has_bits_[0]; |
5245 | 0 | if (cached_has_bits & 0x00000001u) { |
5246 | 0 | GOOGLE_DCHECK(op_id_ != NULL); |
5247 | 0 | op_id_->Clear(); |
5248 | 0 | } |
5249 | 0 | _has_bits_.Clear(); |
5250 | 0 | _internal_metadata_.Clear(); |
5251 | 0 | } |
5252 | | |
5253 | | bool CDCCheckpointPB::MergePartialFromCodedStream( |
5254 | 6 | ::google::protobuf::io::CodedInputStream* input) { |
5255 | 6 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5256 | 6 | ::google::protobuf::uint32 tag; |
5257 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCCheckpointPB) |
5258 | 12 | for (;;) { |
5259 | 12 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5260 | 12 | tag = p.first; |
5261 | 12 | if (!p.second) goto handle_unusual6 ; |
5262 | 6 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5263 | | // optional .yb.OpIdPB op_id = 1; |
5264 | 6 | case 1: { |
5265 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5266 | 6 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5267 | 6 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5268 | 6 | input, mutable_op_id())); |
5269 | 6 | } else { |
5270 | 0 | goto handle_unusual; |
5271 | 0 | } |
5272 | 6 | break; |
5273 | 6 | } |
5274 | | |
5275 | 6 | default: { |
5276 | 6 | handle_unusual: |
5277 | 6 | if (tag == 0) { |
5278 | 6 | goto success; |
5279 | 6 | } |
5280 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5281 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5282 | 0 | break; |
5283 | 0 | } |
5284 | 6 | } |
5285 | 6 | } |
5286 | 6 | success: |
5287 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCCheckpointPB) |
5288 | 6 | return true; |
5289 | 0 | failure: |
5290 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCCheckpointPB) |
5291 | 0 | return false; |
5292 | 6 | #undef DO_ |
5293 | 6 | } |
5294 | | |
5295 | | void CDCCheckpointPB::SerializeWithCachedSizes( |
5296 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5297 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCCheckpointPB) |
5298 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5299 | 0 | (void) cached_has_bits; |
5300 | |
|
5301 | 0 | cached_has_bits = _has_bits_[0]; |
5302 | | // optional .yb.OpIdPB op_id = 1; |
5303 | 0 | if (cached_has_bits & 0x00000001u) { |
5304 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5305 | 0 | 1, *this->op_id_, output); |
5306 | 0 | } |
5307 | |
|
5308 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5309 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5310 | 0 | _internal_metadata_.unknown_fields(), output); |
5311 | 0 | } |
5312 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCCheckpointPB) |
5313 | 0 | } |
5314 | | |
5315 | | ::google::protobuf::uint8* CDCCheckpointPB::InternalSerializeWithCachedSizesToArray( |
5316 | 631 | bool deterministic, ::google::protobuf::uint8* target) const { |
5317 | 631 | (void)deterministic; // Unused |
5318 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCCheckpointPB) |
5319 | 631 | ::google::protobuf::uint32 cached_has_bits = 0; |
5320 | 631 | (void) cached_has_bits; |
5321 | | |
5322 | 631 | cached_has_bits = _has_bits_[0]; |
5323 | | // optional .yb.OpIdPB op_id = 1; |
5324 | 631 | if (cached_has_bits & 0x00000001u) { |
5325 | 631 | target = ::google::protobuf::internal::WireFormatLite:: |
5326 | 631 | InternalWriteMessageToArray( |
5327 | 631 | 1, *this->op_id_, deterministic, target); |
5328 | 631 | } |
5329 | | |
5330 | 631 | if (_internal_metadata_.have_unknown_fields()) { |
5331 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5332 | 0 | _internal_metadata_.unknown_fields(), target); |
5333 | 0 | } |
5334 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCCheckpointPB) |
5335 | 631 | return target; |
5336 | 631 | } |
5337 | | |
5338 | 1.26k | size_t CDCCheckpointPB::ByteSizeLong() const { |
5339 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCCheckpointPB) |
5340 | 1.26k | size_t total_size = 0; |
5341 | | |
5342 | 1.26k | if (_internal_metadata_.have_unknown_fields()) { |
5343 | 0 | total_size += |
5344 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5345 | 0 | _internal_metadata_.unknown_fields()); |
5346 | 0 | } |
5347 | | // optional .yb.OpIdPB op_id = 1; |
5348 | 1.26k | if (has_op_id()) { |
5349 | 1.26k | total_size += 1 + |
5350 | 1.26k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5351 | 1.26k | *this->op_id_); |
5352 | 1.26k | } |
5353 | | |
5354 | 1.26k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5355 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5356 | 1.26k | _cached_size_ = cached_size; |
5357 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5358 | 1.26k | return total_size; |
5359 | 1.26k | } |
5360 | | |
5361 | 0 | void CDCCheckpointPB::MergeFrom(const ::google::protobuf::Message& from) { |
5362 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCCheckpointPB) |
5363 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5364 | 0 | const CDCCheckpointPB* source = |
5365 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCCheckpointPB>( |
5366 | 0 | &from); |
5367 | 0 | if (source == NULL) { |
5368 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCCheckpointPB) |
5369 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5370 | 0 | } else { |
5371 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCCheckpointPB) |
5372 | 0 | MergeFrom(*source); |
5373 | 0 | } |
5374 | 0 | } |
5375 | | |
5376 | 0 | void CDCCheckpointPB::MergeFrom(const CDCCheckpointPB& from) { |
5377 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCCheckpointPB) |
5378 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5379 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5380 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5381 | 0 | (void) cached_has_bits; |
5382 | |
|
5383 | 0 | if (from.has_op_id()) { |
5384 | 0 | mutable_op_id()->::yb::OpIdPB::MergeFrom(from.op_id()); |
5385 | 0 | } |
5386 | 0 | } |
5387 | | |
5388 | 0 | void CDCCheckpointPB::CopyFrom(const ::google::protobuf::Message& from) { |
5389 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCCheckpointPB) |
5390 | 0 | if (&from == this) return; |
5391 | 0 | Clear(); |
5392 | 0 | MergeFrom(from); |
5393 | 0 | } |
5394 | | |
5395 | 0 | void CDCCheckpointPB::CopyFrom(const CDCCheckpointPB& from) { |
5396 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCCheckpointPB) |
5397 | 0 | if (&from == this) return; |
5398 | 0 | Clear(); |
5399 | 0 | MergeFrom(from); |
5400 | 0 | } |
5401 | | |
5402 | 637 | bool CDCCheckpointPB::IsInitialized() const { |
5403 | 637 | if (has_op_id()) { |
5404 | 637 | if (!this->op_id_->IsInitialized()) return false0 ; |
5405 | 637 | } |
5406 | 637 | return true; |
5407 | 637 | } |
5408 | | |
5409 | 0 | void CDCCheckpointPB::Swap(CDCCheckpointPB* other) { |
5410 | 0 | if (other == this) return; |
5411 | 0 | InternalSwap(other); |
5412 | 0 | } |
5413 | 0 | void CDCCheckpointPB::InternalSwap(CDCCheckpointPB* other) { |
5414 | 0 | using std::swap; |
5415 | 0 | swap(op_id_, other->op_id_); |
5416 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5417 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5418 | 0 | swap(_cached_size_, other->_cached_size_); |
5419 | 0 | } |
5420 | | |
5421 | 6 | ::google::protobuf::Metadata CDCCheckpointPB::GetMetadata() const { |
5422 | 6 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
5423 | 6 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
5424 | 6 | } |
5425 | | |
5426 | | |
5427 | | // =================================================================== |
5428 | | |
5429 | 16.4k | void GetChangesRequestPB::InitAsDefaultInstance() { |
5430 | 16.4k | ::yb::cdc::_GetChangesRequestPB_default_instance_._instance.get_mutable()->from_checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>( |
5431 | 16.4k | ::yb::cdc::CDCCheckpointPB::internal_default_instance()); |
5432 | 16.4k | ::yb::cdc::_GetChangesRequestPB_default_instance_._instance.get_mutable()->from_cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>( |
5433 | 16.4k | ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance()); |
5434 | 16.4k | } |
5435 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5436 | | const int GetChangesRequestPB::kStreamIdFieldNumber; |
5437 | | const int GetChangesRequestPB::kTabletIdFieldNumber; |
5438 | | const int GetChangesRequestPB::kFromCheckpointFieldNumber; |
5439 | | const int GetChangesRequestPB::kMaxRecordsFieldNumber; |
5440 | | const int GetChangesRequestPB::kServeAsProxyFieldNumber; |
5441 | | const int GetChangesRequestPB::kDbStreamIdFieldNumber; |
5442 | | const int GetChangesRequestPB::kTableIdFieldNumber; |
5443 | | const int GetChangesRequestPB::kFromCdcSdkCheckpointFieldNumber; |
5444 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5445 | | |
5446 | | GetChangesRequestPB::GetChangesRequestPB() |
5447 | 17.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5448 | 17.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5449 | 642 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesRequestPB(); |
5450 | 642 | } |
5451 | 17.1k | SharedCtor(); |
5452 | | // @@protoc_insertion_point(constructor:yb.cdc.GetChangesRequestPB) |
5453 | 17.1k | } |
5454 | | GetChangesRequestPB::GetChangesRequestPB(const GetChangesRequestPB& from) |
5455 | | : ::google::protobuf::Message(), |
5456 | | _internal_metadata_(NULL), |
5457 | | _has_bits_(from._has_bits_), |
5458 | 0 | _cached_size_(0) { |
5459 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5460 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5461 | 0 | if (from.has_stream_id()) { |
5462 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
5463 | 0 | } |
5464 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5465 | 0 | if (from.has_tablet_id()) { |
5466 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
5467 | 0 | } |
5468 | 0 | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5469 | 0 | if (from.has_db_stream_id()) { |
5470 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
5471 | 0 | } |
5472 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5473 | 0 | if (from.has_table_id()) { |
5474 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
5475 | 0 | } |
5476 | 0 | if (from.has_from_checkpoint()) { |
5477 | 0 | from_checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.from_checkpoint_); |
5478 | 0 | } else { |
5479 | 0 | from_checkpoint_ = NULL; |
5480 | 0 | } |
5481 | 0 | if (from.has_from_cdc_sdk_checkpoint()) { |
5482 | 0 | from_cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.from_cdc_sdk_checkpoint_); |
5483 | 0 | } else { |
5484 | 0 | from_cdc_sdk_checkpoint_ = NULL; |
5485 | 0 | } |
5486 | 0 | ::memcpy(&max_records_, &from.max_records_, |
5487 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&serve_as_proxy_) - |
5488 | 0 | reinterpret_cast<char*>(&max_records_)) + sizeof(serve_as_proxy_)); |
5489 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetChangesRequestPB) |
5490 | 0 | } |
5491 | | |
5492 | 17.1k | void GetChangesRequestPB::SharedCtor() { |
5493 | 17.1k | _cached_size_ = 0; |
5494 | 17.1k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5495 | 17.1k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5496 | 17.1k | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5497 | 17.1k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5498 | 17.1k | ::memset(&from_checkpoint_, 0, static_cast<size_t>( |
5499 | 17.1k | reinterpret_cast<char*>(&max_records_) - |
5500 | 17.1k | reinterpret_cast<char*>(&from_checkpoint_)) + sizeof(max_records_)); |
5501 | 17.1k | serve_as_proxy_ = true; |
5502 | 17.1k | } |
5503 | | |
5504 | 642 | GetChangesRequestPB::~GetChangesRequestPB() { |
5505 | | // @@protoc_insertion_point(destructor:yb.cdc.GetChangesRequestPB) |
5506 | 642 | SharedDtor(); |
5507 | 642 | } |
5508 | | |
5509 | 642 | void GetChangesRequestPB::SharedDtor() { |
5510 | 642 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5511 | 642 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5512 | 642 | db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5513 | 642 | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5514 | 642 | if (this != internal_default_instance()) delete from_checkpoint_; |
5515 | 642 | if (this != internal_default_instance()) delete from_cdc_sdk_checkpoint_; |
5516 | 642 | } |
5517 | | |
5518 | 0 | void GetChangesRequestPB::SetCachedSize(int size) const { |
5519 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5520 | 0 | _cached_size_ = size; |
5521 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5522 | 0 | } |
5523 | 0 | const ::google::protobuf::Descriptor* GetChangesRequestPB::descriptor() { |
5524 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
5525 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5526 | 0 | } |
5527 | | |
5528 | 0 | const GetChangesRequestPB& GetChangesRequestPB::default_instance() { |
5529 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesRequestPB(); |
5530 | 0 | return *internal_default_instance(); |
5531 | 0 | } |
5532 | | |
5533 | 0 | GetChangesRequestPB* GetChangesRequestPB::New(::google::protobuf::Arena* arena) const { |
5534 | 0 | GetChangesRequestPB* n = new GetChangesRequestPB; |
5535 | 0 | if (arena != NULL) { |
5536 | 0 | arena->Own(n); |
5537 | 0 | } |
5538 | 0 | return n; |
5539 | 0 | } |
5540 | | |
5541 | 642 | void GetChangesRequestPB::Clear() { |
5542 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetChangesRequestPB) |
5543 | 642 | ::google::protobuf::uint32 cached_has_bits = 0; |
5544 | | // Prevent compiler warnings about cached_has_bits being unused |
5545 | 642 | (void) cached_has_bits; |
5546 | | |
5547 | 642 | cached_has_bits = _has_bits_[0]; |
5548 | 642 | if (cached_has_bits & 63u) { |
5549 | 0 | if (cached_has_bits & 0x00000001u) { |
5550 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5551 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
5552 | 0 | } |
5553 | 0 | if (cached_has_bits & 0x00000002u) { |
5554 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5555 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
5556 | 0 | } |
5557 | 0 | if (cached_has_bits & 0x00000004u) { |
5558 | 0 | GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5559 | 0 | (*db_stream_id_.UnsafeRawStringPointer())->clear(); |
5560 | 0 | } |
5561 | 0 | if (cached_has_bits & 0x00000008u) { |
5562 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5563 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
5564 | 0 | } |
5565 | 0 | if (cached_has_bits & 0x00000010u) { |
5566 | 0 | GOOGLE_DCHECK(from_checkpoint_ != NULL); |
5567 | 0 | from_checkpoint_->Clear(); |
5568 | 0 | } |
5569 | 0 | if (cached_has_bits & 0x00000020u) { |
5570 | 0 | GOOGLE_DCHECK(from_cdc_sdk_checkpoint_ != NULL); |
5571 | 0 | from_cdc_sdk_checkpoint_->Clear(); |
5572 | 0 | } |
5573 | 0 | } |
5574 | 642 | if (cached_has_bits & 192u) { |
5575 | 0 | max_records_ = 0u; |
5576 | 0 | serve_as_proxy_ = true; |
5577 | 0 | } |
5578 | 642 | _has_bits_.Clear(); |
5579 | 642 | _internal_metadata_.Clear(); |
5580 | 642 | } |
5581 | | |
5582 | | bool GetChangesRequestPB::MergePartialFromCodedStream( |
5583 | 642 | ::google::protobuf::io::CodedInputStream* input) { |
5584 | 1.32k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5585 | 642 | ::google::protobuf::uint32 tag; |
5586 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetChangesRequestPB) |
5587 | 1.96k | for (;;) { |
5588 | 1.96k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5589 | 1.96k | tag = p.first; |
5590 | 1.96k | if (!p.second) goto handle_unusual642 ; |
5591 | 1.32k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5592 | | // optional bytes stream_id = 1; |
5593 | 0 | case 1: { |
5594 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5595 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5596 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5597 | 0 | input, this->mutable_stream_id())); |
5598 | 0 | } else { |
5599 | 0 | goto handle_unusual; |
5600 | 0 | } |
5601 | 0 | break; |
5602 | 0 | } |
5603 | | |
5604 | | // optional bytes tablet_id = 2; |
5605 | 642 | case 2: { |
5606 | 642 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5607 | 642 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5608 | 642 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5609 | 642 | input, this->mutable_tablet_id())); |
5610 | 642 | } else { |
5611 | 0 | goto handle_unusual; |
5612 | 0 | } |
5613 | 642 | break; |
5614 | 642 | } |
5615 | | |
5616 | | // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3; |
5617 | 642 | case 3: { |
5618 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5619 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5620 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5621 | 0 | input, mutable_from_checkpoint())); |
5622 | 0 | } else { |
5623 | 0 | goto handle_unusual; |
5624 | 0 | } |
5625 | 0 | break; |
5626 | 0 | } |
5627 | | |
5628 | | // optional uint32 max_records = 4; |
5629 | 0 | case 4: { |
5630 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5631 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
5632 | 0 | set_has_max_records(); |
5633 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5634 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
5635 | 0 | input, &max_records_))); |
5636 | 0 | } else { |
5637 | 0 | goto handle_unusual; |
5638 | 0 | } |
5639 | 0 | break; |
5640 | 0 | } |
5641 | | |
5642 | | // optional bool serve_as_proxy = 5 [default = true]; |
5643 | 0 | case 5: { |
5644 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5645 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
5646 | 0 | set_has_serve_as_proxy(); |
5647 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5648 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5649 | 0 | input, &serve_as_proxy_))); |
5650 | 0 | } else { |
5651 | 0 | goto handle_unusual; |
5652 | 0 | } |
5653 | 0 | break; |
5654 | 0 | } |
5655 | | |
5656 | | // optional bytes db_stream_id = 6; |
5657 | 642 | case 6: { |
5658 | 642 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5659 | 642 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
5660 | 642 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5661 | 642 | input, this->mutable_db_stream_id())); |
5662 | 642 | } else { |
5663 | 0 | goto handle_unusual; |
5664 | 0 | } |
5665 | 642 | break; |
5666 | 642 | } |
5667 | | |
5668 | | // optional bytes table_id = 7; |
5669 | 642 | case 7: { |
5670 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5671 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
5672 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5673 | 0 | input, this->mutable_table_id())); |
5674 | 0 | } else { |
5675 | 0 | goto handle_unusual; |
5676 | 0 | } |
5677 | 0 | break; |
5678 | 0 | } |
5679 | | |
5680 | | // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8; |
5681 | 36 | case 8: { |
5682 | 36 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5683 | 36 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
5684 | 36 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5685 | 36 | input, mutable_from_cdc_sdk_checkpoint())); |
5686 | 36 | } else { |
5687 | 0 | goto handle_unusual; |
5688 | 0 | } |
5689 | 36 | break; |
5690 | 36 | } |
5691 | | |
5692 | 36 | default: { |
5693 | 642 | handle_unusual: |
5694 | 642 | if (tag == 0) { |
5695 | 642 | goto success; |
5696 | 642 | } |
5697 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5698 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5699 | 0 | break; |
5700 | 0 | } |
5701 | 1.32k | } |
5702 | 1.32k | } |
5703 | 642 | success: |
5704 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetChangesRequestPB) |
5705 | 642 | return true; |
5706 | 0 | failure: |
5707 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetChangesRequestPB) |
5708 | 0 | return false; |
5709 | 642 | #undef DO_ |
5710 | 642 | } |
5711 | | |
5712 | | void GetChangesRequestPB::SerializeWithCachedSizes( |
5713 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5714 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetChangesRequestPB) |
5715 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5716 | 0 | (void) cached_has_bits; |
5717 | |
|
5718 | 0 | cached_has_bits = _has_bits_[0]; |
5719 | | // optional bytes stream_id = 1; |
5720 | 0 | if (cached_has_bits & 0x00000001u) { |
5721 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5722 | 0 | 1, this->stream_id(), output); |
5723 | 0 | } |
5724 | | |
5725 | | // optional bytes tablet_id = 2; |
5726 | 0 | if (cached_has_bits & 0x00000002u) { |
5727 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5728 | 0 | 2, this->tablet_id(), output); |
5729 | 0 | } |
5730 | | |
5731 | | // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3; |
5732 | 0 | if (cached_has_bits & 0x00000010u) { |
5733 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5734 | 0 | 3, *this->from_checkpoint_, output); |
5735 | 0 | } |
5736 | | |
5737 | | // optional uint32 max_records = 4; |
5738 | 0 | if (cached_has_bits & 0x00000040u) { |
5739 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->max_records(), output); |
5740 | 0 | } |
5741 | | |
5742 | | // optional bool serve_as_proxy = 5 [default = true]; |
5743 | 0 | if (cached_has_bits & 0x00000080u) { |
5744 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->serve_as_proxy(), output); |
5745 | 0 | } |
5746 | | |
5747 | | // optional bytes db_stream_id = 6; |
5748 | 0 | if (cached_has_bits & 0x00000004u) { |
5749 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5750 | 0 | 6, this->db_stream_id(), output); |
5751 | 0 | } |
5752 | | |
5753 | | // optional bytes table_id = 7; |
5754 | 0 | if (cached_has_bits & 0x00000008u) { |
5755 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5756 | 0 | 7, this->table_id(), output); |
5757 | 0 | } |
5758 | | |
5759 | | // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8; |
5760 | 0 | if (cached_has_bits & 0x00000020u) { |
5761 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5762 | 0 | 8, *this->from_cdc_sdk_checkpoint_, output); |
5763 | 0 | } |
5764 | |
|
5765 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5766 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5767 | 0 | _internal_metadata_.unknown_fields(), output); |
5768 | 0 | } |
5769 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetChangesRequestPB) |
5770 | 0 | } |
5771 | | |
5772 | | ::google::protobuf::uint8* GetChangesRequestPB::InternalSerializeWithCachedSizesToArray( |
5773 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
5774 | 0 | (void)deterministic; // Unused |
5775 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetChangesRequestPB) |
5776 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5777 | 0 | (void) cached_has_bits; |
5778 | |
|
5779 | 0 | cached_has_bits = _has_bits_[0]; |
5780 | | // optional bytes stream_id = 1; |
5781 | 0 | if (cached_has_bits & 0x00000001u) { |
5782 | 0 | target = |
5783 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5784 | 0 | 1, this->stream_id(), target); |
5785 | 0 | } |
5786 | | |
5787 | | // optional bytes tablet_id = 2; |
5788 | 0 | if (cached_has_bits & 0x00000002u) { |
5789 | 0 | target = |
5790 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5791 | 0 | 2, this->tablet_id(), target); |
5792 | 0 | } |
5793 | | |
5794 | | // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3; |
5795 | 0 | if (cached_has_bits & 0x00000010u) { |
5796 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5797 | 0 | InternalWriteMessageToArray( |
5798 | 0 | 3, *this->from_checkpoint_, deterministic, target); |
5799 | 0 | } |
5800 | | |
5801 | | // optional uint32 max_records = 4; |
5802 | 0 | if (cached_has_bits & 0x00000040u) { |
5803 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->max_records(), target); |
5804 | 0 | } |
5805 | | |
5806 | | // optional bool serve_as_proxy = 5 [default = true]; |
5807 | 0 | if (cached_has_bits & 0x00000080u) { |
5808 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->serve_as_proxy(), target); |
5809 | 0 | } |
5810 | | |
5811 | | // optional bytes db_stream_id = 6; |
5812 | 0 | if (cached_has_bits & 0x00000004u) { |
5813 | 0 | target = |
5814 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5815 | 0 | 6, this->db_stream_id(), target); |
5816 | 0 | } |
5817 | | |
5818 | | // optional bytes table_id = 7; |
5819 | 0 | if (cached_has_bits & 0x00000008u) { |
5820 | 0 | target = |
5821 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5822 | 0 | 7, this->table_id(), target); |
5823 | 0 | } |
5824 | | |
5825 | | // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8; |
5826 | 0 | if (cached_has_bits & 0x00000020u) { |
5827 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5828 | 0 | InternalWriteMessageToArray( |
5829 | 0 | 8, *this->from_cdc_sdk_checkpoint_, deterministic, target); |
5830 | 0 | } |
5831 | |
|
5832 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5833 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5834 | 0 | _internal_metadata_.unknown_fields(), target); |
5835 | 0 | } |
5836 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetChangesRequestPB) |
5837 | 0 | return target; |
5838 | 0 | } |
5839 | | |
5840 | 0 | size_t GetChangesRequestPB::ByteSizeLong() const { |
5841 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetChangesRequestPB) |
5842 | 0 | size_t total_size = 0; |
5843 | |
|
5844 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5845 | 0 | total_size += |
5846 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5847 | 0 | _internal_metadata_.unknown_fields()); |
5848 | 0 | } |
5849 | 0 | if (_has_bits_[0 / 32] & 255u) { |
5850 | | // optional bytes stream_id = 1; |
5851 | 0 | if (has_stream_id()) { |
5852 | 0 | total_size += 1 + |
5853 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5854 | 0 | this->stream_id()); |
5855 | 0 | } |
5856 | | |
5857 | | // optional bytes tablet_id = 2; |
5858 | 0 | if (has_tablet_id()) { |
5859 | 0 | total_size += 1 + |
5860 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5861 | 0 | this->tablet_id()); |
5862 | 0 | } |
5863 | | |
5864 | | // optional bytes db_stream_id = 6; |
5865 | 0 | if (has_db_stream_id()) { |
5866 | 0 | total_size += 1 + |
5867 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5868 | 0 | this->db_stream_id()); |
5869 | 0 | } |
5870 | | |
5871 | | // optional bytes table_id = 7; |
5872 | 0 | if (has_table_id()) { |
5873 | 0 | total_size += 1 + |
5874 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5875 | 0 | this->table_id()); |
5876 | 0 | } |
5877 | | |
5878 | | // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3; |
5879 | 0 | if (has_from_checkpoint()) { |
5880 | 0 | total_size += 1 + |
5881 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5882 | 0 | *this->from_checkpoint_); |
5883 | 0 | } |
5884 | | |
5885 | | // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8; |
5886 | 0 | if (has_from_cdc_sdk_checkpoint()) { |
5887 | 0 | total_size += 1 + |
5888 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5889 | 0 | *this->from_cdc_sdk_checkpoint_); |
5890 | 0 | } |
5891 | | |
5892 | | // optional uint32 max_records = 4; |
5893 | 0 | if (has_max_records()) { |
5894 | 0 | total_size += 1 + |
5895 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
5896 | 0 | this->max_records()); |
5897 | 0 | } |
5898 | | |
5899 | | // optional bool serve_as_proxy = 5 [default = true]; |
5900 | 0 | if (has_serve_as_proxy()) { |
5901 | 0 | total_size += 1 + 1; |
5902 | 0 | } |
5903 | |
|
5904 | 0 | } |
5905 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5906 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5907 | 0 | _cached_size_ = cached_size; |
5908 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5909 | 0 | return total_size; |
5910 | 0 | } |
5911 | | |
5912 | 0 | void GetChangesRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
5913 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetChangesRequestPB) |
5914 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5915 | 0 | const GetChangesRequestPB* source = |
5916 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetChangesRequestPB>( |
5917 | 0 | &from); |
5918 | 0 | if (source == NULL) { |
5919 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetChangesRequestPB) |
5920 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5921 | 0 | } else { |
5922 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetChangesRequestPB) |
5923 | 0 | MergeFrom(*source); |
5924 | 0 | } |
5925 | 0 | } |
5926 | | |
5927 | 0 | void GetChangesRequestPB::MergeFrom(const GetChangesRequestPB& from) { |
5928 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetChangesRequestPB) |
5929 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5930 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5931 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5932 | 0 | (void) cached_has_bits; |
5933 | |
|
5934 | 0 | cached_has_bits = from._has_bits_[0]; |
5935 | 0 | if (cached_has_bits & 255u) { |
5936 | 0 | if (cached_has_bits & 0x00000001u) { |
5937 | 0 | set_has_stream_id(); |
5938 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
5939 | 0 | } |
5940 | 0 | if (cached_has_bits & 0x00000002u) { |
5941 | 0 | set_has_tablet_id(); |
5942 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
5943 | 0 | } |
5944 | 0 | if (cached_has_bits & 0x00000004u) { |
5945 | 0 | set_has_db_stream_id(); |
5946 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
5947 | 0 | } |
5948 | 0 | if (cached_has_bits & 0x00000008u) { |
5949 | 0 | set_has_table_id(); |
5950 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
5951 | 0 | } |
5952 | 0 | if (cached_has_bits & 0x00000010u) { |
5953 | 0 | mutable_from_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.from_checkpoint()); |
5954 | 0 | } |
5955 | 0 | if (cached_has_bits & 0x00000020u) { |
5956 | 0 | mutable_from_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.from_cdc_sdk_checkpoint()); |
5957 | 0 | } |
5958 | 0 | if (cached_has_bits & 0x00000040u) { |
5959 | 0 | max_records_ = from.max_records_; |
5960 | 0 | } |
5961 | 0 | if (cached_has_bits & 0x00000080u) { |
5962 | 0 | serve_as_proxy_ = from.serve_as_proxy_; |
5963 | 0 | } |
5964 | 0 | _has_bits_[0] |= cached_has_bits; |
5965 | 0 | } |
5966 | 0 | } |
5967 | | |
5968 | 0 | void GetChangesRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
5969 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetChangesRequestPB) |
5970 | 0 | if (&from == this) return; |
5971 | 0 | Clear(); |
5972 | 0 | MergeFrom(from); |
5973 | 0 | } |
5974 | | |
5975 | 0 | void GetChangesRequestPB::CopyFrom(const GetChangesRequestPB& from) { |
5976 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetChangesRequestPB) |
5977 | 0 | if (&from == this) return; |
5978 | 0 | Clear(); |
5979 | 0 | MergeFrom(from); |
5980 | 0 | } |
5981 | | |
5982 | 642 | bool GetChangesRequestPB::IsInitialized() const { |
5983 | 642 | if (has_from_checkpoint()) { |
5984 | 0 | if (!this->from_checkpoint_->IsInitialized()) return false; |
5985 | 0 | } |
5986 | 642 | return true; |
5987 | 642 | } |
5988 | | |
5989 | 0 | void GetChangesRequestPB::Swap(GetChangesRequestPB* other) { |
5990 | 0 | if (other == this) return; |
5991 | 0 | InternalSwap(other); |
5992 | 0 | } |
5993 | 0 | void GetChangesRequestPB::InternalSwap(GetChangesRequestPB* other) { |
5994 | 0 | using std::swap; |
5995 | 0 | stream_id_.Swap(&other->stream_id_); |
5996 | 0 | tablet_id_.Swap(&other->tablet_id_); |
5997 | 0 | db_stream_id_.Swap(&other->db_stream_id_); |
5998 | 0 | table_id_.Swap(&other->table_id_); |
5999 | 0 | swap(from_checkpoint_, other->from_checkpoint_); |
6000 | 0 | swap(from_cdc_sdk_checkpoint_, other->from_cdc_sdk_checkpoint_); |
6001 | 0 | swap(max_records_, other->max_records_); |
6002 | 0 | swap(serve_as_proxy_, other->serve_as_proxy_); |
6003 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6004 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6005 | 0 | swap(_cached_size_, other->_cached_size_); |
6006 | 0 | } |
6007 | | |
6008 | 828 | ::google::protobuf::Metadata GetChangesRequestPB::GetMetadata() const { |
6009 | 828 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
6010 | 828 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
6011 | 828 | } |
6012 | | |
6013 | | |
6014 | | // =================================================================== |
6015 | | |
6016 | 16.4k | void KeyValuePairPB::InitAsDefaultInstance() { |
6017 | 16.4k | ::yb::cdc::_KeyValuePairPB_default_instance_._instance.get_mutable()->value_ = const_cast< ::yb::QLValuePB*>( |
6018 | 16.4k | ::yb::QLValuePB::internal_default_instance()); |
6019 | 16.4k | } |
6020 | 0 | void KeyValuePairPB::clear_value() { |
6021 | 0 | if (value_ != NULL) value_->Clear(); |
6022 | 0 | clear_has_value(); |
6023 | 0 | } |
6024 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6025 | | const int KeyValuePairPB::kKeyFieldNumber; |
6026 | | const int KeyValuePairPB::kValueFieldNumber; |
6027 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6028 | | |
6029 | | KeyValuePairPB::KeyValuePairPB() |
6030 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6031 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6032 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB(); |
6033 | 0 | } |
6034 | 16.4k | SharedCtor(); |
6035 | | // @@protoc_insertion_point(constructor:yb.cdc.KeyValuePairPB) |
6036 | 16.4k | } |
6037 | | KeyValuePairPB::KeyValuePairPB(const KeyValuePairPB& from) |
6038 | | : ::google::protobuf::Message(), |
6039 | | _internal_metadata_(NULL), |
6040 | | _has_bits_(from._has_bits_), |
6041 | 0 | _cached_size_(0) { |
6042 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6043 | 0 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6044 | 0 | if (from.has_key()) { |
6045 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
6046 | 0 | } |
6047 | 0 | if (from.has_value()) { |
6048 | 0 | value_ = new ::yb::QLValuePB(*from.value_); |
6049 | 0 | } else { |
6050 | 0 | value_ = NULL; |
6051 | 0 | } |
6052 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.KeyValuePairPB) |
6053 | 0 | } |
6054 | | |
6055 | 16.4k | void KeyValuePairPB::SharedCtor() { |
6056 | 16.4k | _cached_size_ = 0; |
6057 | 16.4k | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6058 | 16.4k | value_ = NULL; |
6059 | 16.4k | } |
6060 | | |
6061 | 0 | KeyValuePairPB::~KeyValuePairPB() { |
6062 | | // @@protoc_insertion_point(destructor:yb.cdc.KeyValuePairPB) |
6063 | 0 | SharedDtor(); |
6064 | 0 | } |
6065 | | |
6066 | 0 | void KeyValuePairPB::SharedDtor() { |
6067 | 0 | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6068 | 0 | if (this != internal_default_instance()) delete value_; |
6069 | 0 | } |
6070 | | |
6071 | 0 | void KeyValuePairPB::SetCachedSize(int size) const { |
6072 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6073 | 0 | _cached_size_ = size; |
6074 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6075 | 0 | } |
6076 | 0 | const ::google::protobuf::Descriptor* KeyValuePairPB::descriptor() { |
6077 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
6078 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6079 | 0 | } |
6080 | | |
6081 | 0 | const KeyValuePairPB& KeyValuePairPB::default_instance() { |
6082 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB(); |
6083 | 0 | return *internal_default_instance(); |
6084 | 0 | } |
6085 | | |
6086 | 0 | KeyValuePairPB* KeyValuePairPB::New(::google::protobuf::Arena* arena) const { |
6087 | 0 | KeyValuePairPB* n = new KeyValuePairPB; |
6088 | 0 | if (arena != NULL) { |
6089 | 0 | arena->Own(n); |
6090 | 0 | } |
6091 | 0 | return n; |
6092 | 0 | } |
6093 | | |
6094 | 0 | void KeyValuePairPB::Clear() { |
6095 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.KeyValuePairPB) |
6096 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6097 | | // Prevent compiler warnings about cached_has_bits being unused |
6098 | 0 | (void) cached_has_bits; |
6099 | |
|
6100 | 0 | cached_has_bits = _has_bits_[0]; |
6101 | 0 | if (cached_has_bits & 3u) { |
6102 | 0 | if (cached_has_bits & 0x00000001u) { |
6103 | 0 | GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
6104 | 0 | (*key_.UnsafeRawStringPointer())->clear(); |
6105 | 0 | } |
6106 | 0 | if (cached_has_bits & 0x00000002u) { |
6107 | 0 | GOOGLE_DCHECK(value_ != NULL); |
6108 | 0 | value_->Clear(); |
6109 | 0 | } |
6110 | 0 | } |
6111 | 0 | _has_bits_.Clear(); |
6112 | 0 | _internal_metadata_.Clear(); |
6113 | 0 | } |
6114 | | |
6115 | | bool KeyValuePairPB::MergePartialFromCodedStream( |
6116 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
6117 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6118 | 0 | ::google::protobuf::uint32 tag; |
6119 | | // @@protoc_insertion_point(parse_start:yb.cdc.KeyValuePairPB) |
6120 | 0 | for (;;) { |
6121 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6122 | 0 | tag = p.first; |
6123 | 0 | if (!p.second) goto handle_unusual; |
6124 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6125 | | // optional bytes key = 1; |
6126 | 0 | case 1: { |
6127 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6128 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
6129 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
6130 | 0 | input, this->mutable_key())); |
6131 | 0 | } else { |
6132 | 0 | goto handle_unusual; |
6133 | 0 | } |
6134 | 0 | break; |
6135 | 0 | } |
6136 | | |
6137 | | // optional .yb.QLValuePB value = 2; |
6138 | 0 | case 2: { |
6139 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6140 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
6141 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6142 | 0 | input, mutable_value())); |
6143 | 0 | } else { |
6144 | 0 | goto handle_unusual; |
6145 | 0 | } |
6146 | 0 | break; |
6147 | 0 | } |
6148 | | |
6149 | 0 | default: { |
6150 | 0 | handle_unusual: |
6151 | 0 | if (tag == 0) { |
6152 | 0 | goto success; |
6153 | 0 | } |
6154 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6155 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6156 | 0 | break; |
6157 | 0 | } |
6158 | 0 | } |
6159 | 0 | } |
6160 | 0 | success: |
6161 | | // @@protoc_insertion_point(parse_success:yb.cdc.KeyValuePairPB) |
6162 | 0 | return true; |
6163 | 0 | failure: |
6164 | | // @@protoc_insertion_point(parse_failure:yb.cdc.KeyValuePairPB) |
6165 | 0 | return false; |
6166 | 0 | #undef DO_ |
6167 | 0 | } |
6168 | | |
6169 | | void KeyValuePairPB::SerializeWithCachedSizes( |
6170 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6171 | | // @@protoc_insertion_point(serialize_start:yb.cdc.KeyValuePairPB) |
6172 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6173 | 0 | (void) cached_has_bits; |
6174 | |
|
6175 | 0 | cached_has_bits = _has_bits_[0]; |
6176 | | // optional bytes key = 1; |
6177 | 0 | if (cached_has_bits & 0x00000001u) { |
6178 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
6179 | 0 | 1, this->key(), output); |
6180 | 0 | } |
6181 | | |
6182 | | // optional .yb.QLValuePB value = 2; |
6183 | 0 | if (cached_has_bits & 0x00000002u) { |
6184 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6185 | 0 | 2, *this->value_, output); |
6186 | 0 | } |
6187 | |
|
6188 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6189 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6190 | 0 | _internal_metadata_.unknown_fields(), output); |
6191 | 0 | } |
6192 | | // @@protoc_insertion_point(serialize_end:yb.cdc.KeyValuePairPB) |
6193 | 0 | } |
6194 | | |
6195 | | ::google::protobuf::uint8* KeyValuePairPB::InternalSerializeWithCachedSizesToArray( |
6196 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
6197 | 0 | (void)deterministic; // Unused |
6198 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.KeyValuePairPB) |
6199 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6200 | 0 | (void) cached_has_bits; |
6201 | |
|
6202 | 0 | cached_has_bits = _has_bits_[0]; |
6203 | | // optional bytes key = 1; |
6204 | 0 | if (cached_has_bits & 0x00000001u) { |
6205 | 0 | target = |
6206 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
6207 | 0 | 1, this->key(), target); |
6208 | 0 | } |
6209 | | |
6210 | | // optional .yb.QLValuePB value = 2; |
6211 | 0 | if (cached_has_bits & 0x00000002u) { |
6212 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6213 | 0 | InternalWriteMessageToArray( |
6214 | 0 | 2, *this->value_, deterministic, target); |
6215 | 0 | } |
6216 | |
|
6217 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6218 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6219 | 0 | _internal_metadata_.unknown_fields(), target); |
6220 | 0 | } |
6221 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.KeyValuePairPB) |
6222 | 0 | return target; |
6223 | 0 | } |
6224 | | |
6225 | 0 | size_t KeyValuePairPB::ByteSizeLong() const { |
6226 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.KeyValuePairPB) |
6227 | 0 | size_t total_size = 0; |
6228 | |
|
6229 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6230 | 0 | total_size += |
6231 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6232 | 0 | _internal_metadata_.unknown_fields()); |
6233 | 0 | } |
6234 | 0 | if (_has_bits_[0 / 32] & 3u) { |
6235 | | // optional bytes key = 1; |
6236 | 0 | if (has_key()) { |
6237 | 0 | total_size += 1 + |
6238 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6239 | 0 | this->key()); |
6240 | 0 | } |
6241 | | |
6242 | | // optional .yb.QLValuePB value = 2; |
6243 | 0 | if (has_value()) { |
6244 | 0 | total_size += 1 + |
6245 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6246 | 0 | *this->value_); |
6247 | 0 | } |
6248 | |
|
6249 | 0 | } |
6250 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6251 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6252 | 0 | _cached_size_ = cached_size; |
6253 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6254 | 0 | return total_size; |
6255 | 0 | } |
6256 | | |
6257 | 0 | void KeyValuePairPB::MergeFrom(const ::google::protobuf::Message& from) { |
6258 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.KeyValuePairPB) |
6259 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6260 | 0 | const KeyValuePairPB* source = |
6261 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const KeyValuePairPB>( |
6262 | 0 | &from); |
6263 | 0 | if (source == NULL) { |
6264 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.KeyValuePairPB) |
6265 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6266 | 0 | } else { |
6267 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.KeyValuePairPB) |
6268 | 0 | MergeFrom(*source); |
6269 | 0 | } |
6270 | 0 | } |
6271 | | |
6272 | 0 | void KeyValuePairPB::MergeFrom(const KeyValuePairPB& from) { |
6273 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.KeyValuePairPB) |
6274 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6275 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6276 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6277 | 0 | (void) cached_has_bits; |
6278 | |
|
6279 | 0 | cached_has_bits = from._has_bits_[0]; |
6280 | 0 | if (cached_has_bits & 3u) { |
6281 | 0 | if (cached_has_bits & 0x00000001u) { |
6282 | 0 | set_has_key(); |
6283 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
6284 | 0 | } |
6285 | 0 | if (cached_has_bits & 0x00000002u) { |
6286 | 0 | mutable_value()->::yb::QLValuePB::MergeFrom(from.value()); |
6287 | 0 | } |
6288 | 0 | } |
6289 | 0 | } |
6290 | | |
6291 | 0 | void KeyValuePairPB::CopyFrom(const ::google::protobuf::Message& from) { |
6292 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.KeyValuePairPB) |
6293 | 0 | if (&from == this) return; |
6294 | 0 | Clear(); |
6295 | 0 | MergeFrom(from); |
6296 | 0 | } |
6297 | | |
6298 | 0 | void KeyValuePairPB::CopyFrom(const KeyValuePairPB& from) { |
6299 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.KeyValuePairPB) |
6300 | 0 | if (&from == this) return; |
6301 | 0 | Clear(); |
6302 | 0 | MergeFrom(from); |
6303 | 0 | } |
6304 | | |
6305 | 0 | bool KeyValuePairPB::IsInitialized() const { |
6306 | 0 | return true; |
6307 | 0 | } |
6308 | | |
6309 | 0 | void KeyValuePairPB::Swap(KeyValuePairPB* other) { |
6310 | 0 | if (other == this) return; |
6311 | 0 | InternalSwap(other); |
6312 | 0 | } |
6313 | 0 | void KeyValuePairPB::InternalSwap(KeyValuePairPB* other) { |
6314 | 0 | using std::swap; |
6315 | 0 | key_.Swap(&other->key_); |
6316 | 0 | swap(value_, other->value_); |
6317 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6318 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6319 | 0 | swap(_cached_size_, other->_cached_size_); |
6320 | 0 | } |
6321 | | |
6322 | 0 | ::google::protobuf::Metadata KeyValuePairPB::GetMetadata() const { |
6323 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
6324 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
6325 | 0 | } |
6326 | | |
6327 | | |
6328 | | // =================================================================== |
6329 | | |
6330 | 16.4k | void CDCRecordPB::InitAsDefaultInstance() { |
6331 | 16.4k | ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->transaction_state_ = const_cast< ::yb::tablet::TransactionStatePB*>( |
6332 | 16.4k | ::yb::tablet::TransactionStatePB::internal_default_instance()); |
6333 | 16.4k | ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>( |
6334 | 16.4k | ::yb::PartitionPB::internal_default_instance()); |
6335 | 16.4k | ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->split_tablet_request_ = const_cast< ::yb::tablet::SplitTabletRequestPB*>( |
6336 | 16.4k | ::yb::tablet::SplitTabletRequestPB::internal_default_instance()); |
6337 | 16.4k | } |
6338 | 0 | void CDCRecordPB::clear_transaction_state() { |
6339 | 0 | if (transaction_state_ != NULL) transaction_state_->Clear(); |
6340 | 0 | clear_has_transaction_state(); |
6341 | 0 | } |
6342 | 0 | void CDCRecordPB::clear_partition() { |
6343 | 0 | if (partition_ != NULL) partition_->Clear(); |
6344 | 0 | clear_has_partition(); |
6345 | 0 | } |
6346 | 0 | void CDCRecordPB::clear_split_tablet_request() { |
6347 | 0 | if (split_tablet_request_ != NULL) split_tablet_request_->Clear(); |
6348 | 0 | clear_has_split_tablet_request(); |
6349 | 0 | } |
6350 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6351 | | const int CDCRecordPB::kTimeFieldNumber; |
6352 | | const int CDCRecordPB::kOperationFieldNumber; |
6353 | | const int CDCRecordPB::kKeyFieldNumber; |
6354 | | const int CDCRecordPB::kChangesFieldNumber; |
6355 | | const int CDCRecordPB::kBeforeFieldNumber; |
6356 | | const int CDCRecordPB::kAfterFieldNumber; |
6357 | | const int CDCRecordPB::kTransactionStateFieldNumber; |
6358 | | const int CDCRecordPB::kPartitionFieldNumber; |
6359 | | const int CDCRecordPB::kSplitTabletRequestFieldNumber; |
6360 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6361 | | |
6362 | | CDCRecordPB::CDCRecordPB() |
6363 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6364 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6365 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB(); |
6366 | 0 | } |
6367 | 16.4k | SharedCtor(); |
6368 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCRecordPB) |
6369 | 16.4k | } |
6370 | | CDCRecordPB::CDCRecordPB(const CDCRecordPB& from) |
6371 | | : ::google::protobuf::Message(), |
6372 | | _internal_metadata_(NULL), |
6373 | | _has_bits_(from._has_bits_), |
6374 | | _cached_size_(0), |
6375 | | key_(from.key_), |
6376 | | changes_(from.changes_), |
6377 | | before_(from.before_), |
6378 | 0 | after_(from.after_) { |
6379 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6380 | 0 | if (from.has_transaction_state()) { |
6381 | 0 | transaction_state_ = new ::yb::tablet::TransactionStatePB(*from.transaction_state_); |
6382 | 0 | } else { |
6383 | 0 | transaction_state_ = NULL; |
6384 | 0 | } |
6385 | 0 | if (from.has_partition()) { |
6386 | 0 | partition_ = new ::yb::PartitionPB(*from.partition_); |
6387 | 0 | } else { |
6388 | 0 | partition_ = NULL; |
6389 | 0 | } |
6390 | 0 | if (from.has_split_tablet_request()) { |
6391 | 0 | split_tablet_request_ = new ::yb::tablet::SplitTabletRequestPB(*from.split_tablet_request_); |
6392 | 0 | } else { |
6393 | 0 | split_tablet_request_ = NULL; |
6394 | 0 | } |
6395 | 0 | ::memcpy(&time_, &from.time_, |
6396 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&operation_) - |
6397 | 0 | reinterpret_cast<char*>(&time_)) + sizeof(operation_)); |
6398 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCRecordPB) |
6399 | 0 | } |
6400 | | |
6401 | 16.4k | void CDCRecordPB::SharedCtor() { |
6402 | 16.4k | _cached_size_ = 0; |
6403 | 16.4k | ::memset(&transaction_state_, 0, static_cast<size_t>( |
6404 | 16.4k | reinterpret_cast<char*>(&time_) - |
6405 | 16.4k | reinterpret_cast<char*>(&transaction_state_)) + sizeof(time_)); |
6406 | 16.4k | operation_ = 1; |
6407 | 16.4k | } |
6408 | | |
6409 | 0 | CDCRecordPB::~CDCRecordPB() { |
6410 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCRecordPB) |
6411 | 0 | SharedDtor(); |
6412 | 0 | } |
6413 | | |
6414 | 0 | void CDCRecordPB::SharedDtor() { |
6415 | 0 | if (this != internal_default_instance()) delete transaction_state_; |
6416 | 0 | if (this != internal_default_instance()) delete partition_; |
6417 | 0 | if (this != internal_default_instance()) delete split_tablet_request_; |
6418 | 0 | } |
6419 | | |
6420 | 0 | void CDCRecordPB::SetCachedSize(int size) const { |
6421 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6422 | 0 | _cached_size_ = size; |
6423 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6424 | 0 | } |
6425 | 0 | const ::google::protobuf::Descriptor* CDCRecordPB::descriptor() { |
6426 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
6427 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6428 | 0 | } |
6429 | | |
6430 | 0 | const CDCRecordPB& CDCRecordPB::default_instance() { |
6431 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB(); |
6432 | 0 | return *internal_default_instance(); |
6433 | 0 | } |
6434 | | |
6435 | 0 | CDCRecordPB* CDCRecordPB::New(::google::protobuf::Arena* arena) const { |
6436 | 0 | CDCRecordPB* n = new CDCRecordPB; |
6437 | 0 | if (arena != NULL) { |
6438 | 0 | arena->Own(n); |
6439 | 0 | } |
6440 | 0 | return n; |
6441 | 0 | } |
6442 | | |
6443 | 0 | void CDCRecordPB::Clear() { |
6444 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCRecordPB) |
6445 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6446 | | // Prevent compiler warnings about cached_has_bits being unused |
6447 | 0 | (void) cached_has_bits; |
6448 | |
|
6449 | 0 | key_.Clear(); |
6450 | 0 | changes_.Clear(); |
6451 | 0 | before_.Clear(); |
6452 | 0 | after_.Clear(); |
6453 | 0 | cached_has_bits = _has_bits_[0]; |
6454 | 0 | if (cached_has_bits & 7u) { |
6455 | 0 | if (cached_has_bits & 0x00000001u) { |
6456 | 0 | GOOGLE_DCHECK(transaction_state_ != NULL); |
6457 | 0 | transaction_state_->Clear(); |
6458 | 0 | } |
6459 | 0 | if (cached_has_bits & 0x00000002u) { |
6460 | 0 | GOOGLE_DCHECK(partition_ != NULL); |
6461 | 0 | partition_->Clear(); |
6462 | 0 | } |
6463 | 0 | if (cached_has_bits & 0x00000004u) { |
6464 | 0 | GOOGLE_DCHECK(split_tablet_request_ != NULL); |
6465 | 0 | split_tablet_request_->Clear(); |
6466 | 0 | } |
6467 | 0 | } |
6468 | 0 | if (cached_has_bits & 24u) { |
6469 | 0 | time_ = GOOGLE_ULONGLONG(0); |
6470 | 0 | operation_ = 1; |
6471 | 0 | } |
6472 | 0 | _has_bits_.Clear(); |
6473 | 0 | _internal_metadata_.Clear(); |
6474 | 0 | } |
6475 | | |
6476 | | bool CDCRecordPB::MergePartialFromCodedStream( |
6477 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
6478 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6479 | 0 | ::google::protobuf::uint32 tag; |
6480 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCRecordPB) |
6481 | 0 | for (;;) { |
6482 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6483 | 0 | tag = p.first; |
6484 | 0 | if (!p.second) goto handle_unusual; |
6485 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6486 | | // optional uint64 time = 1; |
6487 | 0 | case 1: { |
6488 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6489 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
6490 | 0 | set_has_time(); |
6491 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6492 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6493 | 0 | input, &time_))); |
6494 | 0 | } else { |
6495 | 0 | goto handle_unusual; |
6496 | 0 | } |
6497 | 0 | break; |
6498 | 0 | } |
6499 | | |
6500 | | // optional .yb.cdc.CDCRecordPB.OperationType operation = 2; |
6501 | 0 | case 2: { |
6502 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6503 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
6504 | 0 | int value; |
6505 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6506 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
6507 | 0 | input, &value))); |
6508 | 0 | if (::yb::cdc::CDCRecordPB_OperationType_IsValid(value)) { |
6509 | 0 | set_operation(static_cast< ::yb::cdc::CDCRecordPB_OperationType >(value)); |
6510 | 0 | } else { |
6511 | 0 | mutable_unknown_fields()->AddVarint( |
6512 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
6513 | 0 | } |
6514 | 0 | } else { |
6515 | 0 | goto handle_unusual; |
6516 | 0 | } |
6517 | 0 | break; |
6518 | 0 | } |
6519 | | |
6520 | | // repeated .yb.cdc.KeyValuePairPB key = 3; |
6521 | 0 | case 3: { |
6522 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6523 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
6524 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_key())); |
6525 | 0 | } else { |
6526 | 0 | goto handle_unusual; |
6527 | 0 | } |
6528 | 0 | break; |
6529 | 0 | } |
6530 | | |
6531 | | // repeated .yb.cdc.KeyValuePairPB changes = 4; |
6532 | 0 | case 4: { |
6533 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6534 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
6535 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_changes())); |
6536 | 0 | } else { |
6537 | 0 | goto handle_unusual; |
6538 | 0 | } |
6539 | 0 | break; |
6540 | 0 | } |
6541 | | |
6542 | | // repeated .yb.cdc.KeyValuePairPB before = 5; |
6543 | 0 | case 5: { |
6544 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6545 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
6546 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_before())); |
6547 | 0 | } else { |
6548 | 0 | goto handle_unusual; |
6549 | 0 | } |
6550 | 0 | break; |
6551 | 0 | } |
6552 | | |
6553 | | // repeated .yb.cdc.KeyValuePairPB after = 6; |
6554 | 0 | case 6: { |
6555 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6556 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
6557 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_after())); |
6558 | 0 | } else { |
6559 | 0 | goto handle_unusual; |
6560 | 0 | } |
6561 | 0 | break; |
6562 | 0 | } |
6563 | | |
6564 | | // optional .yb.tablet.TransactionStatePB transaction_state = 7; |
6565 | 0 | case 7: { |
6566 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6567 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
6568 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6569 | 0 | input, mutable_transaction_state())); |
6570 | 0 | } else { |
6571 | 0 | goto handle_unusual; |
6572 | 0 | } |
6573 | 0 | break; |
6574 | 0 | } |
6575 | | |
6576 | | // optional .yb.PartitionPB partition = 9; |
6577 | 0 | case 9: { |
6578 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6579 | 0 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
6580 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6581 | 0 | input, mutable_partition())); |
6582 | 0 | } else { |
6583 | 0 | goto handle_unusual; |
6584 | 0 | } |
6585 | 0 | break; |
6586 | 0 | } |
6587 | | |
6588 | | // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10; |
6589 | 0 | case 10: { |
6590 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6591 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
6592 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6593 | 0 | input, mutable_split_tablet_request())); |
6594 | 0 | } else { |
6595 | 0 | goto handle_unusual; |
6596 | 0 | } |
6597 | 0 | break; |
6598 | 0 | } |
6599 | | |
6600 | 0 | default: { |
6601 | 0 | handle_unusual: |
6602 | 0 | if (tag == 0) { |
6603 | 0 | goto success; |
6604 | 0 | } |
6605 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6606 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6607 | 0 | break; |
6608 | 0 | } |
6609 | 0 | } |
6610 | 0 | } |
6611 | 0 | success: |
6612 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCRecordPB) |
6613 | 0 | return true; |
6614 | 0 | failure: |
6615 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCRecordPB) |
6616 | 0 | return false; |
6617 | 0 | #undef DO_ |
6618 | 0 | } |
6619 | | |
6620 | | void CDCRecordPB::SerializeWithCachedSizes( |
6621 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6622 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCRecordPB) |
6623 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6624 | 0 | (void) cached_has_bits; |
6625 | |
|
6626 | 0 | cached_has_bits = _has_bits_[0]; |
6627 | | // optional uint64 time = 1; |
6628 | 0 | if (cached_has_bits & 0x00000008u) { |
6629 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->time(), output); |
6630 | 0 | } |
6631 | | |
6632 | | // optional .yb.cdc.CDCRecordPB.OperationType operation = 2; |
6633 | 0 | if (cached_has_bits & 0x00000010u) { |
6634 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6635 | 0 | 2, this->operation(), output); |
6636 | 0 | } |
6637 | | |
6638 | | // repeated .yb.cdc.KeyValuePairPB key = 3; |
6639 | 0 | for (unsigned int i = 0, |
6640 | 0 | n = static_cast<unsigned int>(this->key_size()); i < n; i++) { |
6641 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6642 | 0 | 3, this->key(static_cast<int>(i)), output); |
6643 | 0 | } |
6644 | | |
6645 | | // repeated .yb.cdc.KeyValuePairPB changes = 4; |
6646 | 0 | for (unsigned int i = 0, |
6647 | 0 | n = static_cast<unsigned int>(this->changes_size()); i < n; i++) { |
6648 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6649 | 0 | 4, this->changes(static_cast<int>(i)), output); |
6650 | 0 | } |
6651 | | |
6652 | | // repeated .yb.cdc.KeyValuePairPB before = 5; |
6653 | 0 | for (unsigned int i = 0, |
6654 | 0 | n = static_cast<unsigned int>(this->before_size()); i < n; i++) { |
6655 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6656 | 0 | 5, this->before(static_cast<int>(i)), output); |
6657 | 0 | } |
6658 | | |
6659 | | // repeated .yb.cdc.KeyValuePairPB after = 6; |
6660 | 0 | for (unsigned int i = 0, |
6661 | 0 | n = static_cast<unsigned int>(this->after_size()); i < n; i++) { |
6662 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6663 | 0 | 6, this->after(static_cast<int>(i)), output); |
6664 | 0 | } |
6665 | | |
6666 | | // optional .yb.tablet.TransactionStatePB transaction_state = 7; |
6667 | 0 | if (cached_has_bits & 0x00000001u) { |
6668 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6669 | 0 | 7, *this->transaction_state_, output); |
6670 | 0 | } |
6671 | | |
6672 | | // optional .yb.PartitionPB partition = 9; |
6673 | 0 | if (cached_has_bits & 0x00000002u) { |
6674 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6675 | 0 | 9, *this->partition_, output); |
6676 | 0 | } |
6677 | | |
6678 | | // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10; |
6679 | 0 | if (cached_has_bits & 0x00000004u) { |
6680 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6681 | 0 | 10, *this->split_tablet_request_, output); |
6682 | 0 | } |
6683 | |
|
6684 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6685 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6686 | 0 | _internal_metadata_.unknown_fields(), output); |
6687 | 0 | } |
6688 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCRecordPB) |
6689 | 0 | } |
6690 | | |
6691 | | ::google::protobuf::uint8* CDCRecordPB::InternalSerializeWithCachedSizesToArray( |
6692 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
6693 | 0 | (void)deterministic; // Unused |
6694 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCRecordPB) |
6695 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6696 | 0 | (void) cached_has_bits; |
6697 | |
|
6698 | 0 | cached_has_bits = _has_bits_[0]; |
6699 | | // optional uint64 time = 1; |
6700 | 0 | if (cached_has_bits & 0x00000008u) { |
6701 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->time(), target); |
6702 | 0 | } |
6703 | | |
6704 | | // optional .yb.cdc.CDCRecordPB.OperationType operation = 2; |
6705 | 0 | if (cached_has_bits & 0x00000010u) { |
6706 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
6707 | 0 | 2, this->operation(), target); |
6708 | 0 | } |
6709 | | |
6710 | | // repeated .yb.cdc.KeyValuePairPB key = 3; |
6711 | 0 | for (unsigned int i = 0, |
6712 | 0 | n = static_cast<unsigned int>(this->key_size()); i < n; i++) { |
6713 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6714 | 0 | InternalWriteMessageToArray( |
6715 | 0 | 3, this->key(static_cast<int>(i)), deterministic, target); |
6716 | 0 | } |
6717 | | |
6718 | | // repeated .yb.cdc.KeyValuePairPB changes = 4; |
6719 | 0 | for (unsigned int i = 0, |
6720 | 0 | n = static_cast<unsigned int>(this->changes_size()); i < n; i++) { |
6721 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6722 | 0 | InternalWriteMessageToArray( |
6723 | 0 | 4, this->changes(static_cast<int>(i)), deterministic, target); |
6724 | 0 | } |
6725 | | |
6726 | | // repeated .yb.cdc.KeyValuePairPB before = 5; |
6727 | 0 | for (unsigned int i = 0, |
6728 | 0 | n = static_cast<unsigned int>(this->before_size()); i < n; i++) { |
6729 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6730 | 0 | InternalWriteMessageToArray( |
6731 | 0 | 5, this->before(static_cast<int>(i)), deterministic, target); |
6732 | 0 | } |
6733 | | |
6734 | | // repeated .yb.cdc.KeyValuePairPB after = 6; |
6735 | 0 | for (unsigned int i = 0, |
6736 | 0 | n = static_cast<unsigned int>(this->after_size()); i < n; i++) { |
6737 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6738 | 0 | InternalWriteMessageToArray( |
6739 | 0 | 6, this->after(static_cast<int>(i)), deterministic, target); |
6740 | 0 | } |
6741 | | |
6742 | | // optional .yb.tablet.TransactionStatePB transaction_state = 7; |
6743 | 0 | if (cached_has_bits & 0x00000001u) { |
6744 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6745 | 0 | InternalWriteMessageToArray( |
6746 | 0 | 7, *this->transaction_state_, deterministic, target); |
6747 | 0 | } |
6748 | | |
6749 | | // optional .yb.PartitionPB partition = 9; |
6750 | 0 | if (cached_has_bits & 0x00000002u) { |
6751 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6752 | 0 | InternalWriteMessageToArray( |
6753 | 0 | 9, *this->partition_, deterministic, target); |
6754 | 0 | } |
6755 | | |
6756 | | // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10; |
6757 | 0 | if (cached_has_bits & 0x00000004u) { |
6758 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6759 | 0 | InternalWriteMessageToArray( |
6760 | 0 | 10, *this->split_tablet_request_, deterministic, target); |
6761 | 0 | } |
6762 | |
|
6763 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6764 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6765 | 0 | _internal_metadata_.unknown_fields(), target); |
6766 | 0 | } |
6767 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCRecordPB) |
6768 | 0 | return target; |
6769 | 0 | } |
6770 | | |
6771 | 0 | size_t CDCRecordPB::ByteSizeLong() const { |
6772 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCRecordPB) |
6773 | 0 | size_t total_size = 0; |
6774 | |
|
6775 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6776 | 0 | total_size += |
6777 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6778 | 0 | _internal_metadata_.unknown_fields()); |
6779 | 0 | } |
6780 | | // repeated .yb.cdc.KeyValuePairPB key = 3; |
6781 | 0 | { |
6782 | 0 | unsigned int count = static_cast<unsigned int>(this->key_size()); |
6783 | 0 | total_size += 1UL * count; |
6784 | 0 | for (unsigned int i = 0; i < count; i++) { |
6785 | 0 | total_size += |
6786 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6787 | 0 | this->key(static_cast<int>(i))); |
6788 | 0 | } |
6789 | 0 | } |
6790 | | |
6791 | | // repeated .yb.cdc.KeyValuePairPB changes = 4; |
6792 | 0 | { |
6793 | 0 | unsigned int count = static_cast<unsigned int>(this->changes_size()); |
6794 | 0 | total_size += 1UL * count; |
6795 | 0 | for (unsigned int i = 0; i < count; i++) { |
6796 | 0 | total_size += |
6797 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6798 | 0 | this->changes(static_cast<int>(i))); |
6799 | 0 | } |
6800 | 0 | } |
6801 | | |
6802 | | // repeated .yb.cdc.KeyValuePairPB before = 5; |
6803 | 0 | { |
6804 | 0 | unsigned int count = static_cast<unsigned int>(this->before_size()); |
6805 | 0 | total_size += 1UL * count; |
6806 | 0 | for (unsigned int i = 0; i < count; i++) { |
6807 | 0 | total_size += |
6808 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6809 | 0 | this->before(static_cast<int>(i))); |
6810 | 0 | } |
6811 | 0 | } |
6812 | | |
6813 | | // repeated .yb.cdc.KeyValuePairPB after = 6; |
6814 | 0 | { |
6815 | 0 | unsigned int count = static_cast<unsigned int>(this->after_size()); |
6816 | 0 | total_size += 1UL * count; |
6817 | 0 | for (unsigned int i = 0; i < count; i++) { |
6818 | 0 | total_size += |
6819 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6820 | 0 | this->after(static_cast<int>(i))); |
6821 | 0 | } |
6822 | 0 | } |
6823 | |
|
6824 | 0 | if (_has_bits_[0 / 32] & 31u) { |
6825 | | // optional .yb.tablet.TransactionStatePB transaction_state = 7; |
6826 | 0 | if (has_transaction_state()) { |
6827 | 0 | total_size += 1 + |
6828 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6829 | 0 | *this->transaction_state_); |
6830 | 0 | } |
6831 | | |
6832 | | // optional .yb.PartitionPB partition = 9; |
6833 | 0 | if (has_partition()) { |
6834 | 0 | total_size += 1 + |
6835 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6836 | 0 | *this->partition_); |
6837 | 0 | } |
6838 | | |
6839 | | // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10; |
6840 | 0 | if (has_split_tablet_request()) { |
6841 | 0 | total_size += 1 + |
6842 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6843 | 0 | *this->split_tablet_request_); |
6844 | 0 | } |
6845 | | |
6846 | | // optional uint64 time = 1; |
6847 | 0 | if (has_time()) { |
6848 | 0 | total_size += 1 + |
6849 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6850 | 0 | this->time()); |
6851 | 0 | } |
6852 | | |
6853 | | // optional .yb.cdc.CDCRecordPB.OperationType operation = 2; |
6854 | 0 | if (has_operation()) { |
6855 | 0 | total_size += 1 + |
6856 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); |
6857 | 0 | } |
6858 | |
|
6859 | 0 | } |
6860 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6861 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6862 | 0 | _cached_size_ = cached_size; |
6863 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6864 | 0 | return total_size; |
6865 | 0 | } |
6866 | | |
6867 | 0 | void CDCRecordPB::MergeFrom(const ::google::protobuf::Message& from) { |
6868 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCRecordPB) |
6869 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6870 | 0 | const CDCRecordPB* source = |
6871 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCRecordPB>( |
6872 | 0 | &from); |
6873 | 0 | if (source == NULL) { |
6874 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCRecordPB) |
6875 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6876 | 0 | } else { |
6877 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCRecordPB) |
6878 | 0 | MergeFrom(*source); |
6879 | 0 | } |
6880 | 0 | } |
6881 | | |
6882 | 0 | void CDCRecordPB::MergeFrom(const CDCRecordPB& from) { |
6883 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCRecordPB) |
6884 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6885 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6886 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6887 | 0 | (void) cached_has_bits; |
6888 | |
|
6889 | 0 | key_.MergeFrom(from.key_); |
6890 | 0 | changes_.MergeFrom(from.changes_); |
6891 | 0 | before_.MergeFrom(from.before_); |
6892 | 0 | after_.MergeFrom(from.after_); |
6893 | 0 | cached_has_bits = from._has_bits_[0]; |
6894 | 0 | if (cached_has_bits & 31u) { |
6895 | 0 | if (cached_has_bits & 0x00000001u) { |
6896 | 0 | mutable_transaction_state()->::yb::tablet::TransactionStatePB::MergeFrom(from.transaction_state()); |
6897 | 0 | } |
6898 | 0 | if (cached_has_bits & 0x00000002u) { |
6899 | 0 | mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition()); |
6900 | 0 | } |
6901 | 0 | if (cached_has_bits & 0x00000004u) { |
6902 | 0 | mutable_split_tablet_request()->::yb::tablet::SplitTabletRequestPB::MergeFrom(from.split_tablet_request()); |
6903 | 0 | } |
6904 | 0 | if (cached_has_bits & 0x00000008u) { |
6905 | 0 | time_ = from.time_; |
6906 | 0 | } |
6907 | 0 | if (cached_has_bits & 0x00000010u) { |
6908 | 0 | operation_ = from.operation_; |
6909 | 0 | } |
6910 | 0 | _has_bits_[0] |= cached_has_bits; |
6911 | 0 | } |
6912 | 0 | } |
6913 | | |
6914 | 0 | void CDCRecordPB::CopyFrom(const ::google::protobuf::Message& from) { |
6915 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCRecordPB) |
6916 | 0 | if (&from == this) return; |
6917 | 0 | Clear(); |
6918 | 0 | MergeFrom(from); |
6919 | 0 | } |
6920 | | |
6921 | 0 | void CDCRecordPB::CopyFrom(const CDCRecordPB& from) { |
6922 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCRecordPB) |
6923 | 0 | if (&from == this) return; |
6924 | 0 | Clear(); |
6925 | 0 | MergeFrom(from); |
6926 | 0 | } |
6927 | | |
6928 | 0 | bool CDCRecordPB::IsInitialized() const { |
6929 | 0 | if (has_split_tablet_request()) { |
6930 | 0 | if (!this->split_tablet_request_->IsInitialized()) return false; |
6931 | 0 | } |
6932 | 0 | return true; |
6933 | 0 | } |
6934 | | |
6935 | 0 | void CDCRecordPB::Swap(CDCRecordPB* other) { |
6936 | 0 | if (other == this) return; |
6937 | 0 | InternalSwap(other); |
6938 | 0 | } |
6939 | 0 | void CDCRecordPB::InternalSwap(CDCRecordPB* other) { |
6940 | 0 | using std::swap; |
6941 | 0 | key_.InternalSwap(&other->key_); |
6942 | 0 | changes_.InternalSwap(&other->changes_); |
6943 | 0 | before_.InternalSwap(&other->before_); |
6944 | 0 | after_.InternalSwap(&other->after_); |
6945 | 0 | swap(transaction_state_, other->transaction_state_); |
6946 | 0 | swap(partition_, other->partition_); |
6947 | 0 | swap(split_tablet_request_, other->split_tablet_request_); |
6948 | 0 | swap(time_, other->time_); |
6949 | 0 | swap(operation_, other->operation_); |
6950 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6951 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6952 | 0 | swap(_cached_size_, other->_cached_size_); |
6953 | 0 | } |
6954 | | |
6955 | 0 | ::google::protobuf::Metadata CDCRecordPB::GetMetadata() const { |
6956 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
6957 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
6958 | 0 | } |
6959 | | |
6960 | | |
6961 | | // =================================================================== |
6962 | | |
6963 | 16.4k | void CDCSDKColumnInfoPB::InitAsDefaultInstance() { |
6964 | 16.4k | ::yb::cdc::_CDCSDKColumnInfoPB_default_instance_._instance.get_mutable()->type_ = const_cast< ::yb::QLTypePB*>( |
6965 | 16.4k | ::yb::QLTypePB::internal_default_instance()); |
6966 | 16.4k | } |
6967 | 0 | void CDCSDKColumnInfoPB::clear_type() { |
6968 | 0 | if (type_ != NULL) type_->Clear(); |
6969 | 0 | clear_has_type(); |
6970 | 0 | } |
6971 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6972 | | const int CDCSDKColumnInfoPB::kNameFieldNumber; |
6973 | | const int CDCSDKColumnInfoPB::kTypeFieldNumber; |
6974 | | const int CDCSDKColumnInfoPB::kIsKeyFieldNumber; |
6975 | | const int CDCSDKColumnInfoPB::kIsHashKeyFieldNumber; |
6976 | | const int CDCSDKColumnInfoPB::kIsNullableFieldNumber; |
6977 | | const int CDCSDKColumnInfoPB::kOidFieldNumber; |
6978 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6979 | | |
6980 | | CDCSDKColumnInfoPB::CDCSDKColumnInfoPB() |
6981 | 18.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6982 | 18.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6983 | 1.77k | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB(); |
6984 | 1.77k | } |
6985 | 18.2k | SharedCtor(); |
6986 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKColumnInfoPB) |
6987 | 18.2k | } |
6988 | | CDCSDKColumnInfoPB::CDCSDKColumnInfoPB(const CDCSDKColumnInfoPB& from) |
6989 | | : ::google::protobuf::Message(), |
6990 | | _internal_metadata_(NULL), |
6991 | | _has_bits_(from._has_bits_), |
6992 | 0 | _cached_size_(0) { |
6993 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6994 | 0 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6995 | 0 | if (from.has_name()) { |
6996 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
6997 | 0 | } |
6998 | 0 | if (from.has_type()) { |
6999 | 0 | type_ = new ::yb::QLTypePB(*from.type_); |
7000 | 0 | } else { |
7001 | 0 | type_ = NULL; |
7002 | 0 | } |
7003 | 0 | ::memcpy(&is_key_, &from.is_key_, |
7004 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&oid_) - |
7005 | 0 | reinterpret_cast<char*>(&is_key_)) + sizeof(oid_)); |
7006 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKColumnInfoPB) |
7007 | 0 | } |
7008 | | |
7009 | 18.2k | void CDCSDKColumnInfoPB::SharedCtor() { |
7010 | 18.2k | _cached_size_ = 0; |
7011 | 18.2k | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7012 | 18.2k | ::memset(&type_, 0, static_cast<size_t>( |
7013 | 18.2k | reinterpret_cast<char*>(&oid_) - |
7014 | 18.2k | reinterpret_cast<char*>(&type_)) + sizeof(oid_)); |
7015 | 18.2k | } |
7016 | | |
7017 | 1.77k | CDCSDKColumnInfoPB::~CDCSDKColumnInfoPB() { |
7018 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKColumnInfoPB) |
7019 | 1.77k | SharedDtor(); |
7020 | 1.77k | } |
7021 | | |
7022 | 1.77k | void CDCSDKColumnInfoPB::SharedDtor() { |
7023 | 1.77k | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7024 | 1.77k | if (this != internal_default_instance()) delete type_; |
7025 | 1.77k | } |
7026 | | |
7027 | 0 | void CDCSDKColumnInfoPB::SetCachedSize(int size) const { |
7028 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7029 | 0 | _cached_size_ = size; |
7030 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7031 | 0 | } |
7032 | 0 | const ::google::protobuf::Descriptor* CDCSDKColumnInfoPB::descriptor() { |
7033 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
7034 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7035 | 0 | } |
7036 | | |
7037 | 0 | const CDCSDKColumnInfoPB& CDCSDKColumnInfoPB::default_instance() { |
7038 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB(); |
7039 | 0 | return *internal_default_instance(); |
7040 | 0 | } |
7041 | | |
7042 | 0 | CDCSDKColumnInfoPB* CDCSDKColumnInfoPB::New(::google::protobuf::Arena* arena) const { |
7043 | 0 | CDCSDKColumnInfoPB* n = new CDCSDKColumnInfoPB; |
7044 | 0 | if (arena != NULL) { |
7045 | 0 | arena->Own(n); |
7046 | 0 | } |
7047 | 0 | return n; |
7048 | 0 | } |
7049 | | |
7050 | 0 | void CDCSDKColumnInfoPB::Clear() { |
7051 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKColumnInfoPB) |
7052 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7053 | | // Prevent compiler warnings about cached_has_bits being unused |
7054 | 0 | (void) cached_has_bits; |
7055 | |
|
7056 | 0 | cached_has_bits = _has_bits_[0]; |
7057 | 0 | if (cached_has_bits & 3u) { |
7058 | 0 | if (cached_has_bits & 0x00000001u) { |
7059 | 0 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7060 | 0 | (*name_.UnsafeRawStringPointer())->clear(); |
7061 | 0 | } |
7062 | 0 | if (cached_has_bits & 0x00000002u) { |
7063 | 0 | GOOGLE_DCHECK(type_ != NULL); |
7064 | 0 | type_->Clear(); |
7065 | 0 | } |
7066 | 0 | } |
7067 | 0 | if (cached_has_bits & 60u) { |
7068 | 0 | ::memset(&is_key_, 0, static_cast<size_t>( |
7069 | 0 | reinterpret_cast<char*>(&oid_) - |
7070 | 0 | reinterpret_cast<char*>(&is_key_)) + sizeof(oid_)); |
7071 | 0 | } |
7072 | 0 | _has_bits_.Clear(); |
7073 | 0 | _internal_metadata_.Clear(); |
7074 | 0 | } |
7075 | | |
7076 | | bool CDCSDKColumnInfoPB::MergePartialFromCodedStream( |
7077 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7078 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7079 | 0 | ::google::protobuf::uint32 tag; |
7080 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKColumnInfoPB) |
7081 | 0 | for (;;) { |
7082 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7083 | 0 | tag = p.first; |
7084 | 0 | if (!p.second) goto handle_unusual; |
7085 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7086 | | // optional string name = 1; |
7087 | 0 | case 1: { |
7088 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7089 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7090 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7091 | 0 | input, this->mutable_name())); |
7092 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7093 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
7094 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7095 | 0 | "yb.cdc.CDCSDKColumnInfoPB.name"); |
7096 | 0 | } else { |
7097 | 0 | goto handle_unusual; |
7098 | 0 | } |
7099 | 0 | break; |
7100 | 0 | } |
7101 | | |
7102 | | // optional .yb.QLTypePB type = 2; |
7103 | 0 | case 2: { |
7104 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7105 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
7106 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7107 | 0 | input, mutable_type())); |
7108 | 0 | } else { |
7109 | 0 | goto handle_unusual; |
7110 | 0 | } |
7111 | 0 | break; |
7112 | 0 | } |
7113 | | |
7114 | | // optional bool is_key = 3 [default = false]; |
7115 | 0 | case 3: { |
7116 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7117 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
7118 | 0 | set_has_is_key(); |
7119 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7120 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7121 | 0 | input, &is_key_))); |
7122 | 0 | } else { |
7123 | 0 | goto handle_unusual; |
7124 | 0 | } |
7125 | 0 | break; |
7126 | 0 | } |
7127 | | |
7128 | | // optional bool is_hash_key = 4 [default = false]; |
7129 | 0 | case 4: { |
7130 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7131 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
7132 | 0 | set_has_is_hash_key(); |
7133 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7134 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7135 | 0 | input, &is_hash_key_))); |
7136 | 0 | } else { |
7137 | 0 | goto handle_unusual; |
7138 | 0 | } |
7139 | 0 | break; |
7140 | 0 | } |
7141 | | |
7142 | | // optional bool is_nullable = 5 [default = false]; |
7143 | 0 | case 5: { |
7144 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7145 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
7146 | 0 | set_has_is_nullable(); |
7147 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7148 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7149 | 0 | input, &is_nullable_))); |
7150 | 0 | } else { |
7151 | 0 | goto handle_unusual; |
7152 | 0 | } |
7153 | 0 | break; |
7154 | 0 | } |
7155 | | |
7156 | | // optional int32 oid = 6 [default = 0]; |
7157 | 0 | case 6: { |
7158 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7159 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
7160 | 0 | set_has_oid(); |
7161 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7162 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
7163 | 0 | input, &oid_))); |
7164 | 0 | } else { |
7165 | 0 | goto handle_unusual; |
7166 | 0 | } |
7167 | 0 | break; |
7168 | 0 | } |
7169 | | |
7170 | 0 | default: { |
7171 | 0 | handle_unusual: |
7172 | 0 | if (tag == 0) { |
7173 | 0 | goto success; |
7174 | 0 | } |
7175 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7176 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7177 | 0 | break; |
7178 | 0 | } |
7179 | 0 | } |
7180 | 0 | } |
7181 | 0 | success: |
7182 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKColumnInfoPB) |
7183 | 0 | return true; |
7184 | 0 | failure: |
7185 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKColumnInfoPB) |
7186 | 0 | return false; |
7187 | 0 | #undef DO_ |
7188 | 0 | } |
7189 | | |
7190 | | void CDCSDKColumnInfoPB::SerializeWithCachedSizes( |
7191 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7192 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKColumnInfoPB) |
7193 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7194 | 0 | (void) cached_has_bits; |
7195 | |
|
7196 | 0 | cached_has_bits = _has_bits_[0]; |
7197 | | // optional string name = 1; |
7198 | 0 | if (cached_has_bits & 0x00000001u) { |
7199 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7200 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
7201 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7202 | 0 | "yb.cdc.CDCSDKColumnInfoPB.name"); |
7203 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
7204 | 0 | 1, this->name(), output); |
7205 | 0 | } |
7206 | | |
7207 | | // optional .yb.QLTypePB type = 2; |
7208 | 0 | if (cached_has_bits & 0x00000002u) { |
7209 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7210 | 0 | 2, *this->type_, output); |
7211 | 0 | } |
7212 | | |
7213 | | // optional bool is_key = 3 [default = false]; |
7214 | 0 | if (cached_has_bits & 0x00000004u) { |
7215 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_key(), output); |
7216 | 0 | } |
7217 | | |
7218 | | // optional bool is_hash_key = 4 [default = false]; |
7219 | 0 | if (cached_has_bits & 0x00000008u) { |
7220 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_hash_key(), output); |
7221 | 0 | } |
7222 | | |
7223 | | // optional bool is_nullable = 5 [default = false]; |
7224 | 0 | if (cached_has_bits & 0x00000010u) { |
7225 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_nullable(), output); |
7226 | 0 | } |
7227 | | |
7228 | | // optional int32 oid = 6 [default = 0]; |
7229 | 0 | if (cached_has_bits & 0x00000020u) { |
7230 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->oid(), output); |
7231 | 0 | } |
7232 | |
|
7233 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7234 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7235 | 0 | _internal_metadata_.unknown_fields(), output); |
7236 | 0 | } |
7237 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKColumnInfoPB) |
7238 | 0 | } |
7239 | | |
7240 | | ::google::protobuf::uint8* CDCSDKColumnInfoPB::InternalSerializeWithCachedSizesToArray( |
7241 | 1.77k | bool deterministic, ::google::protobuf::uint8* target) const { |
7242 | 1.77k | (void)deterministic; // Unused |
7243 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKColumnInfoPB) |
7244 | 1.77k | ::google::protobuf::uint32 cached_has_bits = 0; |
7245 | 1.77k | (void) cached_has_bits; |
7246 | | |
7247 | 1.77k | cached_has_bits = _has_bits_[0]; |
7248 | | // optional string name = 1; |
7249 | 1.77k | if (cached_has_bits & 0x00000001u) { |
7250 | 1.77k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7251 | 1.77k | this->name().data(), static_cast<int>(this->name().length()), |
7252 | 1.77k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7253 | 1.77k | "yb.cdc.CDCSDKColumnInfoPB.name"); |
7254 | 1.77k | target = |
7255 | 1.77k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7256 | 1.77k | 1, this->name(), target); |
7257 | 1.77k | } |
7258 | | |
7259 | | // optional .yb.QLTypePB type = 2; |
7260 | 1.77k | if (cached_has_bits & 0x00000002u) { |
7261 | 1.77k | target = ::google::protobuf::internal::WireFormatLite:: |
7262 | 1.77k | InternalWriteMessageToArray( |
7263 | 1.77k | 2, *this->type_, deterministic, target); |
7264 | 1.77k | } |
7265 | | |
7266 | | // optional bool is_key = 3 [default = false]; |
7267 | 1.77k | if (cached_has_bits & 0x00000004u) { |
7268 | 1.77k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_key(), target); |
7269 | 1.77k | } |
7270 | | |
7271 | | // optional bool is_hash_key = 4 [default = false]; |
7272 | 1.77k | if (cached_has_bits & 0x00000008u) { |
7273 | 1.77k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_hash_key(), target); |
7274 | 1.77k | } |
7275 | | |
7276 | | // optional bool is_nullable = 5 [default = false]; |
7277 | 1.77k | if (cached_has_bits & 0x00000010u) { |
7278 | 1.77k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_nullable(), target); |
7279 | 1.77k | } |
7280 | | |
7281 | | // optional int32 oid = 6 [default = 0]; |
7282 | 1.77k | if (cached_has_bits & 0x00000020u) { |
7283 | 1.77k | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->oid(), target); |
7284 | 1.77k | } |
7285 | | |
7286 | 1.77k | if (_internal_metadata_.have_unknown_fields()) { |
7287 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7288 | 0 | _internal_metadata_.unknown_fields(), target); |
7289 | 0 | } |
7290 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKColumnInfoPB) |
7291 | 1.77k | return target; |
7292 | 1.77k | } |
7293 | | |
7294 | 3.54k | size_t CDCSDKColumnInfoPB::ByteSizeLong() const { |
7295 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKColumnInfoPB) |
7296 | 3.54k | size_t total_size = 0; |
7297 | | |
7298 | 3.54k | if (_internal_metadata_.have_unknown_fields()) { |
7299 | 0 | total_size += |
7300 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7301 | 0 | _internal_metadata_.unknown_fields()); |
7302 | 0 | } |
7303 | 3.54k | if (_has_bits_[0 / 32] & 63u) { |
7304 | | // optional string name = 1; |
7305 | 3.54k | if (has_name()) { |
7306 | 3.54k | total_size += 1 + |
7307 | 3.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
7308 | 3.54k | this->name()); |
7309 | 3.54k | } |
7310 | | |
7311 | | // optional .yb.QLTypePB type = 2; |
7312 | 3.54k | if (has_type()) { |
7313 | 3.54k | total_size += 1 + |
7314 | 3.54k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7315 | 3.54k | *this->type_); |
7316 | 3.54k | } |
7317 | | |
7318 | | // optional bool is_key = 3 [default = false]; |
7319 | 3.54k | if (has_is_key()) { |
7320 | 3.54k | total_size += 1 + 1; |
7321 | 3.54k | } |
7322 | | |
7323 | | // optional bool is_hash_key = 4 [default = false]; |
7324 | 3.54k | if (has_is_hash_key()) { |
7325 | 3.54k | total_size += 1 + 1; |
7326 | 3.54k | } |
7327 | | |
7328 | | // optional bool is_nullable = 5 [default = false]; |
7329 | 3.54k | if (has_is_nullable()) { |
7330 | 3.54k | total_size += 1 + 1; |
7331 | 3.54k | } |
7332 | | |
7333 | | // optional int32 oid = 6 [default = 0]; |
7334 | 3.54k | if (has_oid()) { |
7335 | 3.54k | total_size += 1 + |
7336 | 3.54k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
7337 | 3.54k | this->oid()); |
7338 | 3.54k | } |
7339 | | |
7340 | 3.54k | } |
7341 | 3.54k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7342 | 3.54k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7343 | 3.54k | _cached_size_ = cached_size; |
7344 | 3.54k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7345 | 3.54k | return total_size; |
7346 | 3.54k | } |
7347 | | |
7348 | 0 | void CDCSDKColumnInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
7349 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKColumnInfoPB) |
7350 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7351 | 0 | const CDCSDKColumnInfoPB* source = |
7352 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKColumnInfoPB>( |
7353 | 0 | &from); |
7354 | 0 | if (source == NULL) { |
7355 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKColumnInfoPB) |
7356 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7357 | 0 | } else { |
7358 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKColumnInfoPB) |
7359 | 0 | MergeFrom(*source); |
7360 | 0 | } |
7361 | 0 | } |
7362 | | |
7363 | 0 | void CDCSDKColumnInfoPB::MergeFrom(const CDCSDKColumnInfoPB& from) { |
7364 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKColumnInfoPB) |
7365 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7366 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7367 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7368 | 0 | (void) cached_has_bits; |
7369 | |
|
7370 | 0 | cached_has_bits = from._has_bits_[0]; |
7371 | 0 | if (cached_has_bits & 63u) { |
7372 | 0 | if (cached_has_bits & 0x00000001u) { |
7373 | 0 | set_has_name(); |
7374 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
7375 | 0 | } |
7376 | 0 | if (cached_has_bits & 0x00000002u) { |
7377 | 0 | mutable_type()->::yb::QLTypePB::MergeFrom(from.type()); |
7378 | 0 | } |
7379 | 0 | if (cached_has_bits & 0x00000004u) { |
7380 | 0 | is_key_ = from.is_key_; |
7381 | 0 | } |
7382 | 0 | if (cached_has_bits & 0x00000008u) { |
7383 | 0 | is_hash_key_ = from.is_hash_key_; |
7384 | 0 | } |
7385 | 0 | if (cached_has_bits & 0x00000010u) { |
7386 | 0 | is_nullable_ = from.is_nullable_; |
7387 | 0 | } |
7388 | 0 | if (cached_has_bits & 0x00000020u) { |
7389 | 0 | oid_ = from.oid_; |
7390 | 0 | } |
7391 | 0 | _has_bits_[0] |= cached_has_bits; |
7392 | 0 | } |
7393 | 0 | } |
7394 | | |
7395 | 0 | void CDCSDKColumnInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
7396 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKColumnInfoPB) |
7397 | 0 | if (&from == this) return; |
7398 | 0 | Clear(); |
7399 | 0 | MergeFrom(from); |
7400 | 0 | } |
7401 | | |
7402 | 0 | void CDCSDKColumnInfoPB::CopyFrom(const CDCSDKColumnInfoPB& from) { |
7403 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKColumnInfoPB) |
7404 | 0 | if (&from == this) return; |
7405 | 0 | Clear(); |
7406 | 0 | MergeFrom(from); |
7407 | 0 | } |
7408 | | |
7409 | 0 | bool CDCSDKColumnInfoPB::IsInitialized() const { |
7410 | 0 | return true; |
7411 | 0 | } |
7412 | | |
7413 | 0 | void CDCSDKColumnInfoPB::Swap(CDCSDKColumnInfoPB* other) { |
7414 | 0 | if (other == this) return; |
7415 | 0 | InternalSwap(other); |
7416 | 0 | } |
7417 | 0 | void CDCSDKColumnInfoPB::InternalSwap(CDCSDKColumnInfoPB* other) { |
7418 | 0 | using std::swap; |
7419 | 0 | name_.Swap(&other->name_); |
7420 | 0 | swap(type_, other->type_); |
7421 | 0 | swap(is_key_, other->is_key_); |
7422 | 0 | swap(is_hash_key_, other->is_hash_key_); |
7423 | 0 | swap(is_nullable_, other->is_nullable_); |
7424 | 0 | swap(oid_, other->oid_); |
7425 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7426 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7427 | 0 | swap(_cached_size_, other->_cached_size_); |
7428 | 0 | } |
7429 | | |
7430 | 0 | ::google::protobuf::Metadata CDCSDKColumnInfoPB::GetMetadata() const { |
7431 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
7432 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
7433 | 0 | } |
7434 | | |
7435 | | |
7436 | | // =================================================================== |
7437 | | |
7438 | 16.4k | void CDCSDKTablePropertiesPB::InitAsDefaultInstance() { |
7439 | 16.4k | } |
7440 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7441 | | const int CDCSDKTablePropertiesPB::kDefaultTimeToLiveFieldNumber; |
7442 | | const int CDCSDKTablePropertiesPB::kNumTabletsFieldNumber; |
7443 | | const int CDCSDKTablePropertiesPB::kIsYsqlCatalogTableFieldNumber; |
7444 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7445 | | |
7446 | | CDCSDKTablePropertiesPB::CDCSDKTablePropertiesPB() |
7447 | 17.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7448 | 17.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7449 | 631 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB(); |
7450 | 631 | } |
7451 | 17.1k | SharedCtor(); |
7452 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKTablePropertiesPB) |
7453 | 17.1k | } |
7454 | | CDCSDKTablePropertiesPB::CDCSDKTablePropertiesPB(const CDCSDKTablePropertiesPB& from) |
7455 | | : ::google::protobuf::Message(), |
7456 | | _internal_metadata_(NULL), |
7457 | | _has_bits_(from._has_bits_), |
7458 | 0 | _cached_size_(0) { |
7459 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7460 | 0 | ::memcpy(&default_time_to_live_, &from.default_time_to_live_, |
7461 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&is_ysql_catalog_table_) - |
7462 | 0 | reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_)); |
7463 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKTablePropertiesPB) |
7464 | 0 | } |
7465 | | |
7466 | 17.1k | void CDCSDKTablePropertiesPB::SharedCtor() { |
7467 | 17.1k | _cached_size_ = 0; |
7468 | 17.1k | ::memset(&default_time_to_live_, 0, static_cast<size_t>( |
7469 | 17.1k | reinterpret_cast<char*>(&is_ysql_catalog_table_) - |
7470 | 17.1k | reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_)); |
7471 | 17.1k | } |
7472 | | |
7473 | 631 | CDCSDKTablePropertiesPB::~CDCSDKTablePropertiesPB() { |
7474 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKTablePropertiesPB) |
7475 | 631 | SharedDtor(); |
7476 | 631 | } |
7477 | | |
7478 | 631 | void CDCSDKTablePropertiesPB::SharedDtor() { |
7479 | 631 | } |
7480 | | |
7481 | 0 | void CDCSDKTablePropertiesPB::SetCachedSize(int size) const { |
7482 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7483 | 0 | _cached_size_ = size; |
7484 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7485 | 0 | } |
7486 | 0 | const ::google::protobuf::Descriptor* CDCSDKTablePropertiesPB::descriptor() { |
7487 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
7488 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7489 | 0 | } |
7490 | | |
7491 | 0 | const CDCSDKTablePropertiesPB& CDCSDKTablePropertiesPB::default_instance() { |
7492 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB(); |
7493 | 0 | return *internal_default_instance(); |
7494 | 0 | } |
7495 | | |
7496 | 0 | CDCSDKTablePropertiesPB* CDCSDKTablePropertiesPB::New(::google::protobuf::Arena* arena) const { |
7497 | 0 | CDCSDKTablePropertiesPB* n = new CDCSDKTablePropertiesPB; |
7498 | 0 | if (arena != NULL) { |
7499 | 0 | arena->Own(n); |
7500 | 0 | } |
7501 | 0 | return n; |
7502 | 0 | } |
7503 | | |
7504 | 0 | void CDCSDKTablePropertiesPB::Clear() { |
7505 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKTablePropertiesPB) |
7506 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7507 | | // Prevent compiler warnings about cached_has_bits being unused |
7508 | 0 | (void) cached_has_bits; |
7509 | |
|
7510 | 0 | cached_has_bits = _has_bits_[0]; |
7511 | 0 | if (cached_has_bits & 7u) { |
7512 | 0 | ::memset(&default_time_to_live_, 0, static_cast<size_t>( |
7513 | 0 | reinterpret_cast<char*>(&is_ysql_catalog_table_) - |
7514 | 0 | reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_)); |
7515 | 0 | } |
7516 | 0 | _has_bits_.Clear(); |
7517 | 0 | _internal_metadata_.Clear(); |
7518 | 0 | } |
7519 | | |
7520 | | bool CDCSDKTablePropertiesPB::MergePartialFromCodedStream( |
7521 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7522 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7523 | 0 | ::google::protobuf::uint32 tag; |
7524 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKTablePropertiesPB) |
7525 | 0 | for (;;) { |
7526 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7527 | 0 | tag = p.first; |
7528 | 0 | if (!p.second) goto handle_unusual; |
7529 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7530 | | // optional uint64 default_time_to_live = 1; |
7531 | 0 | case 1: { |
7532 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7533 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7534 | 0 | set_has_default_time_to_live(); |
7535 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7536 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
7537 | 0 | input, &default_time_to_live_))); |
7538 | 0 | } else { |
7539 | 0 | goto handle_unusual; |
7540 | 0 | } |
7541 | 0 | break; |
7542 | 0 | } |
7543 | | |
7544 | | // optional int32 num_tablets = 2 [default = 0]; |
7545 | 0 | case 2: { |
7546 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7547 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7548 | 0 | set_has_num_tablets(); |
7549 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7550 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
7551 | 0 | input, &num_tablets_))); |
7552 | 0 | } else { |
7553 | 0 | goto handle_unusual; |
7554 | 0 | } |
7555 | 0 | break; |
7556 | 0 | } |
7557 | | |
7558 | | // optional bool is_ysql_catalog_table = 3 [default = false]; |
7559 | 0 | case 3: { |
7560 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7561 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
7562 | 0 | set_has_is_ysql_catalog_table(); |
7563 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7564 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7565 | 0 | input, &is_ysql_catalog_table_))); |
7566 | 0 | } else { |
7567 | 0 | goto handle_unusual; |
7568 | 0 | } |
7569 | 0 | break; |
7570 | 0 | } |
7571 | | |
7572 | 0 | default: { |
7573 | 0 | handle_unusual: |
7574 | 0 | if (tag == 0) { |
7575 | 0 | goto success; |
7576 | 0 | } |
7577 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7578 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7579 | 0 | break; |
7580 | 0 | } |
7581 | 0 | } |
7582 | 0 | } |
7583 | 0 | success: |
7584 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKTablePropertiesPB) |
7585 | 0 | return true; |
7586 | 0 | failure: |
7587 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKTablePropertiesPB) |
7588 | 0 | return false; |
7589 | 0 | #undef DO_ |
7590 | 0 | } |
7591 | | |
7592 | | void CDCSDKTablePropertiesPB::SerializeWithCachedSizes( |
7593 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7594 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKTablePropertiesPB) |
7595 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7596 | 0 | (void) cached_has_bits; |
7597 | |
|
7598 | 0 | cached_has_bits = _has_bits_[0]; |
7599 | | // optional uint64 default_time_to_live = 1; |
7600 | 0 | if (cached_has_bits & 0x00000001u) { |
7601 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->default_time_to_live(), output); |
7602 | 0 | } |
7603 | | |
7604 | | // optional int32 num_tablets = 2 [default = 0]; |
7605 | 0 | if (cached_has_bits & 0x00000002u) { |
7606 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_tablets(), output); |
7607 | 0 | } |
7608 | | |
7609 | | // optional bool is_ysql_catalog_table = 3 [default = false]; |
7610 | 0 | if (cached_has_bits & 0x00000004u) { |
7611 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_ysql_catalog_table(), output); |
7612 | 0 | } |
7613 | |
|
7614 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7615 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7616 | 0 | _internal_metadata_.unknown_fields(), output); |
7617 | 0 | } |
7618 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKTablePropertiesPB) |
7619 | 0 | } |
7620 | | |
7621 | | ::google::protobuf::uint8* CDCSDKTablePropertiesPB::InternalSerializeWithCachedSizesToArray( |
7622 | 631 | bool deterministic, ::google::protobuf::uint8* target) const { |
7623 | 631 | (void)deterministic; // Unused |
7624 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKTablePropertiesPB) |
7625 | 631 | ::google::protobuf::uint32 cached_has_bits = 0; |
7626 | 631 | (void) cached_has_bits; |
7627 | | |
7628 | 631 | cached_has_bits = _has_bits_[0]; |
7629 | | // optional uint64 default_time_to_live = 1; |
7630 | 631 | if (cached_has_bits & 0x00000001u) { |
7631 | 631 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->default_time_to_live(), target); |
7632 | 631 | } |
7633 | | |
7634 | | // optional int32 num_tablets = 2 [default = 0]; |
7635 | 631 | if (cached_has_bits & 0x00000002u) { |
7636 | 631 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_tablets(), target); |
7637 | 631 | } |
7638 | | |
7639 | | // optional bool is_ysql_catalog_table = 3 [default = false]; |
7640 | 631 | if (cached_has_bits & 0x00000004u) { |
7641 | 631 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_ysql_catalog_table(), target); |
7642 | 631 | } |
7643 | | |
7644 | 631 | if (_internal_metadata_.have_unknown_fields()) { |
7645 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7646 | 0 | _internal_metadata_.unknown_fields(), target); |
7647 | 0 | } |
7648 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKTablePropertiesPB) |
7649 | 631 | return target; |
7650 | 631 | } |
7651 | | |
7652 | 1.26k | size_t CDCSDKTablePropertiesPB::ByteSizeLong() const { |
7653 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKTablePropertiesPB) |
7654 | 1.26k | size_t total_size = 0; |
7655 | | |
7656 | 1.26k | if (_internal_metadata_.have_unknown_fields()) { |
7657 | 0 | total_size += |
7658 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7659 | 0 | _internal_metadata_.unknown_fields()); |
7660 | 0 | } |
7661 | 1.26k | if (_has_bits_[0 / 32] & 7u) { |
7662 | | // optional uint64 default_time_to_live = 1; |
7663 | 1.26k | if (has_default_time_to_live()) { |
7664 | 1.26k | total_size += 1 + |
7665 | 1.26k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7666 | 1.26k | this->default_time_to_live()); |
7667 | 1.26k | } |
7668 | | |
7669 | | // optional int32 num_tablets = 2 [default = 0]; |
7670 | 1.26k | if (has_num_tablets()) { |
7671 | 1.26k | total_size += 1 + |
7672 | 1.26k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
7673 | 1.26k | this->num_tablets()); |
7674 | 1.26k | } |
7675 | | |
7676 | | // optional bool is_ysql_catalog_table = 3 [default = false]; |
7677 | 1.26k | if (has_is_ysql_catalog_table()) { |
7678 | 1.26k | total_size += 1 + 1; |
7679 | 1.26k | } |
7680 | | |
7681 | 1.26k | } |
7682 | 1.26k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7683 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7684 | 1.26k | _cached_size_ = cached_size; |
7685 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7686 | 1.26k | return total_size; |
7687 | 1.26k | } |
7688 | | |
7689 | 0 | void CDCSDKTablePropertiesPB::MergeFrom(const ::google::protobuf::Message& from) { |
7690 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKTablePropertiesPB) |
7691 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7692 | 0 | const CDCSDKTablePropertiesPB* source = |
7693 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKTablePropertiesPB>( |
7694 | 0 | &from); |
7695 | 0 | if (source == NULL) { |
7696 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKTablePropertiesPB) |
7697 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7698 | 0 | } else { |
7699 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKTablePropertiesPB) |
7700 | 0 | MergeFrom(*source); |
7701 | 0 | } |
7702 | 0 | } |
7703 | | |
7704 | 0 | void CDCSDKTablePropertiesPB::MergeFrom(const CDCSDKTablePropertiesPB& from) { |
7705 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKTablePropertiesPB) |
7706 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7707 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7708 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7709 | 0 | (void) cached_has_bits; |
7710 | |
|
7711 | 0 | cached_has_bits = from._has_bits_[0]; |
7712 | 0 | if (cached_has_bits & 7u) { |
7713 | 0 | if (cached_has_bits & 0x00000001u) { |
7714 | 0 | default_time_to_live_ = from.default_time_to_live_; |
7715 | 0 | } |
7716 | 0 | if (cached_has_bits & 0x00000002u) { |
7717 | 0 | num_tablets_ = from.num_tablets_; |
7718 | 0 | } |
7719 | 0 | if (cached_has_bits & 0x00000004u) { |
7720 | 0 | is_ysql_catalog_table_ = from.is_ysql_catalog_table_; |
7721 | 0 | } |
7722 | 0 | _has_bits_[0] |= cached_has_bits; |
7723 | 0 | } |
7724 | 0 | } |
7725 | | |
7726 | 0 | void CDCSDKTablePropertiesPB::CopyFrom(const ::google::protobuf::Message& from) { |
7727 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKTablePropertiesPB) |
7728 | 0 | if (&from == this) return; |
7729 | 0 | Clear(); |
7730 | 0 | MergeFrom(from); |
7731 | 0 | } |
7732 | | |
7733 | 0 | void CDCSDKTablePropertiesPB::CopyFrom(const CDCSDKTablePropertiesPB& from) { |
7734 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKTablePropertiesPB) |
7735 | 0 | if (&from == this) return; |
7736 | 0 | Clear(); |
7737 | 0 | MergeFrom(from); |
7738 | 0 | } |
7739 | | |
7740 | 0 | bool CDCSDKTablePropertiesPB::IsInitialized() const { |
7741 | 0 | return true; |
7742 | 0 | } |
7743 | | |
7744 | 0 | void CDCSDKTablePropertiesPB::Swap(CDCSDKTablePropertiesPB* other) { |
7745 | 0 | if (other == this) return; |
7746 | 0 | InternalSwap(other); |
7747 | 0 | } |
7748 | 0 | void CDCSDKTablePropertiesPB::InternalSwap(CDCSDKTablePropertiesPB* other) { |
7749 | 0 | using std::swap; |
7750 | 0 | swap(default_time_to_live_, other->default_time_to_live_); |
7751 | 0 | swap(num_tablets_, other->num_tablets_); |
7752 | 0 | swap(is_ysql_catalog_table_, other->is_ysql_catalog_table_); |
7753 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7754 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7755 | 0 | swap(_cached_size_, other->_cached_size_); |
7756 | 0 | } |
7757 | | |
7758 | 0 | ::google::protobuf::Metadata CDCSDKTablePropertiesPB::GetMetadata() const { |
7759 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
7760 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
7761 | 0 | } |
7762 | | |
7763 | | |
7764 | | // =================================================================== |
7765 | | |
7766 | 16.4k | void CDCSDKSchemaPB::InitAsDefaultInstance() { |
7767 | 16.4k | ::yb::cdc::_CDCSDKSchemaPB_default_instance_._instance.get_mutable()->tab_info_ = const_cast< ::yb::cdc::CDCSDKTablePropertiesPB*>( |
7768 | 16.4k | ::yb::cdc::CDCSDKTablePropertiesPB::internal_default_instance()); |
7769 | 16.4k | } |
7770 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7771 | | const int CDCSDKSchemaPB::kColumnInfoFieldNumber; |
7772 | | const int CDCSDKSchemaPB::kTabInfoFieldNumber; |
7773 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7774 | | |
7775 | | CDCSDKSchemaPB::CDCSDKSchemaPB() |
7776 | 17.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7777 | 17.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7778 | 631 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB(); |
7779 | 631 | } |
7780 | 17.1k | SharedCtor(); |
7781 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKSchemaPB) |
7782 | 17.1k | } |
7783 | | CDCSDKSchemaPB::CDCSDKSchemaPB(const CDCSDKSchemaPB& from) |
7784 | | : ::google::protobuf::Message(), |
7785 | | _internal_metadata_(NULL), |
7786 | | _has_bits_(from._has_bits_), |
7787 | | _cached_size_(0), |
7788 | 0 | column_info_(from.column_info_) { |
7789 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7790 | 0 | if (from.has_tab_info()) { |
7791 | 0 | tab_info_ = new ::yb::cdc::CDCSDKTablePropertiesPB(*from.tab_info_); |
7792 | 0 | } else { |
7793 | 0 | tab_info_ = NULL; |
7794 | 0 | } |
7795 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKSchemaPB) |
7796 | 0 | } |
7797 | | |
7798 | 17.1k | void CDCSDKSchemaPB::SharedCtor() { |
7799 | 17.1k | _cached_size_ = 0; |
7800 | 17.1k | tab_info_ = NULL; |
7801 | 17.1k | } |
7802 | | |
7803 | 631 | CDCSDKSchemaPB::~CDCSDKSchemaPB() { |
7804 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKSchemaPB) |
7805 | 631 | SharedDtor(); |
7806 | 631 | } |
7807 | | |
7808 | 631 | void CDCSDKSchemaPB::SharedDtor() { |
7809 | 631 | if (this != internal_default_instance()) delete tab_info_; |
7810 | 631 | } |
7811 | | |
7812 | 0 | void CDCSDKSchemaPB::SetCachedSize(int size) const { |
7813 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7814 | 0 | _cached_size_ = size; |
7815 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7816 | 0 | } |
7817 | 0 | const ::google::protobuf::Descriptor* CDCSDKSchemaPB::descriptor() { |
7818 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
7819 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7820 | 0 | } |
7821 | | |
7822 | 0 | const CDCSDKSchemaPB& CDCSDKSchemaPB::default_instance() { |
7823 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB(); |
7824 | 0 | return *internal_default_instance(); |
7825 | 0 | } |
7826 | | |
7827 | 0 | CDCSDKSchemaPB* CDCSDKSchemaPB::New(::google::protobuf::Arena* arena) const { |
7828 | 0 | CDCSDKSchemaPB* n = new CDCSDKSchemaPB; |
7829 | 0 | if (arena != NULL) { |
7830 | 0 | arena->Own(n); |
7831 | 0 | } |
7832 | 0 | return n; |
7833 | 0 | } |
7834 | | |
7835 | 0 | void CDCSDKSchemaPB::Clear() { |
7836 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKSchemaPB) |
7837 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7838 | | // Prevent compiler warnings about cached_has_bits being unused |
7839 | 0 | (void) cached_has_bits; |
7840 | |
|
7841 | 0 | column_info_.Clear(); |
7842 | 0 | cached_has_bits = _has_bits_[0]; |
7843 | 0 | if (cached_has_bits & 0x00000001u) { |
7844 | 0 | GOOGLE_DCHECK(tab_info_ != NULL); |
7845 | 0 | tab_info_->Clear(); |
7846 | 0 | } |
7847 | 0 | _has_bits_.Clear(); |
7848 | 0 | _internal_metadata_.Clear(); |
7849 | 0 | } |
7850 | | |
7851 | | bool CDCSDKSchemaPB::MergePartialFromCodedStream( |
7852 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7853 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7854 | 0 | ::google::protobuf::uint32 tag; |
7855 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKSchemaPB) |
7856 | 0 | for (;;) { |
7857 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7858 | 0 | tag = p.first; |
7859 | 0 | if (!p.second) goto handle_unusual; |
7860 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7861 | | // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1; |
7862 | 0 | case 1: { |
7863 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7864 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7865 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_info())); |
7866 | 0 | } else { |
7867 | 0 | goto handle_unusual; |
7868 | 0 | } |
7869 | 0 | break; |
7870 | 0 | } |
7871 | | |
7872 | | // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2; |
7873 | 0 | case 2: { |
7874 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7875 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
7876 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7877 | 0 | input, mutable_tab_info())); |
7878 | 0 | } else { |
7879 | 0 | goto handle_unusual; |
7880 | 0 | } |
7881 | 0 | break; |
7882 | 0 | } |
7883 | | |
7884 | 0 | default: { |
7885 | 0 | handle_unusual: |
7886 | 0 | if (tag == 0) { |
7887 | 0 | goto success; |
7888 | 0 | } |
7889 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7890 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7891 | 0 | break; |
7892 | 0 | } |
7893 | 0 | } |
7894 | 0 | } |
7895 | 0 | success: |
7896 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKSchemaPB) |
7897 | 0 | return true; |
7898 | 0 | failure: |
7899 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKSchemaPB) |
7900 | 0 | return false; |
7901 | 0 | #undef DO_ |
7902 | 0 | } |
7903 | | |
7904 | | void CDCSDKSchemaPB::SerializeWithCachedSizes( |
7905 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7906 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKSchemaPB) |
7907 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7908 | 0 | (void) cached_has_bits; |
7909 | | |
7910 | | // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1; |
7911 | 0 | for (unsigned int i = 0, |
7912 | 0 | n = static_cast<unsigned int>(this->column_info_size()); i < n; i++) { |
7913 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7914 | 0 | 1, this->column_info(static_cast<int>(i)), output); |
7915 | 0 | } |
7916 | |
|
7917 | 0 | cached_has_bits = _has_bits_[0]; |
7918 | | // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2; |
7919 | 0 | if (cached_has_bits & 0x00000001u) { |
7920 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7921 | 0 | 2, *this->tab_info_, output); |
7922 | 0 | } |
7923 | |
|
7924 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7925 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7926 | 0 | _internal_metadata_.unknown_fields(), output); |
7927 | 0 | } |
7928 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKSchemaPB) |
7929 | 0 | } |
7930 | | |
7931 | | ::google::protobuf::uint8* CDCSDKSchemaPB::InternalSerializeWithCachedSizesToArray( |
7932 | 631 | bool deterministic, ::google::protobuf::uint8* target) const { |
7933 | 631 | (void)deterministic; // Unused |
7934 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKSchemaPB) |
7935 | 631 | ::google::protobuf::uint32 cached_has_bits = 0; |
7936 | 631 | (void) cached_has_bits; |
7937 | | |
7938 | | // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1; |
7939 | 631 | for (unsigned int i = 0, |
7940 | 2.40k | n = static_cast<unsigned int>(this->column_info_size()); i < n; i++1.77k ) { |
7941 | 1.77k | target = ::google::protobuf::internal::WireFormatLite:: |
7942 | 1.77k | InternalWriteMessageToArray( |
7943 | 1.77k | 1, this->column_info(static_cast<int>(i)), deterministic, target); |
7944 | 1.77k | } |
7945 | | |
7946 | 631 | cached_has_bits = _has_bits_[0]; |
7947 | | // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2; |
7948 | 631 | if (cached_has_bits & 0x00000001u) { |
7949 | 631 | target = ::google::protobuf::internal::WireFormatLite:: |
7950 | 631 | InternalWriteMessageToArray( |
7951 | 631 | 2, *this->tab_info_, deterministic, target); |
7952 | 631 | } |
7953 | | |
7954 | 631 | if (_internal_metadata_.have_unknown_fields()) { |
7955 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7956 | 0 | _internal_metadata_.unknown_fields(), target); |
7957 | 0 | } |
7958 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKSchemaPB) |
7959 | 631 | return target; |
7960 | 631 | } |
7961 | | |
7962 | 1.26k | size_t CDCSDKSchemaPB::ByteSizeLong() const { |
7963 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKSchemaPB) |
7964 | 1.26k | size_t total_size = 0; |
7965 | | |
7966 | 1.26k | if (_internal_metadata_.have_unknown_fields()) { |
7967 | 0 | total_size += |
7968 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7969 | 0 | _internal_metadata_.unknown_fields()); |
7970 | 0 | } |
7971 | | // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1; |
7972 | 1.26k | { |
7973 | 1.26k | unsigned int count = static_cast<unsigned int>(this->column_info_size()); |
7974 | 1.26k | total_size += 1UL * count; |
7975 | 4.80k | for (unsigned int i = 0; i < count; i++3.54k ) { |
7976 | 3.54k | total_size += |
7977 | 3.54k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7978 | 3.54k | this->column_info(static_cast<int>(i))); |
7979 | 3.54k | } |
7980 | 1.26k | } |
7981 | | |
7982 | | // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2; |
7983 | 1.26k | if (has_tab_info()) { |
7984 | 1.26k | total_size += 1 + |
7985 | 1.26k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7986 | 1.26k | *this->tab_info_); |
7987 | 1.26k | } |
7988 | | |
7989 | 1.26k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7990 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7991 | 1.26k | _cached_size_ = cached_size; |
7992 | 1.26k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7993 | 1.26k | return total_size; |
7994 | 1.26k | } |
7995 | | |
7996 | 0 | void CDCSDKSchemaPB::MergeFrom(const ::google::protobuf::Message& from) { |
7997 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKSchemaPB) |
7998 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7999 | 0 | const CDCSDKSchemaPB* source = |
8000 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKSchemaPB>( |
8001 | 0 | &from); |
8002 | 0 | if (source == NULL) { |
8003 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKSchemaPB) |
8004 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8005 | 0 | } else { |
8006 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKSchemaPB) |
8007 | 0 | MergeFrom(*source); |
8008 | 0 | } |
8009 | 0 | } |
8010 | | |
8011 | 0 | void CDCSDKSchemaPB::MergeFrom(const CDCSDKSchemaPB& from) { |
8012 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKSchemaPB) |
8013 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8014 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8015 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8016 | 0 | (void) cached_has_bits; |
8017 | |
|
8018 | 0 | column_info_.MergeFrom(from.column_info_); |
8019 | 0 | if (from.has_tab_info()) { |
8020 | 0 | mutable_tab_info()->::yb::cdc::CDCSDKTablePropertiesPB::MergeFrom(from.tab_info()); |
8021 | 0 | } |
8022 | 0 | } |
8023 | | |
8024 | 0 | void CDCSDKSchemaPB::CopyFrom(const ::google::protobuf::Message& from) { |
8025 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKSchemaPB) |
8026 | 0 | if (&from == this) return; |
8027 | 0 | Clear(); |
8028 | 0 | MergeFrom(from); |
8029 | 0 | } |
8030 | | |
8031 | 0 | void CDCSDKSchemaPB::CopyFrom(const CDCSDKSchemaPB& from) { |
8032 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKSchemaPB) |
8033 | 0 | if (&from == this) return; |
8034 | 0 | Clear(); |
8035 | 0 | MergeFrom(from); |
8036 | 0 | } |
8037 | | |
8038 | 0 | bool CDCSDKSchemaPB::IsInitialized() const { |
8039 | 0 | return true; |
8040 | 0 | } |
8041 | | |
8042 | 0 | void CDCSDKSchemaPB::Swap(CDCSDKSchemaPB* other) { |
8043 | 0 | if (other == this) return; |
8044 | 0 | InternalSwap(other); |
8045 | 0 | } |
8046 | 0 | void CDCSDKSchemaPB::InternalSwap(CDCSDKSchemaPB* other) { |
8047 | 0 | using std::swap; |
8048 | 0 | column_info_.InternalSwap(&other->column_info_); |
8049 | 0 | swap(tab_info_, other->tab_info_); |
8050 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8051 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8052 | 0 | swap(_cached_size_, other->_cached_size_); |
8053 | 0 | } |
8054 | | |
8055 | 0 | ::google::protobuf::Metadata CDCSDKSchemaPB::GetMetadata() const { |
8056 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8057 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
8058 | 0 | } |
8059 | | |
8060 | | |
8061 | | // =================================================================== |
8062 | | |
8063 | 16.4k | void CDCSDKOpIdPB::InitAsDefaultInstance() { |
8064 | 16.4k | } |
8065 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8066 | | const int CDCSDKOpIdPB::kTermFieldNumber; |
8067 | | const int CDCSDKOpIdPB::kIndexFieldNumber; |
8068 | | const int CDCSDKOpIdPB::kWriteIdFieldNumber; |
8069 | | const int CDCSDKOpIdPB::kWriteIdKeyFieldNumber; |
8070 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8071 | | |
8072 | | CDCSDKOpIdPB::CDCSDKOpIdPB() |
8073 | 17.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8074 | 17.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8075 | 1.35k | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB(); |
8076 | 1.35k | } |
8077 | 17.8k | SharedCtor(); |
8078 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKOpIdPB) |
8079 | 17.8k | } |
8080 | | CDCSDKOpIdPB::CDCSDKOpIdPB(const CDCSDKOpIdPB& from) |
8081 | | : ::google::protobuf::Message(), |
8082 | | _internal_metadata_(NULL), |
8083 | | _has_bits_(from._has_bits_), |
8084 | 0 | _cached_size_(0) { |
8085 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8086 | 0 | write_id_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8087 | 0 | if (from.has_write_id_key()) { |
8088 | 0 | write_id_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.write_id_key_); |
8089 | 0 | } |
8090 | 0 | ::memcpy(&term_, &from.term_, |
8091 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&write_id_) - |
8092 | 0 | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
8093 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKOpIdPB) |
8094 | 0 | } |
8095 | | |
8096 | 17.8k | void CDCSDKOpIdPB::SharedCtor() { |
8097 | 17.8k | _cached_size_ = 0; |
8098 | 17.8k | write_id_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8099 | 17.8k | ::memset(&term_, 0, static_cast<size_t>( |
8100 | 17.8k | reinterpret_cast<char*>(&write_id_) - |
8101 | 17.8k | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
8102 | 17.8k | } |
8103 | | |
8104 | 1.35k | CDCSDKOpIdPB::~CDCSDKOpIdPB() { |
8105 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKOpIdPB) |
8106 | 1.35k | SharedDtor(); |
8107 | 1.35k | } |
8108 | | |
8109 | 1.35k | void CDCSDKOpIdPB::SharedDtor() { |
8110 | 1.35k | write_id_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8111 | 1.35k | } |
8112 | | |
8113 | 0 | void CDCSDKOpIdPB::SetCachedSize(int size) const { |
8114 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8115 | 0 | _cached_size_ = size; |
8116 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8117 | 0 | } |
8118 | 0 | const ::google::protobuf::Descriptor* CDCSDKOpIdPB::descriptor() { |
8119 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8120 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8121 | 0 | } |
8122 | | |
8123 | 0 | const CDCSDKOpIdPB& CDCSDKOpIdPB::default_instance() { |
8124 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB(); |
8125 | 0 | return *internal_default_instance(); |
8126 | 0 | } |
8127 | | |
8128 | 0 | CDCSDKOpIdPB* CDCSDKOpIdPB::New(::google::protobuf::Arena* arena) const { |
8129 | 0 | CDCSDKOpIdPB* n = new CDCSDKOpIdPB; |
8130 | 0 | if (arena != NULL) { |
8131 | 0 | arena->Own(n); |
8132 | 0 | } |
8133 | 0 | return n; |
8134 | 0 | } |
8135 | | |
8136 | 198 | void CDCSDKOpIdPB::Clear() { |
8137 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKOpIdPB) |
8138 | 198 | ::google::protobuf::uint32 cached_has_bits = 0; |
8139 | | // Prevent compiler warnings about cached_has_bits being unused |
8140 | 198 | (void) cached_has_bits; |
8141 | | |
8142 | 198 | cached_has_bits = _has_bits_[0]; |
8143 | 198 | if (cached_has_bits & 0x00000001u) { |
8144 | 198 | GOOGLE_DCHECK(!write_id_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8145 | 198 | (*write_id_key_.UnsafeRawStringPointer())->clear(); |
8146 | 198 | } |
8147 | 198 | if (cached_has_bits & 14u) { |
8148 | 198 | ::memset(&term_, 0, static_cast<size_t>( |
8149 | 198 | reinterpret_cast<char*>(&write_id_) - |
8150 | 198 | reinterpret_cast<char*>(&term_)) + sizeof(write_id_)); |
8151 | 198 | } |
8152 | 198 | _has_bits_.Clear(); |
8153 | 198 | _internal_metadata_.Clear(); |
8154 | 198 | } |
8155 | | |
8156 | | bool CDCSDKOpIdPB::MergePartialFromCodedStream( |
8157 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8158 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8159 | 0 | ::google::protobuf::uint32 tag; |
8160 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKOpIdPB) |
8161 | 0 | for (;;) { |
8162 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8163 | 0 | tag = p.first; |
8164 | 0 | if (!p.second) goto handle_unusual; |
8165 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8166 | | // optional int64 term = 1; |
8167 | 0 | case 1: { |
8168 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8169 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
8170 | 0 | set_has_term(); |
8171 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8172 | 0 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
8173 | 0 | input, &term_))); |
8174 | 0 | } else { |
8175 | 0 | goto handle_unusual; |
8176 | 0 | } |
8177 | 0 | break; |
8178 | 0 | } |
8179 | | |
8180 | | // optional int64 index = 2; |
8181 | 0 | case 2: { |
8182 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8183 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
8184 | 0 | set_has_index(); |
8185 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8186 | 0 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
8187 | 0 | input, &index_))); |
8188 | 0 | } else { |
8189 | 0 | goto handle_unusual; |
8190 | 0 | } |
8191 | 0 | break; |
8192 | 0 | } |
8193 | | |
8194 | | // optional uint32 write_id = 3 [default = 0]; |
8195 | 0 | case 3: { |
8196 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8197 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
8198 | 0 | set_has_write_id(); |
8199 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8200 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8201 | 0 | input, &write_id_))); |
8202 | 0 | } else { |
8203 | 0 | goto handle_unusual; |
8204 | 0 | } |
8205 | 0 | break; |
8206 | 0 | } |
8207 | | |
8208 | | // optional bytes write_id_key = 4 [default = ""]; |
8209 | 0 | case 4: { |
8210 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8211 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
8212 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8213 | 0 | input, this->mutable_write_id_key())); |
8214 | 0 | } else { |
8215 | 0 | goto handle_unusual; |
8216 | 0 | } |
8217 | 0 | break; |
8218 | 0 | } |
8219 | | |
8220 | 0 | default: { |
8221 | 0 | handle_unusual: |
8222 | 0 | if (tag == 0) { |
8223 | 0 | goto success; |
8224 | 0 | } |
8225 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8226 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8227 | 0 | break; |
8228 | 0 | } |
8229 | 0 | } |
8230 | 0 | } |
8231 | 0 | success: |
8232 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKOpIdPB) |
8233 | 0 | return true; |
8234 | 0 | failure: |
8235 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKOpIdPB) |
8236 | 0 | return false; |
8237 | 0 | #undef DO_ |
8238 | 0 | } |
8239 | | |
8240 | | void CDCSDKOpIdPB::SerializeWithCachedSizes( |
8241 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8242 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKOpIdPB) |
8243 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8244 | 0 | (void) cached_has_bits; |
8245 | |
|
8246 | 0 | cached_has_bits = _has_bits_[0]; |
8247 | | // optional int64 term = 1; |
8248 | 0 | if (cached_has_bits & 0x00000002u) { |
8249 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->term(), output); |
8250 | 0 | } |
8251 | | |
8252 | | // optional int64 index = 2; |
8253 | 0 | if (cached_has_bits & 0x00000004u) { |
8254 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->index(), output); |
8255 | 0 | } |
8256 | | |
8257 | | // optional uint32 write_id = 3 [default = 0]; |
8258 | 0 | if (cached_has_bits & 0x00000008u) { |
8259 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->write_id(), output); |
8260 | 0 | } |
8261 | | |
8262 | | // optional bytes write_id_key = 4 [default = ""]; |
8263 | 0 | if (cached_has_bits & 0x00000001u) { |
8264 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
8265 | 0 | 4, this->write_id_key(), output); |
8266 | 0 | } |
8267 | |
|
8268 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8269 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8270 | 0 | _internal_metadata_.unknown_fields(), output); |
8271 | 0 | } |
8272 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKOpIdPB) |
8273 | 0 | } |
8274 | | |
8275 | | ::google::protobuf::uint8* CDCSDKOpIdPB::InternalSerializeWithCachedSizesToArray( |
8276 | 1.21k | bool deterministic, ::google::protobuf::uint8* target) const { |
8277 | 1.21k | (void)deterministic; // Unused |
8278 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKOpIdPB) |
8279 | 1.21k | ::google::protobuf::uint32 cached_has_bits = 0; |
8280 | 1.21k | (void) cached_has_bits; |
8281 | | |
8282 | 1.21k | cached_has_bits = _has_bits_[0]; |
8283 | | // optional int64 term = 1; |
8284 | 1.21k | if (cached_has_bits & 0x00000002u) { |
8285 | 1.21k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->term(), target); |
8286 | 1.21k | } |
8287 | | |
8288 | | // optional int64 index = 2; |
8289 | 1.21k | if (cached_has_bits & 0x00000004u) { |
8290 | 1.21k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->index(), target); |
8291 | 1.21k | } |
8292 | | |
8293 | | // optional uint32 write_id = 3 [default = 0]; |
8294 | 1.21k | if (cached_has_bits & 0x00000008u) { |
8295 | 1.21k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->write_id(), target); |
8296 | 1.21k | } |
8297 | | |
8298 | | // optional bytes write_id_key = 4 [default = ""]; |
8299 | 1.21k | if (cached_has_bits & 0x00000001u) { |
8300 | 1.21k | target = |
8301 | 1.21k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
8302 | 1.21k | 4, this->write_id_key(), target); |
8303 | 1.21k | } |
8304 | | |
8305 | 1.21k | if (_internal_metadata_.have_unknown_fields()) { |
8306 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8307 | 0 | _internal_metadata_.unknown_fields(), target); |
8308 | 0 | } |
8309 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKOpIdPB) |
8310 | 1.21k | return target; |
8311 | 1.21k | } |
8312 | | |
8313 | 2.42k | size_t CDCSDKOpIdPB::ByteSizeLong() const { |
8314 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKOpIdPB) |
8315 | 2.42k | size_t total_size = 0; |
8316 | | |
8317 | 2.42k | if (_internal_metadata_.have_unknown_fields()) { |
8318 | 0 | total_size += |
8319 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8320 | 0 | _internal_metadata_.unknown_fields()); |
8321 | 0 | } |
8322 | 2.42k | if (_has_bits_[0 / 32] & 15u) { |
8323 | | // optional bytes write_id_key = 4 [default = ""]; |
8324 | 2.42k | if (has_write_id_key()) { |
8325 | 2.42k | total_size += 1 + |
8326 | 2.42k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8327 | 2.42k | this->write_id_key()); |
8328 | 2.42k | } |
8329 | | |
8330 | | // optional int64 term = 1; |
8331 | 2.42k | if (has_term()) { |
8332 | 2.42k | total_size += 1 + |
8333 | 2.42k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
8334 | 2.42k | this->term()); |
8335 | 2.42k | } |
8336 | | |
8337 | | // optional int64 index = 2; |
8338 | 2.42k | if (has_index()) { |
8339 | 2.42k | total_size += 1 + |
8340 | 2.42k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
8341 | 2.42k | this->index()); |
8342 | 2.42k | } |
8343 | | |
8344 | | // optional uint32 write_id = 3 [default = 0]; |
8345 | 2.42k | if (has_write_id()) { |
8346 | 2.42k | total_size += 1 + |
8347 | 2.42k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8348 | 2.42k | this->write_id()); |
8349 | 2.42k | } |
8350 | | |
8351 | 2.42k | } |
8352 | 2.42k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8353 | 2.42k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8354 | 2.42k | _cached_size_ = cached_size; |
8355 | 2.42k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8356 | 2.42k | return total_size; |
8357 | 2.42k | } |
8358 | | |
8359 | 0 | void CDCSDKOpIdPB::MergeFrom(const ::google::protobuf::Message& from) { |
8360 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKOpIdPB) |
8361 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8362 | 0 | const CDCSDKOpIdPB* source = |
8363 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKOpIdPB>( |
8364 | 0 | &from); |
8365 | 0 | if (source == NULL) { |
8366 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKOpIdPB) |
8367 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8368 | 0 | } else { |
8369 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKOpIdPB) |
8370 | 0 | MergeFrom(*source); |
8371 | 0 | } |
8372 | 0 | } |
8373 | | |
8374 | 345 | void CDCSDKOpIdPB::MergeFrom(const CDCSDKOpIdPB& from) { |
8375 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKOpIdPB) |
8376 | 345 | GOOGLE_DCHECK_NE(&from, this); |
8377 | 345 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8378 | 345 | ::google::protobuf::uint32 cached_has_bits = 0; |
8379 | 345 | (void) cached_has_bits; |
8380 | | |
8381 | 345 | cached_has_bits = from._has_bits_[0]; |
8382 | 345 | if (cached_has_bits & 15u) { |
8383 | 345 | if (cached_has_bits & 0x00000001u) { |
8384 | 345 | set_has_write_id_key(); |
8385 | 345 | write_id_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.write_id_key_); |
8386 | 345 | } |
8387 | 345 | if (cached_has_bits & 0x00000002u) { |
8388 | 345 | term_ = from.term_; |
8389 | 345 | } |
8390 | 345 | if (cached_has_bits & 0x00000004u) { |
8391 | 345 | index_ = from.index_; |
8392 | 345 | } |
8393 | 345 | if (cached_has_bits & 0x00000008u) { |
8394 | 345 | write_id_ = from.write_id_; |
8395 | 345 | } |
8396 | 345 | _has_bits_[0] |= cached_has_bits; |
8397 | 345 | } |
8398 | 345 | } |
8399 | | |
8400 | 0 | void CDCSDKOpIdPB::CopyFrom(const ::google::protobuf::Message& from) { |
8401 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKOpIdPB) |
8402 | 0 | if (&from == this) return; |
8403 | 0 | Clear(); |
8404 | 0 | MergeFrom(from); |
8405 | 0 | } |
8406 | | |
8407 | 0 | void CDCSDKOpIdPB::CopyFrom(const CDCSDKOpIdPB& from) { |
8408 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKOpIdPB) |
8409 | 0 | if (&from == this) return; |
8410 | 0 | Clear(); |
8411 | 0 | MergeFrom(from); |
8412 | 0 | } |
8413 | | |
8414 | 0 | bool CDCSDKOpIdPB::IsInitialized() const { |
8415 | 0 | return true; |
8416 | 0 | } |
8417 | | |
8418 | 0 | void CDCSDKOpIdPB::Swap(CDCSDKOpIdPB* other) { |
8419 | 0 | if (other == this) return; |
8420 | 0 | InternalSwap(other); |
8421 | 0 | } |
8422 | 0 | void CDCSDKOpIdPB::InternalSwap(CDCSDKOpIdPB* other) { |
8423 | 0 | using std::swap; |
8424 | 0 | write_id_key_.Swap(&other->write_id_key_); |
8425 | 0 | swap(term_, other->term_); |
8426 | 0 | swap(index_, other->index_); |
8427 | 0 | swap(write_id_, other->write_id_); |
8428 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8429 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8430 | 0 | swap(_cached_size_, other->_cached_size_); |
8431 | 0 | } |
8432 | | |
8433 | 0 | ::google::protobuf::Metadata CDCSDKOpIdPB::GetMetadata() const { |
8434 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8435 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
8436 | 0 | } |
8437 | | |
8438 | | |
8439 | | // =================================================================== |
8440 | | |
8441 | 16.4k | void TypeInfo::InitAsDefaultInstance() { |
8442 | 16.4k | } |
8443 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8444 | | const int TypeInfo::kModifierFieldNumber; |
8445 | | const int TypeInfo::kValueOptionalFieldNumber; |
8446 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8447 | | |
8448 | | TypeInfo::TypeInfo() |
8449 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8450 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8451 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo(); |
8452 | 0 | } |
8453 | 16.4k | SharedCtor(); |
8454 | | // @@protoc_insertion_point(constructor:yb.cdc.TypeInfo) |
8455 | 16.4k | } |
8456 | | TypeInfo::TypeInfo(const TypeInfo& from) |
8457 | | : ::google::protobuf::Message(), |
8458 | | _internal_metadata_(NULL), |
8459 | | _has_bits_(from._has_bits_), |
8460 | 0 | _cached_size_(0) { |
8461 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8462 | 0 | modifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8463 | 0 | if (from.has_modifier()) { |
8464 | 0 | modifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modifier_); |
8465 | 0 | } |
8466 | 0 | value_optional_ = from.value_optional_; |
8467 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.TypeInfo) |
8468 | 0 | } |
8469 | | |
8470 | 16.4k | void TypeInfo::SharedCtor() { |
8471 | 16.4k | _cached_size_ = 0; |
8472 | 16.4k | modifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8473 | 16.4k | value_optional_ = false; |
8474 | 16.4k | } |
8475 | | |
8476 | 0 | TypeInfo::~TypeInfo() { |
8477 | | // @@protoc_insertion_point(destructor:yb.cdc.TypeInfo) |
8478 | 0 | SharedDtor(); |
8479 | 0 | } |
8480 | | |
8481 | 0 | void TypeInfo::SharedDtor() { |
8482 | 0 | modifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8483 | 0 | } |
8484 | | |
8485 | 0 | void TypeInfo::SetCachedSize(int size) const { |
8486 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8487 | 0 | _cached_size_ = size; |
8488 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8489 | 0 | } |
8490 | 0 | const ::google::protobuf::Descriptor* TypeInfo::descriptor() { |
8491 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8492 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8493 | 0 | } |
8494 | | |
8495 | 0 | const TypeInfo& TypeInfo::default_instance() { |
8496 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo(); |
8497 | 0 | return *internal_default_instance(); |
8498 | 0 | } |
8499 | | |
8500 | 0 | TypeInfo* TypeInfo::New(::google::protobuf::Arena* arena) const { |
8501 | 0 | TypeInfo* n = new TypeInfo; |
8502 | 0 | if (arena != NULL) { |
8503 | 0 | arena->Own(n); |
8504 | 0 | } |
8505 | 0 | return n; |
8506 | 0 | } |
8507 | | |
8508 | 0 | void TypeInfo::Clear() { |
8509 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.TypeInfo) |
8510 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8511 | | // Prevent compiler warnings about cached_has_bits being unused |
8512 | 0 | (void) cached_has_bits; |
8513 | |
|
8514 | 0 | cached_has_bits = _has_bits_[0]; |
8515 | 0 | if (cached_has_bits & 0x00000001u) { |
8516 | 0 | GOOGLE_DCHECK(!modifier_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8517 | 0 | (*modifier_.UnsafeRawStringPointer())->clear(); |
8518 | 0 | } |
8519 | 0 | value_optional_ = false; |
8520 | 0 | _has_bits_.Clear(); |
8521 | 0 | _internal_metadata_.Clear(); |
8522 | 0 | } |
8523 | | |
8524 | | bool TypeInfo::MergePartialFromCodedStream( |
8525 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8526 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8527 | 0 | ::google::protobuf::uint32 tag; |
8528 | | // @@protoc_insertion_point(parse_start:yb.cdc.TypeInfo) |
8529 | 0 | for (;;) { |
8530 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8531 | 0 | tag = p.first; |
8532 | 0 | if (!p.second) goto handle_unusual; |
8533 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8534 | | // optional string modifier = 1; |
8535 | 0 | case 1: { |
8536 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8537 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8538 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8539 | 0 | input, this->mutable_modifier())); |
8540 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8541 | 0 | this->modifier().data(), static_cast<int>(this->modifier().length()), |
8542 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
8543 | 0 | "yb.cdc.TypeInfo.modifier"); |
8544 | 0 | } else { |
8545 | 0 | goto handle_unusual; |
8546 | 0 | } |
8547 | 0 | break; |
8548 | 0 | } |
8549 | | |
8550 | | // optional bool value_optional = 2; |
8551 | 0 | case 2: { |
8552 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8553 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
8554 | 0 | set_has_value_optional(); |
8555 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8556 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
8557 | 0 | input, &value_optional_))); |
8558 | 0 | } else { |
8559 | 0 | goto handle_unusual; |
8560 | 0 | } |
8561 | 0 | break; |
8562 | 0 | } |
8563 | | |
8564 | 0 | default: { |
8565 | 0 | handle_unusual: |
8566 | 0 | if (tag == 0) { |
8567 | 0 | goto success; |
8568 | 0 | } |
8569 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8570 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8571 | 0 | break; |
8572 | 0 | } |
8573 | 0 | } |
8574 | 0 | } |
8575 | 0 | success: |
8576 | | // @@protoc_insertion_point(parse_success:yb.cdc.TypeInfo) |
8577 | 0 | return true; |
8578 | 0 | failure: |
8579 | | // @@protoc_insertion_point(parse_failure:yb.cdc.TypeInfo) |
8580 | 0 | return false; |
8581 | 0 | #undef DO_ |
8582 | 0 | } |
8583 | | |
8584 | | void TypeInfo::SerializeWithCachedSizes( |
8585 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8586 | | // @@protoc_insertion_point(serialize_start:yb.cdc.TypeInfo) |
8587 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8588 | 0 | (void) cached_has_bits; |
8589 | |
|
8590 | 0 | cached_has_bits = _has_bits_[0]; |
8591 | | // optional string modifier = 1; |
8592 | 0 | if (cached_has_bits & 0x00000001u) { |
8593 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8594 | 0 | this->modifier().data(), static_cast<int>(this->modifier().length()), |
8595 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8596 | 0 | "yb.cdc.TypeInfo.modifier"); |
8597 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8598 | 0 | 1, this->modifier(), output); |
8599 | 0 | } |
8600 | | |
8601 | | // optional bool value_optional = 2; |
8602 | 0 | if (cached_has_bits & 0x00000002u) { |
8603 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value_optional(), output); |
8604 | 0 | } |
8605 | |
|
8606 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8607 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8608 | 0 | _internal_metadata_.unknown_fields(), output); |
8609 | 0 | } |
8610 | | // @@protoc_insertion_point(serialize_end:yb.cdc.TypeInfo) |
8611 | 0 | } |
8612 | | |
8613 | | ::google::protobuf::uint8* TypeInfo::InternalSerializeWithCachedSizesToArray( |
8614 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8615 | 0 | (void)deterministic; // Unused |
8616 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.TypeInfo) |
8617 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8618 | 0 | (void) cached_has_bits; |
8619 | |
|
8620 | 0 | cached_has_bits = _has_bits_[0]; |
8621 | | // optional string modifier = 1; |
8622 | 0 | if (cached_has_bits & 0x00000001u) { |
8623 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8624 | 0 | this->modifier().data(), static_cast<int>(this->modifier().length()), |
8625 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8626 | 0 | "yb.cdc.TypeInfo.modifier"); |
8627 | 0 | target = |
8628 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8629 | 0 | 1, this->modifier(), target); |
8630 | 0 | } |
8631 | | |
8632 | | // optional bool value_optional = 2; |
8633 | 0 | if (cached_has_bits & 0x00000002u) { |
8634 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->value_optional(), target); |
8635 | 0 | } |
8636 | |
|
8637 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8638 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8639 | 0 | _internal_metadata_.unknown_fields(), target); |
8640 | 0 | } |
8641 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.TypeInfo) |
8642 | 0 | return target; |
8643 | 0 | } |
8644 | | |
8645 | 0 | size_t TypeInfo::ByteSizeLong() const { |
8646 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.TypeInfo) |
8647 | 0 | size_t total_size = 0; |
8648 | |
|
8649 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8650 | 0 | total_size += |
8651 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8652 | 0 | _internal_metadata_.unknown_fields()); |
8653 | 0 | } |
8654 | 0 | if (_has_bits_[0 / 32] & 3u) { |
8655 | | // optional string modifier = 1; |
8656 | 0 | if (has_modifier()) { |
8657 | 0 | total_size += 1 + |
8658 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8659 | 0 | this->modifier()); |
8660 | 0 | } |
8661 | | |
8662 | | // optional bool value_optional = 2; |
8663 | 0 | if (has_value_optional()) { |
8664 | 0 | total_size += 1 + 1; |
8665 | 0 | } |
8666 | |
|
8667 | 0 | } |
8668 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8669 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8670 | 0 | _cached_size_ = cached_size; |
8671 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8672 | 0 | return total_size; |
8673 | 0 | } |
8674 | | |
8675 | 0 | void TypeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
8676 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.TypeInfo) |
8677 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8678 | 0 | const TypeInfo* source = |
8679 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TypeInfo>( |
8680 | 0 | &from); |
8681 | 0 | if (source == NULL) { |
8682 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.TypeInfo) |
8683 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8684 | 0 | } else { |
8685 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.TypeInfo) |
8686 | 0 | MergeFrom(*source); |
8687 | 0 | } |
8688 | 0 | } |
8689 | | |
8690 | 0 | void TypeInfo::MergeFrom(const TypeInfo& from) { |
8691 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.TypeInfo) |
8692 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8693 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8694 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8695 | 0 | (void) cached_has_bits; |
8696 | |
|
8697 | 0 | cached_has_bits = from._has_bits_[0]; |
8698 | 0 | if (cached_has_bits & 3u) { |
8699 | 0 | if (cached_has_bits & 0x00000001u) { |
8700 | 0 | set_has_modifier(); |
8701 | 0 | modifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modifier_); |
8702 | 0 | } |
8703 | 0 | if (cached_has_bits & 0x00000002u) { |
8704 | 0 | value_optional_ = from.value_optional_; |
8705 | 0 | } |
8706 | 0 | _has_bits_[0] |= cached_has_bits; |
8707 | 0 | } |
8708 | 0 | } |
8709 | | |
8710 | 0 | void TypeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
8711 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.TypeInfo) |
8712 | 0 | if (&from == this) return; |
8713 | 0 | Clear(); |
8714 | 0 | MergeFrom(from); |
8715 | 0 | } |
8716 | | |
8717 | 0 | void TypeInfo::CopyFrom(const TypeInfo& from) { |
8718 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.TypeInfo) |
8719 | 0 | if (&from == this) return; |
8720 | 0 | Clear(); |
8721 | 0 | MergeFrom(from); |
8722 | 0 | } |
8723 | | |
8724 | 0 | bool TypeInfo::IsInitialized() const { |
8725 | 0 | return true; |
8726 | 0 | } |
8727 | | |
8728 | 0 | void TypeInfo::Swap(TypeInfo* other) { |
8729 | 0 | if (other == this) return; |
8730 | 0 | InternalSwap(other); |
8731 | 0 | } |
8732 | 0 | void TypeInfo::InternalSwap(TypeInfo* other) { |
8733 | 0 | using std::swap; |
8734 | 0 | modifier_.Swap(&other->modifier_); |
8735 | 0 | swap(value_optional_, other->value_optional_); |
8736 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8737 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8738 | 0 | swap(_cached_size_, other->_cached_size_); |
8739 | 0 | } |
8740 | | |
8741 | 0 | ::google::protobuf::Metadata TypeInfo::GetMetadata() const { |
8742 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8743 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
8744 | 0 | } |
8745 | | |
8746 | | |
8747 | | // =================================================================== |
8748 | | |
8749 | 16.4k | void RowMessage::InitAsDefaultInstance() { |
8750 | 16.4k | ::yb::cdc::_RowMessage_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::cdc::CDCSDKSchemaPB*>( |
8751 | 16.4k | ::yb::cdc::CDCSDKSchemaPB::internal_default_instance()); |
8752 | 16.4k | ::yb::cdc::_RowMessage_default_instance_._instance.get_mutable()->truncate_request_info_ = const_cast< ::yb::tserver::TruncateRequestPB*>( |
8753 | 16.4k | ::yb::tserver::TruncateRequestPB::internal_default_instance()); |
8754 | 16.4k | } |
8755 | 0 | void RowMessage::clear_new_tuple() { |
8756 | 0 | new_tuple_.Clear(); |
8757 | 0 | } |
8758 | 0 | void RowMessage::clear_old_tuple() { |
8759 | 0 | old_tuple_.Clear(); |
8760 | 0 | } |
8761 | 0 | void RowMessage::clear_truncate_request_info() { |
8762 | 0 | if (truncate_request_info_ != NULL) truncate_request_info_->Clear(); |
8763 | 0 | clear_has_truncate_request_info(); |
8764 | 0 | } |
8765 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8766 | | const int RowMessage::kTransactionIdFieldNumber; |
8767 | | const int RowMessage::kCommitTimeFieldNumber; |
8768 | | const int RowMessage::kTableFieldNumber; |
8769 | | const int RowMessage::kOpFieldNumber; |
8770 | | const int RowMessage::kNewTupleFieldNumber; |
8771 | | const int RowMessage::kOldTupleFieldNumber; |
8772 | | const int RowMessage::kNewTypeinfoFieldNumber; |
8773 | | const int RowMessage::kSchemaFieldNumber; |
8774 | | const int RowMessage::kSchemaVersionFieldNumber; |
8775 | | const int RowMessage::kNewTableNameFieldNumber; |
8776 | | const int RowMessage::kPgschemaNameFieldNumber; |
8777 | | const int RowMessage::kTruncateRequestInfoFieldNumber; |
8778 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8779 | | |
8780 | | RowMessage::RowMessage() |
8781 | 43.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8782 | 43.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8783 | 27.3k | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage(); |
8784 | 27.3k | } |
8785 | 43.8k | SharedCtor(); |
8786 | | // @@protoc_insertion_point(constructor:yb.cdc.RowMessage) |
8787 | 43.8k | } |
8788 | | RowMessage::RowMessage(const RowMessage& from) |
8789 | | : ::google::protobuf::Message(), |
8790 | | _internal_metadata_(NULL), |
8791 | | _has_bits_(from._has_bits_), |
8792 | | _cached_size_(0), |
8793 | | new_tuple_(from.new_tuple_), |
8794 | | old_tuple_(from.old_tuple_), |
8795 | 0 | new_typeinfo_(from.new_typeinfo_) { |
8796 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8797 | 0 | transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8798 | 0 | if (from.has_transaction_id()) { |
8799 | 0 | transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_); |
8800 | 0 | } |
8801 | 0 | table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8802 | 0 | if (from.has_table()) { |
8803 | 0 | table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_); |
8804 | 0 | } |
8805 | 0 | new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8806 | 0 | if (from.has_new_table_name()) { |
8807 | 0 | new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_); |
8808 | 0 | } |
8809 | 0 | pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8810 | 0 | if (from.has_pgschema_name()) { |
8811 | 0 | pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_); |
8812 | 0 | } |
8813 | 0 | if (from.has_schema()) { |
8814 | 0 | schema_ = new ::yb::cdc::CDCSDKSchemaPB(*from.schema_); |
8815 | 0 | } else { |
8816 | 0 | schema_ = NULL; |
8817 | 0 | } |
8818 | 0 | if (from.has_truncate_request_info()) { |
8819 | 0 | truncate_request_info_ = new ::yb::tserver::TruncateRequestPB(*from.truncate_request_info_); |
8820 | 0 | } else { |
8821 | 0 | truncate_request_info_ = NULL; |
8822 | 0 | } |
8823 | 0 | ::memcpy(&commit_time_, &from.commit_time_, |
8824 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&op_) - |
8825 | 0 | reinterpret_cast<char*>(&commit_time_)) + sizeof(op_)); |
8826 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.RowMessage) |
8827 | 0 | } |
8828 | | |
8829 | 43.8k | void RowMessage::SharedCtor() { |
8830 | 43.8k | _cached_size_ = 0; |
8831 | 43.8k | transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8832 | 43.8k | table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8833 | 43.8k | new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8834 | 43.8k | pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8835 | 43.8k | ::memset(&schema_, 0, static_cast<size_t>( |
8836 | 43.8k | reinterpret_cast<char*>(&schema_version_) - |
8837 | 43.8k | reinterpret_cast<char*>(&schema_)) + sizeof(schema_version_)); |
8838 | 43.8k | op_ = -1; |
8839 | 43.8k | } |
8840 | | |
8841 | 27.3k | RowMessage::~RowMessage() { |
8842 | | // @@protoc_insertion_point(destructor:yb.cdc.RowMessage) |
8843 | 27.3k | SharedDtor(); |
8844 | 27.3k | } |
8845 | | |
8846 | 27.3k | void RowMessage::SharedDtor() { |
8847 | 27.3k | transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8848 | 27.3k | table_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8849 | 27.3k | new_table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8850 | 27.3k | pgschema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8851 | 27.3k | if (this != internal_default_instance()) delete schema_; |
8852 | 27.3k | if (this != internal_default_instance()) delete truncate_request_info_; |
8853 | 27.3k | } |
8854 | | |
8855 | 0 | void RowMessage::SetCachedSize(int size) const { |
8856 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8857 | 0 | _cached_size_ = size; |
8858 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8859 | 0 | } |
8860 | 0 | const ::google::protobuf::Descriptor* RowMessage::descriptor() { |
8861 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
8862 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8863 | 0 | } |
8864 | | |
8865 | 0 | const RowMessage& RowMessage::default_instance() { |
8866 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage(); |
8867 | 0 | return *internal_default_instance(); |
8868 | 0 | } |
8869 | | |
8870 | 0 | RowMessage* RowMessage::New(::google::protobuf::Arena* arena) const { |
8871 | 0 | RowMessage* n = new RowMessage; |
8872 | 0 | if (arena != NULL) { |
8873 | 0 | arena->Own(n); |
8874 | 0 | } |
8875 | 0 | return n; |
8876 | 0 | } |
8877 | | |
8878 | 837 | void RowMessage::Clear() { |
8879 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.RowMessage) |
8880 | 837 | ::google::protobuf::uint32 cached_has_bits = 0; |
8881 | | // Prevent compiler warnings about cached_has_bits being unused |
8882 | 837 | (void) cached_has_bits; |
8883 | | |
8884 | 837 | new_tuple_.Clear(); |
8885 | 837 | old_tuple_.Clear(); |
8886 | 837 | new_typeinfo_.Clear(); |
8887 | 837 | cached_has_bits = _has_bits_[0]; |
8888 | 837 | if (cached_has_bits & 63u) { |
8889 | 198 | if (cached_has_bits & 0x00000001u) { |
8890 | 198 | GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8891 | 198 | (*transaction_id_.UnsafeRawStringPointer())->clear(); |
8892 | 198 | } |
8893 | 198 | if (cached_has_bits & 0x00000002u) { |
8894 | 198 | GOOGLE_DCHECK(!table_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8895 | 198 | (*table_.UnsafeRawStringPointer())->clear(); |
8896 | 198 | } |
8897 | 198 | if (cached_has_bits & 0x00000004u) { |
8898 | 0 | GOOGLE_DCHECK(!new_table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8899 | 0 | (*new_table_name_.UnsafeRawStringPointer())->clear(); |
8900 | 0 | } |
8901 | 198 | if (cached_has_bits & 0x00000008u) { |
8902 | 198 | GOOGLE_DCHECK(!pgschema_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8903 | 198 | (*pgschema_name_.UnsafeRawStringPointer())->clear(); |
8904 | 198 | } |
8905 | 198 | if (cached_has_bits & 0x00000010u) { |
8906 | 0 | GOOGLE_DCHECK(schema_ != NULL); |
8907 | 0 | schema_->Clear(); |
8908 | 0 | } |
8909 | 198 | if (cached_has_bits & 0x00000020u) { |
8910 | 0 | GOOGLE_DCHECK(truncate_request_info_ != NULL); |
8911 | 0 | truncate_request_info_->Clear(); |
8912 | 0 | } |
8913 | 198 | } |
8914 | 837 | if (cached_has_bits & 192u) { |
8915 | 0 | ::memset(&commit_time_, 0, static_cast<size_t>( |
8916 | 0 | reinterpret_cast<char*>(&schema_version_) - |
8917 | 0 | reinterpret_cast<char*>(&commit_time_)) + sizeof(schema_version_)); |
8918 | 0 | } |
8919 | 837 | op_ = -1; |
8920 | 837 | _has_bits_.Clear(); |
8921 | 837 | _internal_metadata_.Clear(); |
8922 | 837 | } |
8923 | | |
8924 | | bool RowMessage::MergePartialFromCodedStream( |
8925 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8926 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8927 | 0 | ::google::protobuf::uint32 tag; |
8928 | | // @@protoc_insertion_point(parse_start:yb.cdc.RowMessage) |
8929 | 0 | for (;;) { |
8930 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8931 | 0 | tag = p.first; |
8932 | 0 | if (!p.second) goto handle_unusual; |
8933 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8934 | | // optional bytes transaction_id = 1; |
8935 | 0 | case 1: { |
8936 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8937 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8938 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8939 | 0 | input, this->mutable_transaction_id())); |
8940 | 0 | } else { |
8941 | 0 | goto handle_unusual; |
8942 | 0 | } |
8943 | 0 | break; |
8944 | 0 | } |
8945 | | |
8946 | | // optional uint64 commit_time = 2; |
8947 | 0 | case 2: { |
8948 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8949 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
8950 | 0 | set_has_commit_time(); |
8951 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8952 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
8953 | 0 | input, &commit_time_))); |
8954 | 0 | } else { |
8955 | 0 | goto handle_unusual; |
8956 | 0 | } |
8957 | 0 | break; |
8958 | 0 | } |
8959 | | |
8960 | | // optional string table = 3; |
8961 | 0 | case 3: { |
8962 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8963 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
8964 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8965 | 0 | input, this->mutable_table())); |
8966 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8967 | 0 | this->table().data(), static_cast<int>(this->table().length()), |
8968 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
8969 | 0 | "yb.cdc.RowMessage.table"); |
8970 | 0 | } else { |
8971 | 0 | goto handle_unusual; |
8972 | 0 | } |
8973 | 0 | break; |
8974 | 0 | } |
8975 | | |
8976 | | // optional .yb.cdc.RowMessage.Op op = 4; |
8977 | 0 | case 4: { |
8978 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8979 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
8980 | 0 | int value; |
8981 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8982 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
8983 | 0 | input, &value))); |
8984 | 0 | if (::yb::cdc::RowMessage_Op_IsValid(value)) { |
8985 | 0 | set_op(static_cast< ::yb::cdc::RowMessage_Op >(value)); |
8986 | 0 | } else { |
8987 | 0 | mutable_unknown_fields()->AddVarint( |
8988 | 0 | 4, static_cast< ::google::protobuf::uint64>(value)); |
8989 | 0 | } |
8990 | 0 | } else { |
8991 | 0 | goto handle_unusual; |
8992 | 0 | } |
8993 | 0 | break; |
8994 | 0 | } |
8995 | | |
8996 | | // repeated .yb.DatumMessagePB new_tuple = 5; |
8997 | 0 | case 5: { |
8998 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8999 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
9000 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_new_tuple())); |
9001 | 0 | } else { |
9002 | 0 | goto handle_unusual; |
9003 | 0 | } |
9004 | 0 | break; |
9005 | 0 | } |
9006 | | |
9007 | | // repeated .yb.DatumMessagePB old_tuple = 6; |
9008 | 0 | case 6: { |
9009 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9010 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
9011 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_old_tuple())); |
9012 | 0 | } else { |
9013 | 0 | goto handle_unusual; |
9014 | 0 | } |
9015 | 0 | break; |
9016 | 0 | } |
9017 | | |
9018 | | // repeated .yb.cdc.TypeInfo new_typeinfo = 7; |
9019 | 0 | case 7: { |
9020 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9021 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
9022 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_new_typeinfo())); |
9023 | 0 | } else { |
9024 | 0 | goto handle_unusual; |
9025 | 0 | } |
9026 | 0 | break; |
9027 | 0 | } |
9028 | | |
9029 | | // optional .yb.cdc.CDCSDKSchemaPB schema = 8; |
9030 | 0 | case 8: { |
9031 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9032 | 0 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
9033 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9034 | 0 | input, mutable_schema())); |
9035 | 0 | } else { |
9036 | 0 | goto handle_unusual; |
9037 | 0 | } |
9038 | 0 | break; |
9039 | 0 | } |
9040 | | |
9041 | | // optional uint32 schema_version = 9; |
9042 | 0 | case 9: { |
9043 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9044 | 0 | static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { |
9045 | 0 | set_has_schema_version(); |
9046 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9047 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
9048 | 0 | input, &schema_version_))); |
9049 | 0 | } else { |
9050 | 0 | goto handle_unusual; |
9051 | 0 | } |
9052 | 0 | break; |
9053 | 0 | } |
9054 | | |
9055 | | // optional string new_table_name = 10; |
9056 | 0 | case 10: { |
9057 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9058 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
9059 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9060 | 0 | input, this->mutable_new_table_name())); |
9061 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9062 | 0 | this->new_table_name().data(), static_cast<int>(this->new_table_name().length()), |
9063 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
9064 | 0 | "yb.cdc.RowMessage.new_table_name"); |
9065 | 0 | } else { |
9066 | 0 | goto handle_unusual; |
9067 | 0 | } |
9068 | 0 | break; |
9069 | 0 | } |
9070 | | |
9071 | | // optional string pgschema_name = 11; |
9072 | 0 | case 11: { |
9073 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9074 | 0 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
9075 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9076 | 0 | input, this->mutable_pgschema_name())); |
9077 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9078 | 0 | this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()), |
9079 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
9080 | 0 | "yb.cdc.RowMessage.pgschema_name"); |
9081 | 0 | } else { |
9082 | 0 | goto handle_unusual; |
9083 | 0 | } |
9084 | 0 | break; |
9085 | 0 | } |
9086 | | |
9087 | | // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13; |
9088 | 0 | case 13: { |
9089 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9090 | 0 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
9091 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9092 | 0 | input, mutable_truncate_request_info())); |
9093 | 0 | } else { |
9094 | 0 | goto handle_unusual; |
9095 | 0 | } |
9096 | 0 | break; |
9097 | 0 | } |
9098 | | |
9099 | 0 | default: { |
9100 | 0 | handle_unusual: |
9101 | 0 | if (tag == 0) { |
9102 | 0 | goto success; |
9103 | 0 | } |
9104 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9105 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9106 | 0 | break; |
9107 | 0 | } |
9108 | 0 | } |
9109 | 0 | } |
9110 | 0 | success: |
9111 | | // @@protoc_insertion_point(parse_success:yb.cdc.RowMessage) |
9112 | 0 | return true; |
9113 | 0 | failure: |
9114 | | // @@protoc_insertion_point(parse_failure:yb.cdc.RowMessage) |
9115 | 0 | return false; |
9116 | 0 | #undef DO_ |
9117 | 0 | } |
9118 | | |
9119 | | void RowMessage::SerializeWithCachedSizes( |
9120 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9121 | | // @@protoc_insertion_point(serialize_start:yb.cdc.RowMessage) |
9122 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9123 | 0 | (void) cached_has_bits; |
9124 | |
|
9125 | 0 | cached_has_bits = _has_bits_[0]; |
9126 | | // optional bytes transaction_id = 1; |
9127 | 0 | if (cached_has_bits & 0x00000001u) { |
9128 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
9129 | 0 | 1, this->transaction_id(), output); |
9130 | 0 | } |
9131 | | |
9132 | | // optional uint64 commit_time = 2; |
9133 | 0 | if (cached_has_bits & 0x00000040u) { |
9134 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->commit_time(), output); |
9135 | 0 | } |
9136 | | |
9137 | | // optional string table = 3; |
9138 | 0 | if (cached_has_bits & 0x00000002u) { |
9139 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9140 | 0 | this->table().data(), static_cast<int>(this->table().length()), |
9141 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9142 | 0 | "yb.cdc.RowMessage.table"); |
9143 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9144 | 0 | 3, this->table(), output); |
9145 | 0 | } |
9146 | | |
9147 | | // optional .yb.cdc.RowMessage.Op op = 4; |
9148 | 0 | if (cached_has_bits & 0x00000100u) { |
9149 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
9150 | 0 | 4, this->op(), output); |
9151 | 0 | } |
9152 | | |
9153 | | // repeated .yb.DatumMessagePB new_tuple = 5; |
9154 | 0 | for (unsigned int i = 0, |
9155 | 0 | n = static_cast<unsigned int>(this->new_tuple_size()); i < n; i++) { |
9156 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9157 | 0 | 5, this->new_tuple(static_cast<int>(i)), output); |
9158 | 0 | } |
9159 | | |
9160 | | // repeated .yb.DatumMessagePB old_tuple = 6; |
9161 | 0 | for (unsigned int i = 0, |
9162 | 0 | n = static_cast<unsigned int>(this->old_tuple_size()); i < n; i++) { |
9163 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9164 | 0 | 6, this->old_tuple(static_cast<int>(i)), output); |
9165 | 0 | } |
9166 | | |
9167 | | // repeated .yb.cdc.TypeInfo new_typeinfo = 7; |
9168 | 0 | for (unsigned int i = 0, |
9169 | 0 | n = static_cast<unsigned int>(this->new_typeinfo_size()); i < n; i++) { |
9170 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9171 | 0 | 7, this->new_typeinfo(static_cast<int>(i)), output); |
9172 | 0 | } |
9173 | | |
9174 | | // optional .yb.cdc.CDCSDKSchemaPB schema = 8; |
9175 | 0 | if (cached_has_bits & 0x00000010u) { |
9176 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9177 | 0 | 8, *this->schema_, output); |
9178 | 0 | } |
9179 | | |
9180 | | // optional uint32 schema_version = 9; |
9181 | 0 | if (cached_has_bits & 0x00000080u) { |
9182 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->schema_version(), output); |
9183 | 0 | } |
9184 | | |
9185 | | // optional string new_table_name = 10; |
9186 | 0 | if (cached_has_bits & 0x00000004u) { |
9187 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9188 | 0 | this->new_table_name().data(), static_cast<int>(this->new_table_name().length()), |
9189 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9190 | 0 | "yb.cdc.RowMessage.new_table_name"); |
9191 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9192 | 0 | 10, this->new_table_name(), output); |
9193 | 0 | } |
9194 | | |
9195 | | // optional string pgschema_name = 11; |
9196 | 0 | if (cached_has_bits & 0x00000008u) { |
9197 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9198 | 0 | this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()), |
9199 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9200 | 0 | "yb.cdc.RowMessage.pgschema_name"); |
9201 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9202 | 0 | 11, this->pgschema_name(), output); |
9203 | 0 | } |
9204 | | |
9205 | | // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13; |
9206 | 0 | if (cached_has_bits & 0x00000020u) { |
9207 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9208 | 0 | 13, *this->truncate_request_info_, output); |
9209 | 0 | } |
9210 | |
|
9211 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9212 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9213 | 0 | _internal_metadata_.unknown_fields(), output); |
9214 | 0 | } |
9215 | | // @@protoc_insertion_point(serialize_end:yb.cdc.RowMessage) |
9216 | 0 | } |
9217 | | |
9218 | | ::google::protobuf::uint8* RowMessage::InternalSerializeWithCachedSizesToArray( |
9219 | 27.1k | bool deterministic, ::google::protobuf::uint8* target) const { |
9220 | 27.1k | (void)deterministic; // Unused |
9221 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.RowMessage) |
9222 | 27.1k | ::google::protobuf::uint32 cached_has_bits = 0; |
9223 | 27.1k | (void) cached_has_bits; |
9224 | | |
9225 | 27.1k | cached_has_bits = _has_bits_[0]; |
9226 | | // optional bytes transaction_id = 1; |
9227 | 27.1k | if (cached_has_bits & 0x00000001u) { |
9228 | 639 | target = |
9229 | 639 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
9230 | 639 | 1, this->transaction_id(), target); |
9231 | 639 | } |
9232 | | |
9233 | | // optional uint64 commit_time = 2; |
9234 | 27.1k | if (cached_has_bits & 0x00000040u) { |
9235 | 25.9k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->commit_time(), target); |
9236 | 25.9k | } |
9237 | | |
9238 | | // optional string table = 3; |
9239 | 27.1k | if (cached_has_bits & 0x00000002u) { |
9240 | 27.1k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9241 | 27.1k | this->table().data(), static_cast<int>(this->table().length()), |
9242 | 27.1k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9243 | 27.1k | "yb.cdc.RowMessage.table"); |
9244 | 27.1k | target = |
9245 | 27.1k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9246 | 27.1k | 3, this->table(), target); |
9247 | 27.1k | } |
9248 | | |
9249 | | // optional .yb.cdc.RowMessage.Op op = 4; |
9250 | 27.1k | if (cached_has_bits & 0x00000100u) { |
9251 | 27.1k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
9252 | 27.1k | 4, this->op(), target); |
9253 | 27.1k | } |
9254 | | |
9255 | | // repeated .yb.DatumMessagePB new_tuple = 5; |
9256 | 27.1k | for (unsigned int i = 0, |
9257 | 105k | n = static_cast<unsigned int>(this->new_tuple_size()); i < n; i++78.3k ) { |
9258 | 78.3k | target = ::google::protobuf::internal::WireFormatLite:: |
9259 | 78.3k | InternalWriteMessageToArray( |
9260 | 78.3k | 5, this->new_tuple(static_cast<int>(i)), deterministic, target); |
9261 | 78.3k | } |
9262 | | |
9263 | | // repeated .yb.DatumMessagePB old_tuple = 6; |
9264 | 27.1k | for (unsigned int i = 0, |
9265 | 105k | n = static_cast<unsigned int>(this->old_tuple_size()); i < n; i++78.3k ) { |
9266 | 78.3k | target = ::google::protobuf::internal::WireFormatLite:: |
9267 | 78.3k | InternalWriteMessageToArray( |
9268 | 78.3k | 6, this->old_tuple(static_cast<int>(i)), deterministic, target); |
9269 | 78.3k | } |
9270 | | |
9271 | | // repeated .yb.cdc.TypeInfo new_typeinfo = 7; |
9272 | 27.1k | for (unsigned int i = 0, |
9273 | 27.1k | n = static_cast<unsigned int>(this->new_typeinfo_size()); i < n; i++0 ) { |
9274 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
9275 | 0 | InternalWriteMessageToArray( |
9276 | 0 | 7, this->new_typeinfo(static_cast<int>(i)), deterministic, target); |
9277 | 0 | } |
9278 | | |
9279 | | // optional .yb.cdc.CDCSDKSchemaPB schema = 8; |
9280 | 27.1k | if (cached_has_bits & 0x00000010u) { |
9281 | 631 | target = ::google::protobuf::internal::WireFormatLite:: |
9282 | 631 | InternalWriteMessageToArray( |
9283 | 631 | 8, *this->schema_, deterministic, target); |
9284 | 631 | } |
9285 | | |
9286 | | // optional uint32 schema_version = 9; |
9287 | 27.1k | if (cached_has_bits & 0x00000080u) { |
9288 | 631 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->schema_version(), target); |
9289 | 631 | } |
9290 | | |
9291 | | // optional string new_table_name = 10; |
9292 | 27.1k | if (cached_has_bits & 0x00000004u) { |
9293 | 306 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9294 | 306 | this->new_table_name().data(), static_cast<int>(this->new_table_name().length()), |
9295 | 306 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9296 | 306 | "yb.cdc.RowMessage.new_table_name"); |
9297 | 306 | target = |
9298 | 306 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9299 | 306 | 10, this->new_table_name(), target); |
9300 | 306 | } |
9301 | | |
9302 | | // optional string pgschema_name = 11; |
9303 | 27.1k | if (cached_has_bits & 0x00000008u) { |
9304 | 26.9k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9305 | 26.9k | this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()), |
9306 | 26.9k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9307 | 26.9k | "yb.cdc.RowMessage.pgschema_name"); |
9308 | 26.9k | target = |
9309 | 26.9k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9310 | 26.9k | 11, this->pgschema_name(), target); |
9311 | 26.9k | } |
9312 | | |
9313 | | // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13; |
9314 | 27.1k | if (cached_has_bits & 0x00000020u) { |
9315 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
9316 | 0 | InternalWriteMessageToArray( |
9317 | 0 | 13, *this->truncate_request_info_, deterministic, target); |
9318 | 0 | } |
9319 | | |
9320 | 27.1k | if (_internal_metadata_.have_unknown_fields()) { |
9321 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9322 | 0 | _internal_metadata_.unknown_fields(), target); |
9323 | 0 | } |
9324 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.RowMessage) |
9325 | 27.1k | return target; |
9326 | 27.1k | } |
9327 | | |
9328 | 54.3k | size_t RowMessage::ByteSizeLong() const { |
9329 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.RowMessage) |
9330 | 54.3k | size_t total_size = 0; |
9331 | | |
9332 | 54.3k | if (_internal_metadata_.have_unknown_fields()) { |
9333 | 0 | total_size += |
9334 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9335 | 0 | _internal_metadata_.unknown_fields()); |
9336 | 0 | } |
9337 | | // repeated .yb.DatumMessagePB new_tuple = 5; |
9338 | 54.3k | { |
9339 | 54.3k | unsigned int count = static_cast<unsigned int>(this->new_tuple_size()); |
9340 | 54.3k | total_size += 1UL * count; |
9341 | 211k | for (unsigned int i = 0; i < count; i++156k ) { |
9342 | 156k | total_size += |
9343 | 156k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9344 | 156k | this->new_tuple(static_cast<int>(i))); |
9345 | 156k | } |
9346 | 54.3k | } |
9347 | | |
9348 | | // repeated .yb.DatumMessagePB old_tuple = 6; |
9349 | 54.3k | { |
9350 | 54.3k | unsigned int count = static_cast<unsigned int>(this->old_tuple_size()); |
9351 | 54.3k | total_size += 1UL * count; |
9352 | 211k | for (unsigned int i = 0; i < count; i++156k ) { |
9353 | 156k | total_size += |
9354 | 156k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9355 | 156k | this->old_tuple(static_cast<int>(i))); |
9356 | 156k | } |
9357 | 54.3k | } |
9358 | | |
9359 | | // repeated .yb.cdc.TypeInfo new_typeinfo = 7; |
9360 | 54.3k | { |
9361 | 54.3k | unsigned int count = static_cast<unsigned int>(this->new_typeinfo_size()); |
9362 | 54.3k | total_size += 1UL * count; |
9363 | 54.3k | for (unsigned int i = 0; i < count; i++0 ) { |
9364 | 0 | total_size += |
9365 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9366 | 0 | this->new_typeinfo(static_cast<int>(i))); |
9367 | 0 | } |
9368 | 54.3k | } |
9369 | | |
9370 | 54.3k | if (_has_bits_[0 / 32] & 255u) { |
9371 | | // optional bytes transaction_id = 1; |
9372 | 54.3k | if (has_transaction_id()) { |
9373 | 1.27k | total_size += 1 + |
9374 | 1.27k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
9375 | 1.27k | this->transaction_id()); |
9376 | 1.27k | } |
9377 | | |
9378 | | // optional string table = 3; |
9379 | 54.3k | if (has_table()) { |
9380 | 54.3k | total_size += 1 + |
9381 | 54.3k | ::google::protobuf::internal::WireFormatLite::StringSize( |
9382 | 54.3k | this->table()); |
9383 | 54.3k | } |
9384 | | |
9385 | | // optional string new_table_name = 10; |
9386 | 54.3k | if (has_new_table_name()) { |
9387 | 612 | total_size += 1 + |
9388 | 612 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9389 | 612 | this->new_table_name()); |
9390 | 612 | } |
9391 | | |
9392 | | // optional string pgschema_name = 11; |
9393 | 54.3k | if (has_pgschema_name()) { |
9394 | 53.8k | total_size += 1 + |
9395 | 53.8k | ::google::protobuf::internal::WireFormatLite::StringSize( |
9396 | 53.8k | this->pgschema_name()); |
9397 | 53.8k | } |
9398 | | |
9399 | | // optional .yb.cdc.CDCSDKSchemaPB schema = 8; |
9400 | 54.3k | if (has_schema()) { |
9401 | 1.26k | total_size += 1 + |
9402 | 1.26k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9403 | 1.26k | *this->schema_); |
9404 | 1.26k | } |
9405 | | |
9406 | | // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13; |
9407 | 54.3k | if (has_truncate_request_info()) { |
9408 | 0 | total_size += 1 + |
9409 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9410 | 0 | *this->truncate_request_info_); |
9411 | 0 | } |
9412 | | |
9413 | | // optional uint64 commit_time = 2; |
9414 | 54.3k | if (has_commit_time()) { |
9415 | 51.8k | total_size += 1 + |
9416 | 51.8k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
9417 | 51.8k | this->commit_time()); |
9418 | 51.8k | } |
9419 | | |
9420 | | // optional uint32 schema_version = 9; |
9421 | 54.3k | if (has_schema_version()) { |
9422 | 1.26k | total_size += 1 + |
9423 | 1.26k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
9424 | 1.26k | this->schema_version()); |
9425 | 1.26k | } |
9426 | | |
9427 | 54.3k | } |
9428 | | // optional .yb.cdc.RowMessage.Op op = 4; |
9429 | 54.3k | if (has_op()) { |
9430 | 54.3k | total_size += 1 + |
9431 | 54.3k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->op()); |
9432 | 54.3k | } |
9433 | | |
9434 | 54.3k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9435 | 54.3k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9436 | 54.3k | _cached_size_ = cached_size; |
9437 | 54.3k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9438 | 54.3k | return total_size; |
9439 | 54.3k | } |
9440 | | |
9441 | 0 | void RowMessage::MergeFrom(const ::google::protobuf::Message& from) { |
9442 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.RowMessage) |
9443 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9444 | 0 | const RowMessage* source = |
9445 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RowMessage>( |
9446 | 0 | &from); |
9447 | 0 | if (source == NULL) { |
9448 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.RowMessage) |
9449 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9450 | 0 | } else { |
9451 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.RowMessage) |
9452 | 0 | MergeFrom(*source); |
9453 | 0 | } |
9454 | 0 | } |
9455 | | |
9456 | 345 | void RowMessage::MergeFrom(const RowMessage& from) { |
9457 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.RowMessage) |
9458 | 345 | GOOGLE_DCHECK_NE(&from, this); |
9459 | 345 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9460 | 345 | ::google::protobuf::uint32 cached_has_bits = 0; |
9461 | 345 | (void) cached_has_bits; |
9462 | | |
9463 | 345 | new_tuple_.MergeFrom(from.new_tuple_); |
9464 | 345 | old_tuple_.MergeFrom(from.old_tuple_); |
9465 | 345 | new_typeinfo_.MergeFrom(from.new_typeinfo_); |
9466 | 345 | cached_has_bits = from._has_bits_[0]; |
9467 | 345 | if (cached_has_bits & 255u) { |
9468 | 345 | if (cached_has_bits & 0x00000001u) { |
9469 | 345 | set_has_transaction_id(); |
9470 | 345 | transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_); |
9471 | 345 | } |
9472 | 345 | if (cached_has_bits & 0x00000002u) { |
9473 | 345 | set_has_table(); |
9474 | 345 | table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_); |
9475 | 345 | } |
9476 | 345 | if (cached_has_bits & 0x00000004u) { |
9477 | 0 | set_has_new_table_name(); |
9478 | 0 | new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_); |
9479 | 0 | } |
9480 | 345 | if (cached_has_bits & 0x00000008u) { |
9481 | 345 | set_has_pgschema_name(); |
9482 | 345 | pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_); |
9483 | 345 | } |
9484 | 345 | if (cached_has_bits & 0x00000010u) { |
9485 | 0 | mutable_schema()->::yb::cdc::CDCSDKSchemaPB::MergeFrom(from.schema()); |
9486 | 0 | } |
9487 | 345 | if (cached_has_bits & 0x00000020u) { |
9488 | 0 | mutable_truncate_request_info()->::yb::tserver::TruncateRequestPB::MergeFrom(from.truncate_request_info()); |
9489 | 0 | } |
9490 | 345 | if (cached_has_bits & 0x00000040u) { |
9491 | 0 | commit_time_ = from.commit_time_; |
9492 | 0 | } |
9493 | 345 | if (cached_has_bits & 0x00000080u) { |
9494 | 0 | schema_version_ = from.schema_version_; |
9495 | 0 | } |
9496 | 345 | _has_bits_[0] |= cached_has_bits; |
9497 | 345 | } |
9498 | 345 | if (cached_has_bits & 0x00000100u) { |
9499 | 345 | set_op(from.op()); |
9500 | 345 | } |
9501 | 345 | } |
9502 | | |
9503 | 0 | void RowMessage::CopyFrom(const ::google::protobuf::Message& from) { |
9504 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.RowMessage) |
9505 | 0 | if (&from == this) return; |
9506 | 0 | Clear(); |
9507 | 0 | MergeFrom(from); |
9508 | 0 | } |
9509 | | |
9510 | 345 | void RowMessage::CopyFrom(const RowMessage& from) { |
9511 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.RowMessage) |
9512 | 345 | if (&from == this) return0 ; |
9513 | 345 | Clear(); |
9514 | 345 | MergeFrom(from); |
9515 | 345 | } |
9516 | | |
9517 | 1.58k | bool RowMessage::IsInitialized() const { |
9518 | 1.58k | return true; |
9519 | 1.58k | } |
9520 | | |
9521 | 0 | void RowMessage::Swap(RowMessage* other) { |
9522 | 0 | if (other == this) return; |
9523 | 0 | InternalSwap(other); |
9524 | 0 | } |
9525 | 0 | void RowMessage::InternalSwap(RowMessage* other) { |
9526 | 0 | using std::swap; |
9527 | 0 | new_tuple_.InternalSwap(&other->new_tuple_); |
9528 | 0 | old_tuple_.InternalSwap(&other->old_tuple_); |
9529 | 0 | new_typeinfo_.InternalSwap(&other->new_typeinfo_); |
9530 | 0 | transaction_id_.Swap(&other->transaction_id_); |
9531 | 0 | table_.Swap(&other->table_); |
9532 | 0 | new_table_name_.Swap(&other->new_table_name_); |
9533 | 0 | pgschema_name_.Swap(&other->pgschema_name_); |
9534 | 0 | swap(schema_, other->schema_); |
9535 | 0 | swap(truncate_request_info_, other->truncate_request_info_); |
9536 | 0 | swap(commit_time_, other->commit_time_); |
9537 | 0 | swap(schema_version_, other->schema_version_); |
9538 | 0 | swap(op_, other->op_); |
9539 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9540 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9541 | 0 | swap(_cached_size_, other->_cached_size_); |
9542 | 0 | } |
9543 | | |
9544 | 0 | ::google::protobuf::Metadata RowMessage::GetMetadata() const { |
9545 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
9546 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
9547 | 0 | } |
9548 | | |
9549 | | |
9550 | | // =================================================================== |
9551 | | |
9552 | 16.4k | void CDCSDKProtoRecordPB::InitAsDefaultInstance() { |
9553 | 16.4k | ::yb::cdc::_CDCSDKProtoRecordPB_default_instance_._instance.get_mutable()->row_message_ = const_cast< ::yb::cdc::RowMessage*>( |
9554 | 16.4k | ::yb::cdc::RowMessage::internal_default_instance()); |
9555 | 16.4k | ::yb::cdc::_CDCSDKProtoRecordPB_default_instance_._instance.get_mutable()->cdc_sdk_op_id_ = const_cast< ::yb::cdc::CDCSDKOpIdPB*>( |
9556 | 16.4k | ::yb::cdc::CDCSDKOpIdPB::internal_default_instance()); |
9557 | 16.4k | } |
9558 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9559 | | const int CDCSDKProtoRecordPB::kRowMessageFieldNumber; |
9560 | | const int CDCSDKProtoRecordPB::kCdcSdkOpIdFieldNumber; |
9561 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9562 | | |
9563 | | CDCSDKProtoRecordPB::CDCSDKProtoRecordPB() |
9564 | 43.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9565 | 43.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9566 | 27.3k | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB(); |
9567 | 27.3k | } |
9568 | 43.8k | SharedCtor(); |
9569 | | // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKProtoRecordPB) |
9570 | 43.8k | } |
9571 | | CDCSDKProtoRecordPB::CDCSDKProtoRecordPB(const CDCSDKProtoRecordPB& from) |
9572 | | : ::google::protobuf::Message(), |
9573 | | _internal_metadata_(NULL), |
9574 | | _has_bits_(from._has_bits_), |
9575 | 0 | _cached_size_(0) { |
9576 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9577 | 0 | if (from.has_row_message()) { |
9578 | 0 | row_message_ = new ::yb::cdc::RowMessage(*from.row_message_); |
9579 | 0 | } else { |
9580 | 0 | row_message_ = NULL; |
9581 | 0 | } |
9582 | 0 | if (from.has_cdc_sdk_op_id()) { |
9583 | 0 | cdc_sdk_op_id_ = new ::yb::cdc::CDCSDKOpIdPB(*from.cdc_sdk_op_id_); |
9584 | 0 | } else { |
9585 | 0 | cdc_sdk_op_id_ = NULL; |
9586 | 0 | } |
9587 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKProtoRecordPB) |
9588 | 0 | } |
9589 | | |
9590 | 43.8k | void CDCSDKProtoRecordPB::SharedCtor() { |
9591 | 43.8k | _cached_size_ = 0; |
9592 | 43.8k | ::memset(&row_message_, 0, static_cast<size_t>( |
9593 | 43.8k | reinterpret_cast<char*>(&cdc_sdk_op_id_) - |
9594 | 43.8k | reinterpret_cast<char*>(&row_message_)) + sizeof(cdc_sdk_op_id_)); |
9595 | 43.8k | } |
9596 | | |
9597 | 27.3k | CDCSDKProtoRecordPB::~CDCSDKProtoRecordPB() { |
9598 | | // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKProtoRecordPB) |
9599 | 27.3k | SharedDtor(); |
9600 | 27.3k | } |
9601 | | |
9602 | 27.3k | void CDCSDKProtoRecordPB::SharedDtor() { |
9603 | 27.3k | if (this != internal_default_instance()) delete row_message_; |
9604 | 27.3k | if (this != internal_default_instance()) delete cdc_sdk_op_id_; |
9605 | 27.3k | } |
9606 | | |
9607 | 0 | void CDCSDKProtoRecordPB::SetCachedSize(int size) const { |
9608 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9609 | 0 | _cached_size_ = size; |
9610 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9611 | 0 | } |
9612 | 0 | const ::google::protobuf::Descriptor* CDCSDKProtoRecordPB::descriptor() { |
9613 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
9614 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9615 | 0 | } |
9616 | | |
9617 | 0 | const CDCSDKProtoRecordPB& CDCSDKProtoRecordPB::default_instance() { |
9618 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB(); |
9619 | 0 | return *internal_default_instance(); |
9620 | 0 | } |
9621 | | |
9622 | 0 | CDCSDKProtoRecordPB* CDCSDKProtoRecordPB::New(::google::protobuf::Arena* arena) const { |
9623 | 0 | CDCSDKProtoRecordPB* n = new CDCSDKProtoRecordPB; |
9624 | 0 | if (arena != NULL) { |
9625 | 0 | arena->Own(n); |
9626 | 0 | } |
9627 | 0 | return n; |
9628 | 0 | } |
9629 | | |
9630 | 690 | void CDCSDKProtoRecordPB::Clear() { |
9631 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKProtoRecordPB) |
9632 | 690 | ::google::protobuf::uint32 cached_has_bits = 0; |
9633 | | // Prevent compiler warnings about cached_has_bits being unused |
9634 | 690 | (void) cached_has_bits; |
9635 | | |
9636 | 690 | cached_has_bits = _has_bits_[0]; |
9637 | 690 | if (cached_has_bits & 3u) { |
9638 | 345 | if (cached_has_bits & 0x00000001u) { |
9639 | 147 | GOOGLE_DCHECK(row_message_ != NULL); |
9640 | 147 | row_message_->Clear(); |
9641 | 147 | } |
9642 | 345 | if (cached_has_bits & 0x00000002u) { |
9643 | 198 | GOOGLE_DCHECK(cdc_sdk_op_id_ != NULL); |
9644 | 198 | cdc_sdk_op_id_->Clear(); |
9645 | 198 | } |
9646 | 345 | } |
9647 | 690 | _has_bits_.Clear(); |
9648 | 690 | _internal_metadata_.Clear(); |
9649 | 690 | } |
9650 | | |
9651 | | bool CDCSDKProtoRecordPB::MergePartialFromCodedStream( |
9652 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9653 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9654 | 0 | ::google::protobuf::uint32 tag; |
9655 | | // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKProtoRecordPB) |
9656 | 0 | for (;;) { |
9657 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9658 | 0 | tag = p.first; |
9659 | 0 | if (!p.second) goto handle_unusual; |
9660 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9661 | | // optional .yb.cdc.RowMessage row_message = 1; |
9662 | 0 | case 1: { |
9663 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9664 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9665 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9666 | 0 | input, mutable_row_message())); |
9667 | 0 | } else { |
9668 | 0 | goto handle_unusual; |
9669 | 0 | } |
9670 | 0 | break; |
9671 | 0 | } |
9672 | | |
9673 | | // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2; |
9674 | 0 | case 2: { |
9675 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9676 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
9677 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9678 | 0 | input, mutable_cdc_sdk_op_id())); |
9679 | 0 | } else { |
9680 | 0 | goto handle_unusual; |
9681 | 0 | } |
9682 | 0 | break; |
9683 | 0 | } |
9684 | | |
9685 | 0 | default: { |
9686 | 0 | handle_unusual: |
9687 | 0 | if (tag == 0) { |
9688 | 0 | goto success; |
9689 | 0 | } |
9690 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9691 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9692 | 0 | break; |
9693 | 0 | } |
9694 | 0 | } |
9695 | 0 | } |
9696 | 0 | success: |
9697 | | // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKProtoRecordPB) |
9698 | 0 | return true; |
9699 | 0 | failure: |
9700 | | // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKProtoRecordPB) |
9701 | 0 | return false; |
9702 | 0 | #undef DO_ |
9703 | 0 | } |
9704 | | |
9705 | | void CDCSDKProtoRecordPB::SerializeWithCachedSizes( |
9706 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9707 | | // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKProtoRecordPB) |
9708 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9709 | 0 | (void) cached_has_bits; |
9710 | |
|
9711 | 0 | cached_has_bits = _has_bits_[0]; |
9712 | | // optional .yb.cdc.RowMessage row_message = 1; |
9713 | 0 | if (cached_has_bits & 0x00000001u) { |
9714 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9715 | 0 | 1, *this->row_message_, output); |
9716 | 0 | } |
9717 | | |
9718 | | // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2; |
9719 | 0 | if (cached_has_bits & 0x00000002u) { |
9720 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9721 | 0 | 2, *this->cdc_sdk_op_id_, output); |
9722 | 0 | } |
9723 | |
|
9724 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9725 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9726 | 0 | _internal_metadata_.unknown_fields(), output); |
9727 | 0 | } |
9728 | | // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKProtoRecordPB) |
9729 | 0 | } |
9730 | | |
9731 | | ::google::protobuf::uint8* CDCSDKProtoRecordPB::InternalSerializeWithCachedSizesToArray( |
9732 | 27.1k | bool deterministic, ::google::protobuf::uint8* target) const { |
9733 | 27.1k | (void)deterministic; // Unused |
9734 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKProtoRecordPB) |
9735 | 27.1k | ::google::protobuf::uint32 cached_has_bits = 0; |
9736 | 27.1k | (void) cached_has_bits; |
9737 | | |
9738 | 27.1k | cached_has_bits = _has_bits_[0]; |
9739 | | // optional .yb.cdc.RowMessage row_message = 1; |
9740 | 27.1k | if (cached_has_bits & 0x00000001u) { |
9741 | 27.1k | target = ::google::protobuf::internal::WireFormatLite:: |
9742 | 27.1k | InternalWriteMessageToArray( |
9743 | 27.1k | 1, *this->row_message_, deterministic, target); |
9744 | 27.1k | } |
9745 | | |
9746 | | // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2; |
9747 | 27.1k | if (cached_has_bits & 0x00000002u) { |
9748 | 1.21k | target = ::google::protobuf::internal::WireFormatLite:: |
9749 | 1.21k | InternalWriteMessageToArray( |
9750 | 1.21k | 2, *this->cdc_sdk_op_id_, deterministic, target); |
9751 | 1.21k | } |
9752 | | |
9753 | 27.1k | if (_internal_metadata_.have_unknown_fields()) { |
9754 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9755 | 0 | _internal_metadata_.unknown_fields(), target); |
9756 | 0 | } |
9757 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKProtoRecordPB) |
9758 | 27.1k | return target; |
9759 | 27.1k | } |
9760 | | |
9761 | 54.3k | size_t CDCSDKProtoRecordPB::ByteSizeLong() const { |
9762 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKProtoRecordPB) |
9763 | 54.3k | size_t total_size = 0; |
9764 | | |
9765 | 54.3k | if (_internal_metadata_.have_unknown_fields()) { |
9766 | 0 | total_size += |
9767 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9768 | 0 | _internal_metadata_.unknown_fields()); |
9769 | 0 | } |
9770 | 54.3k | if (_has_bits_[0 / 32] & 3u) { |
9771 | | // optional .yb.cdc.RowMessage row_message = 1; |
9772 | 54.3k | if (has_row_message()) { |
9773 | 54.3k | total_size += 1 + |
9774 | 54.3k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9775 | 54.3k | *this->row_message_); |
9776 | 54.3k | } |
9777 | | |
9778 | | // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2; |
9779 | 54.3k | if (has_cdc_sdk_op_id()) { |
9780 | 2.42k | total_size += 1 + |
9781 | 2.42k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9782 | 2.42k | *this->cdc_sdk_op_id_); |
9783 | 2.42k | } |
9784 | | |
9785 | 54.3k | } |
9786 | 54.3k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9787 | 54.3k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9788 | 54.3k | _cached_size_ = cached_size; |
9789 | 54.3k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9790 | 54.3k | return total_size; |
9791 | 54.3k | } |
9792 | | |
9793 | 0 | void CDCSDKProtoRecordPB::MergeFrom(const ::google::protobuf::Message& from) { |
9794 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKProtoRecordPB) |
9795 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9796 | 0 | const CDCSDKProtoRecordPB* source = |
9797 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKProtoRecordPB>( |
9798 | 0 | &from); |
9799 | 0 | if (source == NULL) { |
9800 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKProtoRecordPB) |
9801 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9802 | 0 | } else { |
9803 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKProtoRecordPB) |
9804 | 0 | MergeFrom(*source); |
9805 | 0 | } |
9806 | 0 | } |
9807 | | |
9808 | 345 | void CDCSDKProtoRecordPB::MergeFrom(const CDCSDKProtoRecordPB& from) { |
9809 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKProtoRecordPB) |
9810 | 345 | GOOGLE_DCHECK_NE(&from, this); |
9811 | 345 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9812 | 345 | ::google::protobuf::uint32 cached_has_bits = 0; |
9813 | 345 | (void) cached_has_bits; |
9814 | | |
9815 | 345 | cached_has_bits = from._has_bits_[0]; |
9816 | 345 | if (cached_has_bits & 3u) { |
9817 | 345 | if (cached_has_bits & 0x00000001u) { |
9818 | 0 | mutable_row_message()->::yb::cdc::RowMessage::MergeFrom(from.row_message()); |
9819 | 0 | } |
9820 | 345 | if (cached_has_bits & 0x00000002u) { |
9821 | 345 | mutable_cdc_sdk_op_id()->::yb::cdc::CDCSDKOpIdPB::MergeFrom(from.cdc_sdk_op_id()); |
9822 | 345 | } |
9823 | 345 | } |
9824 | 345 | } |
9825 | | |
9826 | 0 | void CDCSDKProtoRecordPB::CopyFrom(const ::google::protobuf::Message& from) { |
9827 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKProtoRecordPB) |
9828 | 0 | if (&from == this) return; |
9829 | 0 | Clear(); |
9830 | 0 | MergeFrom(from); |
9831 | 0 | } |
9832 | | |
9833 | 345 | void CDCSDKProtoRecordPB::CopyFrom(const CDCSDKProtoRecordPB& from) { |
9834 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKProtoRecordPB) |
9835 | 345 | if (&from == this) return0 ; |
9836 | 345 | Clear(); |
9837 | 345 | MergeFrom(from); |
9838 | 345 | } |
9839 | | |
9840 | 0 | bool CDCSDKProtoRecordPB::IsInitialized() const { |
9841 | 0 | return true; |
9842 | 0 | } |
9843 | | |
9844 | 0 | void CDCSDKProtoRecordPB::Swap(CDCSDKProtoRecordPB* other) { |
9845 | 0 | if (other == this) return; |
9846 | 0 | InternalSwap(other); |
9847 | 0 | } |
9848 | 0 | void CDCSDKProtoRecordPB::InternalSwap(CDCSDKProtoRecordPB* other) { |
9849 | 0 | using std::swap; |
9850 | 0 | swap(row_message_, other->row_message_); |
9851 | 0 | swap(cdc_sdk_op_id_, other->cdc_sdk_op_id_); |
9852 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9853 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9854 | 0 | swap(_cached_size_, other->_cached_size_); |
9855 | 0 | } |
9856 | | |
9857 | 0 | ::google::protobuf::Metadata CDCSDKProtoRecordPB::GetMetadata() const { |
9858 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
9859 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
9860 | 0 | } |
9861 | | |
9862 | | |
9863 | | // =================================================================== |
9864 | | |
9865 | 16.4k | void GetChangesResponsePB::InitAsDefaultInstance() { |
9866 | 16.4k | ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
9867 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
9868 | 16.4k | ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>( |
9869 | 16.4k | ::yb::cdc::CDCCheckpointPB::internal_default_instance()); |
9870 | 16.4k | ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>( |
9871 | 16.4k | ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance()); |
9872 | 16.4k | } |
9873 | 0 | void GetChangesResponsePB::clear_tserver() { |
9874 | 0 | tserver_.Clear(); |
9875 | 0 | } |
9876 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9877 | | const int GetChangesResponsePB::kErrorFieldNumber; |
9878 | | const int GetChangesResponsePB::kRecordTypeFieldNumber; |
9879 | | const int GetChangesResponsePB::kRecordFormatFieldNumber; |
9880 | | const int GetChangesResponsePB::kRecordsFieldNumber; |
9881 | | const int GetChangesResponsePB::kCheckpointFieldNumber; |
9882 | | const int GetChangesResponsePB::kTserverFieldNumber; |
9883 | | const int GetChangesResponsePB::kCdcSdkProtoRecordsFieldNumber; |
9884 | | const int GetChangesResponsePB::kCdcSdkCheckpointFieldNumber; |
9885 | | const int GetChangesResponsePB::kSafeHybridTimeFieldNumber; |
9886 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9887 | | |
9888 | | GetChangesResponsePB::GetChangesResponsePB() |
9889 | 17.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9890 | 17.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9891 | 642 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesResponsePB(); |
9892 | 642 | } |
9893 | 17.1k | SharedCtor(); |
9894 | | // @@protoc_insertion_point(constructor:yb.cdc.GetChangesResponsePB) |
9895 | 17.1k | } |
9896 | | GetChangesResponsePB::GetChangesResponsePB(const GetChangesResponsePB& from) |
9897 | | : ::google::protobuf::Message(), |
9898 | | _internal_metadata_(NULL), |
9899 | | _has_bits_(from._has_bits_), |
9900 | | _cached_size_(0), |
9901 | | records_(from.records_), |
9902 | | tserver_(from.tserver_), |
9903 | 0 | cdc_sdk_proto_records_(from.cdc_sdk_proto_records_) { |
9904 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9905 | 0 | if (from.has_error()) { |
9906 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
9907 | 0 | } else { |
9908 | 0 | error_ = NULL; |
9909 | 0 | } |
9910 | 0 | if (from.has_checkpoint()) { |
9911 | 0 | checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_); |
9912 | 0 | } else { |
9913 | 0 | checkpoint_ = NULL; |
9914 | 0 | } |
9915 | 0 | if (from.has_cdc_sdk_checkpoint()) { |
9916 | 0 | cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.cdc_sdk_checkpoint_); |
9917 | 0 | } else { |
9918 | 0 | cdc_sdk_checkpoint_ = NULL; |
9919 | 0 | } |
9920 | 0 | ::memcpy(&safe_hybrid_time_, &from.safe_hybrid_time_, |
9921 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&record_format_) - |
9922 | 0 | reinterpret_cast<char*>(&safe_hybrid_time_)) + sizeof(record_format_)); |
9923 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetChangesResponsePB) |
9924 | 0 | } |
9925 | | |
9926 | 17.1k | void GetChangesResponsePB::SharedCtor() { |
9927 | 17.1k | _cached_size_ = 0; |
9928 | 17.1k | ::memset(&error_, 0, static_cast<size_t>( |
9929 | 17.1k | reinterpret_cast<char*>(&safe_hybrid_time_) - |
9930 | 17.1k | reinterpret_cast<char*>(&error_)) + sizeof(safe_hybrid_time_)); |
9931 | 17.1k | record_type_ = 1; |
9932 | 17.1k | record_format_ = 1; |
9933 | 17.1k | } |
9934 | | |
9935 | 642 | GetChangesResponsePB::~GetChangesResponsePB() { |
9936 | | // @@protoc_insertion_point(destructor:yb.cdc.GetChangesResponsePB) |
9937 | 642 | SharedDtor(); |
9938 | 642 | } |
9939 | | |
9940 | 642 | void GetChangesResponsePB::SharedDtor() { |
9941 | 642 | if (this != internal_default_instance()) delete error_; |
9942 | 642 | if (this != internal_default_instance()) delete checkpoint_; |
9943 | 642 | if (this != internal_default_instance()) delete cdc_sdk_checkpoint_; |
9944 | 642 | } |
9945 | | |
9946 | 0 | void GetChangesResponsePB::SetCachedSize(int size) const { |
9947 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9948 | 0 | _cached_size_ = size; |
9949 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9950 | 0 | } |
9951 | 0 | const ::google::protobuf::Descriptor* GetChangesResponsePB::descriptor() { |
9952 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
9953 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9954 | 0 | } |
9955 | | |
9956 | 0 | const GetChangesResponsePB& GetChangesResponsePB::default_instance() { |
9957 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesResponsePB(); |
9958 | 0 | return *internal_default_instance(); |
9959 | 0 | } |
9960 | | |
9961 | 0 | GetChangesResponsePB* GetChangesResponsePB::New(::google::protobuf::Arena* arena) const { |
9962 | 0 | GetChangesResponsePB* n = new GetChangesResponsePB; |
9963 | 0 | if (arena != NULL) { |
9964 | 0 | arena->Own(n); |
9965 | 0 | } |
9966 | 0 | return n; |
9967 | 0 | } |
9968 | | |
9969 | 0 | void GetChangesResponsePB::Clear() { |
9970 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetChangesResponsePB) |
9971 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9972 | | // Prevent compiler warnings about cached_has_bits being unused |
9973 | 0 | (void) cached_has_bits; |
9974 | |
|
9975 | 0 | records_.Clear(); |
9976 | 0 | tserver_.Clear(); |
9977 | 0 | cdc_sdk_proto_records_.Clear(); |
9978 | 0 | cached_has_bits = _has_bits_[0]; |
9979 | 0 | if (cached_has_bits & 7u) { |
9980 | 0 | if (cached_has_bits & 0x00000001u) { |
9981 | 0 | GOOGLE_DCHECK(error_ != NULL); |
9982 | 0 | error_->Clear(); |
9983 | 0 | } |
9984 | 0 | if (cached_has_bits & 0x00000002u) { |
9985 | 0 | GOOGLE_DCHECK(checkpoint_ != NULL); |
9986 | 0 | checkpoint_->Clear(); |
9987 | 0 | } |
9988 | 0 | if (cached_has_bits & 0x00000004u) { |
9989 | 0 | GOOGLE_DCHECK(cdc_sdk_checkpoint_ != NULL); |
9990 | 0 | cdc_sdk_checkpoint_->Clear(); |
9991 | 0 | } |
9992 | 0 | } |
9993 | 0 | if (cached_has_bits & 56u) { |
9994 | 0 | safe_hybrid_time_ = GOOGLE_LONGLONG(0); |
9995 | 0 | record_type_ = 1; |
9996 | 0 | record_format_ = 1; |
9997 | 0 | } |
9998 | 0 | _has_bits_.Clear(); |
9999 | 0 | _internal_metadata_.Clear(); |
10000 | 0 | } |
10001 | | |
10002 | | bool GetChangesResponsePB::MergePartialFromCodedStream( |
10003 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10004 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10005 | 0 | ::google::protobuf::uint32 tag; |
10006 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetChangesResponsePB) |
10007 | 0 | for (;;) { |
10008 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10009 | 0 | tag = p.first; |
10010 | 0 | if (!p.second) goto handle_unusual; |
10011 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10012 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10013 | 0 | case 1: { |
10014 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10015 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10016 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10017 | 0 | input, mutable_error())); |
10018 | 0 | } else { |
10019 | 0 | goto handle_unusual; |
10020 | 0 | } |
10021 | 0 | break; |
10022 | 0 | } |
10023 | | |
10024 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
10025 | 0 | case 2: { |
10026 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10027 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10028 | 0 | int value; |
10029 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10030 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10031 | 0 | input, &value))); |
10032 | 0 | if (::yb::cdc::CDCRecordType_IsValid(value)) { |
10033 | 0 | set_record_type(static_cast< ::yb::cdc::CDCRecordType >(value)); |
10034 | 0 | } else { |
10035 | 0 | mutable_unknown_fields()->AddVarint( |
10036 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10037 | 0 | } |
10038 | 0 | } else { |
10039 | 0 | goto handle_unusual; |
10040 | 0 | } |
10041 | 0 | break; |
10042 | 0 | } |
10043 | | |
10044 | | // optional .yb.cdc.CDCRecordFormat record_format = 3; |
10045 | 0 | case 3: { |
10046 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10047 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
10048 | 0 | int value; |
10049 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10050 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10051 | 0 | input, &value))); |
10052 | 0 | if (::yb::cdc::CDCRecordFormat_IsValid(value)) { |
10053 | 0 | set_record_format(static_cast< ::yb::cdc::CDCRecordFormat >(value)); |
10054 | 0 | } else { |
10055 | 0 | mutable_unknown_fields()->AddVarint( |
10056 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
10057 | 0 | } |
10058 | 0 | } else { |
10059 | 0 | goto handle_unusual; |
10060 | 0 | } |
10061 | 0 | break; |
10062 | 0 | } |
10063 | | |
10064 | | // repeated .yb.cdc.CDCRecordPB records = 4; |
10065 | 0 | case 4: { |
10066 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10067 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
10068 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_records())); |
10069 | 0 | } else { |
10070 | 0 | goto handle_unusual; |
10071 | 0 | } |
10072 | 0 | break; |
10073 | 0 | } |
10074 | | |
10075 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 5; |
10076 | 0 | case 5: { |
10077 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10078 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
10079 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10080 | 0 | input, mutable_checkpoint())); |
10081 | 0 | } else { |
10082 | 0 | goto handle_unusual; |
10083 | 0 | } |
10084 | 0 | break; |
10085 | 0 | } |
10086 | | |
10087 | | // repeated .yb.HostPortPB tserver = 6; |
10088 | 0 | case 6: { |
10089 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10090 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
10091 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tserver())); |
10092 | 0 | } else { |
10093 | 0 | goto handle_unusual; |
10094 | 0 | } |
10095 | 0 | break; |
10096 | 0 | } |
10097 | | |
10098 | | // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8; |
10099 | 0 | case 8: { |
10100 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10101 | 0 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
10102 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_cdc_sdk_proto_records())); |
10103 | 0 | } else { |
10104 | 0 | goto handle_unusual; |
10105 | 0 | } |
10106 | 0 | break; |
10107 | 0 | } |
10108 | | |
10109 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9; |
10110 | 0 | case 9: { |
10111 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10112 | 0 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
10113 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10114 | 0 | input, mutable_cdc_sdk_checkpoint())); |
10115 | 0 | } else { |
10116 | 0 | goto handle_unusual; |
10117 | 0 | } |
10118 | 0 | break; |
10119 | 0 | } |
10120 | | |
10121 | | // optional int64 safe_hybrid_time = 10; |
10122 | 0 | case 10: { |
10123 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10124 | 0 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
10125 | 0 | set_has_safe_hybrid_time(); |
10126 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10127 | 0 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
10128 | 0 | input, &safe_hybrid_time_))); |
10129 | 0 | } else { |
10130 | 0 | goto handle_unusual; |
10131 | 0 | } |
10132 | 0 | break; |
10133 | 0 | } |
10134 | | |
10135 | 0 | default: { |
10136 | 0 | handle_unusual: |
10137 | 0 | if (tag == 0) { |
10138 | 0 | goto success; |
10139 | 0 | } |
10140 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10141 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10142 | 0 | break; |
10143 | 0 | } |
10144 | 0 | } |
10145 | 0 | } |
10146 | 0 | success: |
10147 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetChangesResponsePB) |
10148 | 0 | return true; |
10149 | 0 | failure: |
10150 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetChangesResponsePB) |
10151 | 0 | return false; |
10152 | 0 | #undef DO_ |
10153 | 0 | } |
10154 | | |
10155 | | void GetChangesResponsePB::SerializeWithCachedSizes( |
10156 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10157 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetChangesResponsePB) |
10158 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10159 | 0 | (void) cached_has_bits; |
10160 | |
|
10161 | 0 | cached_has_bits = _has_bits_[0]; |
10162 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10163 | 0 | if (cached_has_bits & 0x00000001u) { |
10164 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10165 | 0 | 1, *this->error_, output); |
10166 | 0 | } |
10167 | | |
10168 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
10169 | 0 | if (cached_has_bits & 0x00000010u) { |
10170 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10171 | 0 | 2, this->record_type(), output); |
10172 | 0 | } |
10173 | | |
10174 | | // optional .yb.cdc.CDCRecordFormat record_format = 3; |
10175 | 0 | if (cached_has_bits & 0x00000020u) { |
10176 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10177 | 0 | 3, this->record_format(), output); |
10178 | 0 | } |
10179 | | |
10180 | | // repeated .yb.cdc.CDCRecordPB records = 4; |
10181 | 0 | for (unsigned int i = 0, |
10182 | 0 | n = static_cast<unsigned int>(this->records_size()); i < n; i++) { |
10183 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10184 | 0 | 4, this->records(static_cast<int>(i)), output); |
10185 | 0 | } |
10186 | | |
10187 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 5; |
10188 | 0 | if (cached_has_bits & 0x00000002u) { |
10189 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10190 | 0 | 5, *this->checkpoint_, output); |
10191 | 0 | } |
10192 | | |
10193 | | // repeated .yb.HostPortPB tserver = 6; |
10194 | 0 | for (unsigned int i = 0, |
10195 | 0 | n = static_cast<unsigned int>(this->tserver_size()); i < n; i++) { |
10196 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10197 | 0 | 6, this->tserver(static_cast<int>(i)), output); |
10198 | 0 | } |
10199 | | |
10200 | | // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8; |
10201 | 0 | for (unsigned int i = 0, |
10202 | 0 | n = static_cast<unsigned int>(this->cdc_sdk_proto_records_size()); i < n; i++) { |
10203 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10204 | 0 | 8, this->cdc_sdk_proto_records(static_cast<int>(i)), output); |
10205 | 0 | } |
10206 | | |
10207 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9; |
10208 | 0 | if (cached_has_bits & 0x00000004u) { |
10209 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10210 | 0 | 9, *this->cdc_sdk_checkpoint_, output); |
10211 | 0 | } |
10212 | | |
10213 | | // optional int64 safe_hybrid_time = 10; |
10214 | 0 | if (cached_has_bits & 0x00000008u) { |
10215 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->safe_hybrid_time(), output); |
10216 | 0 | } |
10217 | |
|
10218 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10219 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10220 | 0 | _internal_metadata_.unknown_fields(), output); |
10221 | 0 | } |
10222 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetChangesResponsePB) |
10223 | 0 | } |
10224 | | |
10225 | | ::google::protobuf::uint8* GetChangesResponsePB::InternalSerializeWithCachedSizesToArray( |
10226 | 642 | bool deterministic, ::google::protobuf::uint8* target) const { |
10227 | 642 | (void)deterministic; // Unused |
10228 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetChangesResponsePB) |
10229 | 642 | ::google::protobuf::uint32 cached_has_bits = 0; |
10230 | 642 | (void) cached_has_bits; |
10231 | | |
10232 | 642 | cached_has_bits = _has_bits_[0]; |
10233 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10234 | 642 | if (cached_has_bits & 0x00000001u) { |
10235 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
10236 | 1 | InternalWriteMessageToArray( |
10237 | 1 | 1, *this->error_, deterministic, target); |
10238 | 1 | } |
10239 | | |
10240 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
10241 | 642 | if (cached_has_bits & 0x00000010u) { |
10242 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10243 | 0 | 2, this->record_type(), target); |
10244 | 0 | } |
10245 | | |
10246 | | // optional .yb.cdc.CDCRecordFormat record_format = 3; |
10247 | 642 | if (cached_has_bits & 0x00000020u) { |
10248 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10249 | 0 | 3, this->record_format(), target); |
10250 | 0 | } |
10251 | | |
10252 | | // repeated .yb.cdc.CDCRecordPB records = 4; |
10253 | 642 | for (unsigned int i = 0, |
10254 | 642 | n = static_cast<unsigned int>(this->records_size()); i < n; i++0 ) { |
10255 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
10256 | 0 | InternalWriteMessageToArray( |
10257 | 0 | 4, this->records(static_cast<int>(i)), deterministic, target); |
10258 | 0 | } |
10259 | | |
10260 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 5; |
10261 | 642 | if (cached_has_bits & 0x00000002u) { |
10262 | 617 | target = ::google::protobuf::internal::WireFormatLite:: |
10263 | 617 | InternalWriteMessageToArray( |
10264 | 617 | 5, *this->checkpoint_, deterministic, target); |
10265 | 617 | } |
10266 | | |
10267 | | // repeated .yb.HostPortPB tserver = 6; |
10268 | 642 | for (unsigned int i = 0, |
10269 | 642 | n = static_cast<unsigned int>(this->tserver_size()); i < n; i++0 ) { |
10270 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
10271 | 0 | InternalWriteMessageToArray( |
10272 | 0 | 6, this->tserver(static_cast<int>(i)), deterministic, target); |
10273 | 0 | } |
10274 | | |
10275 | | // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8; |
10276 | 642 | for (unsigned int i = 0, |
10277 | 27.8k | n = static_cast<unsigned int>(this->cdc_sdk_proto_records_size()); i < n; i++27.1k ) { |
10278 | 27.1k | target = ::google::protobuf::internal::WireFormatLite:: |
10279 | 27.1k | InternalWriteMessageToArray( |
10280 | 27.1k | 8, this->cdc_sdk_proto_records(static_cast<int>(i)), deterministic, target); |
10281 | 27.1k | } |
10282 | | |
10283 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9; |
10284 | 642 | if (cached_has_bits & 0x00000004u) { |
10285 | 641 | target = ::google::protobuf::internal::WireFormatLite:: |
10286 | 641 | InternalWriteMessageToArray( |
10287 | 641 | 9, *this->cdc_sdk_checkpoint_, deterministic, target); |
10288 | 641 | } |
10289 | | |
10290 | | // optional int64 safe_hybrid_time = 10; |
10291 | 642 | if (cached_has_bits & 0x00000008u) { |
10292 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->safe_hybrid_time(), target); |
10293 | 0 | } |
10294 | | |
10295 | 642 | if (_internal_metadata_.have_unknown_fields()) { |
10296 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10297 | 0 | _internal_metadata_.unknown_fields(), target); |
10298 | 0 | } |
10299 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetChangesResponsePB) |
10300 | 642 | return target; |
10301 | 642 | } |
10302 | | |
10303 | 1.28k | size_t GetChangesResponsePB::ByteSizeLong() const { |
10304 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetChangesResponsePB) |
10305 | 1.28k | size_t total_size = 0; |
10306 | | |
10307 | 1.28k | if (_internal_metadata_.have_unknown_fields()) { |
10308 | 0 | total_size += |
10309 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10310 | 0 | _internal_metadata_.unknown_fields()); |
10311 | 0 | } |
10312 | | // repeated .yb.cdc.CDCRecordPB records = 4; |
10313 | 1.28k | { |
10314 | 1.28k | unsigned int count = static_cast<unsigned int>(this->records_size()); |
10315 | 1.28k | total_size += 1UL * count; |
10316 | 1.28k | for (unsigned int i = 0; i < count; i++0 ) { |
10317 | 0 | total_size += |
10318 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10319 | 0 | this->records(static_cast<int>(i))); |
10320 | 0 | } |
10321 | 1.28k | } |
10322 | | |
10323 | | // repeated .yb.HostPortPB tserver = 6; |
10324 | 1.28k | { |
10325 | 1.28k | unsigned int count = static_cast<unsigned int>(this->tserver_size()); |
10326 | 1.28k | total_size += 1UL * count; |
10327 | 1.28k | for (unsigned int i = 0; i < count; i++0 ) { |
10328 | 0 | total_size += |
10329 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10330 | 0 | this->tserver(static_cast<int>(i))); |
10331 | 0 | } |
10332 | 1.28k | } |
10333 | | |
10334 | | // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8; |
10335 | 1.28k | { |
10336 | 1.28k | unsigned int count = static_cast<unsigned int>(this->cdc_sdk_proto_records_size()); |
10337 | 1.28k | total_size += 1UL * count; |
10338 | 55.6k | for (unsigned int i = 0; i < count; i++54.3k ) { |
10339 | 54.3k | total_size += |
10340 | 54.3k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10341 | 54.3k | this->cdc_sdk_proto_records(static_cast<int>(i))); |
10342 | 54.3k | } |
10343 | 1.28k | } |
10344 | | |
10345 | 1.28k | if (_has_bits_[0 / 32] & 63u) { |
10346 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10347 | 1.28k | if (has_error()) { |
10348 | 2 | total_size += 1 + |
10349 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10350 | 2 | *this->error_); |
10351 | 2 | } |
10352 | | |
10353 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 5; |
10354 | 1.28k | if (has_checkpoint()) { |
10355 | 1.23k | total_size += 1 + |
10356 | 1.23k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10357 | 1.23k | *this->checkpoint_); |
10358 | 1.23k | } |
10359 | | |
10360 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9; |
10361 | 1.28k | if (has_cdc_sdk_checkpoint()) { |
10362 | 1.28k | total_size += 1 + |
10363 | 1.28k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10364 | 1.28k | *this->cdc_sdk_checkpoint_); |
10365 | 1.28k | } |
10366 | | |
10367 | | // optional int64 safe_hybrid_time = 10; |
10368 | 1.28k | if (has_safe_hybrid_time()) { |
10369 | 0 | total_size += 1 + |
10370 | 0 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
10371 | 0 | this->safe_hybrid_time()); |
10372 | 0 | } |
10373 | | |
10374 | | // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE]; |
10375 | 1.28k | if (has_record_type()) { |
10376 | 0 | total_size += 1 + |
10377 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_type()); |
10378 | 0 | } |
10379 | | |
10380 | | // optional .yb.cdc.CDCRecordFormat record_format = 3; |
10381 | 1.28k | if (has_record_format()) { |
10382 | 0 | total_size += 1 + |
10383 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_format()); |
10384 | 0 | } |
10385 | | |
10386 | 1.28k | } |
10387 | 1.28k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10388 | 1.28k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10389 | 1.28k | _cached_size_ = cached_size; |
10390 | 1.28k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10391 | 1.28k | return total_size; |
10392 | 1.28k | } |
10393 | | |
10394 | 0 | void GetChangesResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
10395 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetChangesResponsePB) |
10396 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10397 | 0 | const GetChangesResponsePB* source = |
10398 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetChangesResponsePB>( |
10399 | 0 | &from); |
10400 | 0 | if (source == NULL) { |
10401 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetChangesResponsePB) |
10402 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10403 | 0 | } else { |
10404 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetChangesResponsePB) |
10405 | 0 | MergeFrom(*source); |
10406 | 0 | } |
10407 | 0 | } |
10408 | | |
10409 | 0 | void GetChangesResponsePB::MergeFrom(const GetChangesResponsePB& from) { |
10410 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetChangesResponsePB) |
10411 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10412 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10413 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10414 | 0 | (void) cached_has_bits; |
10415 | |
|
10416 | 0 | records_.MergeFrom(from.records_); |
10417 | 0 | tserver_.MergeFrom(from.tserver_); |
10418 | 0 | cdc_sdk_proto_records_.MergeFrom(from.cdc_sdk_proto_records_); |
10419 | 0 | cached_has_bits = from._has_bits_[0]; |
10420 | 0 | if (cached_has_bits & 63u) { |
10421 | 0 | if (cached_has_bits & 0x00000001u) { |
10422 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
10423 | 0 | } |
10424 | 0 | if (cached_has_bits & 0x00000002u) { |
10425 | 0 | mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint()); |
10426 | 0 | } |
10427 | 0 | if (cached_has_bits & 0x00000004u) { |
10428 | 0 | mutable_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.cdc_sdk_checkpoint()); |
10429 | 0 | } |
10430 | 0 | if (cached_has_bits & 0x00000008u) { |
10431 | 0 | safe_hybrid_time_ = from.safe_hybrid_time_; |
10432 | 0 | } |
10433 | 0 | if (cached_has_bits & 0x00000010u) { |
10434 | 0 | record_type_ = from.record_type_; |
10435 | 0 | } |
10436 | 0 | if (cached_has_bits & 0x00000020u) { |
10437 | 0 | record_format_ = from.record_format_; |
10438 | 0 | } |
10439 | 0 | _has_bits_[0] |= cached_has_bits; |
10440 | 0 | } |
10441 | 0 | } |
10442 | | |
10443 | 0 | void GetChangesResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
10444 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetChangesResponsePB) |
10445 | 0 | if (&from == this) return; |
10446 | 0 | Clear(); |
10447 | 0 | MergeFrom(from); |
10448 | 0 | } |
10449 | | |
10450 | 0 | void GetChangesResponsePB::CopyFrom(const GetChangesResponsePB& from) { |
10451 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetChangesResponsePB) |
10452 | 0 | if (&from == this) return; |
10453 | 0 | Clear(); |
10454 | 0 | MergeFrom(from); |
10455 | 0 | } |
10456 | | |
10457 | 642 | bool GetChangesResponsePB::IsInitialized() const { |
10458 | 642 | if (!::google::protobuf::internal::AllAreInitialized(this->records())) return false0 ; |
10459 | 642 | if (!::google::protobuf::internal::AllAreInitialized(this->tserver())) return false0 ; |
10460 | 642 | if (has_error()) { |
10461 | 1 | if (!this->error_->IsInitialized()) return false0 ; |
10462 | 1 | } |
10463 | 642 | if (has_checkpoint()) { |
10464 | 617 | if (!this->checkpoint_->IsInitialized()) return false0 ; |
10465 | 617 | } |
10466 | 642 | return true; |
10467 | 642 | } |
10468 | | |
10469 | 0 | void GetChangesResponsePB::Swap(GetChangesResponsePB* other) { |
10470 | 0 | if (other == this) return; |
10471 | 0 | InternalSwap(other); |
10472 | 0 | } |
10473 | 0 | void GetChangesResponsePB::InternalSwap(GetChangesResponsePB* other) { |
10474 | 0 | using std::swap; |
10475 | 0 | records_.InternalSwap(&other->records_); |
10476 | 0 | tserver_.InternalSwap(&other->tserver_); |
10477 | 0 | cdc_sdk_proto_records_.InternalSwap(&other->cdc_sdk_proto_records_); |
10478 | 0 | swap(error_, other->error_); |
10479 | 0 | swap(checkpoint_, other->checkpoint_); |
10480 | 0 | swap(cdc_sdk_checkpoint_, other->cdc_sdk_checkpoint_); |
10481 | 0 | swap(safe_hybrid_time_, other->safe_hybrid_time_); |
10482 | 0 | swap(record_type_, other->record_type_); |
10483 | 0 | swap(record_format_, other->record_format_); |
10484 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10485 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10486 | 0 | swap(_cached_size_, other->_cached_size_); |
10487 | 0 | } |
10488 | | |
10489 | 0 | ::google::protobuf::Metadata GetChangesResponsePB::GetMetadata() const { |
10490 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
10491 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
10492 | 0 | } |
10493 | | |
10494 | | |
10495 | | // =================================================================== |
10496 | | |
10497 | 16.4k | void GetCheckpointRequestPB::InitAsDefaultInstance() { |
10498 | 16.4k | } |
10499 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10500 | | const int GetCheckpointRequestPB::kStreamIdFieldNumber; |
10501 | | const int GetCheckpointRequestPB::kTabletIdFieldNumber; |
10502 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10503 | | |
10504 | | GetCheckpointRequestPB::GetCheckpointRequestPB() |
10505 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10506 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10507 | 14 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointRequestPB(); |
10508 | 14 | } |
10509 | 16.4k | SharedCtor(); |
10510 | | // @@protoc_insertion_point(constructor:yb.cdc.GetCheckpointRequestPB) |
10511 | 16.4k | } |
10512 | | GetCheckpointRequestPB::GetCheckpointRequestPB(const GetCheckpointRequestPB& from) |
10513 | | : ::google::protobuf::Message(), |
10514 | | _internal_metadata_(NULL), |
10515 | | _has_bits_(from._has_bits_), |
10516 | 0 | _cached_size_(0) { |
10517 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10518 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10519 | 0 | if (from.has_stream_id()) { |
10520 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
10521 | 0 | } |
10522 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10523 | 0 | if (from.has_tablet_id()) { |
10524 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
10525 | 0 | } |
10526 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCheckpointRequestPB) |
10527 | 0 | } |
10528 | | |
10529 | 16.4k | void GetCheckpointRequestPB::SharedCtor() { |
10530 | 16.4k | _cached_size_ = 0; |
10531 | 16.4k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10532 | 16.4k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10533 | 16.4k | } |
10534 | | |
10535 | 14 | GetCheckpointRequestPB::~GetCheckpointRequestPB() { |
10536 | | // @@protoc_insertion_point(destructor:yb.cdc.GetCheckpointRequestPB) |
10537 | 14 | SharedDtor(); |
10538 | 14 | } |
10539 | | |
10540 | 14 | void GetCheckpointRequestPB::SharedDtor() { |
10541 | 14 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10542 | 14 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10543 | 14 | } |
10544 | | |
10545 | 0 | void GetCheckpointRequestPB::SetCachedSize(int size) const { |
10546 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10547 | 0 | _cached_size_ = size; |
10548 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10549 | 0 | } |
10550 | 0 | const ::google::protobuf::Descriptor* GetCheckpointRequestPB::descriptor() { |
10551 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
10552 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10553 | 0 | } |
10554 | | |
10555 | 0 | const GetCheckpointRequestPB& GetCheckpointRequestPB::default_instance() { |
10556 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointRequestPB(); |
10557 | 0 | return *internal_default_instance(); |
10558 | 0 | } |
10559 | | |
10560 | 0 | GetCheckpointRequestPB* GetCheckpointRequestPB::New(::google::protobuf::Arena* arena) const { |
10561 | 0 | GetCheckpointRequestPB* n = new GetCheckpointRequestPB; |
10562 | 0 | if (arena != NULL) { |
10563 | 0 | arena->Own(n); |
10564 | 0 | } |
10565 | 0 | return n; |
10566 | 0 | } |
10567 | | |
10568 | 14 | void GetCheckpointRequestPB::Clear() { |
10569 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetCheckpointRequestPB) |
10570 | 14 | ::google::protobuf::uint32 cached_has_bits = 0; |
10571 | | // Prevent compiler warnings about cached_has_bits being unused |
10572 | 14 | (void) cached_has_bits; |
10573 | | |
10574 | 14 | cached_has_bits = _has_bits_[0]; |
10575 | 14 | if (cached_has_bits & 3u) { |
10576 | 0 | if (cached_has_bits & 0x00000001u) { |
10577 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10578 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
10579 | 0 | } |
10580 | 0 | if (cached_has_bits & 0x00000002u) { |
10581 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10582 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
10583 | 0 | } |
10584 | 0 | } |
10585 | 14 | _has_bits_.Clear(); |
10586 | 14 | _internal_metadata_.Clear(); |
10587 | 14 | } |
10588 | | |
10589 | | bool GetCheckpointRequestPB::MergePartialFromCodedStream( |
10590 | 14 | ::google::protobuf::io::CodedInputStream* input) { |
10591 | 28 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
10592 | 14 | ::google::protobuf::uint32 tag; |
10593 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetCheckpointRequestPB) |
10594 | 42 | for (;;) { |
10595 | 42 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10596 | 42 | tag = p.first; |
10597 | 42 | if (!p.second) goto handle_unusual14 ; |
10598 | 28 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10599 | | // optional bytes stream_id = 1; |
10600 | 14 | case 1: { |
10601 | 14 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10602 | 14 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10603 | 14 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10604 | 14 | input, this->mutable_stream_id())); |
10605 | 14 | } else { |
10606 | 0 | goto handle_unusual; |
10607 | 0 | } |
10608 | 14 | break; |
10609 | 14 | } |
10610 | | |
10611 | | // optional bytes tablet_id = 2; |
10612 | 14 | case 2: { |
10613 | 14 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10614 | 14 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
10615 | 14 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10616 | 14 | input, this->mutable_tablet_id())); |
10617 | 14 | } else { |
10618 | 0 | goto handle_unusual; |
10619 | 0 | } |
10620 | 14 | break; |
10621 | 14 | } |
10622 | | |
10623 | 14 | default: { |
10624 | 14 | handle_unusual: |
10625 | 14 | if (tag == 0) { |
10626 | 14 | goto success; |
10627 | 14 | } |
10628 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10629 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10630 | 0 | break; |
10631 | 0 | } |
10632 | 28 | } |
10633 | 28 | } |
10634 | 14 | success: |
10635 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetCheckpointRequestPB) |
10636 | 14 | return true; |
10637 | 0 | failure: |
10638 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetCheckpointRequestPB) |
10639 | 0 | return false; |
10640 | 14 | #undef DO_ |
10641 | 14 | } |
10642 | | |
10643 | | void GetCheckpointRequestPB::SerializeWithCachedSizes( |
10644 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10645 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetCheckpointRequestPB) |
10646 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10647 | 0 | (void) cached_has_bits; |
10648 | |
|
10649 | 0 | cached_has_bits = _has_bits_[0]; |
10650 | | // optional bytes stream_id = 1; |
10651 | 0 | if (cached_has_bits & 0x00000001u) { |
10652 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10653 | 0 | 1, this->stream_id(), output); |
10654 | 0 | } |
10655 | | |
10656 | | // optional bytes tablet_id = 2; |
10657 | 0 | if (cached_has_bits & 0x00000002u) { |
10658 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10659 | 0 | 2, this->tablet_id(), output); |
10660 | 0 | } |
10661 | |
|
10662 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10663 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10664 | 0 | _internal_metadata_.unknown_fields(), output); |
10665 | 0 | } |
10666 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetCheckpointRequestPB) |
10667 | 0 | } |
10668 | | |
10669 | | ::google::protobuf::uint8* GetCheckpointRequestPB::InternalSerializeWithCachedSizesToArray( |
10670 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
10671 | 0 | (void)deterministic; // Unused |
10672 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCheckpointRequestPB) |
10673 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10674 | 0 | (void) cached_has_bits; |
10675 | |
|
10676 | 0 | cached_has_bits = _has_bits_[0]; |
10677 | | // optional bytes stream_id = 1; |
10678 | 0 | if (cached_has_bits & 0x00000001u) { |
10679 | 0 | target = |
10680 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10681 | 0 | 1, this->stream_id(), target); |
10682 | 0 | } |
10683 | | |
10684 | | // optional bytes tablet_id = 2; |
10685 | 0 | if (cached_has_bits & 0x00000002u) { |
10686 | 0 | target = |
10687 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10688 | 0 | 2, this->tablet_id(), target); |
10689 | 0 | } |
10690 | |
|
10691 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10692 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10693 | 0 | _internal_metadata_.unknown_fields(), target); |
10694 | 0 | } |
10695 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCheckpointRequestPB) |
10696 | 0 | return target; |
10697 | 0 | } |
10698 | | |
10699 | 0 | size_t GetCheckpointRequestPB::ByteSizeLong() const { |
10700 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCheckpointRequestPB) |
10701 | 0 | size_t total_size = 0; |
10702 | |
|
10703 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10704 | 0 | total_size += |
10705 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10706 | 0 | _internal_metadata_.unknown_fields()); |
10707 | 0 | } |
10708 | 0 | if (_has_bits_[0 / 32] & 3u) { |
10709 | | // optional bytes stream_id = 1; |
10710 | 0 | if (has_stream_id()) { |
10711 | 0 | total_size += 1 + |
10712 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10713 | 0 | this->stream_id()); |
10714 | 0 | } |
10715 | | |
10716 | | // optional bytes tablet_id = 2; |
10717 | 0 | if (has_tablet_id()) { |
10718 | 0 | total_size += 1 + |
10719 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10720 | 0 | this->tablet_id()); |
10721 | 0 | } |
10722 | |
|
10723 | 0 | } |
10724 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10725 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10726 | 0 | _cached_size_ = cached_size; |
10727 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10728 | 0 | return total_size; |
10729 | 0 | } |
10730 | | |
10731 | 0 | void GetCheckpointRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
10732 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCheckpointRequestPB) |
10733 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10734 | 0 | const GetCheckpointRequestPB* source = |
10735 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCheckpointRequestPB>( |
10736 | 0 | &from); |
10737 | 0 | if (source == NULL) { |
10738 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCheckpointRequestPB) |
10739 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10740 | 0 | } else { |
10741 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCheckpointRequestPB) |
10742 | 0 | MergeFrom(*source); |
10743 | 0 | } |
10744 | 0 | } |
10745 | | |
10746 | 0 | void GetCheckpointRequestPB::MergeFrom(const GetCheckpointRequestPB& from) { |
10747 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCheckpointRequestPB) |
10748 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10749 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10750 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10751 | 0 | (void) cached_has_bits; |
10752 | |
|
10753 | 0 | cached_has_bits = from._has_bits_[0]; |
10754 | 0 | if (cached_has_bits & 3u) { |
10755 | 0 | if (cached_has_bits & 0x00000001u) { |
10756 | 0 | set_has_stream_id(); |
10757 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
10758 | 0 | } |
10759 | 0 | if (cached_has_bits & 0x00000002u) { |
10760 | 0 | set_has_tablet_id(); |
10761 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
10762 | 0 | } |
10763 | 0 | } |
10764 | 0 | } |
10765 | | |
10766 | 0 | void GetCheckpointRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
10767 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCheckpointRequestPB) |
10768 | 0 | if (&from == this) return; |
10769 | 0 | Clear(); |
10770 | 0 | MergeFrom(from); |
10771 | 0 | } |
10772 | | |
10773 | 0 | void GetCheckpointRequestPB::CopyFrom(const GetCheckpointRequestPB& from) { |
10774 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCheckpointRequestPB) |
10775 | 0 | if (&from == this) return; |
10776 | 0 | Clear(); |
10777 | 0 | MergeFrom(from); |
10778 | 0 | } |
10779 | | |
10780 | 14 | bool GetCheckpointRequestPB::IsInitialized() const { |
10781 | 14 | return true; |
10782 | 14 | } |
10783 | | |
10784 | 0 | void GetCheckpointRequestPB::Swap(GetCheckpointRequestPB* other) { |
10785 | 0 | if (other == this) return; |
10786 | 0 | InternalSwap(other); |
10787 | 0 | } |
10788 | 0 | void GetCheckpointRequestPB::InternalSwap(GetCheckpointRequestPB* other) { |
10789 | 0 | using std::swap; |
10790 | 0 | stream_id_.Swap(&other->stream_id_); |
10791 | 0 | tablet_id_.Swap(&other->tablet_id_); |
10792 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10793 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10794 | 0 | swap(_cached_size_, other->_cached_size_); |
10795 | 0 | } |
10796 | | |
10797 | 14 | ::google::protobuf::Metadata GetCheckpointRequestPB::GetMetadata() const { |
10798 | 14 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
10799 | 14 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
10800 | 14 | } |
10801 | | |
10802 | | |
10803 | | // =================================================================== |
10804 | | |
10805 | 16.4k | void GetCheckpointResponsePB::InitAsDefaultInstance() { |
10806 | 16.4k | ::yb::cdc::_GetCheckpointResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
10807 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
10808 | 16.4k | ::yb::cdc::_GetCheckpointResponsePB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>( |
10809 | 16.4k | ::yb::cdc::CDCCheckpointPB::internal_default_instance()); |
10810 | 16.4k | } |
10811 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10812 | | const int GetCheckpointResponsePB::kErrorFieldNumber; |
10813 | | const int GetCheckpointResponsePB::kCheckpointFieldNumber; |
10814 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10815 | | |
10816 | | GetCheckpointResponsePB::GetCheckpointResponsePB() |
10817 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10818 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10819 | 14 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointResponsePB(); |
10820 | 14 | } |
10821 | 16.4k | SharedCtor(); |
10822 | | // @@protoc_insertion_point(constructor:yb.cdc.GetCheckpointResponsePB) |
10823 | 16.4k | } |
10824 | | GetCheckpointResponsePB::GetCheckpointResponsePB(const GetCheckpointResponsePB& from) |
10825 | | : ::google::protobuf::Message(), |
10826 | | _internal_metadata_(NULL), |
10827 | | _has_bits_(from._has_bits_), |
10828 | 0 | _cached_size_(0) { |
10829 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10830 | 0 | if (from.has_error()) { |
10831 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
10832 | 0 | } else { |
10833 | 0 | error_ = NULL; |
10834 | 0 | } |
10835 | 0 | if (from.has_checkpoint()) { |
10836 | 0 | checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_); |
10837 | 0 | } else { |
10838 | 0 | checkpoint_ = NULL; |
10839 | 0 | } |
10840 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCheckpointResponsePB) |
10841 | 0 | } |
10842 | | |
10843 | 16.4k | void GetCheckpointResponsePB::SharedCtor() { |
10844 | 16.4k | _cached_size_ = 0; |
10845 | 16.4k | ::memset(&error_, 0, static_cast<size_t>( |
10846 | 16.4k | reinterpret_cast<char*>(&checkpoint_) - |
10847 | 16.4k | reinterpret_cast<char*>(&error_)) + sizeof(checkpoint_)); |
10848 | 16.4k | } |
10849 | | |
10850 | 14 | GetCheckpointResponsePB::~GetCheckpointResponsePB() { |
10851 | | // @@protoc_insertion_point(destructor:yb.cdc.GetCheckpointResponsePB) |
10852 | 14 | SharedDtor(); |
10853 | 14 | } |
10854 | | |
10855 | 14 | void GetCheckpointResponsePB::SharedDtor() { |
10856 | 14 | if (this != internal_default_instance()) delete error_; |
10857 | 14 | if (this != internal_default_instance()) delete checkpoint_; |
10858 | 14 | } |
10859 | | |
10860 | 0 | void GetCheckpointResponsePB::SetCachedSize(int size) const { |
10861 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10862 | 0 | _cached_size_ = size; |
10863 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10864 | 0 | } |
10865 | 0 | const ::google::protobuf::Descriptor* GetCheckpointResponsePB::descriptor() { |
10866 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
10867 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10868 | 0 | } |
10869 | | |
10870 | 0 | const GetCheckpointResponsePB& GetCheckpointResponsePB::default_instance() { |
10871 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointResponsePB(); |
10872 | 0 | return *internal_default_instance(); |
10873 | 0 | } |
10874 | | |
10875 | 0 | GetCheckpointResponsePB* GetCheckpointResponsePB::New(::google::protobuf::Arena* arena) const { |
10876 | 0 | GetCheckpointResponsePB* n = new GetCheckpointResponsePB; |
10877 | 0 | if (arena != NULL) { |
10878 | 0 | arena->Own(n); |
10879 | 0 | } |
10880 | 0 | return n; |
10881 | 0 | } |
10882 | | |
10883 | 0 | void GetCheckpointResponsePB::Clear() { |
10884 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetCheckpointResponsePB) |
10885 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10886 | | // Prevent compiler warnings about cached_has_bits being unused |
10887 | 0 | (void) cached_has_bits; |
10888 | |
|
10889 | 0 | cached_has_bits = _has_bits_[0]; |
10890 | 0 | if (cached_has_bits & 3u) { |
10891 | 0 | if (cached_has_bits & 0x00000001u) { |
10892 | 0 | GOOGLE_DCHECK(error_ != NULL); |
10893 | 0 | error_->Clear(); |
10894 | 0 | } |
10895 | 0 | if (cached_has_bits & 0x00000002u) { |
10896 | 0 | GOOGLE_DCHECK(checkpoint_ != NULL); |
10897 | 0 | checkpoint_->Clear(); |
10898 | 0 | } |
10899 | 0 | } |
10900 | 0 | _has_bits_.Clear(); |
10901 | 0 | _internal_metadata_.Clear(); |
10902 | 0 | } |
10903 | | |
10904 | | bool GetCheckpointResponsePB::MergePartialFromCodedStream( |
10905 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10906 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10907 | 0 | ::google::protobuf::uint32 tag; |
10908 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetCheckpointResponsePB) |
10909 | 0 | for (;;) { |
10910 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10911 | 0 | tag = p.first; |
10912 | 0 | if (!p.second) goto handle_unusual; |
10913 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10914 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10915 | 0 | case 1: { |
10916 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10917 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10918 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10919 | 0 | input, mutable_error())); |
10920 | 0 | } else { |
10921 | 0 | goto handle_unusual; |
10922 | 0 | } |
10923 | 0 | break; |
10924 | 0 | } |
10925 | | |
10926 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 2; |
10927 | 0 | case 2: { |
10928 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10929 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
10930 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10931 | 0 | input, mutable_checkpoint())); |
10932 | 0 | } else { |
10933 | 0 | goto handle_unusual; |
10934 | 0 | } |
10935 | 0 | break; |
10936 | 0 | } |
10937 | | |
10938 | 0 | default: { |
10939 | 0 | handle_unusual: |
10940 | 0 | if (tag == 0) { |
10941 | 0 | goto success; |
10942 | 0 | } |
10943 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10944 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10945 | 0 | break; |
10946 | 0 | } |
10947 | 0 | } |
10948 | 0 | } |
10949 | 0 | success: |
10950 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetCheckpointResponsePB) |
10951 | 0 | return true; |
10952 | 0 | failure: |
10953 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetCheckpointResponsePB) |
10954 | 0 | return false; |
10955 | 0 | #undef DO_ |
10956 | 0 | } |
10957 | | |
10958 | | void GetCheckpointResponsePB::SerializeWithCachedSizes( |
10959 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10960 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetCheckpointResponsePB) |
10961 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10962 | 0 | (void) cached_has_bits; |
10963 | |
|
10964 | 0 | cached_has_bits = _has_bits_[0]; |
10965 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10966 | 0 | if (cached_has_bits & 0x00000001u) { |
10967 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10968 | 0 | 1, *this->error_, output); |
10969 | 0 | } |
10970 | | |
10971 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 2; |
10972 | 0 | if (cached_has_bits & 0x00000002u) { |
10973 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10974 | 0 | 2, *this->checkpoint_, output); |
10975 | 0 | } |
10976 | |
|
10977 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10978 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10979 | 0 | _internal_metadata_.unknown_fields(), output); |
10980 | 0 | } |
10981 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetCheckpointResponsePB) |
10982 | 0 | } |
10983 | | |
10984 | | ::google::protobuf::uint8* GetCheckpointResponsePB::InternalSerializeWithCachedSizesToArray( |
10985 | 14 | bool deterministic, ::google::protobuf::uint8* target) const { |
10986 | 14 | (void)deterministic; // Unused |
10987 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCheckpointResponsePB) |
10988 | 14 | ::google::protobuf::uint32 cached_has_bits = 0; |
10989 | 14 | (void) cached_has_bits; |
10990 | | |
10991 | 14 | cached_has_bits = _has_bits_[0]; |
10992 | | // optional .yb.cdc.CDCErrorPB error = 1; |
10993 | 14 | if (cached_has_bits & 0x00000001u) { |
10994 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
10995 | 0 | InternalWriteMessageToArray( |
10996 | 0 | 1, *this->error_, deterministic, target); |
10997 | 0 | } |
10998 | | |
10999 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 2; |
11000 | 14 | if (cached_has_bits & 0x00000002u) { |
11001 | 14 | target = ::google::protobuf::internal::WireFormatLite:: |
11002 | 14 | InternalWriteMessageToArray( |
11003 | 14 | 2, *this->checkpoint_, deterministic, target); |
11004 | 14 | } |
11005 | | |
11006 | 14 | if (_internal_metadata_.have_unknown_fields()) { |
11007 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11008 | 0 | _internal_metadata_.unknown_fields(), target); |
11009 | 0 | } |
11010 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCheckpointResponsePB) |
11011 | 14 | return target; |
11012 | 14 | } |
11013 | | |
11014 | 28 | size_t GetCheckpointResponsePB::ByteSizeLong() const { |
11015 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCheckpointResponsePB) |
11016 | 28 | size_t total_size = 0; |
11017 | | |
11018 | 28 | if (_internal_metadata_.have_unknown_fields()) { |
11019 | 0 | total_size += |
11020 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11021 | 0 | _internal_metadata_.unknown_fields()); |
11022 | 0 | } |
11023 | 28 | if (_has_bits_[0 / 32] & 3u) { |
11024 | | // optional .yb.cdc.CDCErrorPB error = 1; |
11025 | 28 | if (has_error()) { |
11026 | 0 | total_size += 1 + |
11027 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11028 | 0 | *this->error_); |
11029 | 0 | } |
11030 | | |
11031 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 2; |
11032 | 28 | if (has_checkpoint()) { |
11033 | 28 | total_size += 1 + |
11034 | 28 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11035 | 28 | *this->checkpoint_); |
11036 | 28 | } |
11037 | | |
11038 | 28 | } |
11039 | 28 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11040 | 28 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11041 | 28 | _cached_size_ = cached_size; |
11042 | 28 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11043 | 28 | return total_size; |
11044 | 28 | } |
11045 | | |
11046 | 0 | void GetCheckpointResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
11047 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCheckpointResponsePB) |
11048 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11049 | 0 | const GetCheckpointResponsePB* source = |
11050 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCheckpointResponsePB>( |
11051 | 0 | &from); |
11052 | 0 | if (source == NULL) { |
11053 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCheckpointResponsePB) |
11054 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11055 | 0 | } else { |
11056 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCheckpointResponsePB) |
11057 | 0 | MergeFrom(*source); |
11058 | 0 | } |
11059 | 0 | } |
11060 | | |
11061 | 0 | void GetCheckpointResponsePB::MergeFrom(const GetCheckpointResponsePB& from) { |
11062 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCheckpointResponsePB) |
11063 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11064 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11065 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11066 | 0 | (void) cached_has_bits; |
11067 | |
|
11068 | 0 | cached_has_bits = from._has_bits_[0]; |
11069 | 0 | if (cached_has_bits & 3u) { |
11070 | 0 | if (cached_has_bits & 0x00000001u) { |
11071 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
11072 | 0 | } |
11073 | 0 | if (cached_has_bits & 0x00000002u) { |
11074 | 0 | mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint()); |
11075 | 0 | } |
11076 | 0 | } |
11077 | 0 | } |
11078 | | |
11079 | 0 | void GetCheckpointResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
11080 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCheckpointResponsePB) |
11081 | 0 | if (&from == this) return; |
11082 | 0 | Clear(); |
11083 | 0 | MergeFrom(from); |
11084 | 0 | } |
11085 | | |
11086 | 0 | void GetCheckpointResponsePB::CopyFrom(const GetCheckpointResponsePB& from) { |
11087 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCheckpointResponsePB) |
11088 | 0 | if (&from == this) return; |
11089 | 0 | Clear(); |
11090 | 0 | MergeFrom(from); |
11091 | 0 | } |
11092 | | |
11093 | 14 | bool GetCheckpointResponsePB::IsInitialized() const { |
11094 | 14 | if (has_error()) { |
11095 | 0 | if (!this->error_->IsInitialized()) return false; |
11096 | 0 | } |
11097 | 14 | if (has_checkpoint()) { |
11098 | 14 | if (!this->checkpoint_->IsInitialized()) return false0 ; |
11099 | 14 | } |
11100 | 14 | return true; |
11101 | 14 | } |
11102 | | |
11103 | 0 | void GetCheckpointResponsePB::Swap(GetCheckpointResponsePB* other) { |
11104 | 0 | if (other == this) return; |
11105 | 0 | InternalSwap(other); |
11106 | 0 | } |
11107 | 0 | void GetCheckpointResponsePB::InternalSwap(GetCheckpointResponsePB* other) { |
11108 | 0 | using std::swap; |
11109 | 0 | swap(error_, other->error_); |
11110 | 0 | swap(checkpoint_, other->checkpoint_); |
11111 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11112 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11113 | 0 | swap(_cached_size_, other->_cached_size_); |
11114 | 0 | } |
11115 | | |
11116 | 0 | ::google::protobuf::Metadata GetCheckpointResponsePB::GetMetadata() const { |
11117 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11118 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
11119 | 0 | } |
11120 | | |
11121 | | |
11122 | | // =================================================================== |
11123 | | |
11124 | 16.4k | void UpdateCdcReplicatedIndexRequestPB::InitAsDefaultInstance() { |
11125 | 16.4k | } |
11126 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11127 | | const int UpdateCdcReplicatedIndexRequestPB::kTabletIdFieldNumber; |
11128 | | const int UpdateCdcReplicatedIndexRequestPB::kReplicatedIndexFieldNumber; |
11129 | | const int UpdateCdcReplicatedIndexRequestPB::kReplicatedTermFieldNumber; |
11130 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11131 | | |
11132 | | UpdateCdcReplicatedIndexRequestPB::UpdateCdcReplicatedIndexRequestPB() |
11133 | 16.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11134 | 16.9k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11135 | 438 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexRequestPB(); |
11136 | 438 | } |
11137 | 16.9k | SharedCtor(); |
11138 | | // @@protoc_insertion_point(constructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11139 | 16.9k | } |
11140 | | UpdateCdcReplicatedIndexRequestPB::UpdateCdcReplicatedIndexRequestPB(const UpdateCdcReplicatedIndexRequestPB& from) |
11141 | | : ::google::protobuf::Message(), |
11142 | | _internal_metadata_(NULL), |
11143 | | _has_bits_(from._has_bits_), |
11144 | 0 | _cached_size_(0) { |
11145 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11146 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11147 | 0 | if (from.has_tablet_id()) { |
11148 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
11149 | 0 | } |
11150 | 0 | ::memcpy(&replicated_index_, &from.replicated_index_, |
11151 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&replicated_term_) - |
11152 | 0 | reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_)); |
11153 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11154 | 0 | } |
11155 | | |
11156 | 16.9k | void UpdateCdcReplicatedIndexRequestPB::SharedCtor() { |
11157 | 16.9k | _cached_size_ = 0; |
11158 | 16.9k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11159 | 16.9k | ::memset(&replicated_index_, 0, static_cast<size_t>( |
11160 | 16.9k | reinterpret_cast<char*>(&replicated_term_) - |
11161 | 16.9k | reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_)); |
11162 | 16.9k | } |
11163 | | |
11164 | 438 | UpdateCdcReplicatedIndexRequestPB::~UpdateCdcReplicatedIndexRequestPB() { |
11165 | | // @@protoc_insertion_point(destructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11166 | 438 | SharedDtor(); |
11167 | 438 | } |
11168 | | |
11169 | 438 | void UpdateCdcReplicatedIndexRequestPB::SharedDtor() { |
11170 | 438 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11171 | 438 | } |
11172 | | |
11173 | 0 | void UpdateCdcReplicatedIndexRequestPB::SetCachedSize(int size) const { |
11174 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11175 | 0 | _cached_size_ = size; |
11176 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11177 | 0 | } |
11178 | 0 | const ::google::protobuf::Descriptor* UpdateCdcReplicatedIndexRequestPB::descriptor() { |
11179 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11180 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11181 | 0 | } |
11182 | | |
11183 | 0 | const UpdateCdcReplicatedIndexRequestPB& UpdateCdcReplicatedIndexRequestPB::default_instance() { |
11184 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexRequestPB(); |
11185 | 0 | return *internal_default_instance(); |
11186 | 0 | } |
11187 | | |
11188 | 0 | UpdateCdcReplicatedIndexRequestPB* UpdateCdcReplicatedIndexRequestPB::New(::google::protobuf::Arena* arena) const { |
11189 | 0 | UpdateCdcReplicatedIndexRequestPB* n = new UpdateCdcReplicatedIndexRequestPB; |
11190 | 0 | if (arena != NULL) { |
11191 | 0 | arena->Own(n); |
11192 | 0 | } |
11193 | 0 | return n; |
11194 | 0 | } |
11195 | | |
11196 | 219 | void UpdateCdcReplicatedIndexRequestPB::Clear() { |
11197 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11198 | 219 | ::google::protobuf::uint32 cached_has_bits = 0; |
11199 | | // Prevent compiler warnings about cached_has_bits being unused |
11200 | 219 | (void) cached_has_bits; |
11201 | | |
11202 | 219 | cached_has_bits = _has_bits_[0]; |
11203 | 219 | if (cached_has_bits & 0x00000001u) { |
11204 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
11205 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
11206 | 0 | } |
11207 | 219 | if (cached_has_bits & 6u) { |
11208 | 0 | ::memset(&replicated_index_, 0, static_cast<size_t>( |
11209 | 0 | reinterpret_cast<char*>(&replicated_term_) - |
11210 | 0 | reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_)); |
11211 | 0 | } |
11212 | 219 | _has_bits_.Clear(); |
11213 | 219 | _internal_metadata_.Clear(); |
11214 | 219 | } |
11215 | | |
11216 | | bool UpdateCdcReplicatedIndexRequestPB::MergePartialFromCodedStream( |
11217 | 219 | ::google::protobuf::io::CodedInputStream* input) { |
11218 | 657 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
11219 | 219 | ::google::protobuf::uint32 tag; |
11220 | | // @@protoc_insertion_point(parse_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11221 | 876 | for (;;) { |
11222 | 876 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11223 | 876 | tag = p.first; |
11224 | 876 | if (!p.second) goto handle_unusual219 ; |
11225 | 657 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11226 | | // optional bytes tablet_id = 1; |
11227 | 219 | case 1: { |
11228 | 219 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11229 | 219 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11230 | 219 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11231 | 219 | input, this->mutable_tablet_id())); |
11232 | 219 | } else { |
11233 | 0 | goto handle_unusual; |
11234 | 0 | } |
11235 | 219 | break; |
11236 | 219 | } |
11237 | | |
11238 | | // optional int64 replicated_index = 2; |
11239 | 219 | case 2: { |
11240 | 219 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11241 | 219 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
11242 | 219 | set_has_replicated_index(); |
11243 | 219 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11244 | 219 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
11245 | 219 | input, &replicated_index_))); |
11246 | 219 | } else { |
11247 | 0 | goto handle_unusual; |
11248 | 0 | } |
11249 | 219 | break; |
11250 | 219 | } |
11251 | | |
11252 | | // optional int64 replicated_term = 3; |
11253 | 219 | case 3: { |
11254 | 219 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11255 | 219 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
11256 | 219 | set_has_replicated_term(); |
11257 | 219 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11258 | 219 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
11259 | 219 | input, &replicated_term_))); |
11260 | 219 | } else { |
11261 | 0 | goto handle_unusual; |
11262 | 0 | } |
11263 | 219 | break; |
11264 | 219 | } |
11265 | | |
11266 | 219 | default: { |
11267 | 219 | handle_unusual: |
11268 | 219 | if (tag == 0) { |
11269 | 219 | goto success; |
11270 | 219 | } |
11271 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11272 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11273 | 0 | break; |
11274 | 0 | } |
11275 | 657 | } |
11276 | 657 | } |
11277 | 219 | success: |
11278 | | // @@protoc_insertion_point(parse_success:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11279 | 219 | return true; |
11280 | 0 | failure: |
11281 | | // @@protoc_insertion_point(parse_failure:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11282 | 0 | return false; |
11283 | 219 | #undef DO_ |
11284 | 219 | } |
11285 | | |
11286 | | void UpdateCdcReplicatedIndexRequestPB::SerializeWithCachedSizes( |
11287 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11288 | | // @@protoc_insertion_point(serialize_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11289 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11290 | 0 | (void) cached_has_bits; |
11291 | |
|
11292 | 0 | cached_has_bits = _has_bits_[0]; |
11293 | | // optional bytes tablet_id = 1; |
11294 | 0 | if (cached_has_bits & 0x00000001u) { |
11295 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
11296 | 0 | 1, this->tablet_id(), output); |
11297 | 0 | } |
11298 | | |
11299 | | // optional int64 replicated_index = 2; |
11300 | 0 | if (cached_has_bits & 0x00000002u) { |
11301 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->replicated_index(), output); |
11302 | 0 | } |
11303 | | |
11304 | | // optional int64 replicated_term = 3; |
11305 | 0 | if (cached_has_bits & 0x00000004u) { |
11306 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->replicated_term(), output); |
11307 | 0 | } |
11308 | |
|
11309 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11310 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11311 | 0 | _internal_metadata_.unknown_fields(), output); |
11312 | 0 | } |
11313 | | // @@protoc_insertion_point(serialize_end:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11314 | 0 | } |
11315 | | |
11316 | | ::google::protobuf::uint8* UpdateCdcReplicatedIndexRequestPB::InternalSerializeWithCachedSizesToArray( |
11317 | 219 | bool deterministic, ::google::protobuf::uint8* target) const { |
11318 | 219 | (void)deterministic; // Unused |
11319 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11320 | 219 | ::google::protobuf::uint32 cached_has_bits = 0; |
11321 | 219 | (void) cached_has_bits; |
11322 | | |
11323 | 219 | cached_has_bits = _has_bits_[0]; |
11324 | | // optional bytes tablet_id = 1; |
11325 | 219 | if (cached_has_bits & 0x00000001u) { |
11326 | 219 | target = |
11327 | 219 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
11328 | 219 | 1, this->tablet_id(), target); |
11329 | 219 | } |
11330 | | |
11331 | | // optional int64 replicated_index = 2; |
11332 | 219 | if (cached_has_bits & 0x00000002u) { |
11333 | 219 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->replicated_index(), target); |
11334 | 219 | } |
11335 | | |
11336 | | // optional int64 replicated_term = 3; |
11337 | 219 | if (cached_has_bits & 0x00000004u) { |
11338 | 219 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->replicated_term(), target); |
11339 | 219 | } |
11340 | | |
11341 | 219 | if (_internal_metadata_.have_unknown_fields()) { |
11342 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11343 | 0 | _internal_metadata_.unknown_fields(), target); |
11344 | 0 | } |
11345 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11346 | 219 | return target; |
11347 | 219 | } |
11348 | | |
11349 | 438 | size_t UpdateCdcReplicatedIndexRequestPB::ByteSizeLong() const { |
11350 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11351 | 438 | size_t total_size = 0; |
11352 | | |
11353 | 438 | if (_internal_metadata_.have_unknown_fields()) { |
11354 | 0 | total_size += |
11355 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11356 | 0 | _internal_metadata_.unknown_fields()); |
11357 | 0 | } |
11358 | 438 | if (_has_bits_[0 / 32] & 7u) { |
11359 | | // optional bytes tablet_id = 1; |
11360 | 438 | if (has_tablet_id()) { |
11361 | 438 | total_size += 1 + |
11362 | 438 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
11363 | 438 | this->tablet_id()); |
11364 | 438 | } |
11365 | | |
11366 | | // optional int64 replicated_index = 2; |
11367 | 438 | if (has_replicated_index()) { |
11368 | 438 | total_size += 1 + |
11369 | 438 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
11370 | 438 | this->replicated_index()); |
11371 | 438 | } |
11372 | | |
11373 | | // optional int64 replicated_term = 3; |
11374 | 438 | if (has_replicated_term()) { |
11375 | 438 | total_size += 1 + |
11376 | 438 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
11377 | 438 | this->replicated_term()); |
11378 | 438 | } |
11379 | | |
11380 | 438 | } |
11381 | 438 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11382 | 438 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11383 | 438 | _cached_size_ = cached_size; |
11384 | 438 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11385 | 438 | return total_size; |
11386 | 438 | } |
11387 | | |
11388 | 0 | void UpdateCdcReplicatedIndexRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
11389 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11390 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11391 | 0 | const UpdateCdcReplicatedIndexRequestPB* source = |
11392 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCdcReplicatedIndexRequestPB>( |
11393 | 0 | &from); |
11394 | 0 | if (source == NULL) { |
11395 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11396 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11397 | 0 | } else { |
11398 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11399 | 0 | MergeFrom(*source); |
11400 | 0 | } |
11401 | 0 | } |
11402 | | |
11403 | 0 | void UpdateCdcReplicatedIndexRequestPB::MergeFrom(const UpdateCdcReplicatedIndexRequestPB& from) { |
11404 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11405 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11406 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11407 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11408 | 0 | (void) cached_has_bits; |
11409 | |
|
11410 | 0 | cached_has_bits = from._has_bits_[0]; |
11411 | 0 | if (cached_has_bits & 7u) { |
11412 | 0 | if (cached_has_bits & 0x00000001u) { |
11413 | 0 | set_has_tablet_id(); |
11414 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
11415 | 0 | } |
11416 | 0 | if (cached_has_bits & 0x00000002u) { |
11417 | 0 | replicated_index_ = from.replicated_index_; |
11418 | 0 | } |
11419 | 0 | if (cached_has_bits & 0x00000004u) { |
11420 | 0 | replicated_term_ = from.replicated_term_; |
11421 | 0 | } |
11422 | 0 | _has_bits_[0] |= cached_has_bits; |
11423 | 0 | } |
11424 | 0 | } |
11425 | | |
11426 | 0 | void UpdateCdcReplicatedIndexRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
11427 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11428 | 0 | if (&from == this) return; |
11429 | 0 | Clear(); |
11430 | 0 | MergeFrom(from); |
11431 | 0 | } |
11432 | | |
11433 | 0 | void UpdateCdcReplicatedIndexRequestPB::CopyFrom(const UpdateCdcReplicatedIndexRequestPB& from) { |
11434 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB) |
11435 | 0 | if (&from == this) return; |
11436 | 0 | Clear(); |
11437 | 0 | MergeFrom(from); |
11438 | 0 | } |
11439 | | |
11440 | 438 | bool UpdateCdcReplicatedIndexRequestPB::IsInitialized() const { |
11441 | 438 | return true; |
11442 | 438 | } |
11443 | | |
11444 | 0 | void UpdateCdcReplicatedIndexRequestPB::Swap(UpdateCdcReplicatedIndexRequestPB* other) { |
11445 | 0 | if (other == this) return; |
11446 | 0 | InternalSwap(other); |
11447 | 0 | } |
11448 | 0 | void UpdateCdcReplicatedIndexRequestPB::InternalSwap(UpdateCdcReplicatedIndexRequestPB* other) { |
11449 | 0 | using std::swap; |
11450 | 0 | tablet_id_.Swap(&other->tablet_id_); |
11451 | 0 | swap(replicated_index_, other->replicated_index_); |
11452 | 0 | swap(replicated_term_, other->replicated_term_); |
11453 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11454 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11455 | 0 | swap(_cached_size_, other->_cached_size_); |
11456 | 0 | } |
11457 | | |
11458 | 219 | ::google::protobuf::Metadata UpdateCdcReplicatedIndexRequestPB::GetMetadata() const { |
11459 | 219 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11460 | 219 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
11461 | 219 | } |
11462 | | |
11463 | | |
11464 | | // =================================================================== |
11465 | | |
11466 | 16.4k | void UpdateCdcReplicatedIndexResponsePB::InitAsDefaultInstance() { |
11467 | 16.4k | ::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
11468 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
11469 | 16.4k | } |
11470 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11471 | | const int UpdateCdcReplicatedIndexResponsePB::kErrorFieldNumber; |
11472 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11473 | | |
11474 | | UpdateCdcReplicatedIndexResponsePB::UpdateCdcReplicatedIndexResponsePB() |
11475 | 16.9k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11476 | 16.9k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11477 | 438 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexResponsePB(); |
11478 | 438 | } |
11479 | 16.9k | SharedCtor(); |
11480 | | // @@protoc_insertion_point(constructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11481 | 16.9k | } |
11482 | | UpdateCdcReplicatedIndexResponsePB::UpdateCdcReplicatedIndexResponsePB(const UpdateCdcReplicatedIndexResponsePB& from) |
11483 | | : ::google::protobuf::Message(), |
11484 | | _internal_metadata_(NULL), |
11485 | | _has_bits_(from._has_bits_), |
11486 | 0 | _cached_size_(0) { |
11487 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11488 | 0 | if (from.has_error()) { |
11489 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
11490 | 0 | } else { |
11491 | 0 | error_ = NULL; |
11492 | 0 | } |
11493 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11494 | 0 | } |
11495 | | |
11496 | 16.9k | void UpdateCdcReplicatedIndexResponsePB::SharedCtor() { |
11497 | 16.9k | _cached_size_ = 0; |
11498 | 16.9k | error_ = NULL; |
11499 | 16.9k | } |
11500 | | |
11501 | 438 | UpdateCdcReplicatedIndexResponsePB::~UpdateCdcReplicatedIndexResponsePB() { |
11502 | | // @@protoc_insertion_point(destructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11503 | 438 | SharedDtor(); |
11504 | 438 | } |
11505 | | |
11506 | 438 | void UpdateCdcReplicatedIndexResponsePB::SharedDtor() { |
11507 | 438 | if (this != internal_default_instance()) delete error_; |
11508 | 438 | } |
11509 | | |
11510 | 0 | void UpdateCdcReplicatedIndexResponsePB::SetCachedSize(int size) const { |
11511 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11512 | 0 | _cached_size_ = size; |
11513 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11514 | 0 | } |
11515 | 0 | const ::google::protobuf::Descriptor* UpdateCdcReplicatedIndexResponsePB::descriptor() { |
11516 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11517 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11518 | 0 | } |
11519 | | |
11520 | 0 | const UpdateCdcReplicatedIndexResponsePB& UpdateCdcReplicatedIndexResponsePB::default_instance() { |
11521 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexResponsePB(); |
11522 | 0 | return *internal_default_instance(); |
11523 | 0 | } |
11524 | | |
11525 | 0 | UpdateCdcReplicatedIndexResponsePB* UpdateCdcReplicatedIndexResponsePB::New(::google::protobuf::Arena* arena) const { |
11526 | 0 | UpdateCdcReplicatedIndexResponsePB* n = new UpdateCdcReplicatedIndexResponsePB; |
11527 | 0 | if (arena != NULL) { |
11528 | 0 | arena->Own(n); |
11529 | 0 | } |
11530 | 0 | return n; |
11531 | 0 | } |
11532 | | |
11533 | 219 | void UpdateCdcReplicatedIndexResponsePB::Clear() { |
11534 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11535 | 219 | ::google::protobuf::uint32 cached_has_bits = 0; |
11536 | | // Prevent compiler warnings about cached_has_bits being unused |
11537 | 219 | (void) cached_has_bits; |
11538 | | |
11539 | 219 | cached_has_bits = _has_bits_[0]; |
11540 | 219 | if (cached_has_bits & 0x00000001u) { |
11541 | 0 | GOOGLE_DCHECK(error_ != NULL); |
11542 | 0 | error_->Clear(); |
11543 | 0 | } |
11544 | 219 | _has_bits_.Clear(); |
11545 | 219 | _internal_metadata_.Clear(); |
11546 | 219 | } |
11547 | | |
11548 | | bool UpdateCdcReplicatedIndexResponsePB::MergePartialFromCodedStream( |
11549 | 219 | ::google::protobuf::io::CodedInputStream* input) { |
11550 | 219 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
11551 | 219 | ::google::protobuf::uint32 tag; |
11552 | | // @@protoc_insertion_point(parse_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11553 | 219 | for (;;) { |
11554 | 219 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11555 | 219 | tag = p.first; |
11556 | 219 | if (!p.second) goto handle_unusual; |
11557 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11558 | | // optional .yb.cdc.CDCErrorPB error = 1; |
11559 | 0 | case 1: { |
11560 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11561 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11562 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
11563 | 0 | input, mutable_error())); |
11564 | 0 | } else { |
11565 | 0 | goto handle_unusual; |
11566 | 0 | } |
11567 | 0 | break; |
11568 | 0 | } |
11569 | | |
11570 | 0 | default: { |
11571 | 219 | handle_unusual: |
11572 | 219 | if (tag == 0) { |
11573 | 219 | goto success; |
11574 | 219 | } |
11575 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11576 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11577 | 0 | break; |
11578 | 0 | } |
11579 | 0 | } |
11580 | 0 | } |
11581 | 219 | success: |
11582 | | // @@protoc_insertion_point(parse_success:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11583 | 219 | return true; |
11584 | 0 | failure: |
11585 | | // @@protoc_insertion_point(parse_failure:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11586 | 0 | return false; |
11587 | 219 | #undef DO_ |
11588 | 219 | } |
11589 | | |
11590 | | void UpdateCdcReplicatedIndexResponsePB::SerializeWithCachedSizes( |
11591 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11592 | | // @@protoc_insertion_point(serialize_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11593 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11594 | 0 | (void) cached_has_bits; |
11595 | |
|
11596 | 0 | cached_has_bits = _has_bits_[0]; |
11597 | | // optional .yb.cdc.CDCErrorPB error = 1; |
11598 | 0 | if (cached_has_bits & 0x00000001u) { |
11599 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11600 | 0 | 1, *this->error_, output); |
11601 | 0 | } |
11602 | |
|
11603 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11604 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11605 | 0 | _internal_metadata_.unknown_fields(), output); |
11606 | 0 | } |
11607 | | // @@protoc_insertion_point(serialize_end:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11608 | 0 | } |
11609 | | |
11610 | | ::google::protobuf::uint8* UpdateCdcReplicatedIndexResponsePB::InternalSerializeWithCachedSizesToArray( |
11611 | 219 | bool deterministic, ::google::protobuf::uint8* target) const { |
11612 | 219 | (void)deterministic; // Unused |
11613 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11614 | 219 | ::google::protobuf::uint32 cached_has_bits = 0; |
11615 | 219 | (void) cached_has_bits; |
11616 | | |
11617 | 219 | cached_has_bits = _has_bits_[0]; |
11618 | | // optional .yb.cdc.CDCErrorPB error = 1; |
11619 | 219 | if (cached_has_bits & 0x00000001u) { |
11620 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
11621 | 0 | InternalWriteMessageToArray( |
11622 | 0 | 1, *this->error_, deterministic, target); |
11623 | 0 | } |
11624 | | |
11625 | 219 | if (_internal_metadata_.have_unknown_fields()) { |
11626 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11627 | 0 | _internal_metadata_.unknown_fields(), target); |
11628 | 0 | } |
11629 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11630 | 219 | return target; |
11631 | 219 | } |
11632 | | |
11633 | 438 | size_t UpdateCdcReplicatedIndexResponsePB::ByteSizeLong() const { |
11634 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11635 | 438 | size_t total_size = 0; |
11636 | | |
11637 | 438 | if (_internal_metadata_.have_unknown_fields()) { |
11638 | 0 | total_size += |
11639 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11640 | 0 | _internal_metadata_.unknown_fields()); |
11641 | 0 | } |
11642 | | // optional .yb.cdc.CDCErrorPB error = 1; |
11643 | 438 | if (has_error()) { |
11644 | 0 | total_size += 1 + |
11645 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11646 | 0 | *this->error_); |
11647 | 0 | } |
11648 | | |
11649 | 438 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11650 | 438 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11651 | 438 | _cached_size_ = cached_size; |
11652 | 438 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11653 | 438 | return total_size; |
11654 | 438 | } |
11655 | | |
11656 | 0 | void UpdateCdcReplicatedIndexResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
11657 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11658 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11659 | 0 | const UpdateCdcReplicatedIndexResponsePB* source = |
11660 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCdcReplicatedIndexResponsePB>( |
11661 | 0 | &from); |
11662 | 0 | if (source == NULL) { |
11663 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11664 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11665 | 0 | } else { |
11666 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11667 | 0 | MergeFrom(*source); |
11668 | 0 | } |
11669 | 0 | } |
11670 | | |
11671 | 0 | void UpdateCdcReplicatedIndexResponsePB::MergeFrom(const UpdateCdcReplicatedIndexResponsePB& from) { |
11672 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11673 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11674 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11675 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11676 | 0 | (void) cached_has_bits; |
11677 | |
|
11678 | 0 | if (from.has_error()) { |
11679 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
11680 | 0 | } |
11681 | 0 | } |
11682 | | |
11683 | 0 | void UpdateCdcReplicatedIndexResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
11684 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11685 | 0 | if (&from == this) return; |
11686 | 0 | Clear(); |
11687 | 0 | MergeFrom(from); |
11688 | 0 | } |
11689 | | |
11690 | 0 | void UpdateCdcReplicatedIndexResponsePB::CopyFrom(const UpdateCdcReplicatedIndexResponsePB& from) { |
11691 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB) |
11692 | 0 | if (&from == this) return; |
11693 | 0 | Clear(); |
11694 | 0 | MergeFrom(from); |
11695 | 0 | } |
11696 | | |
11697 | 438 | bool UpdateCdcReplicatedIndexResponsePB::IsInitialized() const { |
11698 | 438 | if (has_error()) { |
11699 | 0 | if (!this->error_->IsInitialized()) return false; |
11700 | 0 | } |
11701 | 438 | return true; |
11702 | 438 | } |
11703 | | |
11704 | 0 | void UpdateCdcReplicatedIndexResponsePB::Swap(UpdateCdcReplicatedIndexResponsePB* other) { |
11705 | 0 | if (other == this) return; |
11706 | 0 | InternalSwap(other); |
11707 | 0 | } |
11708 | 0 | void UpdateCdcReplicatedIndexResponsePB::InternalSwap(UpdateCdcReplicatedIndexResponsePB* other) { |
11709 | 0 | using std::swap; |
11710 | 0 | swap(error_, other->error_); |
11711 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11712 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11713 | 0 | swap(_cached_size_, other->_cached_size_); |
11714 | 0 | } |
11715 | | |
11716 | 0 | ::google::protobuf::Metadata UpdateCdcReplicatedIndexResponsePB::GetMetadata() const { |
11717 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11718 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
11719 | 0 | } |
11720 | | |
11721 | | |
11722 | | // =================================================================== |
11723 | | |
11724 | 16.4k | void BootstrapProducerRequestPB::InitAsDefaultInstance() { |
11725 | 16.4k | } |
11726 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11727 | | const int BootstrapProducerRequestPB::kTableIdsFieldNumber; |
11728 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11729 | | |
11730 | | BootstrapProducerRequestPB::BootstrapProducerRequestPB() |
11731 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11732 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11733 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerRequestPB(); |
11734 | 0 | } |
11735 | 16.4k | SharedCtor(); |
11736 | | // @@protoc_insertion_point(constructor:yb.cdc.BootstrapProducerRequestPB) |
11737 | 16.4k | } |
11738 | | BootstrapProducerRequestPB::BootstrapProducerRequestPB(const BootstrapProducerRequestPB& from) |
11739 | | : ::google::protobuf::Message(), |
11740 | | _internal_metadata_(NULL), |
11741 | | _has_bits_(from._has_bits_), |
11742 | | _cached_size_(0), |
11743 | 0 | table_ids_(from.table_ids_) { |
11744 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11745 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.BootstrapProducerRequestPB) |
11746 | 0 | } |
11747 | | |
11748 | 16.4k | void BootstrapProducerRequestPB::SharedCtor() { |
11749 | 16.4k | _cached_size_ = 0; |
11750 | 16.4k | } |
11751 | | |
11752 | 0 | BootstrapProducerRequestPB::~BootstrapProducerRequestPB() { |
11753 | | // @@protoc_insertion_point(destructor:yb.cdc.BootstrapProducerRequestPB) |
11754 | 0 | SharedDtor(); |
11755 | 0 | } |
11756 | | |
11757 | 0 | void BootstrapProducerRequestPB::SharedDtor() { |
11758 | 0 | } |
11759 | | |
11760 | 0 | void BootstrapProducerRequestPB::SetCachedSize(int size) const { |
11761 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11762 | 0 | _cached_size_ = size; |
11763 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11764 | 0 | } |
11765 | 0 | const ::google::protobuf::Descriptor* BootstrapProducerRequestPB::descriptor() { |
11766 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11767 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11768 | 0 | } |
11769 | | |
11770 | 0 | const BootstrapProducerRequestPB& BootstrapProducerRequestPB::default_instance() { |
11771 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerRequestPB(); |
11772 | 0 | return *internal_default_instance(); |
11773 | 0 | } |
11774 | | |
11775 | 0 | BootstrapProducerRequestPB* BootstrapProducerRequestPB::New(::google::protobuf::Arena* arena) const { |
11776 | 0 | BootstrapProducerRequestPB* n = new BootstrapProducerRequestPB; |
11777 | 0 | if (arena != NULL) { |
11778 | 0 | arena->Own(n); |
11779 | 0 | } |
11780 | 0 | return n; |
11781 | 0 | } |
11782 | | |
11783 | 0 | void BootstrapProducerRequestPB::Clear() { |
11784 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.BootstrapProducerRequestPB) |
11785 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11786 | | // Prevent compiler warnings about cached_has_bits being unused |
11787 | 0 | (void) cached_has_bits; |
11788 | |
|
11789 | 0 | table_ids_.Clear(); |
11790 | 0 | _has_bits_.Clear(); |
11791 | 0 | _internal_metadata_.Clear(); |
11792 | 0 | } |
11793 | | |
11794 | | bool BootstrapProducerRequestPB::MergePartialFromCodedStream( |
11795 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
11796 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11797 | 0 | ::google::protobuf::uint32 tag; |
11798 | | // @@protoc_insertion_point(parse_start:yb.cdc.BootstrapProducerRequestPB) |
11799 | 0 | for (;;) { |
11800 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11801 | 0 | tag = p.first; |
11802 | 0 | if (!p.second) goto handle_unusual; |
11803 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11804 | | // repeated string table_ids = 1; |
11805 | 0 | case 1: { |
11806 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11807 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11808 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
11809 | 0 | input, this->add_table_ids())); |
11810 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11811 | 0 | this->table_ids(this->table_ids_size() - 1).data(), |
11812 | 0 | static_cast<int>(this->table_ids(this->table_ids_size() - 1).length()), |
11813 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
11814 | 0 | "yb.cdc.BootstrapProducerRequestPB.table_ids"); |
11815 | 0 | } else { |
11816 | 0 | goto handle_unusual; |
11817 | 0 | } |
11818 | 0 | break; |
11819 | 0 | } |
11820 | | |
11821 | 0 | default: { |
11822 | 0 | handle_unusual: |
11823 | 0 | if (tag == 0) { |
11824 | 0 | goto success; |
11825 | 0 | } |
11826 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11827 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11828 | 0 | break; |
11829 | 0 | } |
11830 | 0 | } |
11831 | 0 | } |
11832 | 0 | success: |
11833 | | // @@protoc_insertion_point(parse_success:yb.cdc.BootstrapProducerRequestPB) |
11834 | 0 | return true; |
11835 | 0 | failure: |
11836 | | // @@protoc_insertion_point(parse_failure:yb.cdc.BootstrapProducerRequestPB) |
11837 | 0 | return false; |
11838 | 0 | #undef DO_ |
11839 | 0 | } |
11840 | | |
11841 | | void BootstrapProducerRequestPB::SerializeWithCachedSizes( |
11842 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11843 | | // @@protoc_insertion_point(serialize_start:yb.cdc.BootstrapProducerRequestPB) |
11844 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11845 | 0 | (void) cached_has_bits; |
11846 | | |
11847 | | // repeated string table_ids = 1; |
11848 | 0 | for (int i = 0, n = this->table_ids_size(); i < n; i++) { |
11849 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11850 | 0 | this->table_ids(i).data(), static_cast<int>(this->table_ids(i).length()), |
11851 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11852 | 0 | "yb.cdc.BootstrapProducerRequestPB.table_ids"); |
11853 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
11854 | 0 | 1, this->table_ids(i), output); |
11855 | 0 | } |
11856 | |
|
11857 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11858 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11859 | 0 | _internal_metadata_.unknown_fields(), output); |
11860 | 0 | } |
11861 | | // @@protoc_insertion_point(serialize_end:yb.cdc.BootstrapProducerRequestPB) |
11862 | 0 | } |
11863 | | |
11864 | | ::google::protobuf::uint8* BootstrapProducerRequestPB::InternalSerializeWithCachedSizesToArray( |
11865 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
11866 | 0 | (void)deterministic; // Unused |
11867 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.BootstrapProducerRequestPB) |
11868 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11869 | 0 | (void) cached_has_bits; |
11870 | | |
11871 | | // repeated string table_ids = 1; |
11872 | 0 | for (int i = 0, n = this->table_ids_size(); i < n; i++) { |
11873 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11874 | 0 | this->table_ids(i).data(), static_cast<int>(this->table_ids(i).length()), |
11875 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11876 | 0 | "yb.cdc.BootstrapProducerRequestPB.table_ids"); |
11877 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
11878 | 0 | WriteStringToArray(1, this->table_ids(i), target); |
11879 | 0 | } |
11880 | |
|
11881 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11882 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11883 | 0 | _internal_metadata_.unknown_fields(), target); |
11884 | 0 | } |
11885 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.BootstrapProducerRequestPB) |
11886 | 0 | return target; |
11887 | 0 | } |
11888 | | |
11889 | 0 | size_t BootstrapProducerRequestPB::ByteSizeLong() const { |
11890 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.BootstrapProducerRequestPB) |
11891 | 0 | size_t total_size = 0; |
11892 | |
|
11893 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11894 | 0 | total_size += |
11895 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11896 | 0 | _internal_metadata_.unknown_fields()); |
11897 | 0 | } |
11898 | | // repeated string table_ids = 1; |
11899 | 0 | total_size += 1 * |
11900 | 0 | ::google::protobuf::internal::FromIntSize(this->table_ids_size()); |
11901 | 0 | for (int i = 0, n = this->table_ids_size(); i < n; i++) { |
11902 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
11903 | 0 | this->table_ids(i)); |
11904 | 0 | } |
11905 | |
|
11906 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11907 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11908 | 0 | _cached_size_ = cached_size; |
11909 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11910 | 0 | return total_size; |
11911 | 0 | } |
11912 | | |
11913 | 0 | void BootstrapProducerRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
11914 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.BootstrapProducerRequestPB) |
11915 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11916 | 0 | const BootstrapProducerRequestPB* source = |
11917 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const BootstrapProducerRequestPB>( |
11918 | 0 | &from); |
11919 | 0 | if (source == NULL) { |
11920 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.BootstrapProducerRequestPB) |
11921 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11922 | 0 | } else { |
11923 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.BootstrapProducerRequestPB) |
11924 | 0 | MergeFrom(*source); |
11925 | 0 | } |
11926 | 0 | } |
11927 | | |
11928 | 0 | void BootstrapProducerRequestPB::MergeFrom(const BootstrapProducerRequestPB& from) { |
11929 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.BootstrapProducerRequestPB) |
11930 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11931 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11932 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11933 | 0 | (void) cached_has_bits; |
11934 | |
|
11935 | 0 | table_ids_.MergeFrom(from.table_ids_); |
11936 | 0 | } |
11937 | | |
11938 | 0 | void BootstrapProducerRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
11939 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.BootstrapProducerRequestPB) |
11940 | 0 | if (&from == this) return; |
11941 | 0 | Clear(); |
11942 | 0 | MergeFrom(from); |
11943 | 0 | } |
11944 | | |
11945 | 0 | void BootstrapProducerRequestPB::CopyFrom(const BootstrapProducerRequestPB& from) { |
11946 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.BootstrapProducerRequestPB) |
11947 | 0 | if (&from == this) return; |
11948 | 0 | Clear(); |
11949 | 0 | MergeFrom(from); |
11950 | 0 | } |
11951 | | |
11952 | 0 | bool BootstrapProducerRequestPB::IsInitialized() const { |
11953 | 0 | return true; |
11954 | 0 | } |
11955 | | |
11956 | 0 | void BootstrapProducerRequestPB::Swap(BootstrapProducerRequestPB* other) { |
11957 | 0 | if (other == this) return; |
11958 | 0 | InternalSwap(other); |
11959 | 0 | } |
11960 | 0 | void BootstrapProducerRequestPB::InternalSwap(BootstrapProducerRequestPB* other) { |
11961 | 0 | using std::swap; |
11962 | 0 | table_ids_.InternalSwap(&other->table_ids_); |
11963 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11964 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11965 | 0 | swap(_cached_size_, other->_cached_size_); |
11966 | 0 | } |
11967 | | |
11968 | 0 | ::google::protobuf::Metadata BootstrapProducerRequestPB::GetMetadata() const { |
11969 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
11970 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
11971 | 0 | } |
11972 | | |
11973 | | |
11974 | | // =================================================================== |
11975 | | |
11976 | 16.4k | void BootstrapProducerResponsePB::InitAsDefaultInstance() { |
11977 | 16.4k | ::yb::cdc::_BootstrapProducerResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
11978 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
11979 | 16.4k | } |
11980 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11981 | | const int BootstrapProducerResponsePB::kErrorFieldNumber; |
11982 | | const int BootstrapProducerResponsePB::kCdcBootstrapIdsFieldNumber; |
11983 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11984 | | |
11985 | | BootstrapProducerResponsePB::BootstrapProducerResponsePB() |
11986 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11987 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11988 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerResponsePB(); |
11989 | 0 | } |
11990 | 16.4k | SharedCtor(); |
11991 | | // @@protoc_insertion_point(constructor:yb.cdc.BootstrapProducerResponsePB) |
11992 | 16.4k | } |
11993 | | BootstrapProducerResponsePB::BootstrapProducerResponsePB(const BootstrapProducerResponsePB& from) |
11994 | | : ::google::protobuf::Message(), |
11995 | | _internal_metadata_(NULL), |
11996 | | _has_bits_(from._has_bits_), |
11997 | | _cached_size_(0), |
11998 | 0 | cdc_bootstrap_ids_(from.cdc_bootstrap_ids_) { |
11999 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12000 | 0 | if (from.has_error()) { |
12001 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
12002 | 0 | } else { |
12003 | 0 | error_ = NULL; |
12004 | 0 | } |
12005 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.BootstrapProducerResponsePB) |
12006 | 0 | } |
12007 | | |
12008 | 16.4k | void BootstrapProducerResponsePB::SharedCtor() { |
12009 | 16.4k | _cached_size_ = 0; |
12010 | 16.4k | error_ = NULL; |
12011 | 16.4k | } |
12012 | | |
12013 | 0 | BootstrapProducerResponsePB::~BootstrapProducerResponsePB() { |
12014 | | // @@protoc_insertion_point(destructor:yb.cdc.BootstrapProducerResponsePB) |
12015 | 0 | SharedDtor(); |
12016 | 0 | } |
12017 | | |
12018 | 0 | void BootstrapProducerResponsePB::SharedDtor() { |
12019 | 0 | if (this != internal_default_instance()) delete error_; |
12020 | 0 | } |
12021 | | |
12022 | 0 | void BootstrapProducerResponsePB::SetCachedSize(int size) const { |
12023 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12024 | 0 | _cached_size_ = size; |
12025 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12026 | 0 | } |
12027 | 0 | const ::google::protobuf::Descriptor* BootstrapProducerResponsePB::descriptor() { |
12028 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12029 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12030 | 0 | } |
12031 | | |
12032 | 0 | const BootstrapProducerResponsePB& BootstrapProducerResponsePB::default_instance() { |
12033 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerResponsePB(); |
12034 | 0 | return *internal_default_instance(); |
12035 | 0 | } |
12036 | | |
12037 | 0 | BootstrapProducerResponsePB* BootstrapProducerResponsePB::New(::google::protobuf::Arena* arena) const { |
12038 | 0 | BootstrapProducerResponsePB* n = new BootstrapProducerResponsePB; |
12039 | 0 | if (arena != NULL) { |
12040 | 0 | arena->Own(n); |
12041 | 0 | } |
12042 | 0 | return n; |
12043 | 0 | } |
12044 | | |
12045 | 0 | void BootstrapProducerResponsePB::Clear() { |
12046 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.BootstrapProducerResponsePB) |
12047 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12048 | | // Prevent compiler warnings about cached_has_bits being unused |
12049 | 0 | (void) cached_has_bits; |
12050 | |
|
12051 | 0 | cdc_bootstrap_ids_.Clear(); |
12052 | 0 | cached_has_bits = _has_bits_[0]; |
12053 | 0 | if (cached_has_bits & 0x00000001u) { |
12054 | 0 | GOOGLE_DCHECK(error_ != NULL); |
12055 | 0 | error_->Clear(); |
12056 | 0 | } |
12057 | 0 | _has_bits_.Clear(); |
12058 | 0 | _internal_metadata_.Clear(); |
12059 | 0 | } |
12060 | | |
12061 | | bool BootstrapProducerResponsePB::MergePartialFromCodedStream( |
12062 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
12063 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12064 | 0 | ::google::protobuf::uint32 tag; |
12065 | | // @@protoc_insertion_point(parse_start:yb.cdc.BootstrapProducerResponsePB) |
12066 | 0 | for (;;) { |
12067 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12068 | 0 | tag = p.first; |
12069 | 0 | if (!p.second) goto handle_unusual; |
12070 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12071 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12072 | 0 | case 1: { |
12073 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12074 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12075 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12076 | 0 | input, mutable_error())); |
12077 | 0 | } else { |
12078 | 0 | goto handle_unusual; |
12079 | 0 | } |
12080 | 0 | break; |
12081 | 0 | } |
12082 | | |
12083 | | // repeated bytes cdc_bootstrap_ids = 2; |
12084 | 0 | case 2: { |
12085 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12086 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
12087 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
12088 | 0 | input, this->add_cdc_bootstrap_ids())); |
12089 | 0 | } else { |
12090 | 0 | goto handle_unusual; |
12091 | 0 | } |
12092 | 0 | break; |
12093 | 0 | } |
12094 | | |
12095 | 0 | default: { |
12096 | 0 | handle_unusual: |
12097 | 0 | if (tag == 0) { |
12098 | 0 | goto success; |
12099 | 0 | } |
12100 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12101 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12102 | 0 | break; |
12103 | 0 | } |
12104 | 0 | } |
12105 | 0 | } |
12106 | 0 | success: |
12107 | | // @@protoc_insertion_point(parse_success:yb.cdc.BootstrapProducerResponsePB) |
12108 | 0 | return true; |
12109 | 0 | failure: |
12110 | | // @@protoc_insertion_point(parse_failure:yb.cdc.BootstrapProducerResponsePB) |
12111 | 0 | return false; |
12112 | 0 | #undef DO_ |
12113 | 0 | } |
12114 | | |
12115 | | void BootstrapProducerResponsePB::SerializeWithCachedSizes( |
12116 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
12117 | | // @@protoc_insertion_point(serialize_start:yb.cdc.BootstrapProducerResponsePB) |
12118 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12119 | 0 | (void) cached_has_bits; |
12120 | |
|
12121 | 0 | cached_has_bits = _has_bits_[0]; |
12122 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12123 | 0 | if (cached_has_bits & 0x00000001u) { |
12124 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
12125 | 0 | 1, *this->error_, output); |
12126 | 0 | } |
12127 | | |
12128 | | // repeated bytes cdc_bootstrap_ids = 2; |
12129 | 0 | for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) { |
12130 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
12131 | 0 | 2, this->cdc_bootstrap_ids(i), output); |
12132 | 0 | } |
12133 | |
|
12134 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12135 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12136 | 0 | _internal_metadata_.unknown_fields(), output); |
12137 | 0 | } |
12138 | | // @@protoc_insertion_point(serialize_end:yb.cdc.BootstrapProducerResponsePB) |
12139 | 0 | } |
12140 | | |
12141 | | ::google::protobuf::uint8* BootstrapProducerResponsePB::InternalSerializeWithCachedSizesToArray( |
12142 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
12143 | 0 | (void)deterministic; // Unused |
12144 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.BootstrapProducerResponsePB) |
12145 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12146 | 0 | (void) cached_has_bits; |
12147 | |
|
12148 | 0 | cached_has_bits = _has_bits_[0]; |
12149 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12150 | 0 | if (cached_has_bits & 0x00000001u) { |
12151 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
12152 | 0 | InternalWriteMessageToArray( |
12153 | 0 | 1, *this->error_, deterministic, target); |
12154 | 0 | } |
12155 | | |
12156 | | // repeated bytes cdc_bootstrap_ids = 2; |
12157 | 0 | for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) { |
12158 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
12159 | 0 | WriteBytesToArray(2, this->cdc_bootstrap_ids(i), target); |
12160 | 0 | } |
12161 | |
|
12162 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12163 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12164 | 0 | _internal_metadata_.unknown_fields(), target); |
12165 | 0 | } |
12166 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.BootstrapProducerResponsePB) |
12167 | 0 | return target; |
12168 | 0 | } |
12169 | | |
12170 | 0 | size_t BootstrapProducerResponsePB::ByteSizeLong() const { |
12171 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.BootstrapProducerResponsePB) |
12172 | 0 | size_t total_size = 0; |
12173 | |
|
12174 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12175 | 0 | total_size += |
12176 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12177 | 0 | _internal_metadata_.unknown_fields()); |
12178 | 0 | } |
12179 | | // repeated bytes cdc_bootstrap_ids = 2; |
12180 | 0 | total_size += 1 * |
12181 | 0 | ::google::protobuf::internal::FromIntSize(this->cdc_bootstrap_ids_size()); |
12182 | 0 | for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) { |
12183 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
12184 | 0 | this->cdc_bootstrap_ids(i)); |
12185 | 0 | } |
12186 | | |
12187 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12188 | 0 | if (has_error()) { |
12189 | 0 | total_size += 1 + |
12190 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
12191 | 0 | *this->error_); |
12192 | 0 | } |
12193 | |
|
12194 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12195 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12196 | 0 | _cached_size_ = cached_size; |
12197 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12198 | 0 | return total_size; |
12199 | 0 | } |
12200 | | |
12201 | 0 | void BootstrapProducerResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
12202 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.BootstrapProducerResponsePB) |
12203 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12204 | 0 | const BootstrapProducerResponsePB* source = |
12205 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const BootstrapProducerResponsePB>( |
12206 | 0 | &from); |
12207 | 0 | if (source == NULL) { |
12208 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.BootstrapProducerResponsePB) |
12209 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12210 | 0 | } else { |
12211 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.BootstrapProducerResponsePB) |
12212 | 0 | MergeFrom(*source); |
12213 | 0 | } |
12214 | 0 | } |
12215 | | |
12216 | 0 | void BootstrapProducerResponsePB::MergeFrom(const BootstrapProducerResponsePB& from) { |
12217 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.BootstrapProducerResponsePB) |
12218 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12219 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12220 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12221 | 0 | (void) cached_has_bits; |
12222 | |
|
12223 | 0 | cdc_bootstrap_ids_.MergeFrom(from.cdc_bootstrap_ids_); |
12224 | 0 | if (from.has_error()) { |
12225 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
12226 | 0 | } |
12227 | 0 | } |
12228 | | |
12229 | 0 | void BootstrapProducerResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
12230 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.BootstrapProducerResponsePB) |
12231 | 0 | if (&from == this) return; |
12232 | 0 | Clear(); |
12233 | 0 | MergeFrom(from); |
12234 | 0 | } |
12235 | | |
12236 | 0 | void BootstrapProducerResponsePB::CopyFrom(const BootstrapProducerResponsePB& from) { |
12237 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.BootstrapProducerResponsePB) |
12238 | 0 | if (&from == this) return; |
12239 | 0 | Clear(); |
12240 | 0 | MergeFrom(from); |
12241 | 0 | } |
12242 | | |
12243 | 0 | bool BootstrapProducerResponsePB::IsInitialized() const { |
12244 | 0 | if (has_error()) { |
12245 | 0 | if (!this->error_->IsInitialized()) return false; |
12246 | 0 | } |
12247 | 0 | return true; |
12248 | 0 | } |
12249 | | |
12250 | 0 | void BootstrapProducerResponsePB::Swap(BootstrapProducerResponsePB* other) { |
12251 | 0 | if (other == this) return; |
12252 | 0 | InternalSwap(other); |
12253 | 0 | } |
12254 | 0 | void BootstrapProducerResponsePB::InternalSwap(BootstrapProducerResponsePB* other) { |
12255 | 0 | using std::swap; |
12256 | 0 | cdc_bootstrap_ids_.InternalSwap(&other->cdc_bootstrap_ids_); |
12257 | 0 | swap(error_, other->error_); |
12258 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
12259 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12260 | 0 | swap(_cached_size_, other->_cached_size_); |
12261 | 0 | } |
12262 | | |
12263 | 0 | ::google::protobuf::Metadata BootstrapProducerResponsePB::GetMetadata() const { |
12264 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12265 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
12266 | 0 | } |
12267 | | |
12268 | | |
12269 | | // =================================================================== |
12270 | | |
12271 | 16.4k | void GetLatestEntryOpIdRequestPB::InitAsDefaultInstance() { |
12272 | 16.4k | } |
12273 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12274 | | const int GetLatestEntryOpIdRequestPB::kTabletIdFieldNumber; |
12275 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12276 | | |
12277 | | GetLatestEntryOpIdRequestPB::GetLatestEntryOpIdRequestPB() |
12278 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12279 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
12280 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdRequestPB(); |
12281 | 0 | } |
12282 | 16.4k | SharedCtor(); |
12283 | | // @@protoc_insertion_point(constructor:yb.cdc.GetLatestEntryOpIdRequestPB) |
12284 | 16.4k | } |
12285 | | GetLatestEntryOpIdRequestPB::GetLatestEntryOpIdRequestPB(const GetLatestEntryOpIdRequestPB& from) |
12286 | | : ::google::protobuf::Message(), |
12287 | | _internal_metadata_(NULL), |
12288 | | _has_bits_(from._has_bits_), |
12289 | 0 | _cached_size_(0) { |
12290 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12291 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12292 | 0 | if (from.has_tablet_id()) { |
12293 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
12294 | 0 | } |
12295 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetLatestEntryOpIdRequestPB) |
12296 | 0 | } |
12297 | | |
12298 | 16.4k | void GetLatestEntryOpIdRequestPB::SharedCtor() { |
12299 | 16.4k | _cached_size_ = 0; |
12300 | 16.4k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12301 | 16.4k | } |
12302 | | |
12303 | 0 | GetLatestEntryOpIdRequestPB::~GetLatestEntryOpIdRequestPB() { |
12304 | | // @@protoc_insertion_point(destructor:yb.cdc.GetLatestEntryOpIdRequestPB) |
12305 | 0 | SharedDtor(); |
12306 | 0 | } |
12307 | | |
12308 | 0 | void GetLatestEntryOpIdRequestPB::SharedDtor() { |
12309 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12310 | 0 | } |
12311 | | |
12312 | 0 | void GetLatestEntryOpIdRequestPB::SetCachedSize(int size) const { |
12313 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12314 | 0 | _cached_size_ = size; |
12315 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12316 | 0 | } |
12317 | 0 | const ::google::protobuf::Descriptor* GetLatestEntryOpIdRequestPB::descriptor() { |
12318 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12319 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12320 | 0 | } |
12321 | | |
12322 | 0 | const GetLatestEntryOpIdRequestPB& GetLatestEntryOpIdRequestPB::default_instance() { |
12323 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdRequestPB(); |
12324 | 0 | return *internal_default_instance(); |
12325 | 0 | } |
12326 | | |
12327 | 0 | GetLatestEntryOpIdRequestPB* GetLatestEntryOpIdRequestPB::New(::google::protobuf::Arena* arena) const { |
12328 | 0 | GetLatestEntryOpIdRequestPB* n = new GetLatestEntryOpIdRequestPB; |
12329 | 0 | if (arena != NULL) { |
12330 | 0 | arena->Own(n); |
12331 | 0 | } |
12332 | 0 | return n; |
12333 | 0 | } |
12334 | | |
12335 | 0 | void GetLatestEntryOpIdRequestPB::Clear() { |
12336 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12337 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12338 | | // Prevent compiler warnings about cached_has_bits being unused |
12339 | 0 | (void) cached_has_bits; |
12340 | |
|
12341 | 0 | cached_has_bits = _has_bits_[0]; |
12342 | 0 | if (cached_has_bits & 0x00000001u) { |
12343 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
12344 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
12345 | 0 | } |
12346 | 0 | _has_bits_.Clear(); |
12347 | 0 | _internal_metadata_.Clear(); |
12348 | 0 | } |
12349 | | |
12350 | | bool GetLatestEntryOpIdRequestPB::MergePartialFromCodedStream( |
12351 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
12352 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12353 | 0 | ::google::protobuf::uint32 tag; |
12354 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12355 | 0 | for (;;) { |
12356 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12357 | 0 | tag = p.first; |
12358 | 0 | if (!p.second) goto handle_unusual; |
12359 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12360 | | // optional bytes tablet_id = 1; |
12361 | 0 | case 1: { |
12362 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12363 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12364 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
12365 | 0 | input, this->mutable_tablet_id())); |
12366 | 0 | } else { |
12367 | 0 | goto handle_unusual; |
12368 | 0 | } |
12369 | 0 | break; |
12370 | 0 | } |
12371 | | |
12372 | 0 | default: { |
12373 | 0 | handle_unusual: |
12374 | 0 | if (tag == 0) { |
12375 | 0 | goto success; |
12376 | 0 | } |
12377 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12378 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12379 | 0 | break; |
12380 | 0 | } |
12381 | 0 | } |
12382 | 0 | } |
12383 | 0 | success: |
12384 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetLatestEntryOpIdRequestPB) |
12385 | 0 | return true; |
12386 | 0 | failure: |
12387 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetLatestEntryOpIdRequestPB) |
12388 | 0 | return false; |
12389 | 0 | #undef DO_ |
12390 | 0 | } |
12391 | | |
12392 | | void GetLatestEntryOpIdRequestPB::SerializeWithCachedSizes( |
12393 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
12394 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12395 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12396 | 0 | (void) cached_has_bits; |
12397 | |
|
12398 | 0 | cached_has_bits = _has_bits_[0]; |
12399 | | // optional bytes tablet_id = 1; |
12400 | 0 | if (cached_has_bits & 0x00000001u) { |
12401 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
12402 | 0 | 1, this->tablet_id(), output); |
12403 | 0 | } |
12404 | |
|
12405 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12406 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12407 | 0 | _internal_metadata_.unknown_fields(), output); |
12408 | 0 | } |
12409 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetLatestEntryOpIdRequestPB) |
12410 | 0 | } |
12411 | | |
12412 | | ::google::protobuf::uint8* GetLatestEntryOpIdRequestPB::InternalSerializeWithCachedSizesToArray( |
12413 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
12414 | 0 | (void)deterministic; // Unused |
12415 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12416 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12417 | 0 | (void) cached_has_bits; |
12418 | |
|
12419 | 0 | cached_has_bits = _has_bits_[0]; |
12420 | | // optional bytes tablet_id = 1; |
12421 | 0 | if (cached_has_bits & 0x00000001u) { |
12422 | 0 | target = |
12423 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
12424 | 0 | 1, this->tablet_id(), target); |
12425 | 0 | } |
12426 | |
|
12427 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12428 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12429 | 0 | _internal_metadata_.unknown_fields(), target); |
12430 | 0 | } |
12431 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetLatestEntryOpIdRequestPB) |
12432 | 0 | return target; |
12433 | 0 | } |
12434 | | |
12435 | 0 | size_t GetLatestEntryOpIdRequestPB::ByteSizeLong() const { |
12436 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12437 | 0 | size_t total_size = 0; |
12438 | |
|
12439 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12440 | 0 | total_size += |
12441 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12442 | 0 | _internal_metadata_.unknown_fields()); |
12443 | 0 | } |
12444 | | // optional bytes tablet_id = 1; |
12445 | 0 | if (has_tablet_id()) { |
12446 | 0 | total_size += 1 + |
12447 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
12448 | 0 | this->tablet_id()); |
12449 | 0 | } |
12450 | |
|
12451 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12452 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12453 | 0 | _cached_size_ = cached_size; |
12454 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12455 | 0 | return total_size; |
12456 | 0 | } |
12457 | | |
12458 | 0 | void GetLatestEntryOpIdRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
12459 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12460 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12461 | 0 | const GetLatestEntryOpIdRequestPB* source = |
12462 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetLatestEntryOpIdRequestPB>( |
12463 | 0 | &from); |
12464 | 0 | if (source == NULL) { |
12465 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetLatestEntryOpIdRequestPB) |
12466 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12467 | 0 | } else { |
12468 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetLatestEntryOpIdRequestPB) |
12469 | 0 | MergeFrom(*source); |
12470 | 0 | } |
12471 | 0 | } |
12472 | | |
12473 | 0 | void GetLatestEntryOpIdRequestPB::MergeFrom(const GetLatestEntryOpIdRequestPB& from) { |
12474 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12475 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12476 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12477 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12478 | 0 | (void) cached_has_bits; |
12479 | |
|
12480 | 0 | if (from.has_tablet_id()) { |
12481 | 0 | set_has_tablet_id(); |
12482 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
12483 | 0 | } |
12484 | 0 | } |
12485 | | |
12486 | 0 | void GetLatestEntryOpIdRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
12487 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12488 | 0 | if (&from == this) return; |
12489 | 0 | Clear(); |
12490 | 0 | MergeFrom(from); |
12491 | 0 | } |
12492 | | |
12493 | 0 | void GetLatestEntryOpIdRequestPB::CopyFrom(const GetLatestEntryOpIdRequestPB& from) { |
12494 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetLatestEntryOpIdRequestPB) |
12495 | 0 | if (&from == this) return; |
12496 | 0 | Clear(); |
12497 | 0 | MergeFrom(from); |
12498 | 0 | } |
12499 | | |
12500 | 0 | bool GetLatestEntryOpIdRequestPB::IsInitialized() const { |
12501 | 0 | return true; |
12502 | 0 | } |
12503 | | |
12504 | 0 | void GetLatestEntryOpIdRequestPB::Swap(GetLatestEntryOpIdRequestPB* other) { |
12505 | 0 | if (other == this) return; |
12506 | 0 | InternalSwap(other); |
12507 | 0 | } |
12508 | 0 | void GetLatestEntryOpIdRequestPB::InternalSwap(GetLatestEntryOpIdRequestPB* other) { |
12509 | 0 | using std::swap; |
12510 | 0 | tablet_id_.Swap(&other->tablet_id_); |
12511 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
12512 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12513 | 0 | swap(_cached_size_, other->_cached_size_); |
12514 | 0 | } |
12515 | | |
12516 | 0 | ::google::protobuf::Metadata GetLatestEntryOpIdRequestPB::GetMetadata() const { |
12517 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12518 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
12519 | 0 | } |
12520 | | |
12521 | | |
12522 | | // =================================================================== |
12523 | | |
12524 | 16.4k | void GetLatestEntryOpIdResponsePB::InitAsDefaultInstance() { |
12525 | 16.4k | ::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
12526 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
12527 | 16.4k | ::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_._instance.get_mutable()->op_id_ = const_cast< ::yb::OpIdPB*>( |
12528 | 16.4k | ::yb::OpIdPB::internal_default_instance()); |
12529 | 16.4k | } |
12530 | 0 | void GetLatestEntryOpIdResponsePB::clear_op_id() { |
12531 | 0 | if (op_id_ != NULL) op_id_->Clear(); |
12532 | 0 | clear_has_op_id(); |
12533 | 0 | } |
12534 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12535 | | const int GetLatestEntryOpIdResponsePB::kErrorFieldNumber; |
12536 | | const int GetLatestEntryOpIdResponsePB::kOpIdFieldNumber; |
12537 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12538 | | |
12539 | | GetLatestEntryOpIdResponsePB::GetLatestEntryOpIdResponsePB() |
12540 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12541 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
12542 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdResponsePB(); |
12543 | 0 | } |
12544 | 16.4k | SharedCtor(); |
12545 | | // @@protoc_insertion_point(constructor:yb.cdc.GetLatestEntryOpIdResponsePB) |
12546 | 16.4k | } |
12547 | | GetLatestEntryOpIdResponsePB::GetLatestEntryOpIdResponsePB(const GetLatestEntryOpIdResponsePB& from) |
12548 | | : ::google::protobuf::Message(), |
12549 | | _internal_metadata_(NULL), |
12550 | | _has_bits_(from._has_bits_), |
12551 | 0 | _cached_size_(0) { |
12552 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12553 | 0 | if (from.has_error()) { |
12554 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
12555 | 0 | } else { |
12556 | 0 | error_ = NULL; |
12557 | 0 | } |
12558 | 0 | if (from.has_op_id()) { |
12559 | 0 | op_id_ = new ::yb::OpIdPB(*from.op_id_); |
12560 | 0 | } else { |
12561 | 0 | op_id_ = NULL; |
12562 | 0 | } |
12563 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetLatestEntryOpIdResponsePB) |
12564 | 0 | } |
12565 | | |
12566 | 16.4k | void GetLatestEntryOpIdResponsePB::SharedCtor() { |
12567 | 16.4k | _cached_size_ = 0; |
12568 | 16.4k | ::memset(&error_, 0, static_cast<size_t>( |
12569 | 16.4k | reinterpret_cast<char*>(&op_id_) - |
12570 | 16.4k | reinterpret_cast<char*>(&error_)) + sizeof(op_id_)); |
12571 | 16.4k | } |
12572 | | |
12573 | 0 | GetLatestEntryOpIdResponsePB::~GetLatestEntryOpIdResponsePB() { |
12574 | | // @@protoc_insertion_point(destructor:yb.cdc.GetLatestEntryOpIdResponsePB) |
12575 | 0 | SharedDtor(); |
12576 | 0 | } |
12577 | | |
12578 | 0 | void GetLatestEntryOpIdResponsePB::SharedDtor() { |
12579 | 0 | if (this != internal_default_instance()) delete error_; |
12580 | 0 | if (this != internal_default_instance()) delete op_id_; |
12581 | 0 | } |
12582 | | |
12583 | 0 | void GetLatestEntryOpIdResponsePB::SetCachedSize(int size) const { |
12584 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12585 | 0 | _cached_size_ = size; |
12586 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12587 | 0 | } |
12588 | 0 | const ::google::protobuf::Descriptor* GetLatestEntryOpIdResponsePB::descriptor() { |
12589 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12590 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12591 | 0 | } |
12592 | | |
12593 | 0 | const GetLatestEntryOpIdResponsePB& GetLatestEntryOpIdResponsePB::default_instance() { |
12594 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdResponsePB(); |
12595 | 0 | return *internal_default_instance(); |
12596 | 0 | } |
12597 | | |
12598 | 0 | GetLatestEntryOpIdResponsePB* GetLatestEntryOpIdResponsePB::New(::google::protobuf::Arena* arena) const { |
12599 | 0 | GetLatestEntryOpIdResponsePB* n = new GetLatestEntryOpIdResponsePB; |
12600 | 0 | if (arena != NULL) { |
12601 | 0 | arena->Own(n); |
12602 | 0 | } |
12603 | 0 | return n; |
12604 | 0 | } |
12605 | | |
12606 | 0 | void GetLatestEntryOpIdResponsePB::Clear() { |
12607 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12608 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12609 | | // Prevent compiler warnings about cached_has_bits being unused |
12610 | 0 | (void) cached_has_bits; |
12611 | |
|
12612 | 0 | cached_has_bits = _has_bits_[0]; |
12613 | 0 | if (cached_has_bits & 3u) { |
12614 | 0 | if (cached_has_bits & 0x00000001u) { |
12615 | 0 | GOOGLE_DCHECK(error_ != NULL); |
12616 | 0 | error_->Clear(); |
12617 | 0 | } |
12618 | 0 | if (cached_has_bits & 0x00000002u) { |
12619 | 0 | GOOGLE_DCHECK(op_id_ != NULL); |
12620 | 0 | op_id_->Clear(); |
12621 | 0 | } |
12622 | 0 | } |
12623 | 0 | _has_bits_.Clear(); |
12624 | 0 | _internal_metadata_.Clear(); |
12625 | 0 | } |
12626 | | |
12627 | | bool GetLatestEntryOpIdResponsePB::MergePartialFromCodedStream( |
12628 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
12629 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12630 | 0 | ::google::protobuf::uint32 tag; |
12631 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12632 | 0 | for (;;) { |
12633 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12634 | 0 | tag = p.first; |
12635 | 0 | if (!p.second) goto handle_unusual; |
12636 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12637 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12638 | 0 | case 1: { |
12639 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12640 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12641 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12642 | 0 | input, mutable_error())); |
12643 | 0 | } else { |
12644 | 0 | goto handle_unusual; |
12645 | 0 | } |
12646 | 0 | break; |
12647 | 0 | } |
12648 | | |
12649 | | // optional .yb.OpIdPB op_id = 2; |
12650 | 0 | case 2: { |
12651 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12652 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
12653 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12654 | 0 | input, mutable_op_id())); |
12655 | 0 | } else { |
12656 | 0 | goto handle_unusual; |
12657 | 0 | } |
12658 | 0 | break; |
12659 | 0 | } |
12660 | | |
12661 | 0 | default: { |
12662 | 0 | handle_unusual: |
12663 | 0 | if (tag == 0) { |
12664 | 0 | goto success; |
12665 | 0 | } |
12666 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12667 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12668 | 0 | break; |
12669 | 0 | } |
12670 | 0 | } |
12671 | 0 | } |
12672 | 0 | success: |
12673 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetLatestEntryOpIdResponsePB) |
12674 | 0 | return true; |
12675 | 0 | failure: |
12676 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetLatestEntryOpIdResponsePB) |
12677 | 0 | return false; |
12678 | 0 | #undef DO_ |
12679 | 0 | } |
12680 | | |
12681 | | void GetLatestEntryOpIdResponsePB::SerializeWithCachedSizes( |
12682 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
12683 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12684 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12685 | 0 | (void) cached_has_bits; |
12686 | |
|
12687 | 0 | cached_has_bits = _has_bits_[0]; |
12688 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12689 | 0 | if (cached_has_bits & 0x00000001u) { |
12690 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
12691 | 0 | 1, *this->error_, output); |
12692 | 0 | } |
12693 | | |
12694 | | // optional .yb.OpIdPB op_id = 2; |
12695 | 0 | if (cached_has_bits & 0x00000002u) { |
12696 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
12697 | 0 | 2, *this->op_id_, output); |
12698 | 0 | } |
12699 | |
|
12700 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12701 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12702 | 0 | _internal_metadata_.unknown_fields(), output); |
12703 | 0 | } |
12704 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetLatestEntryOpIdResponsePB) |
12705 | 0 | } |
12706 | | |
12707 | | ::google::protobuf::uint8* GetLatestEntryOpIdResponsePB::InternalSerializeWithCachedSizesToArray( |
12708 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
12709 | 0 | (void)deterministic; // Unused |
12710 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12711 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12712 | 0 | (void) cached_has_bits; |
12713 | |
|
12714 | 0 | cached_has_bits = _has_bits_[0]; |
12715 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12716 | 0 | if (cached_has_bits & 0x00000001u) { |
12717 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
12718 | 0 | InternalWriteMessageToArray( |
12719 | 0 | 1, *this->error_, deterministic, target); |
12720 | 0 | } |
12721 | | |
12722 | | // optional .yb.OpIdPB op_id = 2; |
12723 | 0 | if (cached_has_bits & 0x00000002u) { |
12724 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
12725 | 0 | InternalWriteMessageToArray( |
12726 | 0 | 2, *this->op_id_, deterministic, target); |
12727 | 0 | } |
12728 | |
|
12729 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12730 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12731 | 0 | _internal_metadata_.unknown_fields(), target); |
12732 | 0 | } |
12733 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetLatestEntryOpIdResponsePB) |
12734 | 0 | return target; |
12735 | 0 | } |
12736 | | |
12737 | 0 | size_t GetLatestEntryOpIdResponsePB::ByteSizeLong() const { |
12738 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12739 | 0 | size_t total_size = 0; |
12740 | |
|
12741 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
12742 | 0 | total_size += |
12743 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12744 | 0 | _internal_metadata_.unknown_fields()); |
12745 | 0 | } |
12746 | 0 | if (_has_bits_[0 / 32] & 3u) { |
12747 | | // optional .yb.cdc.CDCErrorPB error = 1; |
12748 | 0 | if (has_error()) { |
12749 | 0 | total_size += 1 + |
12750 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
12751 | 0 | *this->error_); |
12752 | 0 | } |
12753 | | |
12754 | | // optional .yb.OpIdPB op_id = 2; |
12755 | 0 | if (has_op_id()) { |
12756 | 0 | total_size += 1 + |
12757 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
12758 | 0 | *this->op_id_); |
12759 | 0 | } |
12760 | |
|
12761 | 0 | } |
12762 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12763 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12764 | 0 | _cached_size_ = cached_size; |
12765 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12766 | 0 | return total_size; |
12767 | 0 | } |
12768 | | |
12769 | 0 | void GetLatestEntryOpIdResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
12770 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12771 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12772 | 0 | const GetLatestEntryOpIdResponsePB* source = |
12773 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetLatestEntryOpIdResponsePB>( |
12774 | 0 | &from); |
12775 | 0 | if (source == NULL) { |
12776 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetLatestEntryOpIdResponsePB) |
12777 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12778 | 0 | } else { |
12779 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetLatestEntryOpIdResponsePB) |
12780 | 0 | MergeFrom(*source); |
12781 | 0 | } |
12782 | 0 | } |
12783 | | |
12784 | 0 | void GetLatestEntryOpIdResponsePB::MergeFrom(const GetLatestEntryOpIdResponsePB& from) { |
12785 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12786 | 0 | GOOGLE_DCHECK_NE(&from, this); |
12787 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12788 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12789 | 0 | (void) cached_has_bits; |
12790 | |
|
12791 | 0 | cached_has_bits = from._has_bits_[0]; |
12792 | 0 | if (cached_has_bits & 3u) { |
12793 | 0 | if (cached_has_bits & 0x00000001u) { |
12794 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
12795 | 0 | } |
12796 | 0 | if (cached_has_bits & 0x00000002u) { |
12797 | 0 | mutable_op_id()->::yb::OpIdPB::MergeFrom(from.op_id()); |
12798 | 0 | } |
12799 | 0 | } |
12800 | 0 | } |
12801 | | |
12802 | 0 | void GetLatestEntryOpIdResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
12803 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12804 | 0 | if (&from == this) return; |
12805 | 0 | Clear(); |
12806 | 0 | MergeFrom(from); |
12807 | 0 | } |
12808 | | |
12809 | 0 | void GetLatestEntryOpIdResponsePB::CopyFrom(const GetLatestEntryOpIdResponsePB& from) { |
12810 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetLatestEntryOpIdResponsePB) |
12811 | 0 | if (&from == this) return; |
12812 | 0 | Clear(); |
12813 | 0 | MergeFrom(from); |
12814 | 0 | } |
12815 | | |
12816 | 0 | bool GetLatestEntryOpIdResponsePB::IsInitialized() const { |
12817 | 0 | if (has_error()) { |
12818 | 0 | if (!this->error_->IsInitialized()) return false; |
12819 | 0 | } |
12820 | 0 | if (has_op_id()) { |
12821 | 0 | if (!this->op_id_->IsInitialized()) return false; |
12822 | 0 | } |
12823 | 0 | return true; |
12824 | 0 | } |
12825 | | |
12826 | 0 | void GetLatestEntryOpIdResponsePB::Swap(GetLatestEntryOpIdResponsePB* other) { |
12827 | 0 | if (other == this) return; |
12828 | 0 | InternalSwap(other); |
12829 | 0 | } |
12830 | 0 | void GetLatestEntryOpIdResponsePB::InternalSwap(GetLatestEntryOpIdResponsePB* other) { |
12831 | 0 | using std::swap; |
12832 | 0 | swap(error_, other->error_); |
12833 | 0 | swap(op_id_, other->op_id_); |
12834 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
12835 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12836 | 0 | swap(_cached_size_, other->_cached_size_); |
12837 | 0 | } |
12838 | | |
12839 | 0 | ::google::protobuf::Metadata GetLatestEntryOpIdResponsePB::GetMetadata() const { |
12840 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12841 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
12842 | 0 | } |
12843 | | |
12844 | | |
12845 | | // =================================================================== |
12846 | | |
12847 | 16.4k | void TableInfo::InitAsDefaultInstance() { |
12848 | 16.4k | } |
12849 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12850 | | const int TableInfo::kStreamIdFieldNumber; |
12851 | | const int TableInfo::kTableIdFieldNumber; |
12852 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12853 | | |
12854 | | TableInfo::TableInfo() |
12855 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12856 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
12857 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo(); |
12858 | 0 | } |
12859 | 16.4k | SharedCtor(); |
12860 | | // @@protoc_insertion_point(constructor:yb.cdc.TableInfo) |
12861 | 16.4k | } |
12862 | | TableInfo::TableInfo(const TableInfo& from) |
12863 | | : ::google::protobuf::Message(), |
12864 | | _internal_metadata_(NULL), |
12865 | | _has_bits_(from._has_bits_), |
12866 | 0 | _cached_size_(0) { |
12867 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12868 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12869 | 0 | if (from.has_stream_id()) { |
12870 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
12871 | 0 | } |
12872 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12873 | 0 | if (from.has_table_id()) { |
12874 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
12875 | 0 | } |
12876 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.TableInfo) |
12877 | 0 | } |
12878 | | |
12879 | 16.4k | void TableInfo::SharedCtor() { |
12880 | 16.4k | _cached_size_ = 0; |
12881 | 16.4k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12882 | 16.4k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12883 | 16.4k | } |
12884 | | |
12885 | 0 | TableInfo::~TableInfo() { |
12886 | | // @@protoc_insertion_point(destructor:yb.cdc.TableInfo) |
12887 | 0 | SharedDtor(); |
12888 | 0 | } |
12889 | | |
12890 | 0 | void TableInfo::SharedDtor() { |
12891 | 0 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12892 | 0 | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12893 | 0 | } |
12894 | | |
12895 | 0 | void TableInfo::SetCachedSize(int size) const { |
12896 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12897 | 0 | _cached_size_ = size; |
12898 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12899 | 0 | } |
12900 | 0 | const ::google::protobuf::Descriptor* TableInfo::descriptor() { |
12901 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
12902 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12903 | 0 | } |
12904 | | |
12905 | 0 | const TableInfo& TableInfo::default_instance() { |
12906 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo(); |
12907 | 0 | return *internal_default_instance(); |
12908 | 0 | } |
12909 | | |
12910 | 0 | TableInfo* TableInfo::New(::google::protobuf::Arena* arena) const { |
12911 | 0 | TableInfo* n = new TableInfo; |
12912 | 0 | if (arena != NULL) { |
12913 | 0 | arena->Own(n); |
12914 | 0 | } |
12915 | 0 | return n; |
12916 | 0 | } |
12917 | | |
12918 | 0 | void TableInfo::Clear() { |
12919 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.TableInfo) |
12920 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12921 | | // Prevent compiler warnings about cached_has_bits being unused |
12922 | 0 | (void) cached_has_bits; |
12923 | |
|
12924 | 0 | cached_has_bits = _has_bits_[0]; |
12925 | 0 | if (cached_has_bits & 3u) { |
12926 | 0 | if (cached_has_bits & 0x00000001u) { |
12927 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
12928 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
12929 | 0 | } |
12930 | 0 | if (cached_has_bits & 0x00000002u) { |
12931 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
12932 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
12933 | 0 | } |
12934 | 0 | } |
12935 | 0 | _has_bits_.Clear(); |
12936 | 0 | _internal_metadata_.Clear(); |
12937 | 0 | } |
12938 | | |
12939 | | bool TableInfo::MergePartialFromCodedStream( |
12940 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
12941 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12942 | 0 | ::google::protobuf::uint32 tag; |
12943 | | // @@protoc_insertion_point(parse_start:yb.cdc.TableInfo) |
12944 | 0 | for (;;) { |
12945 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12946 | 0 | tag = p.first; |
12947 | 0 | if (!p.second) goto handle_unusual; |
12948 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12949 | | // optional bytes stream_id = 1; |
12950 | 0 | case 1: { |
12951 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12952 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12953 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
12954 | 0 | input, this->mutable_stream_id())); |
12955 | 0 | } else { |
12956 | 0 | goto handle_unusual; |
12957 | 0 | } |
12958 | 0 | break; |
12959 | 0 | } |
12960 | | |
12961 | | // optional bytes table_id = 2; |
12962 | 0 | case 2: { |
12963 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12964 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
12965 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
12966 | 0 | input, this->mutable_table_id())); |
12967 | 0 | } else { |
12968 | 0 | goto handle_unusual; |
12969 | 0 | } |
12970 | 0 | break; |
12971 | 0 | } |
12972 | | |
12973 | 0 | default: { |
12974 | 0 | handle_unusual: |
12975 | 0 | if (tag == 0) { |
12976 | 0 | goto success; |
12977 | 0 | } |
12978 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12979 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12980 | 0 | break; |
12981 | 0 | } |
12982 | 0 | } |
12983 | 0 | } |
12984 | 0 | success: |
12985 | | // @@protoc_insertion_point(parse_success:yb.cdc.TableInfo) |
12986 | 0 | return true; |
12987 | 0 | failure: |
12988 | | // @@protoc_insertion_point(parse_failure:yb.cdc.TableInfo) |
12989 | 0 | return false; |
12990 | 0 | #undef DO_ |
12991 | 0 | } |
12992 | | |
12993 | | void TableInfo::SerializeWithCachedSizes( |
12994 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
12995 | | // @@protoc_insertion_point(serialize_start:yb.cdc.TableInfo) |
12996 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
12997 | 0 | (void) cached_has_bits; |
12998 | |
|
12999 | 0 | cached_has_bits = _has_bits_[0]; |
13000 | | // optional bytes stream_id = 1; |
13001 | 0 | if (cached_has_bits & 0x00000001u) { |
13002 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13003 | 0 | 1, this->stream_id(), output); |
13004 | 0 | } |
13005 | | |
13006 | | // optional bytes table_id = 2; |
13007 | 0 | if (cached_has_bits & 0x00000002u) { |
13008 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13009 | 0 | 2, this->table_id(), output); |
13010 | 0 | } |
13011 | |
|
13012 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13013 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13014 | 0 | _internal_metadata_.unknown_fields(), output); |
13015 | 0 | } |
13016 | | // @@protoc_insertion_point(serialize_end:yb.cdc.TableInfo) |
13017 | 0 | } |
13018 | | |
13019 | | ::google::protobuf::uint8* TableInfo::InternalSerializeWithCachedSizesToArray( |
13020 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
13021 | 0 | (void)deterministic; // Unused |
13022 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.TableInfo) |
13023 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13024 | 0 | (void) cached_has_bits; |
13025 | |
|
13026 | 0 | cached_has_bits = _has_bits_[0]; |
13027 | | // optional bytes stream_id = 1; |
13028 | 0 | if (cached_has_bits & 0x00000001u) { |
13029 | 0 | target = |
13030 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
13031 | 0 | 1, this->stream_id(), target); |
13032 | 0 | } |
13033 | | |
13034 | | // optional bytes table_id = 2; |
13035 | 0 | if (cached_has_bits & 0x00000002u) { |
13036 | 0 | target = |
13037 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
13038 | 0 | 2, this->table_id(), target); |
13039 | 0 | } |
13040 | |
|
13041 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13042 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13043 | 0 | _internal_metadata_.unknown_fields(), target); |
13044 | 0 | } |
13045 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.TableInfo) |
13046 | 0 | return target; |
13047 | 0 | } |
13048 | | |
13049 | 0 | size_t TableInfo::ByteSizeLong() const { |
13050 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.TableInfo) |
13051 | 0 | size_t total_size = 0; |
13052 | |
|
13053 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13054 | 0 | total_size += |
13055 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13056 | 0 | _internal_metadata_.unknown_fields()); |
13057 | 0 | } |
13058 | 0 | if (_has_bits_[0 / 32] & 3u) { |
13059 | | // optional bytes stream_id = 1; |
13060 | 0 | if (has_stream_id()) { |
13061 | 0 | total_size += 1 + |
13062 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
13063 | 0 | this->stream_id()); |
13064 | 0 | } |
13065 | | |
13066 | | // optional bytes table_id = 2; |
13067 | 0 | if (has_table_id()) { |
13068 | 0 | total_size += 1 + |
13069 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
13070 | 0 | this->table_id()); |
13071 | 0 | } |
13072 | |
|
13073 | 0 | } |
13074 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
13075 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13076 | 0 | _cached_size_ = cached_size; |
13077 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13078 | 0 | return total_size; |
13079 | 0 | } |
13080 | | |
13081 | 0 | void TableInfo::MergeFrom(const ::google::protobuf::Message& from) { |
13082 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.TableInfo) |
13083 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13084 | 0 | const TableInfo* source = |
13085 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const TableInfo>( |
13086 | 0 | &from); |
13087 | 0 | if (source == NULL) { |
13088 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.TableInfo) |
13089 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13090 | 0 | } else { |
13091 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.TableInfo) |
13092 | 0 | MergeFrom(*source); |
13093 | 0 | } |
13094 | 0 | } |
13095 | | |
13096 | 0 | void TableInfo::MergeFrom(const TableInfo& from) { |
13097 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.TableInfo) |
13098 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13099 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13100 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13101 | 0 | (void) cached_has_bits; |
13102 | |
|
13103 | 0 | cached_has_bits = from._has_bits_[0]; |
13104 | 0 | if (cached_has_bits & 3u) { |
13105 | 0 | if (cached_has_bits & 0x00000001u) { |
13106 | 0 | set_has_stream_id(); |
13107 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
13108 | 0 | } |
13109 | 0 | if (cached_has_bits & 0x00000002u) { |
13110 | 0 | set_has_table_id(); |
13111 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
13112 | 0 | } |
13113 | 0 | } |
13114 | 0 | } |
13115 | | |
13116 | 0 | void TableInfo::CopyFrom(const ::google::protobuf::Message& from) { |
13117 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.TableInfo) |
13118 | 0 | if (&from == this) return; |
13119 | 0 | Clear(); |
13120 | 0 | MergeFrom(from); |
13121 | 0 | } |
13122 | | |
13123 | 0 | void TableInfo::CopyFrom(const TableInfo& from) { |
13124 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.TableInfo) |
13125 | 0 | if (&from == this) return; |
13126 | 0 | Clear(); |
13127 | 0 | MergeFrom(from); |
13128 | 0 | } |
13129 | | |
13130 | 0 | bool TableInfo::IsInitialized() const { |
13131 | 0 | return true; |
13132 | 0 | } |
13133 | | |
13134 | 0 | void TableInfo::Swap(TableInfo* other) { |
13135 | 0 | if (other == this) return; |
13136 | 0 | InternalSwap(other); |
13137 | 0 | } |
13138 | 0 | void TableInfo::InternalSwap(TableInfo* other) { |
13139 | 0 | using std::swap; |
13140 | 0 | stream_id_.Swap(&other->stream_id_); |
13141 | 0 | table_id_.Swap(&other->table_id_); |
13142 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
13143 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
13144 | 0 | swap(_cached_size_, other->_cached_size_); |
13145 | 0 | } |
13146 | | |
13147 | 0 | ::google::protobuf::Metadata TableInfo::GetMetadata() const { |
13148 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13149 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
13150 | 0 | } |
13151 | | |
13152 | | |
13153 | | // =================================================================== |
13154 | | |
13155 | 16.4k | void GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance() { |
13156 | 16.4k | } |
13157 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13158 | | const int GetCDCDBStreamInfoRequestPB::kDbStreamIdFieldNumber; |
13159 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13160 | | |
13161 | | GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB() |
13162 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13163 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
13164 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB(); |
13165 | 0 | } |
13166 | 16.4k | SharedCtor(); |
13167 | | // @@protoc_insertion_point(constructor:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13168 | 16.4k | } |
13169 | | GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB(const GetCDCDBStreamInfoRequestPB& from) |
13170 | | : ::google::protobuf::Message(), |
13171 | | _internal_metadata_(NULL), |
13172 | | _has_bits_(from._has_bits_), |
13173 | 0 | _cached_size_(0) { |
13174 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13175 | 0 | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13176 | 0 | if (from.has_db_stream_id()) { |
13177 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
13178 | 0 | } |
13179 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13180 | 0 | } |
13181 | | |
13182 | 16.4k | void GetCDCDBStreamInfoRequestPB::SharedCtor() { |
13183 | 16.4k | _cached_size_ = 0; |
13184 | 16.4k | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13185 | 16.4k | } |
13186 | | |
13187 | 0 | GetCDCDBStreamInfoRequestPB::~GetCDCDBStreamInfoRequestPB() { |
13188 | | // @@protoc_insertion_point(destructor:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13189 | 0 | SharedDtor(); |
13190 | 0 | } |
13191 | | |
13192 | 0 | void GetCDCDBStreamInfoRequestPB::SharedDtor() { |
13193 | 0 | db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13194 | 0 | } |
13195 | | |
13196 | 0 | void GetCDCDBStreamInfoRequestPB::SetCachedSize(int size) const { |
13197 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13198 | 0 | _cached_size_ = size; |
13199 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13200 | 0 | } |
13201 | 0 | const ::google::protobuf::Descriptor* GetCDCDBStreamInfoRequestPB::descriptor() { |
13202 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13203 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
13204 | 0 | } |
13205 | | |
13206 | 0 | const GetCDCDBStreamInfoRequestPB& GetCDCDBStreamInfoRequestPB::default_instance() { |
13207 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB(); |
13208 | 0 | return *internal_default_instance(); |
13209 | 0 | } |
13210 | | |
13211 | 0 | GetCDCDBStreamInfoRequestPB* GetCDCDBStreamInfoRequestPB::New(::google::protobuf::Arena* arena) const { |
13212 | 0 | GetCDCDBStreamInfoRequestPB* n = new GetCDCDBStreamInfoRequestPB; |
13213 | 0 | if (arena != NULL) { |
13214 | 0 | arena->Own(n); |
13215 | 0 | } |
13216 | 0 | return n; |
13217 | 0 | } |
13218 | | |
13219 | 0 | void GetCDCDBStreamInfoRequestPB::Clear() { |
13220 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13221 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13222 | | // Prevent compiler warnings about cached_has_bits being unused |
13223 | 0 | (void) cached_has_bits; |
13224 | |
|
13225 | 0 | cached_has_bits = _has_bits_[0]; |
13226 | 0 | if (cached_has_bits & 0x00000001u) { |
13227 | 0 | GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
13228 | 0 | (*db_stream_id_.UnsafeRawStringPointer())->clear(); |
13229 | 0 | } |
13230 | 0 | _has_bits_.Clear(); |
13231 | 0 | _internal_metadata_.Clear(); |
13232 | 0 | } |
13233 | | |
13234 | | bool GetCDCDBStreamInfoRequestPB::MergePartialFromCodedStream( |
13235 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
13236 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13237 | 0 | ::google::protobuf::uint32 tag; |
13238 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13239 | 0 | for (;;) { |
13240 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
13241 | 0 | tag = p.first; |
13242 | 0 | if (!p.second) goto handle_unusual; |
13243 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
13244 | | // optional bytes db_stream_id = 1; |
13245 | 0 | case 1: { |
13246 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13247 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
13248 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13249 | 0 | input, this->mutable_db_stream_id())); |
13250 | 0 | } else { |
13251 | 0 | goto handle_unusual; |
13252 | 0 | } |
13253 | 0 | break; |
13254 | 0 | } |
13255 | | |
13256 | 0 | default: { |
13257 | 0 | handle_unusual: |
13258 | 0 | if (tag == 0) { |
13259 | 0 | goto success; |
13260 | 0 | } |
13261 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13262 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13263 | 0 | break; |
13264 | 0 | } |
13265 | 0 | } |
13266 | 0 | } |
13267 | 0 | success: |
13268 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13269 | 0 | return true; |
13270 | 0 | failure: |
13271 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13272 | 0 | return false; |
13273 | 0 | #undef DO_ |
13274 | 0 | } |
13275 | | |
13276 | | void GetCDCDBStreamInfoRequestPB::SerializeWithCachedSizes( |
13277 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
13278 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13279 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13280 | 0 | (void) cached_has_bits; |
13281 | |
|
13282 | 0 | cached_has_bits = _has_bits_[0]; |
13283 | | // optional bytes db_stream_id = 1; |
13284 | 0 | if (cached_has_bits & 0x00000001u) { |
13285 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13286 | 0 | 1, this->db_stream_id(), output); |
13287 | 0 | } |
13288 | |
|
13289 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13290 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13291 | 0 | _internal_metadata_.unknown_fields(), output); |
13292 | 0 | } |
13293 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13294 | 0 | } |
13295 | | |
13296 | | ::google::protobuf::uint8* GetCDCDBStreamInfoRequestPB::InternalSerializeWithCachedSizesToArray( |
13297 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
13298 | 0 | (void)deterministic; // Unused |
13299 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13300 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13301 | 0 | (void) cached_has_bits; |
13302 | |
|
13303 | 0 | cached_has_bits = _has_bits_[0]; |
13304 | | // optional bytes db_stream_id = 1; |
13305 | 0 | if (cached_has_bits & 0x00000001u) { |
13306 | 0 | target = |
13307 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
13308 | 0 | 1, this->db_stream_id(), target); |
13309 | 0 | } |
13310 | |
|
13311 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13312 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13313 | 0 | _internal_metadata_.unknown_fields(), target); |
13314 | 0 | } |
13315 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13316 | 0 | return target; |
13317 | 0 | } |
13318 | | |
13319 | 0 | size_t GetCDCDBStreamInfoRequestPB::ByteSizeLong() const { |
13320 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13321 | 0 | size_t total_size = 0; |
13322 | |
|
13323 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13324 | 0 | total_size += |
13325 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13326 | 0 | _internal_metadata_.unknown_fields()); |
13327 | 0 | } |
13328 | | // optional bytes db_stream_id = 1; |
13329 | 0 | if (has_db_stream_id()) { |
13330 | 0 | total_size += 1 + |
13331 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
13332 | 0 | this->db_stream_id()); |
13333 | 0 | } |
13334 | |
|
13335 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
13336 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13337 | 0 | _cached_size_ = cached_size; |
13338 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13339 | 0 | return total_size; |
13340 | 0 | } |
13341 | | |
13342 | 0 | void GetCDCDBStreamInfoRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
13343 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13344 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13345 | 0 | const GetCDCDBStreamInfoRequestPB* source = |
13346 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoRequestPB>( |
13347 | 0 | &from); |
13348 | 0 | if (source == NULL) { |
13349 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13350 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13351 | 0 | } else { |
13352 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13353 | 0 | MergeFrom(*source); |
13354 | 0 | } |
13355 | 0 | } |
13356 | | |
13357 | 0 | void GetCDCDBStreamInfoRequestPB::MergeFrom(const GetCDCDBStreamInfoRequestPB& from) { |
13358 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13359 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13360 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13361 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13362 | 0 | (void) cached_has_bits; |
13363 | |
|
13364 | 0 | if (from.has_db_stream_id()) { |
13365 | 0 | set_has_db_stream_id(); |
13366 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
13367 | 0 | } |
13368 | 0 | } |
13369 | | |
13370 | 0 | void GetCDCDBStreamInfoRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
13371 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13372 | 0 | if (&from == this) return; |
13373 | 0 | Clear(); |
13374 | 0 | MergeFrom(from); |
13375 | 0 | } |
13376 | | |
13377 | 0 | void GetCDCDBStreamInfoRequestPB::CopyFrom(const GetCDCDBStreamInfoRequestPB& from) { |
13378 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB) |
13379 | 0 | if (&from == this) return; |
13380 | 0 | Clear(); |
13381 | 0 | MergeFrom(from); |
13382 | 0 | } |
13383 | | |
13384 | 0 | bool GetCDCDBStreamInfoRequestPB::IsInitialized() const { |
13385 | 0 | return true; |
13386 | 0 | } |
13387 | | |
13388 | 0 | void GetCDCDBStreamInfoRequestPB::Swap(GetCDCDBStreamInfoRequestPB* other) { |
13389 | 0 | if (other == this) return; |
13390 | 0 | InternalSwap(other); |
13391 | 0 | } |
13392 | 0 | void GetCDCDBStreamInfoRequestPB::InternalSwap(GetCDCDBStreamInfoRequestPB* other) { |
13393 | 0 | using std::swap; |
13394 | 0 | db_stream_id_.Swap(&other->db_stream_id_); |
13395 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
13396 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
13397 | 0 | swap(_cached_size_, other->_cached_size_); |
13398 | 0 | } |
13399 | | |
13400 | 0 | ::google::protobuf::Metadata GetCDCDBStreamInfoRequestPB::GetMetadata() const { |
13401 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13402 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
13403 | 0 | } |
13404 | | |
13405 | | |
13406 | | // =================================================================== |
13407 | | |
13408 | 16.4k | void GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance() { |
13409 | 16.4k | ::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
13410 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
13411 | 16.4k | } |
13412 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13413 | | const int GetCDCDBStreamInfoResponsePB::kErrorFieldNumber; |
13414 | | const int GetCDCDBStreamInfoResponsePB::kNamespaceIdFieldNumber; |
13415 | | const int GetCDCDBStreamInfoResponsePB::kTableInfoFieldNumber; |
13416 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13417 | | |
13418 | | GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB() |
13419 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13420 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
13421 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB(); |
13422 | 0 | } |
13423 | 16.4k | SharedCtor(); |
13424 | | // @@protoc_insertion_point(constructor:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13425 | 16.4k | } |
13426 | | GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB(const GetCDCDBStreamInfoResponsePB& from) |
13427 | | : ::google::protobuf::Message(), |
13428 | | _internal_metadata_(NULL), |
13429 | | _has_bits_(from._has_bits_), |
13430 | | _cached_size_(0), |
13431 | 0 | table_info_(from.table_info_) { |
13432 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13433 | 0 | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13434 | 0 | if (from.has_namespace_id()) { |
13435 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
13436 | 0 | } |
13437 | 0 | if (from.has_error()) { |
13438 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
13439 | 0 | } else { |
13440 | 0 | error_ = NULL; |
13441 | 0 | } |
13442 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13443 | 0 | } |
13444 | | |
13445 | 16.4k | void GetCDCDBStreamInfoResponsePB::SharedCtor() { |
13446 | 16.4k | _cached_size_ = 0; |
13447 | 16.4k | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13448 | 16.4k | error_ = NULL; |
13449 | 16.4k | } |
13450 | | |
13451 | 0 | GetCDCDBStreamInfoResponsePB::~GetCDCDBStreamInfoResponsePB() { |
13452 | | // @@protoc_insertion_point(destructor:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13453 | 0 | SharedDtor(); |
13454 | 0 | } |
13455 | | |
13456 | 0 | void GetCDCDBStreamInfoResponsePB::SharedDtor() { |
13457 | 0 | namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13458 | 0 | if (this != internal_default_instance()) delete error_; |
13459 | 0 | } |
13460 | | |
13461 | 0 | void GetCDCDBStreamInfoResponsePB::SetCachedSize(int size) const { |
13462 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13463 | 0 | _cached_size_ = size; |
13464 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13465 | 0 | } |
13466 | 0 | const ::google::protobuf::Descriptor* GetCDCDBStreamInfoResponsePB::descriptor() { |
13467 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13468 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
13469 | 0 | } |
13470 | | |
13471 | 0 | const GetCDCDBStreamInfoResponsePB& GetCDCDBStreamInfoResponsePB::default_instance() { |
13472 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB(); |
13473 | 0 | return *internal_default_instance(); |
13474 | 0 | } |
13475 | | |
13476 | 0 | GetCDCDBStreamInfoResponsePB* GetCDCDBStreamInfoResponsePB::New(::google::protobuf::Arena* arena) const { |
13477 | 0 | GetCDCDBStreamInfoResponsePB* n = new GetCDCDBStreamInfoResponsePB; |
13478 | 0 | if (arena != NULL) { |
13479 | 0 | arena->Own(n); |
13480 | 0 | } |
13481 | 0 | return n; |
13482 | 0 | } |
13483 | | |
13484 | 0 | void GetCDCDBStreamInfoResponsePB::Clear() { |
13485 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13486 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13487 | | // Prevent compiler warnings about cached_has_bits being unused |
13488 | 0 | (void) cached_has_bits; |
13489 | |
|
13490 | 0 | table_info_.Clear(); |
13491 | 0 | cached_has_bits = _has_bits_[0]; |
13492 | 0 | if (cached_has_bits & 3u) { |
13493 | 0 | if (cached_has_bits & 0x00000001u) { |
13494 | 0 | GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
13495 | 0 | (*namespace_id_.UnsafeRawStringPointer())->clear(); |
13496 | 0 | } |
13497 | 0 | if (cached_has_bits & 0x00000002u) { |
13498 | 0 | GOOGLE_DCHECK(error_ != NULL); |
13499 | 0 | error_->Clear(); |
13500 | 0 | } |
13501 | 0 | } |
13502 | 0 | _has_bits_.Clear(); |
13503 | 0 | _internal_metadata_.Clear(); |
13504 | 0 | } |
13505 | | |
13506 | | bool GetCDCDBStreamInfoResponsePB::MergePartialFromCodedStream( |
13507 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
13508 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13509 | 0 | ::google::protobuf::uint32 tag; |
13510 | | // @@protoc_insertion_point(parse_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13511 | 0 | for (;;) { |
13512 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
13513 | 0 | tag = p.first; |
13514 | 0 | if (!p.second) goto handle_unusual; |
13515 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
13516 | | // optional .yb.cdc.CDCErrorPB error = 1; |
13517 | 0 | case 1: { |
13518 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13519 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
13520 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
13521 | 0 | input, mutable_error())); |
13522 | 0 | } else { |
13523 | 0 | goto handle_unusual; |
13524 | 0 | } |
13525 | 0 | break; |
13526 | 0 | } |
13527 | | |
13528 | | // optional bytes namespace_id = 2; |
13529 | 0 | case 2: { |
13530 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13531 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
13532 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13533 | 0 | input, this->mutable_namespace_id())); |
13534 | 0 | } else { |
13535 | 0 | goto handle_unusual; |
13536 | 0 | } |
13537 | 0 | break; |
13538 | 0 | } |
13539 | | |
13540 | | // repeated .yb.cdc.TableInfo table_info = 3; |
13541 | 0 | case 3: { |
13542 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13543 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
13544 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_table_info())); |
13545 | 0 | } else { |
13546 | 0 | goto handle_unusual; |
13547 | 0 | } |
13548 | 0 | break; |
13549 | 0 | } |
13550 | | |
13551 | 0 | default: { |
13552 | 0 | handle_unusual: |
13553 | 0 | if (tag == 0) { |
13554 | 0 | goto success; |
13555 | 0 | } |
13556 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13557 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13558 | 0 | break; |
13559 | 0 | } |
13560 | 0 | } |
13561 | 0 | } |
13562 | 0 | success: |
13563 | | // @@protoc_insertion_point(parse_success:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13564 | 0 | return true; |
13565 | 0 | failure: |
13566 | | // @@protoc_insertion_point(parse_failure:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13567 | 0 | return false; |
13568 | 0 | #undef DO_ |
13569 | 0 | } |
13570 | | |
13571 | | void GetCDCDBStreamInfoResponsePB::SerializeWithCachedSizes( |
13572 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
13573 | | // @@protoc_insertion_point(serialize_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13574 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13575 | 0 | (void) cached_has_bits; |
13576 | |
|
13577 | 0 | cached_has_bits = _has_bits_[0]; |
13578 | | // optional .yb.cdc.CDCErrorPB error = 1; |
13579 | 0 | if (cached_has_bits & 0x00000002u) { |
13580 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13581 | 0 | 1, *this->error_, output); |
13582 | 0 | } |
13583 | | |
13584 | | // optional bytes namespace_id = 2; |
13585 | 0 | if (cached_has_bits & 0x00000001u) { |
13586 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13587 | 0 | 2, this->namespace_id(), output); |
13588 | 0 | } |
13589 | | |
13590 | | // repeated .yb.cdc.TableInfo table_info = 3; |
13591 | 0 | for (unsigned int i = 0, |
13592 | 0 | n = static_cast<unsigned int>(this->table_info_size()); i < n; i++) { |
13593 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13594 | 0 | 3, this->table_info(static_cast<int>(i)), output); |
13595 | 0 | } |
13596 | |
|
13597 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13598 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13599 | 0 | _internal_metadata_.unknown_fields(), output); |
13600 | 0 | } |
13601 | | // @@protoc_insertion_point(serialize_end:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13602 | 0 | } |
13603 | | |
13604 | | ::google::protobuf::uint8* GetCDCDBStreamInfoResponsePB::InternalSerializeWithCachedSizesToArray( |
13605 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
13606 | 0 | (void)deterministic; // Unused |
13607 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13608 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13609 | 0 | (void) cached_has_bits; |
13610 | |
|
13611 | 0 | cached_has_bits = _has_bits_[0]; |
13612 | | // optional .yb.cdc.CDCErrorPB error = 1; |
13613 | 0 | if (cached_has_bits & 0x00000002u) { |
13614 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
13615 | 0 | InternalWriteMessageToArray( |
13616 | 0 | 1, *this->error_, deterministic, target); |
13617 | 0 | } |
13618 | | |
13619 | | // optional bytes namespace_id = 2; |
13620 | 0 | if (cached_has_bits & 0x00000001u) { |
13621 | 0 | target = |
13622 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
13623 | 0 | 2, this->namespace_id(), target); |
13624 | 0 | } |
13625 | | |
13626 | | // repeated .yb.cdc.TableInfo table_info = 3; |
13627 | 0 | for (unsigned int i = 0, |
13628 | 0 | n = static_cast<unsigned int>(this->table_info_size()); i < n; i++) { |
13629 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
13630 | 0 | InternalWriteMessageToArray( |
13631 | 0 | 3, this->table_info(static_cast<int>(i)), deterministic, target); |
13632 | 0 | } |
13633 | |
|
13634 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13635 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13636 | 0 | _internal_metadata_.unknown_fields(), target); |
13637 | 0 | } |
13638 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13639 | 0 | return target; |
13640 | 0 | } |
13641 | | |
13642 | 0 | size_t GetCDCDBStreamInfoResponsePB::ByteSizeLong() const { |
13643 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13644 | 0 | size_t total_size = 0; |
13645 | |
|
13646 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13647 | 0 | total_size += |
13648 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13649 | 0 | _internal_metadata_.unknown_fields()); |
13650 | 0 | } |
13651 | | // repeated .yb.cdc.TableInfo table_info = 3; |
13652 | 0 | { |
13653 | 0 | unsigned int count = static_cast<unsigned int>(this->table_info_size()); |
13654 | 0 | total_size += 1UL * count; |
13655 | 0 | for (unsigned int i = 0; i < count; i++) { |
13656 | 0 | total_size += |
13657 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13658 | 0 | this->table_info(static_cast<int>(i))); |
13659 | 0 | } |
13660 | 0 | } |
13661 | |
|
13662 | 0 | if (_has_bits_[0 / 32] & 3u) { |
13663 | | // optional bytes namespace_id = 2; |
13664 | 0 | if (has_namespace_id()) { |
13665 | 0 | total_size += 1 + |
13666 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
13667 | 0 | this->namespace_id()); |
13668 | 0 | } |
13669 | | |
13670 | | // optional .yb.cdc.CDCErrorPB error = 1; |
13671 | 0 | if (has_error()) { |
13672 | 0 | total_size += 1 + |
13673 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13674 | 0 | *this->error_); |
13675 | 0 | } |
13676 | |
|
13677 | 0 | } |
13678 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
13679 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13680 | 0 | _cached_size_ = cached_size; |
13681 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13682 | 0 | return total_size; |
13683 | 0 | } |
13684 | | |
13685 | 0 | void GetCDCDBStreamInfoResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
13686 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13687 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13688 | 0 | const GetCDCDBStreamInfoResponsePB* source = |
13689 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoResponsePB>( |
13690 | 0 | &from); |
13691 | 0 | if (source == NULL) { |
13692 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13693 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13694 | 0 | } else { |
13695 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13696 | 0 | MergeFrom(*source); |
13697 | 0 | } |
13698 | 0 | } |
13699 | | |
13700 | 0 | void GetCDCDBStreamInfoResponsePB::MergeFrom(const GetCDCDBStreamInfoResponsePB& from) { |
13701 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13702 | 0 | GOOGLE_DCHECK_NE(&from, this); |
13703 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13704 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13705 | 0 | (void) cached_has_bits; |
13706 | |
|
13707 | 0 | table_info_.MergeFrom(from.table_info_); |
13708 | 0 | cached_has_bits = from._has_bits_[0]; |
13709 | 0 | if (cached_has_bits & 3u) { |
13710 | 0 | if (cached_has_bits & 0x00000001u) { |
13711 | 0 | set_has_namespace_id(); |
13712 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
13713 | 0 | } |
13714 | 0 | if (cached_has_bits & 0x00000002u) { |
13715 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
13716 | 0 | } |
13717 | 0 | } |
13718 | 0 | } |
13719 | | |
13720 | 0 | void GetCDCDBStreamInfoResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
13721 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13722 | 0 | if (&from == this) return; |
13723 | 0 | Clear(); |
13724 | 0 | MergeFrom(from); |
13725 | 0 | } |
13726 | | |
13727 | 0 | void GetCDCDBStreamInfoResponsePB::CopyFrom(const GetCDCDBStreamInfoResponsePB& from) { |
13728 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB) |
13729 | 0 | if (&from == this) return; |
13730 | 0 | Clear(); |
13731 | 0 | MergeFrom(from); |
13732 | 0 | } |
13733 | | |
13734 | 0 | bool GetCDCDBStreamInfoResponsePB::IsInitialized() const { |
13735 | 0 | if (has_error()) { |
13736 | 0 | if (!this->error_->IsInitialized()) return false; |
13737 | 0 | } |
13738 | 0 | return true; |
13739 | 0 | } |
13740 | | |
13741 | 0 | void GetCDCDBStreamInfoResponsePB::Swap(GetCDCDBStreamInfoResponsePB* other) { |
13742 | 0 | if (other == this) return; |
13743 | 0 | InternalSwap(other); |
13744 | 0 | } |
13745 | 0 | void GetCDCDBStreamInfoResponsePB::InternalSwap(GetCDCDBStreamInfoResponsePB* other) { |
13746 | 0 | using std::swap; |
13747 | 0 | table_info_.InternalSwap(&other->table_info_); |
13748 | 0 | namespace_id_.Swap(&other->namespace_id_); |
13749 | 0 | swap(error_, other->error_); |
13750 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
13751 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
13752 | 0 | swap(_cached_size_, other->_cached_size_); |
13753 | 0 | } |
13754 | | |
13755 | 0 | ::google::protobuf::Metadata GetCDCDBStreamInfoResponsePB::GetMetadata() const { |
13756 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13757 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
13758 | 0 | } |
13759 | | |
13760 | | |
13761 | | // =================================================================== |
13762 | | |
13763 | 16.4k | void SetCDCCheckpointRequestPB::InitAsDefaultInstance() { |
13764 | 16.4k | ::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>( |
13765 | 16.4k | ::yb::cdc::CDCCheckpointPB::internal_default_instance()); |
13766 | 16.4k | ::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_._instance.get_mutable()->cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>( |
13767 | 16.4k | ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance()); |
13768 | 16.4k | } |
13769 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13770 | | const int SetCDCCheckpointRequestPB::kCheckpointFieldNumber; |
13771 | | const int SetCDCCheckpointRequestPB::kCdcSdkCheckpointFieldNumber; |
13772 | | const int SetCDCCheckpointRequestPB::kStreamIdFieldNumber; |
13773 | | const int SetCDCCheckpointRequestPB::kTabletIdFieldNumber; |
13774 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13775 | | |
13776 | | SetCDCCheckpointRequestPB::SetCDCCheckpointRequestPB() |
13777 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13778 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
13779 | 6 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointRequestPB(); |
13780 | 6 | } |
13781 | 16.4k | SharedCtor(); |
13782 | | // @@protoc_insertion_point(constructor:yb.cdc.SetCDCCheckpointRequestPB) |
13783 | 16.4k | } |
13784 | | SetCDCCheckpointRequestPB::SetCDCCheckpointRequestPB(const SetCDCCheckpointRequestPB& from) |
13785 | | : ::google::protobuf::Message(), |
13786 | | _internal_metadata_(NULL), |
13787 | | _has_bits_(from._has_bits_), |
13788 | 0 | _cached_size_(0) { |
13789 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13790 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13791 | 0 | if (from.has_stream_id()) { |
13792 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
13793 | 0 | } |
13794 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13795 | 0 | if (from.has_tablet_id()) { |
13796 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
13797 | 0 | } |
13798 | 0 | if (from.has_checkpoint()) { |
13799 | 0 | checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_); |
13800 | 0 | } else { |
13801 | 0 | checkpoint_ = NULL; |
13802 | 0 | } |
13803 | 0 | if (from.has_cdc_sdk_checkpoint()) { |
13804 | 0 | cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.cdc_sdk_checkpoint_); |
13805 | 0 | } else { |
13806 | 0 | cdc_sdk_checkpoint_ = NULL; |
13807 | 0 | } |
13808 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.SetCDCCheckpointRequestPB) |
13809 | 0 | } |
13810 | | |
13811 | 16.4k | void SetCDCCheckpointRequestPB::SharedCtor() { |
13812 | 16.4k | _cached_size_ = 0; |
13813 | 16.4k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13814 | 16.4k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13815 | 16.4k | ::memset(&checkpoint_, 0, static_cast<size_t>( |
13816 | 16.4k | reinterpret_cast<char*>(&cdc_sdk_checkpoint_) - |
13817 | 16.4k | reinterpret_cast<char*>(&checkpoint_)) + sizeof(cdc_sdk_checkpoint_)); |
13818 | 16.4k | } |
13819 | | |
13820 | 6 | SetCDCCheckpointRequestPB::~SetCDCCheckpointRequestPB() { |
13821 | | // @@protoc_insertion_point(destructor:yb.cdc.SetCDCCheckpointRequestPB) |
13822 | 6 | SharedDtor(); |
13823 | 6 | } |
13824 | | |
13825 | 6 | void SetCDCCheckpointRequestPB::SharedDtor() { |
13826 | 6 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13827 | 6 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13828 | 6 | if (this != internal_default_instance()) delete checkpoint_; |
13829 | 6 | if (this != internal_default_instance()) delete cdc_sdk_checkpoint_; |
13830 | 6 | } |
13831 | | |
13832 | 0 | void SetCDCCheckpointRequestPB::SetCachedSize(int size) const { |
13833 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13834 | 0 | _cached_size_ = size; |
13835 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13836 | 0 | } |
13837 | 0 | const ::google::protobuf::Descriptor* SetCDCCheckpointRequestPB::descriptor() { |
13838 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
13839 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
13840 | 0 | } |
13841 | | |
13842 | 0 | const SetCDCCheckpointRequestPB& SetCDCCheckpointRequestPB::default_instance() { |
13843 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointRequestPB(); |
13844 | 0 | return *internal_default_instance(); |
13845 | 0 | } |
13846 | | |
13847 | 0 | SetCDCCheckpointRequestPB* SetCDCCheckpointRequestPB::New(::google::protobuf::Arena* arena) const { |
13848 | 0 | SetCDCCheckpointRequestPB* n = new SetCDCCheckpointRequestPB; |
13849 | 0 | if (arena != NULL) { |
13850 | 0 | arena->Own(n); |
13851 | 0 | } |
13852 | 0 | return n; |
13853 | 0 | } |
13854 | | |
13855 | 6 | void SetCDCCheckpointRequestPB::Clear() { |
13856 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.SetCDCCheckpointRequestPB) |
13857 | 6 | ::google::protobuf::uint32 cached_has_bits = 0; |
13858 | | // Prevent compiler warnings about cached_has_bits being unused |
13859 | 6 | (void) cached_has_bits; |
13860 | | |
13861 | 6 | cached_has_bits = _has_bits_[0]; |
13862 | 6 | if (cached_has_bits & 15u) { |
13863 | 0 | if (cached_has_bits & 0x00000001u) { |
13864 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
13865 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
13866 | 0 | } |
13867 | 0 | if (cached_has_bits & 0x00000002u) { |
13868 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
13869 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
13870 | 0 | } |
13871 | 0 | if (cached_has_bits & 0x00000004u) { |
13872 | 0 | GOOGLE_DCHECK(checkpoint_ != NULL); |
13873 | 0 | checkpoint_->Clear(); |
13874 | 0 | } |
13875 | 0 | if (cached_has_bits & 0x00000008u) { |
13876 | 0 | GOOGLE_DCHECK(cdc_sdk_checkpoint_ != NULL); |
13877 | 0 | cdc_sdk_checkpoint_->Clear(); |
13878 | 0 | } |
13879 | 0 | } |
13880 | 6 | _has_bits_.Clear(); |
13881 | 6 | _internal_metadata_.Clear(); |
13882 | 6 | } |
13883 | | |
13884 | | bool SetCDCCheckpointRequestPB::MergePartialFromCodedStream( |
13885 | 6 | ::google::protobuf::io::CodedInputStream* input) { |
13886 | 18 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
13887 | 6 | ::google::protobuf::uint32 tag; |
13888 | | // @@protoc_insertion_point(parse_start:yb.cdc.SetCDCCheckpointRequestPB) |
13889 | 24 | for (;;) { |
13890 | 24 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
13891 | 24 | tag = p.first; |
13892 | 24 | if (!p.second) goto handle_unusual6 ; |
13893 | 18 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
13894 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 1; |
13895 | 6 | case 1: { |
13896 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13897 | 6 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
13898 | 6 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
13899 | 6 | input, mutable_checkpoint())); |
13900 | 6 | } else { |
13901 | 0 | goto handle_unusual; |
13902 | 0 | } |
13903 | 6 | break; |
13904 | 6 | } |
13905 | | |
13906 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2; |
13907 | 6 | case 2: { |
13908 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13909 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
13910 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
13911 | 0 | input, mutable_cdc_sdk_checkpoint())); |
13912 | 0 | } else { |
13913 | 0 | goto handle_unusual; |
13914 | 0 | } |
13915 | 0 | break; |
13916 | 0 | } |
13917 | | |
13918 | | // optional bytes stream_id = 3; |
13919 | 6 | case 3: { |
13920 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13921 | 6 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
13922 | 6 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13923 | 6 | input, this->mutable_stream_id())); |
13924 | 6 | } else { |
13925 | 0 | goto handle_unusual; |
13926 | 0 | } |
13927 | 6 | break; |
13928 | 6 | } |
13929 | | |
13930 | | // optional bytes tablet_id = 4; |
13931 | 6 | case 4: { |
13932 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13933 | 6 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
13934 | 6 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13935 | 6 | input, this->mutable_tablet_id())); |
13936 | 6 | } else { |
13937 | 0 | goto handle_unusual; |
13938 | 0 | } |
13939 | 6 | break; |
13940 | 6 | } |
13941 | | |
13942 | 6 | default: { |
13943 | 6 | handle_unusual: |
13944 | 6 | if (tag == 0) { |
13945 | 6 | goto success; |
13946 | 6 | } |
13947 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13948 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13949 | 0 | break; |
13950 | 0 | } |
13951 | 18 | } |
13952 | 18 | } |
13953 | 6 | success: |
13954 | | // @@protoc_insertion_point(parse_success:yb.cdc.SetCDCCheckpointRequestPB) |
13955 | 6 | return true; |
13956 | 0 | failure: |
13957 | | // @@protoc_insertion_point(parse_failure:yb.cdc.SetCDCCheckpointRequestPB) |
13958 | 0 | return false; |
13959 | 6 | #undef DO_ |
13960 | 6 | } |
13961 | | |
13962 | | void SetCDCCheckpointRequestPB::SerializeWithCachedSizes( |
13963 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
13964 | | // @@protoc_insertion_point(serialize_start:yb.cdc.SetCDCCheckpointRequestPB) |
13965 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
13966 | 0 | (void) cached_has_bits; |
13967 | |
|
13968 | 0 | cached_has_bits = _has_bits_[0]; |
13969 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 1; |
13970 | 0 | if (cached_has_bits & 0x00000004u) { |
13971 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13972 | 0 | 1, *this->checkpoint_, output); |
13973 | 0 | } |
13974 | | |
13975 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2; |
13976 | 0 | if (cached_has_bits & 0x00000008u) { |
13977 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13978 | 0 | 2, *this->cdc_sdk_checkpoint_, output); |
13979 | 0 | } |
13980 | | |
13981 | | // optional bytes stream_id = 3; |
13982 | 0 | if (cached_has_bits & 0x00000001u) { |
13983 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13984 | 0 | 3, this->stream_id(), output); |
13985 | 0 | } |
13986 | | |
13987 | | // optional bytes tablet_id = 4; |
13988 | 0 | if (cached_has_bits & 0x00000002u) { |
13989 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13990 | 0 | 4, this->tablet_id(), output); |
13991 | 0 | } |
13992 | |
|
13993 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
13994 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13995 | 0 | _internal_metadata_.unknown_fields(), output); |
13996 | 0 | } |
13997 | | // @@protoc_insertion_point(serialize_end:yb.cdc.SetCDCCheckpointRequestPB) |
13998 | 0 | } |
13999 | | |
14000 | | ::google::protobuf::uint8* SetCDCCheckpointRequestPB::InternalSerializeWithCachedSizesToArray( |
14001 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
14002 | 0 | (void)deterministic; // Unused |
14003 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.SetCDCCheckpointRequestPB) |
14004 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
14005 | 0 | (void) cached_has_bits; |
14006 | |
|
14007 | 0 | cached_has_bits = _has_bits_[0]; |
14008 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 1; |
14009 | 0 | if (cached_has_bits & 0x00000004u) { |
14010 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
14011 | 0 | InternalWriteMessageToArray( |
14012 | 0 | 1, *this->checkpoint_, deterministic, target); |
14013 | 0 | } |
14014 | | |
14015 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2; |
14016 | 0 | if (cached_has_bits & 0x00000008u) { |
14017 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
14018 | 0 | InternalWriteMessageToArray( |
14019 | 0 | 2, *this->cdc_sdk_checkpoint_, deterministic, target); |
14020 | 0 | } |
14021 | | |
14022 | | // optional bytes stream_id = 3; |
14023 | 0 | if (cached_has_bits & 0x00000001u) { |
14024 | 0 | target = |
14025 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
14026 | 0 | 3, this->stream_id(), target); |
14027 | 0 | } |
14028 | | |
14029 | | // optional bytes tablet_id = 4; |
14030 | 0 | if (cached_has_bits & 0x00000002u) { |
14031 | 0 | target = |
14032 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
14033 | 0 | 4, this->tablet_id(), target); |
14034 | 0 | } |
14035 | |
|
14036 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
14037 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
14038 | 0 | _internal_metadata_.unknown_fields(), target); |
14039 | 0 | } |
14040 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.SetCDCCheckpointRequestPB) |
14041 | 0 | return target; |
14042 | 0 | } |
14043 | | |
14044 | 0 | size_t SetCDCCheckpointRequestPB::ByteSizeLong() const { |
14045 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.SetCDCCheckpointRequestPB) |
14046 | 0 | size_t total_size = 0; |
14047 | |
|
14048 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
14049 | 0 | total_size += |
14050 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14051 | 0 | _internal_metadata_.unknown_fields()); |
14052 | 0 | } |
14053 | 0 | if (_has_bits_[0 / 32] & 15u) { |
14054 | | // optional bytes stream_id = 3; |
14055 | 0 | if (has_stream_id()) { |
14056 | 0 | total_size += 1 + |
14057 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
14058 | 0 | this->stream_id()); |
14059 | 0 | } |
14060 | | |
14061 | | // optional bytes tablet_id = 4; |
14062 | 0 | if (has_tablet_id()) { |
14063 | 0 | total_size += 1 + |
14064 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
14065 | 0 | this->tablet_id()); |
14066 | 0 | } |
14067 | | |
14068 | | // optional .yb.cdc.CDCCheckpointPB checkpoint = 1; |
14069 | 0 | if (has_checkpoint()) { |
14070 | 0 | total_size += 1 + |
14071 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14072 | 0 | *this->checkpoint_); |
14073 | 0 | } |
14074 | | |
14075 | | // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2; |
14076 | 0 | if (has_cdc_sdk_checkpoint()) { |
14077 | 0 | total_size += 1 + |
14078 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14079 | 0 | *this->cdc_sdk_checkpoint_); |
14080 | 0 | } |
14081 | |
|
14082 | 0 | } |
14083 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14084 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14085 | 0 | _cached_size_ = cached_size; |
14086 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14087 | 0 | return total_size; |
14088 | 0 | } |
14089 | | |
14090 | 0 | void SetCDCCheckpointRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
14091 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.SetCDCCheckpointRequestPB) |
14092 | 0 | GOOGLE_DCHECK_NE(&from, this); |
14093 | 0 | const SetCDCCheckpointRequestPB* source = |
14094 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetCDCCheckpointRequestPB>( |
14095 | 0 | &from); |
14096 | 0 | if (source == NULL) { |
14097 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.SetCDCCheckpointRequestPB) |
14098 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14099 | 0 | } else { |
14100 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.SetCDCCheckpointRequestPB) |
14101 | 0 | MergeFrom(*source); |
14102 | 0 | } |
14103 | 0 | } |
14104 | | |
14105 | 0 | void SetCDCCheckpointRequestPB::MergeFrom(const SetCDCCheckpointRequestPB& from) { |
14106 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.SetCDCCheckpointRequestPB) |
14107 | 0 | GOOGLE_DCHECK_NE(&from, this); |
14108 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14109 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
14110 | 0 | (void) cached_has_bits; |
14111 | |
|
14112 | 0 | cached_has_bits = from._has_bits_[0]; |
14113 | 0 | if (cached_has_bits & 15u) { |
14114 | 0 | if (cached_has_bits & 0x00000001u) { |
14115 | 0 | set_has_stream_id(); |
14116 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
14117 | 0 | } |
14118 | 0 | if (cached_has_bits & 0x00000002u) { |
14119 | 0 | set_has_tablet_id(); |
14120 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
14121 | 0 | } |
14122 | 0 | if (cached_has_bits & 0x00000004u) { |
14123 | 0 | mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint()); |
14124 | 0 | } |
14125 | 0 | if (cached_has_bits & 0x00000008u) { |
14126 | 0 | mutable_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.cdc_sdk_checkpoint()); |
14127 | 0 | } |
14128 | 0 | } |
14129 | 0 | } |
14130 | | |
14131 | 0 | void SetCDCCheckpointRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
14132 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.SetCDCCheckpointRequestPB) |
14133 | 0 | if (&from == this) return; |
14134 | 0 | Clear(); |
14135 | 0 | MergeFrom(from); |
14136 | 0 | } |
14137 | | |
14138 | 0 | void SetCDCCheckpointRequestPB::CopyFrom(const SetCDCCheckpointRequestPB& from) { |
14139 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.SetCDCCheckpointRequestPB) |
14140 | 0 | if (&from == this) return; |
14141 | 0 | Clear(); |
14142 | 0 | MergeFrom(from); |
14143 | 0 | } |
14144 | | |
14145 | 6 | bool SetCDCCheckpointRequestPB::IsInitialized() const { |
14146 | 6 | if (has_checkpoint()) { |
14147 | 6 | if (!this->checkpoint_->IsInitialized()) return false0 ; |
14148 | 6 | } |
14149 | 6 | return true; |
14150 | 6 | } |
14151 | | |
14152 | 0 | void SetCDCCheckpointRequestPB::Swap(SetCDCCheckpointRequestPB* other) { |
14153 | 0 | if (other == this) return; |
14154 | 0 | InternalSwap(other); |
14155 | 0 | } |
14156 | 0 | void SetCDCCheckpointRequestPB::InternalSwap(SetCDCCheckpointRequestPB* other) { |
14157 | 0 | using std::swap; |
14158 | 0 | stream_id_.Swap(&other->stream_id_); |
14159 | 0 | tablet_id_.Swap(&other->tablet_id_); |
14160 | 0 | swap(checkpoint_, other->checkpoint_); |
14161 | 0 | swap(cdc_sdk_checkpoint_, other->cdc_sdk_checkpoint_); |
14162 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
14163 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14164 | 0 | swap(_cached_size_, other->_cached_size_); |
14165 | 0 | } |
14166 | | |
14167 | 6 | ::google::protobuf::Metadata SetCDCCheckpointRequestPB::GetMetadata() const { |
14168 | 6 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
14169 | 6 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
14170 | 6 | } |
14171 | | |
14172 | | |
14173 | | // =================================================================== |
14174 | | |
14175 | 16.4k | void SetCDCCheckpointResponsePB::InitAsDefaultInstance() { |
14176 | 16.4k | ::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>( |
14177 | 16.4k | ::yb::cdc::CDCErrorPB::internal_default_instance()); |
14178 | 16.4k | } |
14179 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14180 | | const int SetCDCCheckpointResponsePB::kErrorFieldNumber; |
14181 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14182 | | |
14183 | | SetCDCCheckpointResponsePB::SetCDCCheckpointResponsePB() |
14184 | 16.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14185 | 16.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
14186 | 18 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointResponsePB(); |
14187 | 18 | } |
14188 | 16.4k | SharedCtor(); |
14189 | | // @@protoc_insertion_point(constructor:yb.cdc.SetCDCCheckpointResponsePB) |
14190 | 16.4k | } |
14191 | | SetCDCCheckpointResponsePB::SetCDCCheckpointResponsePB(const SetCDCCheckpointResponsePB& from) |
14192 | | : ::google::protobuf::Message(), |
14193 | | _internal_metadata_(NULL), |
14194 | | _has_bits_(from._has_bits_), |
14195 | 0 | _cached_size_(0) { |
14196 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14197 | 0 | if (from.has_error()) { |
14198 | 0 | error_ = new ::yb::cdc::CDCErrorPB(*from.error_); |
14199 | 0 | } else { |
14200 | 0 | error_ = NULL; |
14201 | 0 | } |
14202 | | // @@protoc_insertion_point(copy_constructor:yb.cdc.SetCDCCheckpointResponsePB) |
14203 | 0 | } |
14204 | | |
14205 | 16.4k | void SetCDCCheckpointResponsePB::SharedCtor() { |
14206 | 16.4k | _cached_size_ = 0; |
14207 | 16.4k | error_ = NULL; |
14208 | 16.4k | } |
14209 | | |
14210 | 18 | SetCDCCheckpointResponsePB::~SetCDCCheckpointResponsePB() { |
14211 | | // @@protoc_insertion_point(destructor:yb.cdc.SetCDCCheckpointResponsePB) |
14212 | 18 | SharedDtor(); |
14213 | 18 | } |
14214 | | |
14215 | 18 | void SetCDCCheckpointResponsePB::SharedDtor() { |
14216 | 18 | if (this != internal_default_instance()) delete error_; |
14217 | 18 | } |
14218 | | |
14219 | 0 | void SetCDCCheckpointResponsePB::SetCachedSize(int size) const { |
14220 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14221 | 0 | _cached_size_ = size; |
14222 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14223 | 0 | } |
14224 | 0 | const ::google::protobuf::Descriptor* SetCDCCheckpointResponsePB::descriptor() { |
14225 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
14226 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
14227 | 0 | } |
14228 | | |
14229 | 0 | const SetCDCCheckpointResponsePB& SetCDCCheckpointResponsePB::default_instance() { |
14230 | 0 | ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointResponsePB(); |
14231 | 0 | return *internal_default_instance(); |
14232 | 0 | } |
14233 | | |
14234 | 0 | SetCDCCheckpointResponsePB* SetCDCCheckpointResponsePB::New(::google::protobuf::Arena* arena) const { |
14235 | 0 | SetCDCCheckpointResponsePB* n = new SetCDCCheckpointResponsePB; |
14236 | 0 | if (arena != NULL) { |
14237 | 0 | arena->Own(n); |
14238 | 0 | } |
14239 | 0 | return n; |
14240 | 0 | } |
14241 | | |
14242 | 0 | void SetCDCCheckpointResponsePB::Clear() { |
14243 | | // @@protoc_insertion_point(message_clear_start:yb.cdc.SetCDCCheckpointResponsePB) |
14244 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
14245 | | // Prevent compiler warnings about cached_has_bits being unused |
14246 | 0 | (void) cached_has_bits; |
14247 | |
|
14248 | 0 | cached_has_bits = _has_bits_[0]; |
14249 | 0 | if (cached_has_bits & 0x00000001u) { |
14250 | 0 | GOOGLE_DCHECK(error_ != NULL); |
14251 | 0 | error_->Clear(); |
14252 | 0 | } |
14253 | 0 | _has_bits_.Clear(); |
14254 | 0 | _internal_metadata_.Clear(); |
14255 | 0 | } |
14256 | | |
14257 | | bool SetCDCCheckpointResponsePB::MergePartialFromCodedStream( |
14258 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
14259 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14260 | 0 | ::google::protobuf::uint32 tag; |
14261 | | // @@protoc_insertion_point(parse_start:yb.cdc.SetCDCCheckpointResponsePB) |
14262 | 0 | for (;;) { |
14263 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
14264 | 0 | tag = p.first; |
14265 | 0 | if (!p.second) goto handle_unusual; |
14266 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
14267 | | // optional .yb.cdc.CDCErrorPB error = 1; |
14268 | 0 | case 1: { |
14269 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14270 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
14271 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
14272 | 0 | input, mutable_error())); |
14273 | 0 | } else { |
14274 | 0 | goto handle_unusual; |
14275 | 0 | } |
14276 | 0 | break; |
14277 | 0 | } |
14278 | | |
14279 | 0 | default: { |
14280 | 0 | handle_unusual: |
14281 | 0 | if (tag == 0) { |
14282 | 0 | goto success; |
14283 | 0 | } |
14284 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
14285 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
14286 | 0 | break; |
14287 | 0 | } |
14288 | 0 | } |
14289 | 0 | } |
14290 | 0 | success: |
14291 | | // @@protoc_insertion_point(parse_success:yb.cdc.SetCDCCheckpointResponsePB) |
14292 | 0 | return true; |
14293 | 0 | failure: |
14294 | | // @@protoc_insertion_point(parse_failure:yb.cdc.SetCDCCheckpointResponsePB) |
14295 | 0 | return false; |
14296 | 0 | #undef DO_ |
14297 | 0 | } |
14298 | | |
14299 | | void SetCDCCheckpointResponsePB::SerializeWithCachedSizes( |
14300 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
14301 | | // @@protoc_insertion_point(serialize_start:yb.cdc.SetCDCCheckpointResponsePB) |
14302 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
14303 | 0 | (void) cached_has_bits; |
14304 | |
|
14305 | 0 | cached_has_bits = _has_bits_[0]; |
14306 | | // optional .yb.cdc.CDCErrorPB error = 1; |
14307 | 0 | if (cached_has_bits & 0x00000001u) { |
14308 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
14309 | 0 | 1, *this->error_, output); |
14310 | 0 | } |
14311 | |
|
14312 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
14313 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14314 | 0 | _internal_metadata_.unknown_fields(), output); |
14315 | 0 | } |
14316 | | // @@protoc_insertion_point(serialize_end:yb.cdc.SetCDCCheckpointResponsePB) |
14317 | 0 | } |
14318 | | |
14319 | | ::google::protobuf::uint8* SetCDCCheckpointResponsePB::InternalSerializeWithCachedSizesToArray( |
14320 | 6 | bool deterministic, ::google::protobuf::uint8* target) const { |
14321 | 6 | (void)deterministic; // Unused |
14322 | | // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.SetCDCCheckpointResponsePB) |
14323 | 6 | ::google::protobuf::uint32 cached_has_bits = 0; |
14324 | 6 | (void) cached_has_bits; |
14325 | | |
14326 | 6 | cached_has_bits = _has_bits_[0]; |
14327 | | // optional .yb.cdc.CDCErrorPB error = 1; |
14328 | 6 | if (cached_has_bits & 0x00000001u) { |
14329 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
14330 | 0 | InternalWriteMessageToArray( |
14331 | 0 | 1, *this->error_, deterministic, target); |
14332 | 0 | } |
14333 | | |
14334 | 6 | if (_internal_metadata_.have_unknown_fields()) { |
14335 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
14336 | 0 | _internal_metadata_.unknown_fields(), target); |
14337 | 0 | } |
14338 | | // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.SetCDCCheckpointResponsePB) |
14339 | 6 | return target; |
14340 | 6 | } |
14341 | | |
14342 | 12 | size_t SetCDCCheckpointResponsePB::ByteSizeLong() const { |
14343 | | // @@protoc_insertion_point(message_byte_size_start:yb.cdc.SetCDCCheckpointResponsePB) |
14344 | 12 | size_t total_size = 0; |
14345 | | |
14346 | 12 | if (_internal_metadata_.have_unknown_fields()) { |
14347 | 0 | total_size += |
14348 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14349 | 0 | _internal_metadata_.unknown_fields()); |
14350 | 0 | } |
14351 | | // optional .yb.cdc.CDCErrorPB error = 1; |
14352 | 12 | if (has_error()) { |
14353 | 0 | total_size += 1 + |
14354 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14355 | 0 | *this->error_); |
14356 | 0 | } |
14357 | | |
14358 | 12 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14359 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14360 | 12 | _cached_size_ = cached_size; |
14361 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14362 | 12 | return total_size; |
14363 | 12 | } |
14364 | | |
14365 | 0 | void SetCDCCheckpointResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
14366 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.SetCDCCheckpointResponsePB) |
14367 | 0 | GOOGLE_DCHECK_NE(&from, this); |
14368 | 0 | const SetCDCCheckpointResponsePB* source = |
14369 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetCDCCheckpointResponsePB>( |
14370 | 0 | &from); |
14371 | 0 | if (source == NULL) { |
14372 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.SetCDCCheckpointResponsePB) |
14373 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14374 | 0 | } else { |
14375 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.SetCDCCheckpointResponsePB) |
14376 | 0 | MergeFrom(*source); |
14377 | 0 | } |
14378 | 0 | } |
14379 | | |
14380 | 0 | void SetCDCCheckpointResponsePB::MergeFrom(const SetCDCCheckpointResponsePB& from) { |
14381 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.SetCDCCheckpointResponsePB) |
14382 | 0 | GOOGLE_DCHECK_NE(&from, this); |
14383 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14384 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
14385 | 0 | (void) cached_has_bits; |
14386 | |
|
14387 | 0 | if (from.has_error()) { |
14388 | 0 | mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error()); |
14389 | 0 | } |
14390 | 0 | } |
14391 | | |
14392 | 0 | void SetCDCCheckpointResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
14393 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.SetCDCCheckpointResponsePB) |
14394 | 0 | if (&from == this) return; |
14395 | 0 | Clear(); |
14396 | 0 | MergeFrom(from); |
14397 | 0 | } |
14398 | | |
14399 | 0 | void SetCDCCheckpointResponsePB::CopyFrom(const SetCDCCheckpointResponsePB& from) { |
14400 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.SetCDCCheckpointResponsePB) |
14401 | 0 | if (&from == this) return; |
14402 | 0 | Clear(); |
14403 | 0 | MergeFrom(from); |
14404 | 0 | } |
14405 | | |
14406 | 6 | bool SetCDCCheckpointResponsePB::IsInitialized() const { |
14407 | 6 | if (has_error()) { |
14408 | 0 | if (!this->error_->IsInitialized()) return false; |
14409 | 0 | } |
14410 | 6 | return true; |
14411 | 6 | } |
14412 | | |
14413 | 6 | void SetCDCCheckpointResponsePB::Swap(SetCDCCheckpointResponsePB* other) { |
14414 | 6 | if (other == this) return0 ; |
14415 | 6 | InternalSwap(other); |
14416 | 6 | } |
14417 | 12 | void SetCDCCheckpointResponsePB::InternalSwap(SetCDCCheckpointResponsePB* other) { |
14418 | 12 | using std::swap; |
14419 | 12 | swap(error_, other->error_); |
14420 | 12 | swap(_has_bits_[0], other->_has_bits_[0]); |
14421 | 12 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14422 | 12 | swap(_cached_size_, other->_cached_size_); |
14423 | 12 | } |
14424 | | |
14425 | 0 | ::google::protobuf::Metadata SetCDCCheckpointResponsePB::GetMetadata() const { |
14426 | 0 | protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce(); |
14427 | 0 | return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages]; |
14428 | 0 | } |
14429 | | |
14430 | | |
14431 | | // @@protoc_insertion_point(namespace_scope) |
14432 | | } // namespace cdc |
14433 | | } // namespace yb |
14434 | | |
14435 | | // @@protoc_insertion_point(global_scope) |