YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/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
11.1k
void InitDefaultsCDCErrorPBImpl() {
204
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
205
206
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
207
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
208
#else
209
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
210
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
211
11.1k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
212
11.1k
  {
213
11.1k
    void* ptr = &::yb::cdc::_CDCErrorPB_default_instance_;
214
11.1k
    new (ptr) ::yb::cdc::CDCErrorPB();
215
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
216
11.1k
  }
217
11.1k
  ::yb::cdc::CDCErrorPB::InitAsDefaultInstance();
218
11.1k
}
219
220
121k
void InitDefaultsCDCErrorPB() {
221
121k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
222
121k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCErrorPBImpl);
223
121k
}
224
225
11.1k
void InitDefaultsCreateCDCStreamRequestPBImpl() {
226
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
227
228
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
229
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
230
#else
231
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
232
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
233
11.1k
  {
234
11.1k
    void* ptr = &::yb::cdc::_CreateCDCStreamRequestPB_default_instance_;
235
11.1k
    new (ptr) ::yb::cdc::CreateCDCStreamRequestPB();
236
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
237
11.1k
  }
238
11.1k
  ::yb::cdc::CreateCDCStreamRequestPB::InitAsDefaultInstance();
239
11.1k
}
240
241
11.3k
void InitDefaultsCreateCDCStreamRequestPB() {
242
11.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
243
11.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamRequestPBImpl);
244
11.3k
}
245
246
11.1k
void InitDefaultsCreateCDCStreamResponsePBImpl() {
247
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
248
249
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
250
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
251
#else
252
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
253
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
254
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
255
11.1k
  {
256
11.1k
    void* ptr = &::yb::cdc::_CreateCDCStreamResponsePB_default_instance_;
257
11.1k
    new (ptr) ::yb::cdc::CreateCDCStreamResponsePB();
258
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
259
11.1k
  }
260
11.1k
  ::yb::cdc::CreateCDCStreamResponsePB::InitAsDefaultInstance();
261
11.1k
}
262
263
11.3k
void InitDefaultsCreateCDCStreamResponsePB() {
264
11.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
265
11.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamResponsePBImpl);
266
11.3k
}
267
268
11.1k
void InitDefaultsDeleteCDCStreamRequestPBImpl() {
269
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
270
271
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
272
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
273
#else
274
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
275
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
276
11.1k
  {
277
11.1k
    void* ptr = &::yb::cdc::_DeleteCDCStreamRequestPB_default_instance_;
278
11.1k
    new (ptr) ::yb::cdc::DeleteCDCStreamRequestPB();
279
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
280
11.1k
  }
281
11.1k
  ::yb::cdc::DeleteCDCStreamRequestPB::InitAsDefaultInstance();
282
11.1k
}
283
284
11.1k
void InitDefaultsDeleteCDCStreamRequestPB() {
285
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
286
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamRequestPBImpl);
287
11.1k
}
288
289
11.1k
void InitDefaultsDeleteCDCStreamResponsePBImpl() {
290
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
291
292
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
293
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
294
#else
295
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
296
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
297
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
298
11.1k
  {
299
11.1k
    void* ptr = &::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_;
300
11.1k
    new (ptr) ::yb::cdc::DeleteCDCStreamResponsePB();
301
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
302
11.1k
  }
303
11.1k
  ::yb::cdc::DeleteCDCStreamResponsePB::InitAsDefaultInstance();
304
11.1k
}
305
306
11.1k
void InitDefaultsDeleteCDCStreamResponsePB() {
307
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
308
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamResponsePBImpl);
309
11.1k
}
310
311
11.1k
void InitDefaultsListTabletsRequestPBImpl() {
312
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
313
314
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
315
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
316
#else
317
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
318
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
319
11.1k
  {
320
11.1k
    void* ptr = &::yb::cdc::_ListTabletsRequestPB_default_instance_;
321
11.1k
    new (ptr) ::yb::cdc::ListTabletsRequestPB();
322
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
323
11.1k
  }
324
11.1k
  ::yb::cdc::ListTabletsRequestPB::InitAsDefaultInstance();
325
11.1k
}
326
327
11.1k
void InitDefaultsListTabletsRequestPB() {
328
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
329
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsRequestPBImpl);
330
11.1k
}
331
332
11.1k
void InitDefaultsListTabletsResponsePBImpl() {
333
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
334
335
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
336
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
337
#else
338
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
339
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
340
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
341
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB();
342
11.1k
  {
343
11.1k
    void* ptr = &::yb::cdc::_ListTabletsResponsePB_default_instance_;
344
11.1k
    new (ptr) ::yb::cdc::ListTabletsResponsePB();
345
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
346
11.1k
  }
347
11.1k
  ::yb::cdc::ListTabletsResponsePB::InitAsDefaultInstance();
348
11.1k
}
349
350
11.1k
void InitDefaultsListTabletsResponsePB() {
351
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
352
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListTabletsResponsePBImpl);
353
11.1k
}
354
355
11.1k
void InitDefaultsCDCTabletPB_ReplicaPBImpl() {
356
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
357
358
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
359
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
360
#else
361
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
362
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
363
11.1k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
364
11.1k
  {
365
11.1k
    void* ptr = &::yb::cdc::_CDCTabletPB_ReplicaPB_default_instance_;
366
11.1k
    new (ptr) ::yb::cdc::CDCTabletPB_ReplicaPB();
367
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
368
11.1k
  }
369
11.1k
  ::yb::cdc::CDCTabletPB_ReplicaPB::InitAsDefaultInstance();
370
11.1k
}
371
372
22.3k
void InitDefaultsCDCTabletPB_ReplicaPB() {
373
22.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
374
22.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCTabletPB_ReplicaPBImpl);
375
22.3k
}
376
377
11.1k
void InitDefaultsCDCTabletPBImpl() {
378
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
379
380
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
381
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
382
#else
383
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
384
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
385
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB();
386
11.1k
  {
387
11.1k
    void* ptr = &::yb::cdc::_CDCTabletPB_default_instance_;
388
11.1k
    new (ptr) ::yb::cdc::CDCTabletPB();
389
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
390
11.1k
  }
391
11.1k
  ::yb::cdc::CDCTabletPB::InitAsDefaultInstance();
392
11.1k
}
393
394
22.3k
void InitDefaultsCDCTabletPB() {
395
22.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
396
22.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCTabletPBImpl);
397
22.3k
}
398
399
9.25k
void InitDefaultsCDCSDKCheckpointPBImpl() {
400
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
401
402
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
403
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
404
#else
405
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
406
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
407
9.25k
  {
408
9.25k
    void* ptr = &::yb::cdc::_CDCSDKCheckpointPB_default_instance_;
409
9.25k
    new (ptr) ::yb::cdc::CDCSDKCheckpointPB();
410
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
411
9.25k
  }
412
9.25k
  ::yb::cdc::CDCSDKCheckpointPB::InitAsDefaultInstance();
413
9.25k
}
414
415
38.0k
void InitDefaultsCDCSDKCheckpointPB() {
416
38.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
417
38.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKCheckpointPBImpl);
418
38.0k
}
419
420
11.1k
void InitDefaultsCDCCheckpointPBImpl() {
421
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
422
423
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
424
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
425
#else
426
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
427
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
428
11.1k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
429
11.1k
  {
430
11.1k
    void* ptr = &::yb::cdc::_CDCCheckpointPB_default_instance_;
431
11.1k
    new (ptr) ::yb::cdc::CDCCheckpointPB();
432
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
433
11.1k
  }
434
11.1k
  ::yb::cdc::CDCCheckpointPB::InitAsDefaultInstance();
435
11.1k
}
436
437
54.3k
void InitDefaultsCDCCheckpointPB() {
438
54.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
439
54.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCCheckpointPBImpl);
440
54.3k
}
441
442
11.1k
void InitDefaultsGetChangesRequestPBImpl() {
443
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
444
445
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
446
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
447
#else
448
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
449
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
450
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
451
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB();
452
11.1k
  {
453
11.1k
    void* ptr = &::yb::cdc::_GetChangesRequestPB_default_instance_;
454
11.1k
    new (ptr) ::yb::cdc::GetChangesRequestPB();
455
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
456
11.1k
  }
457
11.1k
  ::yb::cdc::GetChangesRequestPB::InitAsDefaultInstance();
458
11.1k
}
459
460
11.5k
void InitDefaultsGetChangesRequestPB() {
461
11.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
462
11.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetChangesRequestPBImpl);
463
11.5k
}
464
465
11.1k
void InitDefaultsKeyValuePairPBImpl() {
466
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
467
468
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
469
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
470
#else
471
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
472
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
473
11.1k
  protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
474
11.1k
  {
475
11.1k
    void* ptr = &::yb::cdc::_KeyValuePairPB_default_instance_;
476
11.1k
    new (ptr) ::yb::cdc::KeyValuePairPB();
477
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
478
11.1k
  }
479
11.1k
  ::yb::cdc::KeyValuePairPB::InitAsDefaultInstance();
480
11.1k
}
481
482
22.3k
void InitDefaultsKeyValuePairPB() {
483
22.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
484
22.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsKeyValuePairPBImpl);
485
22.3k
}
486
487
11.1k
void InitDefaultsCDCRecordPBImpl() {
488
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
489
490
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
491
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
492
#else
493
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
494
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
495
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB();
496
11.1k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB();
497
11.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
498
11.1k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB();
499
11.1k
  {
500
11.1k
    void* ptr = &::yb::cdc::_CDCRecordPB_default_instance_;
501
11.1k
    new (ptr) ::yb::cdc::CDCRecordPB();
502
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
503
11.1k
  }
504
11.1k
  ::yb::cdc::CDCRecordPB::InitAsDefaultInstance();
505
11.1k
}
506
507
22.3k
void InitDefaultsCDCRecordPB() {
508
22.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
509
22.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCRecordPBImpl);
510
22.3k
}
511
512
9.25k
void InitDefaultsCDCSDKColumnInfoPBImpl() {
513
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
514
515
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
516
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
517
#else
518
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
519
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
520
9.25k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
521
9.25k
  {
522
9.25k
    void* ptr = &::yb::cdc::_CDCSDKColumnInfoPB_default_instance_;
523
9.25k
    new (ptr) ::yb::cdc::CDCSDKColumnInfoPB();
524
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
525
9.25k
  }
526
9.25k
  ::yb::cdc::CDCSDKColumnInfoPB::InitAsDefaultInstance();
527
9.25k
}
528
529
19.3k
void InitDefaultsCDCSDKColumnInfoPB() {
530
19.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
531
19.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKColumnInfoPBImpl);
532
19.3k
}
533
534
9.25k
void InitDefaultsCDCSDKTablePropertiesPBImpl() {
535
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
536
537
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
538
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
539
#else
540
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
541
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
542
9.25k
  {
543
9.25k
    void* ptr = &::yb::cdc::_CDCSDKTablePropertiesPB_default_instance_;
544
9.25k
    new (ptr) ::yb::cdc::CDCSDKTablePropertiesPB();
545
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
546
9.25k
  }
547
9.25k
  ::yb::cdc::CDCSDKTablePropertiesPB::InitAsDefaultInstance();
548
9.25k
}
549
550
18.8k
void InitDefaultsCDCSDKTablePropertiesPB() {
551
18.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
552
18.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKTablePropertiesPBImpl);
553
18.8k
}
554
555
9.25k
void InitDefaultsCDCSDKSchemaPBImpl() {
556
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
557
558
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
559
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
560
#else
561
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
562
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
563
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB();
564
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB();
565
9.25k
  {
566
9.25k
    void* ptr = &::yb::cdc::_CDCSDKSchemaPB_default_instance_;
567
9.25k
    new (ptr) ::yb::cdc::CDCSDKSchemaPB();
568
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
569
9.25k
  }
570
9.25k
  ::yb::cdc::CDCSDKSchemaPB::InitAsDefaultInstance();
571
9.25k
}
572
573
18.8k
void InitDefaultsCDCSDKSchemaPB() {
574
18.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
575
18.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKSchemaPBImpl);
576
18.8k
}
577
578
9.25k
void InitDefaultsCDCSDKOpIdPBImpl() {
579
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
580
581
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
582
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
583
#else
584
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
585
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
586
9.25k
  {
587
9.25k
    void* ptr = &::yb::cdc::_CDCSDKOpIdPB_default_instance_;
588
9.25k
    new (ptr) ::yb::cdc::CDCSDKOpIdPB();
589
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
590
9.25k
  }
591
9.25k
  ::yb::cdc::CDCSDKOpIdPB::InitAsDefaultInstance();
592
9.25k
}
593
594
19.1k
void InitDefaultsCDCSDKOpIdPB() {
595
19.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
596
19.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKOpIdPBImpl);
597
19.1k
}
598
599
9.25k
void InitDefaultsTypeInfoImpl() {
600
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
601
602
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
603
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
604
#else
605
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
606
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
607
9.25k
  {
608
9.25k
    void* ptr = &::yb::cdc::_TypeInfo_default_instance_;
609
9.25k
    new (ptr) ::yb::cdc::TypeInfo();
610
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
611
9.25k
  }
612
9.25k
  ::yb::cdc::TypeInfo::InitAsDefaultInstance();
613
9.25k
}
614
615
18.5k
void InitDefaultsTypeInfo() {
616
18.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
617
18.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTypeInfoImpl);
618
18.5k
}
619
620
9.25k
void InitDefaultsRowMessageImpl() {
621
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
622
623
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
624
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
625
#else
626
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
627
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
628
9.25k
  protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsDatumMessagePB();
629
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo();
630
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB();
631
9.25k
  protobuf_yb_2ftserver_2ftserver_2eproto::InitDefaultsTruncateRequestPB();
632
9.25k
  {
633
9.25k
    void* ptr = &::yb::cdc::_RowMessage_default_instance_;
634
9.25k
    new (ptr) ::yb::cdc::RowMessage();
635
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
636
9.25k
  }
637
9.25k
  ::yb::cdc::RowMessage::InitAsDefaultInstance();
638
9.25k
}
639
640
32.1k
void InitDefaultsRowMessage() {
641
32.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
642
32.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRowMessageImpl);
643
32.1k
}
644
645
9.25k
void InitDefaultsCDCSDKProtoRecordPBImpl() {
646
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
647
648
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
649
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
650
#else
651
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
652
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
653
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage();
654
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB();
655
9.25k
  {
656
9.25k
    void* ptr = &::yb::cdc::_CDCSDKProtoRecordPB_default_instance_;
657
9.25k
    new (ptr) ::yb::cdc::CDCSDKProtoRecordPB();
658
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
659
9.25k
  }
660
9.25k
  ::yb::cdc::CDCSDKProtoRecordPB::InitAsDefaultInstance();
661
9.25k
}
662
663
32.1k
void InitDefaultsCDCSDKProtoRecordPB() {
664
32.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
665
32.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCSDKProtoRecordPBImpl);
666
32.1k
}
667
668
11.1k
void InitDefaultsGetChangesResponsePBImpl() {
669
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
670
671
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
672
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
673
#else
674
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
675
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
676
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
677
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB();
678
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
679
11.1k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
680
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB();
681
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB();
682
11.1k
  {
683
11.1k
    void* ptr = &::yb::cdc::_GetChangesResponsePB_default_instance_;
684
11.1k
    new (ptr) ::yb::cdc::GetChangesResponsePB();
685
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
686
11.1k
  }
687
11.1k
  ::yb::cdc::GetChangesResponsePB::InitAsDefaultInstance();
688
11.1k
}
689
690
11.5k
void InitDefaultsGetChangesResponsePB() {
691
11.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
692
11.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetChangesResponsePBImpl);
693
11.5k
}
694
695
11.1k
void InitDefaultsGetCheckpointRequestPBImpl() {
696
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
697
698
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
699
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
700
#else
701
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
702
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
703
11.1k
  {
704
11.1k
    void* ptr = &::yb::cdc::_GetCheckpointRequestPB_default_instance_;
705
11.1k
    new (ptr) ::yb::cdc::GetCheckpointRequestPB();
706
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
707
11.1k
  }
708
11.1k
  ::yb::cdc::GetCheckpointRequestPB::InitAsDefaultInstance();
709
11.1k
}
710
711
11.2k
void InitDefaultsGetCheckpointRequestPB() {
712
11.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
713
11.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCheckpointRequestPBImpl);
714
11.2k
}
715
716
11.1k
void InitDefaultsGetCheckpointResponsePBImpl() {
717
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
718
719
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
720
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
721
#else
722
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
723
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
724
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
725
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
726
11.1k
  {
727
11.1k
    void* ptr = &::yb::cdc::_GetCheckpointResponsePB_default_instance_;
728
11.1k
    new (ptr) ::yb::cdc::GetCheckpointResponsePB();
729
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
730
11.1k
  }
731
11.1k
  ::yb::cdc::GetCheckpointResponsePB::InitAsDefaultInstance();
732
11.1k
}
733
734
11.2k
void InitDefaultsGetCheckpointResponsePB() {
735
11.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
736
11.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCheckpointResponsePBImpl);
737
11.2k
}
738
739
11.1k
void InitDefaultsUpdateCdcReplicatedIndexRequestPBImpl() {
740
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
741
742
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
743
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
744
#else
745
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
746
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
747
11.1k
  {
748
11.1k
    void* ptr = &::yb::cdc::_UpdateCdcReplicatedIndexRequestPB_default_instance_;
749
11.1k
    new (ptr) ::yb::cdc::UpdateCdcReplicatedIndexRequestPB();
750
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
751
11.1k
  }
752
11.1k
  ::yb::cdc::UpdateCdcReplicatedIndexRequestPB::InitAsDefaultInstance();
753
11.1k
}
754
755
11.5k
void InitDefaultsUpdateCdcReplicatedIndexRequestPB() {
756
11.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
757
11.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCdcReplicatedIndexRequestPBImpl);
758
11.5k
}
759
760
11.1k
void InitDefaultsUpdateCdcReplicatedIndexResponsePBImpl() {
761
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
762
763
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
764
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
765
#else
766
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
767
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
768
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
769
11.1k
  {
770
11.1k
    void* ptr = &::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_;
771
11.1k
    new (ptr) ::yb::cdc::UpdateCdcReplicatedIndexResponsePB();
772
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
773
11.1k
  }
774
11.1k
  ::yb::cdc::UpdateCdcReplicatedIndexResponsePB::InitAsDefaultInstance();
775
11.1k
}
776
777
11.5k
void InitDefaultsUpdateCdcReplicatedIndexResponsePB() {
778
11.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
779
11.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCdcReplicatedIndexResponsePBImpl);
780
11.5k
}
781
782
11.1k
void InitDefaultsBootstrapProducerRequestPBImpl() {
783
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
784
785
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
786
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
787
#else
788
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
789
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
790
11.1k
  {
791
11.1k
    void* ptr = &::yb::cdc::_BootstrapProducerRequestPB_default_instance_;
792
11.1k
    new (ptr) ::yb::cdc::BootstrapProducerRequestPB();
793
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
794
11.1k
  }
795
11.1k
  ::yb::cdc::BootstrapProducerRequestPB::InitAsDefaultInstance();
796
11.1k
}
797
798
11.1k
void InitDefaultsBootstrapProducerRequestPB() {
799
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
800
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBootstrapProducerRequestPBImpl);
801
11.1k
}
802
803
11.1k
void InitDefaultsBootstrapProducerResponsePBImpl() {
804
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
805
806
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
807
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
808
#else
809
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
810
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
811
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
812
11.1k
  {
813
11.1k
    void* ptr = &::yb::cdc::_BootstrapProducerResponsePB_default_instance_;
814
11.1k
    new (ptr) ::yb::cdc::BootstrapProducerResponsePB();
815
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
816
11.1k
  }
817
11.1k
  ::yb::cdc::BootstrapProducerResponsePB::InitAsDefaultInstance();
818
11.1k
}
819
820
11.1k
void InitDefaultsBootstrapProducerResponsePB() {
821
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
822
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBootstrapProducerResponsePBImpl);
823
11.1k
}
824
825
11.1k
void InitDefaultsGetLatestEntryOpIdRequestPBImpl() {
826
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
827
828
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
829
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
830
#else
831
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
832
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
833
11.1k
  {
834
11.1k
    void* ptr = &::yb::cdc::_GetLatestEntryOpIdRequestPB_default_instance_;
835
11.1k
    new (ptr) ::yb::cdc::GetLatestEntryOpIdRequestPB();
836
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
837
11.1k
  }
838
11.1k
  ::yb::cdc::GetLatestEntryOpIdRequestPB::InitAsDefaultInstance();
839
11.1k
}
840
841
11.1k
void InitDefaultsGetLatestEntryOpIdRequestPB() {
842
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
843
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLatestEntryOpIdRequestPBImpl);
844
11.1k
}
845
846
11.1k
void InitDefaultsGetLatestEntryOpIdResponsePBImpl() {
847
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
848
849
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
850
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
851
#else
852
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
853
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
854
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
855
11.1k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
856
11.1k
  {
857
11.1k
    void* ptr = &::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_;
858
11.1k
    new (ptr) ::yb::cdc::GetLatestEntryOpIdResponsePB();
859
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
860
11.1k
  }
861
11.1k
  ::yb::cdc::GetLatestEntryOpIdResponsePB::InitAsDefaultInstance();
862
11.1k
}
863
864
11.1k
void InitDefaultsGetLatestEntryOpIdResponsePB() {
865
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
866
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLatestEntryOpIdResponsePBImpl);
867
11.1k
}
868
869
11.1k
void InitDefaultsTableInfoImpl() {
870
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
871
872
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
873
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
874
#else
875
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
876
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
877
11.1k
  {
878
11.1k
    void* ptr = &::yb::cdc::_TableInfo_default_instance_;
879
11.1k
    new (ptr) ::yb::cdc::TableInfo();
880
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
881
11.1k
  }
882
11.1k
  ::yb::cdc::TableInfo::InitAsDefaultInstance();
883
11.1k
}
884
885
22.3k
void InitDefaultsTableInfo() {
886
22.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
887
22.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTableInfoImpl);
888
22.3k
}
889
890
11.1k
void InitDefaultsGetCDCDBStreamInfoRequestPBImpl() {
891
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
892
893
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
894
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
895
#else
896
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
897
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
898
11.1k
  {
899
11.1k
    void* ptr = &::yb::cdc::_GetCDCDBStreamInfoRequestPB_default_instance_;
900
11.1k
    new (ptr) ::yb::cdc::GetCDCDBStreamInfoRequestPB();
901
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
902
11.1k
  }
903
11.1k
  ::yb::cdc::GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance();
904
11.1k
}
905
906
11.1k
void InitDefaultsGetCDCDBStreamInfoRequestPB() {
907
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
908
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoRequestPBImpl);
909
11.1k
}
910
911
11.1k
void InitDefaultsGetCDCDBStreamInfoResponsePBImpl() {
912
11.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
913
914
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
915
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
916
#else
917
11.1k
  ::google::protobuf::internal::InitProtobufDefaults();
918
11.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
919
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
920
11.1k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo();
921
11.1k
  {
922
11.1k
    void* ptr = &::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_;
923
11.1k
    new (ptr) ::yb::cdc::GetCDCDBStreamInfoResponsePB();
924
11.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
925
11.1k
  }
926
11.1k
  ::yb::cdc::GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance();
927
11.1k
}
928
929
11.1k
void InitDefaultsGetCDCDBStreamInfoResponsePB() {
930
11.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
931
11.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoResponsePBImpl);
932
11.1k
}
933
934
9.25k
void InitDefaultsSetCDCCheckpointRequestPBImpl() {
935
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
936
937
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
938
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
939
#else
940
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
941
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
942
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
943
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB();
944
9.25k
  {
945
9.25k
    void* ptr = &::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_;
946
9.25k
    new (ptr) ::yb::cdc::SetCDCCheckpointRequestPB();
947
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
948
9.25k
  }
949
9.25k
  ::yb::cdc::SetCDCCheckpointRequestPB::InitAsDefaultInstance();
950
9.25k
}
951
952
9.26k
void InitDefaultsSetCDCCheckpointRequestPB() {
953
9.26k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
954
9.26k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetCDCCheckpointRequestPBImpl);
955
9.26k
}
956
957
9.25k
void InitDefaultsSetCDCCheckpointResponsePBImpl() {
958
9.25k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
959
960
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
961
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
962
#else
963
9.25k
  ::google::protobuf::internal::InitProtobufDefaults();
964
9.25k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
965
9.25k
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
966
9.25k
  {
967
9.25k
    void* ptr = &::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_;
968
9.25k
    new (ptr) ::yb::cdc::SetCDCCheckpointResponsePB();
969
9.25k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
970
9.25k
  }
971
9.25k
  ::yb::cdc::SetCDCCheckpointResponsePB::InitAsDefaultInstance();
972
9.25k
}
973
974
9.26k
void InitDefaultsSetCDCCheckpointResponsePB() {
975
9.26k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
976
9.26k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetCDCCheckpointResponsePBImpl);
977
9.26k
}
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
  0,
1258
  3,
1259
  4,
1260
  ~0u,
1261
  1,
1262
  ~0u,
1263
  ~0u,
1264
  2,
1265
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, _has_bits_),
1266
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, _internal_metadata_),
1267
  ~0u,  // no _extensions_
1268
  ~0u,  // no _oneof_case_
1269
  ~0u,  // no _weak_field_map_
1270
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, stream_id_),
1271
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointRequestPB, tablet_id_),
1272
  0,
1273
  1,
1274
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, _has_bits_),
1275
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, _internal_metadata_),
1276
  ~0u,  // no _extensions_
1277
  ~0u,  // no _oneof_case_
1278
  ~0u,  // no _weak_field_map_
1279
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, error_),
1280
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCheckpointResponsePB, checkpoint_),
1281
  0,
1282
  1,
1283
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, _has_bits_),
1284
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, _internal_metadata_),
1285
  ~0u,  // no _extensions_
1286
  ~0u,  // no _oneof_case_
1287
  ~0u,  // no _weak_field_map_
1288
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, tablet_id_),
1289
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, replicated_index_),
1290
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexRequestPB, replicated_term_),
1291
  0,
1292
  1,
1293
  2,
1294
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, _has_bits_),
1295
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, _internal_metadata_),
1296
  ~0u,  // no _extensions_
1297
  ~0u,  // no _oneof_case_
1298
  ~0u,  // no _weak_field_map_
1299
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::UpdateCdcReplicatedIndexResponsePB, error_),
1300
  0,
1301
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, _has_bits_),
1302
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, _internal_metadata_),
1303
  ~0u,  // no _extensions_
1304
  ~0u,  // no _oneof_case_
1305
  ~0u,  // no _weak_field_map_
1306
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerRequestPB, table_ids_),
1307
  ~0u,
1308
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, _has_bits_),
1309
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, _internal_metadata_),
1310
  ~0u,  // no _extensions_
1311
  ~0u,  // no _oneof_case_
1312
  ~0u,  // no _weak_field_map_
1313
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, error_),
1314
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::BootstrapProducerResponsePB, cdc_bootstrap_ids_),
1315
  0,
1316
  ~0u,
1317
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, _has_bits_),
1318
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, _internal_metadata_),
1319
  ~0u,  // no _extensions_
1320
  ~0u,  // no _oneof_case_
1321
  ~0u,  // no _weak_field_map_
1322
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdRequestPB, tablet_id_),
1323
  0,
1324
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, _has_bits_),
1325
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, _internal_metadata_),
1326
  ~0u,  // no _extensions_
1327
  ~0u,  // no _oneof_case_
1328
  ~0u,  // no _weak_field_map_
1329
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, error_),
1330
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetLatestEntryOpIdResponsePB, op_id_),
1331
  0,
1332
  1,
1333
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, _has_bits_),
1334
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, _internal_metadata_),
1335
  ~0u,  // no _extensions_
1336
  ~0u,  // no _oneof_case_
1337
  ~0u,  // no _weak_field_map_
1338
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, stream_id_),
1339
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::TableInfo, table_id_),
1340
  0,
1341
  1,
1342
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, _has_bits_),
1343
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, _internal_metadata_),
1344
  ~0u,  // no _extensions_
1345
  ~0u,  // no _oneof_case_
1346
  ~0u,  // no _weak_field_map_
1347
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoRequestPB, db_stream_id_),
1348
  0,
1349
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, _has_bits_),
1350
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, _internal_metadata_),
1351
  ~0u,  // no _extensions_
1352
  ~0u,  // no _oneof_case_
1353
  ~0u,  // no _weak_field_map_
1354
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, error_),
1355
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, namespace_id_),
1356
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::GetCDCDBStreamInfoResponsePB, table_info_),
1357
  1,
1358
  0,
1359
  ~0u,
1360
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, _has_bits_),
1361
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, _internal_metadata_),
1362
  ~0u,  // no _extensions_
1363
  ~0u,  // no _oneof_case_
1364
  ~0u,  // no _weak_field_map_
1365
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, checkpoint_),
1366
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, cdc_sdk_checkpoint_),
1367
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, stream_id_),
1368
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointRequestPB, tablet_id_),
1369
  2,
1370
  3,
1371
  0,
1372
  1,
1373
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, _has_bits_),
1374
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, _internal_metadata_),
1375
  ~0u,  // no _extensions_
1376
  ~0u,  // no _oneof_case_
1377
  ~0u,  // no _weak_field_map_
1378
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::SetCDCCheckpointResponsePB, error_),
1379
  0,
1380
};
1381
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1382
  { 0, 7, sizeof(::yb::cdc::CDCErrorPB)},
1383
  { 9, 20, sizeof(::yb::cdc::CreateCDCStreamRequestPB)},
1384
  { 26, 34, sizeof(::yb::cdc::CreateCDCStreamResponsePB)},
1385
  { 37, 45, sizeof(::yb::cdc::DeleteCDCStreamRequestPB)},
1386
  { 48, 54, sizeof(::yb::cdc::DeleteCDCStreamResponsePB)},
1387
  { 55, 62, sizeof(::yb::cdc::ListTabletsRequestPB)},
1388
  { 64, 71, sizeof(::yb::cdc::ListTabletsResponsePB)},
1389
  { 73, 79, sizeof(::yb::cdc::CDCTabletPB_ReplicaPB)},
1390
  { 80, 87, sizeof(::yb::cdc::CDCTabletPB)},
1391
  { 89, 99, sizeof(::yb::cdc::CDCSDKCheckpointPB)},
1392
  { 104, 110, sizeof(::yb::cdc::CDCCheckpointPB)},
1393
  { 111, 124, sizeof(::yb::cdc::GetChangesRequestPB)},
1394
  { 132, 139, sizeof(::yb::cdc::KeyValuePairPB)},
1395
  { 141, 155, sizeof(::yb::cdc::CDCRecordPB)},
1396
  { 164, 175, sizeof(::yb::cdc::CDCSDKColumnInfoPB)},
1397
  { 181, 189, sizeof(::yb::cdc::CDCSDKTablePropertiesPB)},
1398
  { 192, 199, sizeof(::yb::cdc::CDCSDKSchemaPB)},
1399
  { 201, 210, sizeof(::yb::cdc::CDCSDKOpIdPB)},
1400
  { 214, 221, sizeof(::yb::cdc::TypeInfo)},
1401
  { 223, 240, sizeof(::yb::cdc::RowMessage)},
1402
  { 252, 259, sizeof(::yb::cdc::CDCSDKProtoRecordPB)},
1403
  { 261, 274, sizeof(::yb::cdc::GetChangesResponsePB)},
1404
  { 282, 289, sizeof(::yb::cdc::GetCheckpointRequestPB)},
1405
  { 291, 298, sizeof(::yb::cdc::GetCheckpointResponsePB)},
1406
  { 300, 308, sizeof(::yb::cdc::UpdateCdcReplicatedIndexRequestPB)},
1407
  { 311, 317, sizeof(::yb::cdc::UpdateCdcReplicatedIndexResponsePB)},
1408
  { 318, 324, sizeof(::yb::cdc::BootstrapProducerRequestPB)},
1409
  { 325, 332, sizeof(::yb::cdc::BootstrapProducerResponsePB)},
1410
  { 334, 340, sizeof(::yb::cdc::GetLatestEntryOpIdRequestPB)},
1411
  { 341, 348, sizeof(::yb::cdc::GetLatestEntryOpIdResponsePB)},
1412
  { 350, 357, sizeof(::yb::cdc::TableInfo)},
1413
  { 359, 365, sizeof(::yb::cdc::GetCDCDBStreamInfoRequestPB)},
1414
  { 366, 374, sizeof(::yb::cdc::GetCDCDBStreamInfoResponsePB)},
1415
  { 377, 386, sizeof(::yb::cdc::SetCDCCheckpointRequestPB)},
1416
  { 390, 396, sizeof(::yb::cdc::SetCDCCheckpointResponsePB)},
1417
};
1418
1419
static ::google::protobuf::Message const * const file_default_instances[] = {
1420
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCErrorPB_default_instance_),
1421
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CreateCDCStreamRequestPB_default_instance_),
1422
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CreateCDCStreamResponsePB_default_instance_),
1423
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_DeleteCDCStreamRequestPB_default_instance_),
1424
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_),
1425
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ListTabletsRequestPB_default_instance_),
1426
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ListTabletsResponsePB_default_instance_),
1427
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCTabletPB_ReplicaPB_default_instance_),
1428
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCTabletPB_default_instance_),
1429
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKCheckpointPB_default_instance_),
1430
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCCheckpointPB_default_instance_),
1431
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetChangesRequestPB_default_instance_),
1432
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_KeyValuePairPB_default_instance_),
1433
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCRecordPB_default_instance_),
1434
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKColumnInfoPB_default_instance_),
1435
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKTablePropertiesPB_default_instance_),
1436
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKSchemaPB_default_instance_),
1437
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKOpIdPB_default_instance_),
1438
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_TypeInfo_default_instance_),
1439
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_RowMessage_default_instance_),
1440
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_CDCSDKProtoRecordPB_default_instance_),
1441
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetChangesResponsePB_default_instance_),
1442
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCheckpointRequestPB_default_instance_),
1443
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCheckpointResponsePB_default_instance_),
1444
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_UpdateCdcReplicatedIndexRequestPB_default_instance_),
1445
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_),
1446
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_BootstrapProducerRequestPB_default_instance_),
1447
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_BootstrapProducerResponsePB_default_instance_),
1448
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetLatestEntryOpIdRequestPB_default_instance_),
1449
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_),
1450
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_TableInfo_default_instance_),
1451
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCDCDBStreamInfoRequestPB_default_instance_),
1452
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_),
1453
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_),
1454
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_),
1455
};
1456
1457
85
void protobuf_AssignDescriptors() {
1458
85
  AddDescriptors();
1459
85
  ::google::protobuf::MessageFactory* factory = NULL;
1460
85
  AssignDescriptors(
1461
85
      "yb/cdc/cdc_service.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1462
85
      file_level_metadata, file_level_enum_descriptors, NULL);
1463
85
}
1464
1465
1.44k
void protobuf_AssignDescriptorsOnce() {
1466
1.44k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1467
1.44k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1468
1.44k
}
1469
1470
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
1471
0
void protobuf_RegisterTypes(const ::std::string&) {
1472
0
  protobuf_AssignDescriptorsOnce();
1473
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 35);
1474
0
}
1475
1476
11.1k
void AddDescriptorsImpl() {
1477
11.1k
  InitDefaults();
1478
11.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1479
11.1k
      "\n\030yb/cdc/cdc_service.proto\022\006yb.cdc\032\026yb/c"
1480
11.1k
      "ommon/common.proto\032\032yb/common/common_net"
1481
11.1k
      ".proto\032\025yb/common/value.proto\032\035yb/common"
1482
11.1k
      "/wire_protocol.proto\032\024yb/rpc/service.pro"
1483
11.1k
      "to\032\032yb/tablet/operations.proto\032\030yb/tserv"
1484
11.1k
      "er/tserver.proto\032\022yb/util/opid.proto\"\324\002\n"
1485
11.1k
      "\nCDCErrorPB\0224\n\004code\030\001 \001(\0162\027.yb.cdc.CDCEr"
1486
11.1k
      "rorPB.Code:\rUNKNOWN_ERROR\022\037\n\006status\030\002 \001("
1487
11.1k
      "\0132\017.yb.AppStatusPB\"\356\001\n\004Code\022\021\n\rUNKNOWN_E"
1488
11.1k
      "RROR\020\001\022\024\n\020TABLET_NOT_FOUND\020\002\022\023\n\017TABLE_NO"
1489
11.1k
      "T_FOUND\020\003\022\030\n\024SUBSCRIBER_NOT_FOUND\020\004\022\026\n\022C"
1490
11.1k
      "HECKPOINT_TOO_OLD\020\005\022\026\n\022TABLET_NOT_RUNNIN"
1491
11.1k
      "G\020\006\022\016\n\nNOT_LEADER\020\007\022\024\n\020LEADER_NOT_READY\020"
1492
11.1k
      "\013\022\017\n\013NOT_RUNNING\020\010\022\022\n\016INTERNAL_ERROR\020\t\022\023"
1493
11.1k
      "\n\017INVALID_REQUEST\020\n\"\245\002\n\030CreateCDCStreamR"
1494
11.1k
      "equestPB\022\020\n\010table_id\030\001 \001(\t\0222\n\013record_typ"
1495
11.1k
      "e\030\002 \001(\0162\025.yb.cdc.CDCRecordType:\006CHANGE\0224"
1496
11.1k
      "\n\rrecord_format\030\003 \001(\0162\027.yb.cdc.CDCRecord"
1497
11.1k
      "Format:\004JSON\022\026\n\016namespace_name\030\004 \001(\t\0227\n\013"
1498
11.1k
      "source_type\030\005 \001(\0162\030.yb.cdc.CDCRequestSou"
1499
11.1k
      "rce:\010XCLUSTER\022<\n\017checkpoint_type\030\006 \001(\0162\031"
1500
11.1k
      ".yb.cdc.CDCCheckpointType:\010IMPLICIT\"g\n\031C"
1501
11.1k
      "reateCDCStreamResponsePB\022!\n\005error\030\001 \001(\0132"
1502
11.1k
      "\022.yb.cdc.CDCErrorPB\022\021\n\tstream_id\030\002 \001(\014\022\024"
1503
11.1k
      "\n\014db_stream_id\030\003 \001(\014\"h\n\030DeleteCDCStreamR"
1504
11.1k
      "equestPB\022\021\n\tstream_id\030\001 \003(\014\022\034\n\rignore_er"
1505
11.1k
      "rors\030\002 \001(\010:\005false\022\033\n\014force_delete\030\003 \001(\010:"
1506
11.1k
      "\005false\">\n\031DeleteCDCStreamResponsePB\022!\n\005e"
1507
11.1k
      "rror\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\"D\n\024ListTa"
1508
11.1k
      "bletsRequestPB\022\021\n\tstream_id\030\001 \001(\t\022\031\n\nloc"
1509
11.1k
      "al_only\030\002 \001(\010:\005false\"`\n\025ListTabletsRespo"
1510
11.1k
      "nsePB\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB"
1511
11.1k
      "\022$\n\007tablets\030\002 \003(\0132\023.yb.cdc.CDCTabletPB\"\213"
1512
11.1k
      "\001\n\013CDCTabletPB\022\021\n\ttablet_id\030\001 \001(\014\022/\n\010tse"
1513
11.1k
      "rvers\030\002 \003(\0132\035.yb.cdc.CDCTabletPB.Replica"
1514
11.1k
      "PB\0328\n\tReplicaPB\022+\n\023broadcast_addresses\030\001"
1515
11.1k
      " \003(\0132\016.yb.HostPortPB\"j\n\022CDCSDKCheckpoint"
1516
11.1k
      "PB\022\014\n\004term\030\001 \001(\003\022\r\n\005index\030\002 \001(\003\022\013\n\003key\030\003"
1517
11.1k
      " \001(\014\022\023\n\010write_id\030\004 \001(\005:\0010\022\025\n\rsnapshot_ti"
1518
11.1k
      "me\030\005 \001(\004\",\n\017CDCCheckpointPB\022\031\n\005op_id\030\001 \001"
1519
11.1k
      "(\0132\n.yb.OpIdPB\"\205\002\n\023GetChangesRequestPB\022\021"
1520
11.1k
      "\n\tstream_id\030\001 \001(\014\022\021\n\ttablet_id\030\002 \001(\014\0220\n\017"
1521
11.1k
      "from_checkpoint\030\003 \001(\0132\027.yb.cdc.CDCCheckp"
1522
11.1k
      "ointPB\022\023\n\013max_records\030\004 \001(\r\022\034\n\016serve_as_"
1523
11.1k
      "proxy\030\005 \001(\010:\004true\022\024\n\014db_stream_id\030\006 \001(\014\022"
1524
11.1k
      "\020\n\010table_id\030\007 \001(\014\022;\n\027from_cdc_sdk_checkp"
1525
11.1k
      "oint\030\010 \001(\0132\032.yb.cdc.CDCSDKCheckpointPB\";"
1526
11.1k
      "\n\016KeyValuePairPB\022\013\n\003key\030\001 \001(\014\022\034\n\005value\030\002"
1527
11.1k
      " \001(\0132\r.yb.QLValuePB\"\314\003\n\013CDCRecordPB\022\014\n\004t"
1528
11.1k
      "ime\030\001 \001(\004\0224\n\toperation\030\002 \001(\0162!.yb.cdc.CD"
1529
11.1k
      "CRecordPB.OperationType\022#\n\003key\030\003 \003(\0132\026.y"
1530
11.1k
      "b.cdc.KeyValuePairPB\022\'\n\007changes\030\004 \003(\0132\026."
1531
11.1k
      "yb.cdc.KeyValuePairPB\022&\n\006before\030\005 \003(\0132\026."
1532
11.1k
      "yb.cdc.KeyValuePairPB\022%\n\005after\030\006 \003(\0132\026.y"
1533
11.1k
      "b.cdc.KeyValuePairPB\0228\n\021transaction_stat"
1534
11.1k
      "e\030\007 \001(\0132\035.yb.tablet.TransactionStatePB\022\""
1535
11.1k
      "\n\tpartition\030\t \001(\0132\017.yb.PartitionPB\022=\n\024sp"
1536
11.1k
      "lit_tablet_request\030\n \001(\0132\037.yb.tablet.Spl"
1537
11.1k
      "itTabletRequestPB\"\?\n\rOperationType\022\t\n\005WR"
1538
11.1k
      "ITE\020\001\022\n\n\006DELETE\020\002\022\t\n\005APPLY\020\003\022\014\n\010SPLIT_OP"
1539
11.1k
      "\020\004\"\235\001\n\022CDCSDKColumnInfoPB\022\014\n\004name\030\001 \001(\t\022"
1540
11.1k
      "\032\n\004type\030\002 \001(\0132\014.yb.QLTypePB\022\025\n\006is_key\030\003 "
1541
11.1k
      "\001(\010:\005false\022\032\n\013is_hash_key\030\004 \001(\010:\005false\022\032"
1542
11.1k
      "\n\013is_nullable\030\005 \001(\010:\005false\022\016\n\003oid\030\006 \001(\005:"
1543
11.1k
      "\0010\"u\n\027CDCSDKTablePropertiesPB\022\034\n\024default"
1544
11.1k
      "_time_to_live\030\001 \001(\004\022\026\n\013num_tablets\030\002 \001(\005"
1545
11.1k
      ":\0010\022$\n\025is_ysql_catalog_table\030\003 \001(\010:\005fals"
1546
11.1k
      "e\"t\n\016CDCSDKSchemaPB\022/\n\013column_info\030\001 \003(\013"
1547
11.1k
      "2\032.yb.cdc.CDCSDKColumnInfoPB\0221\n\010tab_info"
1548
11.1k
      "\030\002 \001(\0132\037.yb.cdc.CDCSDKTablePropertiesPB\""
1549
11.1k
      "X\n\014CDCSDKOpIdPB\022\014\n\004term\030\001 \001(\003\022\r\n\005index\030\002"
1550
11.1k
      " \001(\003\022\023\n\010write_id\030\003 \001(\r:\0010\022\026\n\014write_id_ke"
1551
11.1k
      "y\030\004 \001(\014:\000\"4\n\010TypeInfo\022\020\n\010modifier\030\001 \001(\t\022"
1552
11.1k
      "\026\n\016value_optional\030\002 \001(\010\"\206\004\n\nRowMessage\022\026"
1553
11.1k
      "\n\016transaction_id\030\001 \001(\014\022\023\n\013commit_time\030\002 "
1554
11.1k
      "\001(\004\022\r\n\005table\030\003 \001(\t\022!\n\002op\030\004 \001(\0162\025.yb.cdc."
1555
11.1k
      "RowMessage.Op\022%\n\tnew_tuple\030\005 \003(\0132\022.yb.Da"
1556
11.1k
      "tumMessagePB\022%\n\told_tuple\030\006 \003(\0132\022.yb.Dat"
1557
11.1k
      "umMessagePB\022&\n\014new_typeinfo\030\007 \003(\0132\020.yb.c"
1558
11.1k
      "dc.TypeInfo\022&\n\006schema\030\010 \001(\0132\026.yb.cdc.CDC"
1559
11.1k
      "SDKSchemaPB\022\026\n\016schema_version\030\t \001(\r\022\026\n\016n"
1560
11.1k
      "ew_table_name\030\n \001(\t\022\025\n\rpgschema_name\030\013 \001"
1561
11.1k
      "(\t\022<\n\025truncate_request_info\030\r \001(\0132\035.yb.t"
1562
11.1k
      "server.TruncateRequestPB\"v\n\002Op\022\024\n\007UNKNOW"
1563
11.1k
      "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"
1564
11.1k
      "DELETE\020\002\022\t\n\005BEGIN\020\003\022\n\n\006COMMIT\020\004\022\007\n\003DDL\020\005"
1565
11.1k
      "\022\014\n\010TRUNCATE\020\006\022\010\n\004READ\020\007\"k\n\023CDCSDKProtoR"
1566
11.1k
      "ecordPB\022\'\n\013row_message\030\001 \001(\0132\022.yb.cdc.Ro"
1567
11.1k
      "wMessage\022+\n\rcdc_sdk_op_id\030\002 \001(\0132\024.yb.cdc"
1568
11.1k
      ".CDCSDKOpIdPB\"\205\003\n\024GetChangesResponsePB\022!"
1569
11.1k
      "\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\0222\n\013rec"
1570
11.1k
      "ord_type\030\002 \001(\0162\025.yb.cdc.CDCRecordType:\006C"
1571
11.1k
      "HANGE\022.\n\rrecord_format\030\003 \001(\0162\027.yb.cdc.CD"
1572
11.1k
      "CRecordFormat\022$\n\007records\030\004 \003(\0132\023.yb.cdc."
1573
11.1k
      "CDCRecordPB\022+\n\ncheckpoint\030\005 \001(\0132\027.yb.cdc"
1574
11.1k
      ".CDCCheckpointPB\022\037\n\007tserver\030\006 \003(\0132\016.yb.H"
1575
11.1k
      "ostPortPB\022:\n\025cdc_sdk_proto_records\030\010 \003(\013"
1576
11.1k
      "2\033.yb.cdc.CDCSDKProtoRecordPB\0226\n\022cdc_sdk"
1577
11.1k
      "_checkpoint\030\t \001(\0132\032.yb.cdc.CDCSDKCheckpo"
1578
11.1k
      "intPB\">\n\026GetCheckpointRequestPB\022\021\n\tstrea"
1579
11.1k
      "m_id\030\001 \001(\014\022\021\n\ttablet_id\030\002 \001(\014\"i\n\027GetChec"
1580
11.1k
      "kpointResponsePB\022!\n\005error\030\001 \001(\0132\022.yb.cdc"
1581
11.1k
      ".CDCErrorPB\022+\n\ncheckpoint\030\002 \001(\0132\027.yb.cdc"
1582
11.1k
      ".CDCCheckpointPB\"i\n!UpdateCdcReplicatedI"
1583
11.1k
      "ndexRequestPB\022\021\n\ttablet_id\030\001 \001(\014\022\030\n\020repl"
1584
11.1k
      "icated_index\030\002 \001(\003\022\027\n\017replicated_term\030\003 "
1585
11.1k
      "\001(\003\"G\n\"UpdateCdcReplicatedIndexResponseP"
1586
11.1k
      "B\022!\n\005error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\"/\n\032"
1587
11.1k
      "BootstrapProducerRequestPB\022\021\n\ttable_ids\030"
1588
11.1k
      "\001 \003(\t\"[\n\033BootstrapProducerResponsePB\022!\n\005"
1589
11.1k
      "error\030\001 \001(\0132\022.yb.cdc.CDCErrorPB\022\031\n\021cdc_b"
1590
11.1k
      "ootstrap_ids\030\002 \003(\014\"0\n\033GetLatestEntryOpId"
1591
11.1k
      "RequestPB\022\021\n\ttablet_id\030\001 \001(\014\"\\\n\034GetLates"
1592
11.1k
      "tEntryOpIdResponsePB\022!\n\005error\030\001 \001(\0132\022.yb"
1593
11.1k
      ".cdc.CDCErrorPB\022\031\n\005op_id\030\002 \001(\0132\n.yb.OpId"
1594
11.1k
      "PB\"0\n\tTableInfo\022\021\n\tstream_id\030\001 \001(\014\022\020\n\010ta"
1595
11.1k
      "ble_id\030\002 \001(\014\"3\n\033GetCDCDBStreamInfoReques"
1596
11.1k
      "tPB\022\024\n\014db_stream_id\030\001 \001(\014\"~\n\034GetCDCDBStr"
1597
11.1k
      "eamInfoResponsePB\022!\n\005error\030\001 \001(\0132\022.yb.cd"
1598
11.1k
      "c.CDCErrorPB\022\024\n\014namespace_id\030\002 \001(\014\022%\n\nta"
1599
11.1k
      "ble_info\030\003 \003(\0132\021.yb.cdc.TableInfo\"\246\001\n\031Se"
1600
11.1k
      "tCDCCheckpointRequestPB\022+\n\ncheckpoint\030\001 "
1601
11.1k
      "\001(\0132\027.yb.cdc.CDCCheckpointPB\0226\n\022cdc_sdk_"
1602
11.1k
      "checkpoint\030\002 \001(\0132\032.yb.cdc.CDCSDKCheckpoi"
1603
11.1k
      "ntPB\022\021\n\tstream_id\030\003 \001(\014\022\021\n\ttablet_id\030\004 \001"
1604
11.1k
      "(\014\"\?\n\032SetCDCCheckpointResponsePB\022!\n\005erro"
1605
11.1k
      "r\030\001 \001(\0132\022.yb.cdc.CDCErrorPB*/\n\rCDCRecord"
1606
11.1k
      "Type\022\n\n\006CHANGE\020\001\022\t\n\005AFTER\020\002\022\007\n\003ALL\020\003*/\n\017"
1607
11.1k
      "CDCRecordFormat\022\010\n\004JSON\020\001\022\007\n\003WAL\020\002\022\t\n\005PR"
1608
11.1k
      "OTO\020\003*,\n\020CDCRequestSource\022\014\n\010XCLUSTER\020\001\022"
1609
11.1k
      "\n\n\006CDCSDK\020\002*/\n\021CDCCheckpointType\022\014\n\010IMPL"
1610
11.1k
      "ICIT\020\001\022\014\n\010EXPLICIT\020\0022\227\007\n\nCDCService\022V\n\017C"
1611
11.1k
      "reateCDCStream\022 .yb.cdc.CreateCDCStreamR"
1612
11.1k
      "equestPB\032!.yb.cdc.CreateCDCStreamRespons"
1613
11.1k
      "ePB\022V\n\017DeleteCDCStream\022 .yb.cdc.DeleteCD"
1614
11.1k
      "CStreamRequestPB\032!.yb.cdc.DeleteCDCStrea"
1615
11.1k
      "mResponsePB\022J\n\013ListTablets\022\034.yb.cdc.List"
1616
11.1k
      "TabletsRequestPB\032\035.yb.cdc.ListTabletsRes"
1617
11.1k
      "ponsePB\022G\n\nGetChanges\022\033.yb.cdc.GetChange"
1618
11.1k
      "sRequestPB\032\034.yb.cdc.GetChangesResponsePB"
1619
11.1k
      "\022P\n\rGetCheckpoint\022\036.yb.cdc.GetCheckpoint"
1620
11.1k
      "RequestPB\032\037.yb.cdc.GetCheckpointResponse"
1621
11.1k
      "PB\022q\n\030UpdateCdcReplicatedIndex\022).yb.cdc."
1622
11.1k
      "UpdateCdcReplicatedIndexRequestPB\032*.yb.c"
1623
11.1k
      "dc.UpdateCdcReplicatedIndexResponsePB\022\\\n"
1624
11.1k
      "\021BootstrapProducer\022\".yb.cdc.BootstrapPro"
1625
11.1k
      "ducerRequestPB\032#.yb.cdc.BootstrapProduce"
1626
11.1k
      "rResponsePB\022_\n\022GetLatestEntryOpId\022#.yb.c"
1627
11.1k
      "dc.GetLatestEntryOpIdRequestPB\032$.yb.cdc."
1628
11.1k
      "GetLatestEntryOpIdResponsePB\022_\n\022GetCDCDB"
1629
11.1k
      "StreamInfo\022#.yb.cdc.GetCDCDBStreamInfoRe"
1630
11.1k
      "questPB\032$.yb.cdc.GetCDCDBStreamInfoRespo"
1631
11.1k
      "nsePB\022_\n\020SetCDCCheckpoint\022!.yb.cdc.SetCD"
1632
11.1k
      "CCheckpointRequestPB\032\".yb.cdc.SetCDCChec"
1633
11.1k
      "kpointResponsePB\"\004\210\265\030\001B\014\n\norg.yb.cdc"
1634
11.1k
  };
1635
11.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1636
11.1k
      descriptor, 6196);
1637
11.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1638
11.1k
    "yb/cdc/cdc_service.proto", &protobuf_RegisterTypes);
1639
11.1k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
1640
11.1k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
1641
11.1k
  ::protobuf_yb_2fcommon_2fvalue_2eproto::AddDescriptors();
1642
11.1k
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors();
1643
11.1k
  ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors();
1644
11.1k
  ::protobuf_yb_2ftablet_2foperations_2eproto::AddDescriptors();
1645
11.1k
  ::protobuf_yb_2ftserver_2ftserver_2eproto::AddDescriptors();
1646
11.1k
  ::protobuf_yb_2futil_2fopid_2eproto::AddDescriptors();
1647
11.1k
}
1648
1649
11.2k
void AddDescriptors() {
1650
11.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1651
11.2k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1652
11.2k
}
1653
// Force AddDescriptors() to be called at dynamic initialization time.
1654
struct StaticDescriptorInitializer {
1655
11.1k
  StaticDescriptorInitializer() {
1656
11.1k
    AddDescriptors();
1657
11.1k
  }
1658
} static_descriptor_initializer;
1659
}  // namespace protobuf_yb_2fcdc_2fcdc_5fservice_2eproto
1660
namespace yb {
1661
namespace cdc {
1662
0
const ::google::protobuf::EnumDescriptor* CDCErrorPB_Code_descriptor() {
1663
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1664
0
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[0];
1665
0
}
1666
2
bool CDCErrorPB_Code_IsValid(int value) {
1667
2
  switch (value) {
1668
0
    case 1:
1669
0
    case 2:
1670
0
    case 3:
1671
0
    case 4:
1672
0
    case 5:
1673
0
    case 6:
1674
0
    case 7:
1675
0
    case 8:
1676
0
    case 9:
1677
2
    case 10:
1678
2
    case 11:
1679
2
      return true;
1680
0
    default:
1681
0
      return false;
1682
2
  }
1683
2
}
1684
1685
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1686
const CDCErrorPB_Code CDCErrorPB::UNKNOWN_ERROR;
1687
const CDCErrorPB_Code CDCErrorPB::TABLET_NOT_FOUND;
1688
const CDCErrorPB_Code CDCErrorPB::TABLE_NOT_FOUND;
1689
const CDCErrorPB_Code CDCErrorPB::SUBSCRIBER_NOT_FOUND;
1690
const CDCErrorPB_Code CDCErrorPB::CHECKPOINT_TOO_OLD;
1691
const CDCErrorPB_Code CDCErrorPB::TABLET_NOT_RUNNING;
1692
const CDCErrorPB_Code CDCErrorPB::NOT_LEADER;
1693
const CDCErrorPB_Code CDCErrorPB::LEADER_NOT_READY;
1694
const CDCErrorPB_Code CDCErrorPB::NOT_RUNNING;
1695
const CDCErrorPB_Code CDCErrorPB::INTERNAL_ERROR;
1696
const CDCErrorPB_Code CDCErrorPB::INVALID_REQUEST;
1697
const CDCErrorPB_Code CDCErrorPB::Code_MIN;
1698
const CDCErrorPB_Code CDCErrorPB::Code_MAX;
1699
const int CDCErrorPB::Code_ARRAYSIZE;
1700
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1701
0
const ::google::protobuf::EnumDescriptor* CDCRecordPB_OperationType_descriptor() {
1702
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1703
0
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[1];
1704
0
}
1705
0
bool CDCRecordPB_OperationType_IsValid(int value) {
1706
0
  switch (value) {
1707
0
    case 1:
1708
0
    case 2:
1709
0
    case 3:
1710
0
    case 4:
1711
0
      return true;
1712
0
    default:
1713
0
      return false;
1714
0
  }
1715
0
}
1716
1717
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1718
const CDCRecordPB_OperationType CDCRecordPB::WRITE;
1719
const CDCRecordPB_OperationType CDCRecordPB::DELETE;
1720
const CDCRecordPB_OperationType CDCRecordPB::APPLY;
1721
const CDCRecordPB_OperationType CDCRecordPB::SPLIT_OP;
1722
const CDCRecordPB_OperationType CDCRecordPB::OperationType_MIN;
1723
const CDCRecordPB_OperationType CDCRecordPB::OperationType_MAX;
1724
const int CDCRecordPB::OperationType_ARRAYSIZE;
1725
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1726
0
const ::google::protobuf::EnumDescriptor* RowMessage_Op_descriptor() {
1727
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1728
0
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[2];
1729
0
}
1730
13.7k
bool RowMessage_Op_IsValid(int value) {
1731
13.7k
  switch (value) {
1732
0
    case -1:
1733
323
    case 0:
1734
443
    case 1:
1735
551
    case 2:
1736
625
    case 3:
1737
699
    case 4:
1738
1.01k
    case 5:
1739
1.01k
    case 6:
1740
13.7k
    case 7:
1741
13.7k
      return true;
1742
0
    default:
1743
0
      return false;
1744
13.7k
  }
1745
13.7k
}
1746
1747
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1748
const RowMessage_Op RowMessage::UNKNOWN;
1749
const RowMessage_Op RowMessage::INSERT;
1750
const RowMessage_Op RowMessage::UPDATE;
1751
const RowMessage_Op RowMessage::DELETE;
1752
const RowMessage_Op RowMessage::BEGIN;
1753
const RowMessage_Op RowMessage::COMMIT;
1754
const RowMessage_Op RowMessage::DDL;
1755
const RowMessage_Op RowMessage::TRUNCATE;
1756
const RowMessage_Op RowMessage::READ;
1757
const RowMessage_Op RowMessage::Op_MIN;
1758
const RowMessage_Op RowMessage::Op_MAX;
1759
const int RowMessage::Op_ARRAYSIZE;
1760
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1761
153
const ::google::protobuf::EnumDescriptor* CDCRecordType_descriptor() {
1762
153
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1763
153
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[3];
1764
153
}
1765
4
bool CDCRecordType_IsValid(int value) {
1766
4
  switch (value) {
1767
4
    case 1:
1768
4
    case 2:
1769
4
    case 3:
1770
4
      return true;
1771
0
    default:
1772
0
      return false;
1773
4
  }
1774
4
}
1775
1776
153
const ::google::protobuf::EnumDescriptor* CDCRecordFormat_descriptor() {
1777
153
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1778
153
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[4];
1779
153
}
1780
308
bool CDCRecordFormat_IsValid(int value) {
1781
308
  switch (value) {
1782
0
    case 1:
1783
0
    case 2:
1784
308
    case 3:
1785
308
      return true;
1786
0
    default:
1787
0
      return false;
1788
308
  }
1789
308
}
1790
1791
153
const ::google::protobuf::EnumDescriptor* CDCRequestSource_descriptor() {
1792
153
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1793
153
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[5];
1794
153
}
1795
308
bool CDCRequestSource_IsValid(int value) {
1796
308
  switch (value) {
1797
0
    case 1:
1798
308
    case 2:
1799
308
      return true;
1800
0
    default:
1801
0
      return false;
1802
308
  }
1803
308
}
1804
1805
153
const ::google::protobuf::EnumDescriptor* CDCCheckpointType_descriptor() {
1806
153
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1807
153
  return protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_enum_descriptors[6];
1808
153
}
1809
308
bool CDCCheckpointType_IsValid(int value) {
1810
308
  switch (value) {
1811
304
    case 1:
1812
308
    case 2:
1813
308
      return true;
1814
0
    default:
1815
0
      return false;
1816
308
  }
1817
308
}
1818
1819
1820
// ===================================================================
1821
1822
11.1k
void CDCErrorPB::InitAsDefaultInstance() {
1823
11.1k
  ::yb::cdc::_CDCErrorPB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>(
1824
11.1k
      ::yb::AppStatusPB::internal_default_instance());
1825
11.1k
}
1826
0
void CDCErrorPB::clear_status() {
1827
0
  if (status_ != NULL) status_->Clear();
1828
0
  clear_has_status();
1829
0
}
1830
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1831
const int CDCErrorPB::kCodeFieldNumber;
1832
const int CDCErrorPB::kStatusFieldNumber;
1833
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1834
1835
CDCErrorPB::CDCErrorPB()
1836
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1837
2
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1838
2
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
1839
2
  }
1840
11.1k
  SharedCtor();
1841
  // @@protoc_insertion_point(constructor:yb.cdc.CDCErrorPB)
1842
11.1k
}
1843
CDCErrorPB::CDCErrorPB(const CDCErrorPB& from)
1844
  : ::google::protobuf::Message(),
1845
      _internal_metadata_(NULL),
1846
      _has_bits_(from._has_bits_),
1847
0
      _cached_size_(0) {
1848
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1849
0
  if (from.has_status()) {
1850
0
    status_ = new ::yb::AppStatusPB(*from.status_);
1851
0
  } else {
1852
0
    status_ = NULL;
1853
0
  }
1854
0
  code_ = from.code_;
1855
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCErrorPB)
1856
0
}
1857
1858
11.1k
void CDCErrorPB::SharedCtor() {
1859
11.1k
  _cached_size_ = 0;
1860
11.1k
  status_ = NULL;
1861
11.1k
  code_ = 1;
1862
11.1k
}
1863
1864
2
CDCErrorPB::~CDCErrorPB() {
1865
  // @@protoc_insertion_point(destructor:yb.cdc.CDCErrorPB)
1866
2
  SharedDtor();
1867
2
}
1868
1869
2
void CDCErrorPB::SharedDtor() {
1870
2
  if (this != internal_default_instance()) delete status_;
1871
2
}
1872
1873
0
void CDCErrorPB::SetCachedSize(int size) const {
1874
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1875
0
  _cached_size_ = size;
1876
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1877
0
}
1878
0
const ::google::protobuf::Descriptor* CDCErrorPB::descriptor() {
1879
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
1880
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1881
0
}
1882
1883
0
const CDCErrorPB& CDCErrorPB::default_instance() {
1884
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCErrorPB();
1885
0
  return *internal_default_instance();
1886
0
}
1887
1888
0
CDCErrorPB* CDCErrorPB::New(::google::protobuf::Arena* arena) const {
1889
0
  CDCErrorPB* n = new CDCErrorPB;
1890
0
  if (arena != NULL) {
1891
0
    arena->Own(n);
1892
0
  }
1893
0
  return n;
1894
0
}
1895
1896
0
void CDCErrorPB::Clear() {
1897
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCErrorPB)
1898
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1899
  // Prevent compiler warnings about cached_has_bits being unused
1900
0
  (void) cached_has_bits;
1901
1902
0
  cached_has_bits = _has_bits_[0];
1903
0
  if (cached_has_bits & 3u) {
1904
0
    if (cached_has_bits & 0x00000001u) {
1905
0
      GOOGLE_DCHECK(status_ != NULL);
1906
0
      status_->Clear();
1907
0
    }
1908
0
    code_ = 1;
1909
0
  }
1910
0
  _has_bits_.Clear();
1911
0
  _internal_metadata_.Clear();
1912
0
}
1913
1914
bool CDCErrorPB::MergePartialFromCodedStream(
1915
0
    ::google::protobuf::io::CodedInputStream* input) {
1916
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1917
0
  ::google::protobuf::uint32 tag;
1918
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCErrorPB)
1919
0
  for (;;) {
1920
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1921
0
    tag = p.first;
1922
0
    if (!p.second) goto handle_unusual;
1923
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1924
      // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
1925
0
      case 1: {
1926
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1927
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1928
0
          int value;
1929
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1930
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1931
0
                 input, &value)));
1932
0
          if (::yb::cdc::CDCErrorPB_Code_IsValid(value)) {
1933
0
            set_code(static_cast< ::yb::cdc::CDCErrorPB_Code >(value));
1934
0
          } else {
1935
0
            mutable_unknown_fields()->AddVarint(
1936
0
                1, static_cast< ::google::protobuf::uint64>(value));
1937
0
          }
1938
0
        } else {
1939
0
          goto handle_unusual;
1940
0
        }
1941
0
        break;
1942
0
      }
1943
1944
      // optional .yb.AppStatusPB status = 2;
1945
0
      case 2: {
1946
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1947
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1948
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1949
0
               input, mutable_status()));
1950
0
        } else {
1951
0
          goto handle_unusual;
1952
0
        }
1953
0
        break;
1954
0
      }
1955
1956
0
      default: {
1957
0
      handle_unusual:
1958
0
        if (tag == 0) {
1959
0
          goto success;
1960
0
        }
1961
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1962
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1963
0
        break;
1964
0
      }
1965
0
    }
1966
0
  }
1967
0
success:
1968
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCErrorPB)
1969
0
  return true;
1970
0
failure:
1971
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCErrorPB)
1972
0
  return false;
1973
0
#undef DO_
1974
0
}
1975
1976
void CDCErrorPB::SerializeWithCachedSizes(
1977
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1978
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCErrorPB)
1979
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1980
0
  (void) cached_has_bits;
1981
1982
0
  cached_has_bits = _has_bits_[0];
1983
  // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
1984
0
  if (cached_has_bits & 0x00000002u) {
1985
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1986
0
      1, this->code(), output);
1987
0
  }
1988
1989
  // optional .yb.AppStatusPB status = 2;
1990
0
  if (cached_has_bits & 0x00000001u) {
1991
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1992
0
      2, *this->status_, output);
1993
0
  }
1994
1995
0
  if (_internal_metadata_.have_unknown_fields()) {
1996
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1997
0
        _internal_metadata_.unknown_fields(), output);
1998
0
  }
1999
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCErrorPB)
2000
0
}
2001
2002
::google::protobuf::uint8* CDCErrorPB::InternalSerializeWithCachedSizesToArray(
2003
2
    bool deterministic, ::google::protobuf::uint8* target) const {
2004
2
  (void)deterministic; // Unused
2005
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCErrorPB)
2006
2
  ::google::protobuf::uint32 cached_has_bits = 0;
2007
2
  (void) cached_has_bits;
2008
2009
2
  cached_has_bits = _has_bits_[0];
2010
  // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
2011
2
  if (cached_has_bits & 0x00000002u) {
2012
2
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2013
2
      1, this->code(), target);
2014
2
  }
2015
2016
  // optional .yb.AppStatusPB status = 2;
2017
2
  if (cached_has_bits & 0x00000001u) {
2018
2
    target = ::google::protobuf::internal::WireFormatLite::
2019
2
      InternalWriteMessageToArray(
2020
2
        2, *this->status_, deterministic, target);
2021
2
  }
2022
2023
2
  if (_internal_metadata_.have_unknown_fields()) {
2024
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2025
0
        _internal_metadata_.unknown_fields(), target);
2026
0
  }
2027
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCErrorPB)
2028
2
  return target;
2029
2
}
2030
2031
4
size_t CDCErrorPB::ByteSizeLong() const {
2032
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCErrorPB)
2033
4
  size_t total_size = 0;
2034
2035
4
  if (_internal_metadata_.have_unknown_fields()) {
2036
0
    total_size +=
2037
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2038
0
        _internal_metadata_.unknown_fields());
2039
0
  }
2040
4
  if (_has_bits_[0 / 32] & 3u) {
2041
    // optional .yb.AppStatusPB status = 2;
2042
4
    if (has_status()) {
2043
4
      total_size += 1 +
2044
4
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2045
4
          *this->status_);
2046
4
    }
2047
2048
    // optional .yb.cdc.CDCErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
2049
4
    if (has_code()) {
2050
4
      total_size += 1 +
2051
4
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->code());
2052
4
    }
2053
2054
4
  }
2055
4
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2056
4
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2057
4
  _cached_size_ = cached_size;
2058
4
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2059
4
  return total_size;
2060
4
}
2061
2062
0
void CDCErrorPB::MergeFrom(const ::google::protobuf::Message& from) {
2063
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCErrorPB)
2064
0
  GOOGLE_DCHECK_NE(&from, this);
2065
0
  const CDCErrorPB* source =
2066
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCErrorPB>(
2067
0
          &from);
2068
0
  if (source == NULL) {
2069
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCErrorPB)
2070
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2071
0
  } else {
2072
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCErrorPB)
2073
0
    MergeFrom(*source);
2074
0
  }
2075
0
}
2076
2077
0
void CDCErrorPB::MergeFrom(const CDCErrorPB& from) {
2078
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCErrorPB)
2079
0
  GOOGLE_DCHECK_NE(&from, this);
2080
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2081
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2082
0
  (void) cached_has_bits;
2083
2084
0
  cached_has_bits = from._has_bits_[0];
2085
0
  if (cached_has_bits & 3u) {
2086
0
    if (cached_has_bits & 0x00000001u) {
2087
0
      mutable_status()->::yb::AppStatusPB::MergeFrom(from.status());
2088
0
    }
2089
0
    if (cached_has_bits & 0x00000002u) {
2090
0
      code_ = from.code_;
2091
0
    }
2092
0
    _has_bits_[0] |= cached_has_bits;
2093
0
  }
2094
0
}
2095
2096
0
void CDCErrorPB::CopyFrom(const ::google::protobuf::Message& from) {
2097
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCErrorPB)
2098
0
  if (&from == this) return;
2099
0
  Clear();
2100
0
  MergeFrom(from);
2101
0
}
2102
2103
0
void CDCErrorPB::CopyFrom(const CDCErrorPB& from) {
2104
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCErrorPB)
2105
0
  if (&from == this) return;
2106
0
  Clear();
2107
0
  MergeFrom(from);
2108
0
}
2109
2110
2
bool CDCErrorPB::IsInitialized() const {
2111
2
  if (has_status()) {
2112
2
    if (!this->status_->IsInitialized()) return false;
2113
2
  }
2114
2
  return true;
2115
2
}
2116
2117
0
void CDCErrorPB::Swap(CDCErrorPB* other) {
2118
0
  if (other == this) return;
2119
0
  InternalSwap(other);
2120
0
}
2121
0
void CDCErrorPB::InternalSwap(CDCErrorPB* other) {
2122
0
  using std::swap;
2123
0
  swap(status_, other->status_);
2124
0
  swap(code_, other->code_);
2125
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2126
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2127
0
  swap(_cached_size_, other->_cached_size_);
2128
0
}
2129
2130
0
::google::protobuf::Metadata CDCErrorPB::GetMetadata() const {
2131
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
2132
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
2133
0
}
2134
2135
2136
// ===================================================================
2137
2138
11.1k
void CreateCDCStreamRequestPB::InitAsDefaultInstance() {
2139
11.1k
}
2140
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2141
const int CreateCDCStreamRequestPB::kTableIdFieldNumber;
2142
const int CreateCDCStreamRequestPB::kRecordTypeFieldNumber;
2143
const int CreateCDCStreamRequestPB::kRecordFormatFieldNumber;
2144
const int CreateCDCStreamRequestPB::kNamespaceNameFieldNumber;
2145
const int CreateCDCStreamRequestPB::kSourceTypeFieldNumber;
2146
const int CreateCDCStreamRequestPB::kCheckpointTypeFieldNumber;
2147
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2148
2149
CreateCDCStreamRequestPB::CreateCDCStreamRequestPB()
2150
11.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2151
154
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2152
154
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamRequestPB();
2153
154
  }
2154
11.3k
  SharedCtor();
2155
  // @@protoc_insertion_point(constructor:yb.cdc.CreateCDCStreamRequestPB)
2156
11.3k
}
2157
CreateCDCStreamRequestPB::CreateCDCStreamRequestPB(const CreateCDCStreamRequestPB& from)
2158
  : ::google::protobuf::Message(),
2159
      _internal_metadata_(NULL),
2160
      _has_bits_(from._has_bits_),
2161
0
      _cached_size_(0) {
2162
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2163
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2164
0
  if (from.has_table_id()) {
2165
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
2166
0
  }
2167
0
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2168
0
  if (from.has_namespace_name()) {
2169
0
    namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
2170
0
  }
2171
0
  ::memcpy(&record_type_, &from.record_type_,
2172
0
    static_cast<size_t>(reinterpret_cast<char*>(&checkpoint_type_) -
2173
0
    reinterpret_cast<char*>(&record_type_)) + sizeof(checkpoint_type_));
2174
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CreateCDCStreamRequestPB)
2175
0
}
2176
2177
11.3k
void CreateCDCStreamRequestPB::SharedCtor() {
2178
11.3k
  _cached_size_ = 0;
2179
11.3k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2180
11.3k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2181
11.3k
  record_type_ = 1;
2182
11.3k
  record_format_ = 1;
2183
11.3k
  source_type_ = 1;
2184
11.3k
  checkpoint_type_ = 1;
2185
11.3k
}
2186
2187
154
CreateCDCStreamRequestPB::~CreateCDCStreamRequestPB() {
2188
  // @@protoc_insertion_point(destructor:yb.cdc.CreateCDCStreamRequestPB)
2189
154
  SharedDtor();
2190
154
}
2191
2192
154
void CreateCDCStreamRequestPB::SharedDtor() {
2193
154
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2194
154
  namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2195
154
}
2196
2197
0
void CreateCDCStreamRequestPB::SetCachedSize(int size) const {
2198
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2199
0
  _cached_size_ = size;
2200
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2201
0
}
2202
0
const ::google::protobuf::Descriptor* CreateCDCStreamRequestPB::descriptor() {
2203
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
2204
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2205
0
}
2206
2207
0
const CreateCDCStreamRequestPB& CreateCDCStreamRequestPB::default_instance() {
2208
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamRequestPB();
2209
0
  return *internal_default_instance();
2210
0
}
2211
2212
0
CreateCDCStreamRequestPB* CreateCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const {
2213
0
  CreateCDCStreamRequestPB* n = new CreateCDCStreamRequestPB;
2214
0
  if (arena != NULL) {
2215
0
    arena->Own(n);
2216
0
  }
2217
0
  return n;
2218
0
}
2219
2220
154
void CreateCDCStreamRequestPB::Clear() {
2221
// @@protoc_insertion_point(message_clear_start:yb.cdc.CreateCDCStreamRequestPB)
2222
154
  ::google::protobuf::uint32 cached_has_bits = 0;
2223
  // Prevent compiler warnings about cached_has_bits being unused
2224
154
  (void) cached_has_bits;
2225
2226
154
  cached_has_bits = _has_bits_[0];
2227
154
  if (cached_has_bits & 63u) {
2228
0
    if (cached_has_bits & 0x00000001u) {
2229
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2230
0
      (*table_id_.UnsafeRawStringPointer())->clear();
2231
0
    }
2232
0
    if (cached_has_bits & 0x00000002u) {
2233
0
      GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2234
0
      (*namespace_name_.UnsafeRawStringPointer())->clear();
2235
0
    }
2236
0
    record_type_ = 1;
2237
0
    record_format_ = 1;
2238
0
    source_type_ = 1;
2239
0
    checkpoint_type_ = 1;
2240
0
  }
2241
154
  _has_bits_.Clear();
2242
154
  _internal_metadata_.Clear();
2243
154
}
2244
2245
bool CreateCDCStreamRequestPB::MergePartialFromCodedStream(
2246
154
    ::google::protobuf::io::CodedInputStream* input) {
2247
618
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2248
154
  ::google::protobuf::uint32 tag;
2249
  // @@protoc_insertion_point(parse_start:yb.cdc.CreateCDCStreamRequestPB)
2250
772
  for (;;) {
2251
772
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2252
772
    tag = p.first;
2253
772
    if (!p.second) goto handle_unusual;
2254
618
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2255
      // optional string table_id = 1;
2256
0
      case 1: {
2257
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2258
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2259
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2260
0
                input, this->mutable_table_id()));
2261
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2262
0
            this->table_id().data(), static_cast<int>(this->table_id().length()),
2263
0
            ::google::protobuf::internal::WireFormat::PARSE,
2264
0
            "yb.cdc.CreateCDCStreamRequestPB.table_id");
2265
0
        } else {
2266
0
          goto handle_unusual;
2267
0
        }
2268
0
        break;
2269
0
      }
2270
2271
      // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
2272
2
      case 2: {
2273
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2274
2
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2275
2
          int value;
2276
2
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2277
2
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2278
2
                 input, &value)));
2279
2
          if (::yb::cdc::CDCRecordType_IsValid(value)) {
2280
2
            set_record_type(static_cast< ::yb::cdc::CDCRecordType >(value));
2281
0
          } else {
2282
0
            mutable_unknown_fields()->AddVarint(
2283
0
                2, static_cast< ::google::protobuf::uint64>(value));
2284
0
          }
2285
0
        } else {
2286
0
          goto handle_unusual;
2287
0
        }
2288
2
        break;
2289
2
      }
2290
2291
      // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON];
2292
154
      case 3: {
2293
154
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2294
154
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2295
154
          int value;
2296
154
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2297
154
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2298
154
                 input, &value)));
2299
154
          if (::yb::cdc::CDCRecordFormat_IsValid(value)) {
2300
154
            set_record_format(static_cast< ::yb::cdc::CDCRecordFormat >(value));
2301
0
          } else {
2302
0
            mutable_unknown_fields()->AddVarint(
2303
0
                3, static_cast< ::google::protobuf::uint64>(value));
2304
0
          }
2305
0
        } else {
2306
0
          goto handle_unusual;
2307
0
        }
2308
154
        break;
2309
154
      }
2310
2311
      // optional string namespace_name = 4;
2312
154
      case 4: {
2313
154
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2314
154
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2315
154
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2316
154
                input, this->mutable_namespace_name()));
2317
154
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2318
154
            this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
2319
154
            ::google::protobuf::internal::WireFormat::PARSE,
2320
154
            "yb.cdc.CreateCDCStreamRequestPB.namespace_name");
2321
0
        } else {
2322
0
          goto handle_unusual;
2323
0
        }
2324
154
        break;
2325
154
      }
2326
2327
      // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER];
2328
154
      case 5: {
2329
154
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2330
154
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2331
154
          int value;
2332
154
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2333
154
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2334
154
                 input, &value)));
2335
154
          if (::yb::cdc::CDCRequestSource_IsValid(value)) {
2336
154
            set_source_type(static_cast< ::yb::cdc::CDCRequestSource >(value));
2337
0
          } else {
2338
0
            mutable_unknown_fields()->AddVarint(
2339
0
                5, static_cast< ::google::protobuf::uint64>(value));
2340
0
          }
2341
0
        } else {
2342
0
          goto handle_unusual;
2343
0
        }
2344
154
        break;
2345
154
      }
2346
2347
      // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT];
2348
154
      case 6: {
2349
154
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2350
154
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
2351
154
          int value;
2352
154
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2353
154
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2354
154
                 input, &value)));
2355
154
          if (::yb::cdc::CDCCheckpointType_IsValid(value)) {
2356
154
            set_checkpoint_type(static_cast< ::yb::cdc::CDCCheckpointType >(value));
2357
0
          } else {
2358
0
            mutable_unknown_fields()->AddVarint(
2359
0
                6, static_cast< ::google::protobuf::uint64>(value));
2360
0
          }
2361
0
        } else {
2362
0
          goto handle_unusual;
2363
0
        }
2364
154
        break;
2365
154
      }
2366
2367
0
      default: {
2368
154
      handle_unusual:
2369
154
        if (tag == 0) {
2370
154
          goto success;
2371
154
        }
2372
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2373
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2374
0
        break;
2375
0
      }
2376
618
    }
2377
618
  }
2378
154
success:
2379
  // @@protoc_insertion_point(parse_success:yb.cdc.CreateCDCStreamRequestPB)
2380
154
  return true;
2381
0
failure:
2382
  // @@protoc_insertion_point(parse_failure:yb.cdc.CreateCDCStreamRequestPB)
2383
0
  return false;
2384
154
#undef DO_
2385
154
}
2386
2387
void CreateCDCStreamRequestPB::SerializeWithCachedSizes(
2388
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2389
  // @@protoc_insertion_point(serialize_start:yb.cdc.CreateCDCStreamRequestPB)
2390
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2391
0
  (void) cached_has_bits;
2392
2393
0
  cached_has_bits = _has_bits_[0];
2394
  // optional string table_id = 1;
2395
0
  if (cached_has_bits & 0x00000001u) {
2396
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2397
0
      this->table_id().data(), static_cast<int>(this->table_id().length()),
2398
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2399
0
      "yb.cdc.CreateCDCStreamRequestPB.table_id");
2400
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2401
0
      1, this->table_id(), output);
2402
0
  }
2403
2404
  // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
2405
0
  if (cached_has_bits & 0x00000004u) {
2406
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2407
0
      2, this->record_type(), output);
2408
0
  }
2409
2410
  // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON];
2411
0
  if (cached_has_bits & 0x00000008u) {
2412
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2413
0
      3, this->record_format(), output);
2414
0
  }
2415
2416
  // optional string namespace_name = 4;
2417
0
  if (cached_has_bits & 0x00000002u) {
2418
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2419
0
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
2420
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2421
0
      "yb.cdc.CreateCDCStreamRequestPB.namespace_name");
2422
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2423
0
      4, this->namespace_name(), output);
2424
0
  }
2425
2426
  // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER];
2427
0
  if (cached_has_bits & 0x00000010u) {
2428
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2429
0
      5, this->source_type(), output);
2430
0
  }
2431
2432
  // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT];
2433
0
  if (cached_has_bits & 0x00000020u) {
2434
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2435
0
      6, this->checkpoint_type(), output);
2436
0
  }
2437
2438
0
  if (_internal_metadata_.have_unknown_fields()) {
2439
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2440
0
        _internal_metadata_.unknown_fields(), output);
2441
0
  }
2442
  // @@protoc_insertion_point(serialize_end:yb.cdc.CreateCDCStreamRequestPB)
2443
0
}
2444
2445
::google::protobuf::uint8* CreateCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray(
2446
0
    bool deterministic, ::google::protobuf::uint8* target) const {
2447
0
  (void)deterministic; // Unused
2448
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CreateCDCStreamRequestPB)
2449
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2450
0
  (void) cached_has_bits;
2451
2452
0
  cached_has_bits = _has_bits_[0];
2453
  // optional string table_id = 1;
2454
0
  if (cached_has_bits & 0x00000001u) {
2455
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2456
0
      this->table_id().data(), static_cast<int>(this->table_id().length()),
2457
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2458
0
      "yb.cdc.CreateCDCStreamRequestPB.table_id");
2459
0
    target =
2460
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2461
0
        1, this->table_id(), target);
2462
0
  }
2463
2464
  // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
2465
0
  if (cached_has_bits & 0x00000004u) {
2466
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2467
0
      2, this->record_type(), target);
2468
0
  }
2469
2470
  // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON];
2471
0
  if (cached_has_bits & 0x00000008u) {
2472
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2473
0
      3, this->record_format(), target);
2474
0
  }
2475
2476
  // optional string namespace_name = 4;
2477
0
  if (cached_has_bits & 0x00000002u) {
2478
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2479
0
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
2480
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2481
0
      "yb.cdc.CreateCDCStreamRequestPB.namespace_name");
2482
0
    target =
2483
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2484
0
        4, this->namespace_name(), target);
2485
0
  }
2486
2487
  // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER];
2488
0
  if (cached_has_bits & 0x00000010u) {
2489
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2490
0
      5, this->source_type(), target);
2491
0
  }
2492
2493
  // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT];
2494
0
  if (cached_has_bits & 0x00000020u) {
2495
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2496
0
      6, this->checkpoint_type(), target);
2497
0
  }
2498
2499
0
  if (_internal_metadata_.have_unknown_fields()) {
2500
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2501
0
        _internal_metadata_.unknown_fields(), target);
2502
0
  }
2503
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CreateCDCStreamRequestPB)
2504
0
  return target;
2505
0
}
2506
2507
0
size_t CreateCDCStreamRequestPB::ByteSizeLong() const {
2508
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CreateCDCStreamRequestPB)
2509
0
  size_t total_size = 0;
2510
2511
0
  if (_internal_metadata_.have_unknown_fields()) {
2512
0
    total_size +=
2513
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2514
0
        _internal_metadata_.unknown_fields());
2515
0
  }
2516
0
  if (_has_bits_[0 / 32] & 63u) {
2517
    // optional string table_id = 1;
2518
0
    if (has_table_id()) {
2519
0
      total_size += 1 +
2520
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2521
0
          this->table_id());
2522
0
    }
2523
2524
    // optional string namespace_name = 4;
2525
0
    if (has_namespace_name()) {
2526
0
      total_size += 1 +
2527
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2528
0
          this->namespace_name());
2529
0
    }
2530
2531
    // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
2532
0
    if (has_record_type()) {
2533
0
      total_size += 1 +
2534
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_type());
2535
0
    }
2536
2537
    // optional .yb.cdc.CDCRecordFormat record_format = 3 [default = JSON];
2538
0
    if (has_record_format()) {
2539
0
      total_size += 1 +
2540
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_format());
2541
0
    }
2542
2543
    // optional .yb.cdc.CDCRequestSource source_type = 5 [default = XCLUSTER];
2544
0
    if (has_source_type()) {
2545
0
      total_size += 1 +
2546
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->source_type());
2547
0
    }
2548
2549
    // optional .yb.cdc.CDCCheckpointType checkpoint_type = 6 [default = IMPLICIT];
2550
0
    if (has_checkpoint_type()) {
2551
0
      total_size += 1 +
2552
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->checkpoint_type());
2553
0
    }
2554
2555
0
  }
2556
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2557
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2558
0
  _cached_size_ = cached_size;
2559
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2560
0
  return total_size;
2561
0
}
2562
2563
0
void CreateCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2564
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CreateCDCStreamRequestPB)
2565
0
  GOOGLE_DCHECK_NE(&from, this);
2566
0
  const CreateCDCStreamRequestPB* source =
2567
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamRequestPB>(
2568
0
          &from);
2569
0
  if (source == NULL) {
2570
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CreateCDCStreamRequestPB)
2571
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2572
0
  } else {
2573
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CreateCDCStreamRequestPB)
2574
0
    MergeFrom(*source);
2575
0
  }
2576
0
}
2577
2578
0
void CreateCDCStreamRequestPB::MergeFrom(const CreateCDCStreamRequestPB& from) {
2579
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CreateCDCStreamRequestPB)
2580
0
  GOOGLE_DCHECK_NE(&from, this);
2581
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2582
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2583
0
  (void) cached_has_bits;
2584
2585
0
  cached_has_bits = from._has_bits_[0];
2586
0
  if (cached_has_bits & 63u) {
2587
0
    if (cached_has_bits & 0x00000001u) {
2588
0
      set_has_table_id();
2589
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
2590
0
    }
2591
0
    if (cached_has_bits & 0x00000002u) {
2592
0
      set_has_namespace_name();
2593
0
      namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
2594
0
    }
2595
0
    if (cached_has_bits & 0x00000004u) {
2596
0
      record_type_ = from.record_type_;
2597
0
    }
2598
0
    if (cached_has_bits & 0x00000008u) {
2599
0
      record_format_ = from.record_format_;
2600
0
    }
2601
0
    if (cached_has_bits & 0x00000010u) {
2602
0
      source_type_ = from.source_type_;
2603
0
    }
2604
0
    if (cached_has_bits & 0x00000020u) {
2605
0
      checkpoint_type_ = from.checkpoint_type_;
2606
0
    }
2607
0
    _has_bits_[0] |= cached_has_bits;
2608
0
  }
2609
0
}
2610
2611
0
void CreateCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2612
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CreateCDCStreamRequestPB)
2613
0
  if (&from == this) return;
2614
0
  Clear();
2615
0
  MergeFrom(from);
2616
0
}
2617
2618
0
void CreateCDCStreamRequestPB::CopyFrom(const CreateCDCStreamRequestPB& from) {
2619
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CreateCDCStreamRequestPB)
2620
0
  if (&from == this) return;
2621
0
  Clear();
2622
0
  MergeFrom(from);
2623
0
}
2624
2625
154
bool CreateCDCStreamRequestPB::IsInitialized() const {
2626
154
  return true;
2627
154
}
2628
2629
0
void CreateCDCStreamRequestPB::Swap(CreateCDCStreamRequestPB* other) {
2630
0
  if (other == this) return;
2631
0
  InternalSwap(other);
2632
0
}
2633
0
void CreateCDCStreamRequestPB::InternalSwap(CreateCDCStreamRequestPB* other) {
2634
0
  using std::swap;
2635
0
  table_id_.Swap(&other->table_id_);
2636
0
  namespace_name_.Swap(&other->namespace_name_);
2637
0
  swap(record_type_, other->record_type_);
2638
0
  swap(record_format_, other->record_format_);
2639
0
  swap(source_type_, other->source_type_);
2640
0
  swap(checkpoint_type_, other->checkpoint_type_);
2641
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2642
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2643
0
  swap(_cached_size_, other->_cached_size_);
2644
0
}
2645
2646
154
::google::protobuf::Metadata CreateCDCStreamRequestPB::GetMetadata() const {
2647
154
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
2648
154
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
2649
154
}
2650
2651
2652
// ===================================================================
2653
2654
11.1k
void CreateCDCStreamResponsePB::InitAsDefaultInstance() {
2655
11.1k
  ::yb::cdc::_CreateCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
2656
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
2657
11.1k
}
2658
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2659
const int CreateCDCStreamResponsePB::kErrorFieldNumber;
2660
const int CreateCDCStreamResponsePB::kStreamIdFieldNumber;
2661
const int CreateCDCStreamResponsePB::kDbStreamIdFieldNumber;
2662
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2663
2664
CreateCDCStreamResponsePB::CreateCDCStreamResponsePB()
2665
11.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2666
154
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2667
154
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamResponsePB();
2668
154
  }
2669
11.3k
  SharedCtor();
2670
  // @@protoc_insertion_point(constructor:yb.cdc.CreateCDCStreamResponsePB)
2671
11.3k
}
2672
CreateCDCStreamResponsePB::CreateCDCStreamResponsePB(const CreateCDCStreamResponsePB& from)
2673
  : ::google::protobuf::Message(),
2674
      _internal_metadata_(NULL),
2675
      _has_bits_(from._has_bits_),
2676
0
      _cached_size_(0) {
2677
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2678
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2679
0
  if (from.has_stream_id()) {
2680
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
2681
0
  }
2682
0
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2683
0
  if (from.has_db_stream_id()) {
2684
0
    db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
2685
0
  }
2686
0
  if (from.has_error()) {
2687
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
2688
0
  } else {
2689
0
    error_ = NULL;
2690
0
  }
2691
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CreateCDCStreamResponsePB)
2692
0
}
2693
2694
11.3k
void CreateCDCStreamResponsePB::SharedCtor() {
2695
11.3k
  _cached_size_ = 0;
2696
11.3k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2697
11.3k
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2698
11.3k
  error_ = NULL;
2699
11.3k
}
2700
2701
154
CreateCDCStreamResponsePB::~CreateCDCStreamResponsePB() {
2702
  // @@protoc_insertion_point(destructor:yb.cdc.CreateCDCStreamResponsePB)
2703
154
  SharedDtor();
2704
154
}
2705
2706
154
void CreateCDCStreamResponsePB::SharedDtor() {
2707
154
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2708
154
  db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2709
154
  if (this != internal_default_instance()) delete error_;
2710
154
}
2711
2712
0
void CreateCDCStreamResponsePB::SetCachedSize(int size) const {
2713
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2714
0
  _cached_size_ = size;
2715
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2716
0
}
2717
0
const ::google::protobuf::Descriptor* CreateCDCStreamResponsePB::descriptor() {
2718
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
2719
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2720
0
}
2721
2722
0
const CreateCDCStreamResponsePB& CreateCDCStreamResponsePB::default_instance() {
2723
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCreateCDCStreamResponsePB();
2724
0
  return *internal_default_instance();
2725
0
}
2726
2727
0
CreateCDCStreamResponsePB* CreateCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const {
2728
0
  CreateCDCStreamResponsePB* n = new CreateCDCStreamResponsePB;
2729
0
  if (arena != NULL) {
2730
0
    arena->Own(n);
2731
0
  }
2732
0
  return n;
2733
0
}
2734
2735
0
void CreateCDCStreamResponsePB::Clear() {
2736
// @@protoc_insertion_point(message_clear_start:yb.cdc.CreateCDCStreamResponsePB)
2737
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2738
  // Prevent compiler warnings about cached_has_bits being unused
2739
0
  (void) cached_has_bits;
2740
2741
0
  cached_has_bits = _has_bits_[0];
2742
0
  if (cached_has_bits & 7u) {
2743
0
    if (cached_has_bits & 0x00000001u) {
2744
0
      GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2745
0
      (*stream_id_.UnsafeRawStringPointer())->clear();
2746
0
    }
2747
0
    if (cached_has_bits & 0x00000002u) {
2748
0
      GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2749
0
      (*db_stream_id_.UnsafeRawStringPointer())->clear();
2750
0
    }
2751
0
    if (cached_has_bits & 0x00000004u) {
2752
0
      GOOGLE_DCHECK(error_ != NULL);
2753
0
      error_->Clear();
2754
0
    }
2755
0
  }
2756
0
  _has_bits_.Clear();
2757
0
  _internal_metadata_.Clear();
2758
0
}
2759
2760
bool CreateCDCStreamResponsePB::MergePartialFromCodedStream(
2761
0
    ::google::protobuf::io::CodedInputStream* input) {
2762
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2763
0
  ::google::protobuf::uint32 tag;
2764
  // @@protoc_insertion_point(parse_start:yb.cdc.CreateCDCStreamResponsePB)
2765
0
  for (;;) {
2766
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2767
0
    tag = p.first;
2768
0
    if (!p.second) goto handle_unusual;
2769
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2770
      // optional .yb.cdc.CDCErrorPB error = 1;
2771
0
      case 1: {
2772
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2773
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2774
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2775
0
               input, mutable_error()));
2776
0
        } else {
2777
0
          goto handle_unusual;
2778
0
        }
2779
0
        break;
2780
0
      }
2781
2782
      // optional bytes stream_id = 2;
2783
0
      case 2: {
2784
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2785
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2786
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2787
0
                input, this->mutable_stream_id()));
2788
0
        } else {
2789
0
          goto handle_unusual;
2790
0
        }
2791
0
        break;
2792
0
      }
2793
2794
      // optional bytes db_stream_id = 3;
2795
0
      case 3: {
2796
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2797
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2798
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2799
0
                input, this->mutable_db_stream_id()));
2800
0
        } else {
2801
0
          goto handle_unusual;
2802
0
        }
2803
0
        break;
2804
0
      }
2805
2806
0
      default: {
2807
0
      handle_unusual:
2808
0
        if (tag == 0) {
2809
0
          goto success;
2810
0
        }
2811
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2812
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2813
0
        break;
2814
0
      }
2815
0
    }
2816
0
  }
2817
0
success:
2818
  // @@protoc_insertion_point(parse_success:yb.cdc.CreateCDCStreamResponsePB)
2819
0
  return true;
2820
0
failure:
2821
  // @@protoc_insertion_point(parse_failure:yb.cdc.CreateCDCStreamResponsePB)
2822
0
  return false;
2823
0
#undef DO_
2824
0
}
2825
2826
void CreateCDCStreamResponsePB::SerializeWithCachedSizes(
2827
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2828
  // @@protoc_insertion_point(serialize_start:yb.cdc.CreateCDCStreamResponsePB)
2829
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2830
0
  (void) cached_has_bits;
2831
2832
0
  cached_has_bits = _has_bits_[0];
2833
  // optional .yb.cdc.CDCErrorPB error = 1;
2834
0
  if (cached_has_bits & 0x00000004u) {
2835
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2836
0
      1, *this->error_, output);
2837
0
  }
2838
2839
  // optional bytes stream_id = 2;
2840
0
  if (cached_has_bits & 0x00000001u) {
2841
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2842
0
      2, this->stream_id(), output);
2843
0
  }
2844
2845
  // optional bytes db_stream_id = 3;
2846
0
  if (cached_has_bits & 0x00000002u) {
2847
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2848
0
      3, this->db_stream_id(), output);
2849
0
  }
2850
2851
0
  if (_internal_metadata_.have_unknown_fields()) {
2852
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2853
0
        _internal_metadata_.unknown_fields(), output);
2854
0
  }
2855
  // @@protoc_insertion_point(serialize_end:yb.cdc.CreateCDCStreamResponsePB)
2856
0
}
2857
2858
::google::protobuf::uint8* CreateCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray(
2859
154
    bool deterministic, ::google::protobuf::uint8* target) const {
2860
154
  (void)deterministic; // Unused
2861
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CreateCDCStreamResponsePB)
2862
154
  ::google::protobuf::uint32 cached_has_bits = 0;
2863
154
  (void) cached_has_bits;
2864
2865
154
  cached_has_bits = _has_bits_[0];
2866
  // optional .yb.cdc.CDCErrorPB error = 1;
2867
154
  if (cached_has_bits & 0x00000004u) {
2868
1
    target = ::google::protobuf::internal::WireFormatLite::
2869
1
      InternalWriteMessageToArray(
2870
1
        1, *this->error_, deterministic, target);
2871
1
  }
2872
2873
  // optional bytes stream_id = 2;
2874
154
  if (cached_has_bits & 0x00000001u) {
2875
0
    target =
2876
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2877
0
        2, this->stream_id(), target);
2878
0
  }
2879
2880
  // optional bytes db_stream_id = 3;
2881
154
  if (cached_has_bits & 0x00000002u) {
2882
153
    target =
2883
153
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2884
153
        3, this->db_stream_id(), target);
2885
153
  }
2886
2887
154
  if (_internal_metadata_.have_unknown_fields()) {
2888
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2889
0
        _internal_metadata_.unknown_fields(), target);
2890
0
  }
2891
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CreateCDCStreamResponsePB)
2892
154
  return target;
2893
154
}
2894
2895
308
size_t CreateCDCStreamResponsePB::ByteSizeLong() const {
2896
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CreateCDCStreamResponsePB)
2897
308
  size_t total_size = 0;
2898
2899
308
  if (_internal_metadata_.have_unknown_fields()) {
2900
0
    total_size +=
2901
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2902
0
        _internal_metadata_.unknown_fields());
2903
0
  }
2904
308
  if (_has_bits_[0 / 32] & 7u) {
2905
    // optional bytes stream_id = 2;
2906
308
    if (has_stream_id()) {
2907
0
      total_size += 1 +
2908
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2909
0
          this->stream_id());
2910
0
    }
2911
2912
    // optional bytes db_stream_id = 3;
2913
308
    if (has_db_stream_id()) {
2914
306
      total_size += 1 +
2915
306
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2916
306
          this->db_stream_id());
2917
306
    }
2918
2919
    // optional .yb.cdc.CDCErrorPB error = 1;
2920
308
    if (has_error()) {
2921
2
      total_size += 1 +
2922
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2923
2
          *this->error_);
2924
2
    }
2925
2926
308
  }
2927
308
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2928
308
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2929
308
  _cached_size_ = cached_size;
2930
308
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2931
308
  return total_size;
2932
308
}
2933
2934
0
void CreateCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2935
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CreateCDCStreamResponsePB)
2936
0
  GOOGLE_DCHECK_NE(&from, this);
2937
0
  const CreateCDCStreamResponsePB* source =
2938
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamResponsePB>(
2939
0
          &from);
2940
0
  if (source == NULL) {
2941
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CreateCDCStreamResponsePB)
2942
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2943
0
  } else {
2944
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CreateCDCStreamResponsePB)
2945
0
    MergeFrom(*source);
2946
0
  }
2947
0
}
2948
2949
0
void CreateCDCStreamResponsePB::MergeFrom(const CreateCDCStreamResponsePB& from) {
2950
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CreateCDCStreamResponsePB)
2951
0
  GOOGLE_DCHECK_NE(&from, this);
2952
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2953
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2954
0
  (void) cached_has_bits;
2955
2956
0
  cached_has_bits = from._has_bits_[0];
2957
0
  if (cached_has_bits & 7u) {
2958
0
    if (cached_has_bits & 0x00000001u) {
2959
0
      set_has_stream_id();
2960
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
2961
0
    }
2962
0
    if (cached_has_bits & 0x00000002u) {
2963
0
      set_has_db_stream_id();
2964
0
      db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
2965
0
    }
2966
0
    if (cached_has_bits & 0x00000004u) {
2967
0
      mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
2968
0
    }
2969
0
  }
2970
0
}
2971
2972
0
void CreateCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2973
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CreateCDCStreamResponsePB)
2974
0
  if (&from == this) return;
2975
0
  Clear();
2976
0
  MergeFrom(from);
2977
0
}
2978
2979
0
void CreateCDCStreamResponsePB::CopyFrom(const CreateCDCStreamResponsePB& from) {
2980
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CreateCDCStreamResponsePB)
2981
0
  if (&from == this) return;
2982
0
  Clear();
2983
0
  MergeFrom(from);
2984
0
}
2985
2986
154
bool CreateCDCStreamResponsePB::IsInitialized() const {
2987
154
  if (has_error()) {
2988
1
    if (!this->error_->IsInitialized()) return false;
2989
154
  }
2990
154
  return true;
2991
154
}
2992
2993
0
void CreateCDCStreamResponsePB::Swap(CreateCDCStreamResponsePB* other) {
2994
0
  if (other == this) return;
2995
0
  InternalSwap(other);
2996
0
}
2997
0
void CreateCDCStreamResponsePB::InternalSwap(CreateCDCStreamResponsePB* other) {
2998
0
  using std::swap;
2999
0
  stream_id_.Swap(&other->stream_id_);
3000
0
  db_stream_id_.Swap(&other->db_stream_id_);
3001
0
  swap(error_, other->error_);
3002
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3003
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3004
0
  swap(_cached_size_, other->_cached_size_);
3005
0
}
3006
3007
0
::google::protobuf::Metadata CreateCDCStreamResponsePB::GetMetadata() const {
3008
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3009
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
3010
0
}
3011
3012
3013
// ===================================================================
3014
3015
11.1k
void DeleteCDCStreamRequestPB::InitAsDefaultInstance() {
3016
11.1k
}
3017
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3018
const int DeleteCDCStreamRequestPB::kStreamIdFieldNumber;
3019
const int DeleteCDCStreamRequestPB::kIgnoreErrorsFieldNumber;
3020
const int DeleteCDCStreamRequestPB::kForceDeleteFieldNumber;
3021
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3022
3023
DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB()
3024
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3025
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3026
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamRequestPB();
3027
0
  }
3028
11.1k
  SharedCtor();
3029
  // @@protoc_insertion_point(constructor:yb.cdc.DeleteCDCStreamRequestPB)
3030
11.1k
}
3031
DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB(const DeleteCDCStreamRequestPB& from)
3032
  : ::google::protobuf::Message(),
3033
      _internal_metadata_(NULL),
3034
      _has_bits_(from._has_bits_),
3035
      _cached_size_(0),
3036
0
      stream_id_(from.stream_id_) {
3037
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3038
0
  ::memcpy(&ignore_errors_, &from.ignore_errors_,
3039
0
    static_cast<size_t>(reinterpret_cast<char*>(&force_delete_) -
3040
0
    reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_));
3041
  // @@protoc_insertion_point(copy_constructor:yb.cdc.DeleteCDCStreamRequestPB)
3042
0
}
3043
3044
11.1k
void DeleteCDCStreamRequestPB::SharedCtor() {
3045
11.1k
  _cached_size_ = 0;
3046
11.1k
  ::memset(&ignore_errors_, 0, static_cast<size_t>(
3047
11.1k
      reinterpret_cast<char*>(&force_delete_) -
3048
11.1k
      reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_));
3049
11.1k
}
3050
3051
0
DeleteCDCStreamRequestPB::~DeleteCDCStreamRequestPB() {
3052
  // @@protoc_insertion_point(destructor:yb.cdc.DeleteCDCStreamRequestPB)
3053
0
  SharedDtor();
3054
0
}
3055
3056
0
void DeleteCDCStreamRequestPB::SharedDtor() {
3057
0
}
3058
3059
0
void DeleteCDCStreamRequestPB::SetCachedSize(int size) const {
3060
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3061
0
  _cached_size_ = size;
3062
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3063
0
}
3064
0
const ::google::protobuf::Descriptor* DeleteCDCStreamRequestPB::descriptor() {
3065
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3066
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3067
0
}
3068
3069
0
const DeleteCDCStreamRequestPB& DeleteCDCStreamRequestPB::default_instance() {
3070
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamRequestPB();
3071
0
  return *internal_default_instance();
3072
0
}
3073
3074
0
DeleteCDCStreamRequestPB* DeleteCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const {
3075
0
  DeleteCDCStreamRequestPB* n = new DeleteCDCStreamRequestPB;
3076
0
  if (arena != NULL) {
3077
0
    arena->Own(n);
3078
0
  }
3079
0
  return n;
3080
0
}
3081
3082
0
void DeleteCDCStreamRequestPB::Clear() {
3083
// @@protoc_insertion_point(message_clear_start:yb.cdc.DeleteCDCStreamRequestPB)
3084
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3085
  // Prevent compiler warnings about cached_has_bits being unused
3086
0
  (void) cached_has_bits;
3087
3088
0
  stream_id_.Clear();
3089
0
  ::memset(&ignore_errors_, 0, static_cast<size_t>(
3090
0
      reinterpret_cast<char*>(&force_delete_) -
3091
0
      reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_));
3092
0
  _has_bits_.Clear();
3093
0
  _internal_metadata_.Clear();
3094
0
}
3095
3096
bool DeleteCDCStreamRequestPB::MergePartialFromCodedStream(
3097
0
    ::google::protobuf::io::CodedInputStream* input) {
3098
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3099
0
  ::google::protobuf::uint32 tag;
3100
  // @@protoc_insertion_point(parse_start:yb.cdc.DeleteCDCStreamRequestPB)
3101
0
  for (;;) {
3102
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3103
0
    tag = p.first;
3104
0
    if (!p.second) goto handle_unusual;
3105
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3106
      // repeated bytes stream_id = 1;
3107
0
      case 1: {
3108
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3109
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3110
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3111
0
                input, this->add_stream_id()));
3112
0
        } else {
3113
0
          goto handle_unusual;
3114
0
        }
3115
0
        break;
3116
0
      }
3117
3118
      // optional bool ignore_errors = 2 [default = false];
3119
0
      case 2: {
3120
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3121
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3122
0
          set_has_ignore_errors();
3123
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3124
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3125
0
                 input, &ignore_errors_)));
3126
0
        } else {
3127
0
          goto handle_unusual;
3128
0
        }
3129
0
        break;
3130
0
      }
3131
3132
      // optional bool force_delete = 3 [default = false];
3133
0
      case 3: {
3134
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3135
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3136
0
          set_has_force_delete();
3137
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3138
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3139
0
                 input, &force_delete_)));
3140
0
        } else {
3141
0
          goto handle_unusual;
3142
0
        }
3143
0
        break;
3144
0
      }
3145
3146
0
      default: {
3147
0
      handle_unusual:
3148
0
        if (tag == 0) {
3149
0
          goto success;
3150
0
        }
3151
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3152
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3153
0
        break;
3154
0
      }
3155
0
    }
3156
0
  }
3157
0
success:
3158
  // @@protoc_insertion_point(parse_success:yb.cdc.DeleteCDCStreamRequestPB)
3159
0
  return true;
3160
0
failure:
3161
  // @@protoc_insertion_point(parse_failure:yb.cdc.DeleteCDCStreamRequestPB)
3162
0
  return false;
3163
0
#undef DO_
3164
0
}
3165
3166
void DeleteCDCStreamRequestPB::SerializeWithCachedSizes(
3167
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3168
  // @@protoc_insertion_point(serialize_start:yb.cdc.DeleteCDCStreamRequestPB)
3169
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3170
0
  (void) cached_has_bits;
3171
3172
  // repeated bytes stream_id = 1;
3173
0
  for (int i = 0, n = this->stream_id_size(); i < n; i++) {
3174
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
3175
0
      1, this->stream_id(i), output);
3176
0
  }
3177
3178
0
  cached_has_bits = _has_bits_[0];
3179
  // optional bool ignore_errors = 2 [default = false];
3180
0
  if (cached_has_bits & 0x00000001u) {
3181
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ignore_errors(), output);
3182
0
  }
3183
3184
  // optional bool force_delete = 3 [default = false];
3185
0
  if (cached_has_bits & 0x00000002u) {
3186
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->force_delete(), output);
3187
0
  }
3188
3189
0
  if (_internal_metadata_.have_unknown_fields()) {
3190
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3191
0
        _internal_metadata_.unknown_fields(), output);
3192
0
  }
3193
  // @@protoc_insertion_point(serialize_end:yb.cdc.DeleteCDCStreamRequestPB)
3194
0
}
3195
3196
::google::protobuf::uint8* DeleteCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray(
3197
0
    bool deterministic, ::google::protobuf::uint8* target) const {
3198
0
  (void)deterministic; // Unused
3199
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.DeleteCDCStreamRequestPB)
3200
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3201
0
  (void) cached_has_bits;
3202
3203
  // repeated bytes stream_id = 1;
3204
0
  for (int i = 0, n = this->stream_id_size(); i < n; i++) {
3205
0
    target = ::google::protobuf::internal::WireFormatLite::
3206
0
      WriteBytesToArray(1, this->stream_id(i), target);
3207
0
  }
3208
3209
0
  cached_has_bits = _has_bits_[0];
3210
  // optional bool ignore_errors = 2 [default = false];
3211
0
  if (cached_has_bits & 0x00000001u) {
3212
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ignore_errors(), target);
3213
0
  }
3214
3215
  // optional bool force_delete = 3 [default = false];
3216
0
  if (cached_has_bits & 0x00000002u) {
3217
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->force_delete(), target);
3218
0
  }
3219
3220
0
  if (_internal_metadata_.have_unknown_fields()) {
3221
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3222
0
        _internal_metadata_.unknown_fields(), target);
3223
0
  }
3224
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.DeleteCDCStreamRequestPB)
3225
0
  return target;
3226
0
}
3227
3228
0
size_t DeleteCDCStreamRequestPB::ByteSizeLong() const {
3229
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.DeleteCDCStreamRequestPB)
3230
0
  size_t total_size = 0;
3231
3232
0
  if (_internal_metadata_.have_unknown_fields()) {
3233
0
    total_size +=
3234
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3235
0
        _internal_metadata_.unknown_fields());
3236
0
  }
3237
  // repeated bytes stream_id = 1;
3238
0
  total_size += 1 *
3239
0
      ::google::protobuf::internal::FromIntSize(this->stream_id_size());
3240
0
  for (int i = 0, n = this->stream_id_size(); i < n; i++) {
3241
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
3242
0
      this->stream_id(i));
3243
0
  }
3244
3245
0
  if (_has_bits_[0 / 32] & 3u) {
3246
    // optional bool ignore_errors = 2 [default = false];
3247
0
    if (has_ignore_errors()) {
3248
0
      total_size += 1 + 1;
3249
0
    }
3250
3251
    // optional bool force_delete = 3 [default = false];
3252
0
    if (has_force_delete()) {
3253
0
      total_size += 1 + 1;
3254
0
    }
3255
3256
0
  }
3257
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3258
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3259
0
  _cached_size_ = cached_size;
3260
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3261
0
  return total_size;
3262
0
}
3263
3264
0
void DeleteCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3265
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.DeleteCDCStreamRequestPB)
3266
0
  GOOGLE_DCHECK_NE(&from, this);
3267
0
  const DeleteCDCStreamRequestPB* source =
3268
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamRequestPB>(
3269
0
          &from);
3270
0
  if (source == NULL) {
3271
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.DeleteCDCStreamRequestPB)
3272
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3273
0
  } else {
3274
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.DeleteCDCStreamRequestPB)
3275
0
    MergeFrom(*source);
3276
0
  }
3277
0
}
3278
3279
0
void DeleteCDCStreamRequestPB::MergeFrom(const DeleteCDCStreamRequestPB& from) {
3280
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.DeleteCDCStreamRequestPB)
3281
0
  GOOGLE_DCHECK_NE(&from, this);
3282
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3283
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3284
0
  (void) cached_has_bits;
3285
3286
0
  stream_id_.MergeFrom(from.stream_id_);
3287
0
  cached_has_bits = from._has_bits_[0];
3288
0
  if (cached_has_bits & 3u) {
3289
0
    if (cached_has_bits & 0x00000001u) {
3290
0
      ignore_errors_ = from.ignore_errors_;
3291
0
    }
3292
0
    if (cached_has_bits & 0x00000002u) {
3293
0
      force_delete_ = from.force_delete_;
3294
0
    }
3295
0
    _has_bits_[0] |= cached_has_bits;
3296
0
  }
3297
0
}
3298
3299
0
void DeleteCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3300
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.DeleteCDCStreamRequestPB)
3301
0
  if (&from == this) return;
3302
0
  Clear();
3303
0
  MergeFrom(from);
3304
0
}
3305
3306
0
void DeleteCDCStreamRequestPB::CopyFrom(const DeleteCDCStreamRequestPB& from) {
3307
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.DeleteCDCStreamRequestPB)
3308
0
  if (&from == this) return;
3309
0
  Clear();
3310
0
  MergeFrom(from);
3311
0
}
3312
3313
0
bool DeleteCDCStreamRequestPB::IsInitialized() const {
3314
0
  return true;
3315
0
}
3316
3317
0
void DeleteCDCStreamRequestPB::Swap(DeleteCDCStreamRequestPB* other) {
3318
0
  if (other == this) return;
3319
0
  InternalSwap(other);
3320
0
}
3321
0
void DeleteCDCStreamRequestPB::InternalSwap(DeleteCDCStreamRequestPB* other) {
3322
0
  using std::swap;
3323
0
  stream_id_.InternalSwap(&other->stream_id_);
3324
0
  swap(ignore_errors_, other->ignore_errors_);
3325
0
  swap(force_delete_, other->force_delete_);
3326
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3327
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3328
0
  swap(_cached_size_, other->_cached_size_);
3329
0
}
3330
3331
0
::google::protobuf::Metadata DeleteCDCStreamRequestPB::GetMetadata() const {
3332
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3333
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
3334
0
}
3335
3336
3337
// ===================================================================
3338
3339
11.1k
void DeleteCDCStreamResponsePB::InitAsDefaultInstance() {
3340
11.1k
  ::yb::cdc::_DeleteCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
3341
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
3342
11.1k
}
3343
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3344
const int DeleteCDCStreamResponsePB::kErrorFieldNumber;
3345
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3346
3347
DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB()
3348
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3349
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3350
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamResponsePB();
3351
0
  }
3352
11.1k
  SharedCtor();
3353
  // @@protoc_insertion_point(constructor:yb.cdc.DeleteCDCStreamResponsePB)
3354
11.1k
}
3355
DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB(const DeleteCDCStreamResponsePB& from)
3356
  : ::google::protobuf::Message(),
3357
      _internal_metadata_(NULL),
3358
      _has_bits_(from._has_bits_),
3359
0
      _cached_size_(0) {
3360
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3361
0
  if (from.has_error()) {
3362
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
3363
0
  } else {
3364
0
    error_ = NULL;
3365
0
  }
3366
  // @@protoc_insertion_point(copy_constructor:yb.cdc.DeleteCDCStreamResponsePB)
3367
0
}
3368
3369
11.1k
void DeleteCDCStreamResponsePB::SharedCtor() {
3370
11.1k
  _cached_size_ = 0;
3371
11.1k
  error_ = NULL;
3372
11.1k
}
3373
3374
0
DeleteCDCStreamResponsePB::~DeleteCDCStreamResponsePB() {
3375
  // @@protoc_insertion_point(destructor:yb.cdc.DeleteCDCStreamResponsePB)
3376
0
  SharedDtor();
3377
0
}
3378
3379
0
void DeleteCDCStreamResponsePB::SharedDtor() {
3380
0
  if (this != internal_default_instance()) delete error_;
3381
0
}
3382
3383
0
void DeleteCDCStreamResponsePB::SetCachedSize(int size) const {
3384
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3385
0
  _cached_size_ = size;
3386
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3387
0
}
3388
0
const ::google::protobuf::Descriptor* DeleteCDCStreamResponsePB::descriptor() {
3389
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3390
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3391
0
}
3392
3393
0
const DeleteCDCStreamResponsePB& DeleteCDCStreamResponsePB::default_instance() {
3394
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsDeleteCDCStreamResponsePB();
3395
0
  return *internal_default_instance();
3396
0
}
3397
3398
0
DeleteCDCStreamResponsePB* DeleteCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const {
3399
0
  DeleteCDCStreamResponsePB* n = new DeleteCDCStreamResponsePB;
3400
0
  if (arena != NULL) {
3401
0
    arena->Own(n);
3402
0
  }
3403
0
  return n;
3404
0
}
3405
3406
0
void DeleteCDCStreamResponsePB::Clear() {
3407
// @@protoc_insertion_point(message_clear_start:yb.cdc.DeleteCDCStreamResponsePB)
3408
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3409
  // Prevent compiler warnings about cached_has_bits being unused
3410
0
  (void) cached_has_bits;
3411
3412
0
  cached_has_bits = _has_bits_[0];
3413
0
  if (cached_has_bits & 0x00000001u) {
3414
0
    GOOGLE_DCHECK(error_ != NULL);
3415
0
    error_->Clear();
3416
0
  }
3417
0
  _has_bits_.Clear();
3418
0
  _internal_metadata_.Clear();
3419
0
}
3420
3421
bool DeleteCDCStreamResponsePB::MergePartialFromCodedStream(
3422
0
    ::google::protobuf::io::CodedInputStream* input) {
3423
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3424
0
  ::google::protobuf::uint32 tag;
3425
  // @@protoc_insertion_point(parse_start:yb.cdc.DeleteCDCStreamResponsePB)
3426
0
  for (;;) {
3427
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3428
0
    tag = p.first;
3429
0
    if (!p.second) goto handle_unusual;
3430
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3431
      // optional .yb.cdc.CDCErrorPB error = 1;
3432
0
      case 1: {
3433
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3434
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3435
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3436
0
               input, mutable_error()));
3437
0
        } else {
3438
0
          goto handle_unusual;
3439
0
        }
3440
0
        break;
3441
0
      }
3442
3443
0
      default: {
3444
0
      handle_unusual:
3445
0
        if (tag == 0) {
3446
0
          goto success;
3447
0
        }
3448
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3449
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3450
0
        break;
3451
0
      }
3452
0
    }
3453
0
  }
3454
0
success:
3455
  // @@protoc_insertion_point(parse_success:yb.cdc.DeleteCDCStreamResponsePB)
3456
0
  return true;
3457
0
failure:
3458
  // @@protoc_insertion_point(parse_failure:yb.cdc.DeleteCDCStreamResponsePB)
3459
0
  return false;
3460
0
#undef DO_
3461
0
}
3462
3463
void DeleteCDCStreamResponsePB::SerializeWithCachedSizes(
3464
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3465
  // @@protoc_insertion_point(serialize_start:yb.cdc.DeleteCDCStreamResponsePB)
3466
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3467
0
  (void) cached_has_bits;
3468
3469
0
  cached_has_bits = _has_bits_[0];
3470
  // optional .yb.cdc.CDCErrorPB error = 1;
3471
0
  if (cached_has_bits & 0x00000001u) {
3472
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3473
0
      1, *this->error_, output);
3474
0
  }
3475
3476
0
  if (_internal_metadata_.have_unknown_fields()) {
3477
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3478
0
        _internal_metadata_.unknown_fields(), output);
3479
0
  }
3480
  // @@protoc_insertion_point(serialize_end:yb.cdc.DeleteCDCStreamResponsePB)
3481
0
}
3482
3483
::google::protobuf::uint8* DeleteCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray(
3484
0
    bool deterministic, ::google::protobuf::uint8* target) const {
3485
0
  (void)deterministic; // Unused
3486
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.DeleteCDCStreamResponsePB)
3487
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3488
0
  (void) cached_has_bits;
3489
3490
0
  cached_has_bits = _has_bits_[0];
3491
  // optional .yb.cdc.CDCErrorPB error = 1;
3492
0
  if (cached_has_bits & 0x00000001u) {
3493
0
    target = ::google::protobuf::internal::WireFormatLite::
3494
0
      InternalWriteMessageToArray(
3495
0
        1, *this->error_, deterministic, target);
3496
0
  }
3497
3498
0
  if (_internal_metadata_.have_unknown_fields()) {
3499
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3500
0
        _internal_metadata_.unknown_fields(), target);
3501
0
  }
3502
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.DeleteCDCStreamResponsePB)
3503
0
  return target;
3504
0
}
3505
3506
0
size_t DeleteCDCStreamResponsePB::ByteSizeLong() const {
3507
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.DeleteCDCStreamResponsePB)
3508
0
  size_t total_size = 0;
3509
3510
0
  if (_internal_metadata_.have_unknown_fields()) {
3511
0
    total_size +=
3512
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3513
0
        _internal_metadata_.unknown_fields());
3514
0
  }
3515
  // optional .yb.cdc.CDCErrorPB error = 1;
3516
0
  if (has_error()) {
3517
0
    total_size += 1 +
3518
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3519
0
        *this->error_);
3520
0
  }
3521
3522
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3523
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3524
0
  _cached_size_ = cached_size;
3525
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3526
0
  return total_size;
3527
0
}
3528
3529
0
void DeleteCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
3530
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.DeleteCDCStreamResponsePB)
3531
0
  GOOGLE_DCHECK_NE(&from, this);
3532
0
  const DeleteCDCStreamResponsePB* source =
3533
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamResponsePB>(
3534
0
          &from);
3535
0
  if (source == NULL) {
3536
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.DeleteCDCStreamResponsePB)
3537
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3538
0
  } else {
3539
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.DeleteCDCStreamResponsePB)
3540
0
    MergeFrom(*source);
3541
0
  }
3542
0
}
3543
3544
0
void DeleteCDCStreamResponsePB::MergeFrom(const DeleteCDCStreamResponsePB& from) {
3545
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.DeleteCDCStreamResponsePB)
3546
0
  GOOGLE_DCHECK_NE(&from, this);
3547
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3548
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3549
0
  (void) cached_has_bits;
3550
3551
0
  if (from.has_error()) {
3552
0
    mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
3553
0
  }
3554
0
}
3555
3556
0
void DeleteCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
3557
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.DeleteCDCStreamResponsePB)
3558
0
  if (&from == this) return;
3559
0
  Clear();
3560
0
  MergeFrom(from);
3561
0
}
3562
3563
0
void DeleteCDCStreamResponsePB::CopyFrom(const DeleteCDCStreamResponsePB& from) {
3564
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.DeleteCDCStreamResponsePB)
3565
0
  if (&from == this) return;
3566
0
  Clear();
3567
0
  MergeFrom(from);
3568
0
}
3569
3570
0
bool DeleteCDCStreamResponsePB::IsInitialized() const {
3571
0
  if (has_error()) {
3572
0
    if (!this->error_->IsInitialized()) return false;
3573
0
  }
3574
0
  return true;
3575
0
}
3576
3577
0
void DeleteCDCStreamResponsePB::Swap(DeleteCDCStreamResponsePB* other) {
3578
0
  if (other == this) return;
3579
0
  InternalSwap(other);
3580
0
}
3581
0
void DeleteCDCStreamResponsePB::InternalSwap(DeleteCDCStreamResponsePB* other) {
3582
0
  using std::swap;
3583
0
  swap(error_, other->error_);
3584
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3585
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3586
0
  swap(_cached_size_, other->_cached_size_);
3587
0
}
3588
3589
0
::google::protobuf::Metadata DeleteCDCStreamResponsePB::GetMetadata() const {
3590
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3591
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
3592
0
}
3593
3594
3595
// ===================================================================
3596
3597
11.1k
void ListTabletsRequestPB::InitAsDefaultInstance() {
3598
11.1k
}
3599
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3600
const int ListTabletsRequestPB::kStreamIdFieldNumber;
3601
const int ListTabletsRequestPB::kLocalOnlyFieldNumber;
3602
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3603
3604
ListTabletsRequestPB::ListTabletsRequestPB()
3605
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3606
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3607
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsRequestPB();
3608
0
  }
3609
11.1k
  SharedCtor();
3610
  // @@protoc_insertion_point(constructor:yb.cdc.ListTabletsRequestPB)
3611
11.1k
}
3612
ListTabletsRequestPB::ListTabletsRequestPB(const ListTabletsRequestPB& from)
3613
  : ::google::protobuf::Message(),
3614
      _internal_metadata_(NULL),
3615
      _has_bits_(from._has_bits_),
3616
0
      _cached_size_(0) {
3617
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3618
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3619
0
  if (from.has_stream_id()) {
3620
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
3621
0
  }
3622
0
  local_only_ = from.local_only_;
3623
  // @@protoc_insertion_point(copy_constructor:yb.cdc.ListTabletsRequestPB)
3624
0
}
3625
3626
11.1k
void ListTabletsRequestPB::SharedCtor() {
3627
11.1k
  _cached_size_ = 0;
3628
11.1k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3629
11.1k
  local_only_ = false;
3630
11.1k
}
3631
3632
0
ListTabletsRequestPB::~ListTabletsRequestPB() {
3633
  // @@protoc_insertion_point(destructor:yb.cdc.ListTabletsRequestPB)
3634
0
  SharedDtor();
3635
0
}
3636
3637
0
void ListTabletsRequestPB::SharedDtor() {
3638
0
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3639
0
}
3640
3641
0
void ListTabletsRequestPB::SetCachedSize(int size) const {
3642
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3643
0
  _cached_size_ = size;
3644
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3645
0
}
3646
0
const ::google::protobuf::Descriptor* ListTabletsRequestPB::descriptor() {
3647
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3648
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3649
0
}
3650
3651
0
const ListTabletsRequestPB& ListTabletsRequestPB::default_instance() {
3652
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsRequestPB();
3653
0
  return *internal_default_instance();
3654
0
}
3655
3656
0
ListTabletsRequestPB* ListTabletsRequestPB::New(::google::protobuf::Arena* arena) const {
3657
0
  ListTabletsRequestPB* n = new ListTabletsRequestPB;
3658
0
  if (arena != NULL) {
3659
0
    arena->Own(n);
3660
0
  }
3661
0
  return n;
3662
0
}
3663
3664
0
void ListTabletsRequestPB::Clear() {
3665
// @@protoc_insertion_point(message_clear_start:yb.cdc.ListTabletsRequestPB)
3666
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3667
  // Prevent compiler warnings about cached_has_bits being unused
3668
0
  (void) cached_has_bits;
3669
3670
0
  cached_has_bits = _has_bits_[0];
3671
0
  if (cached_has_bits & 0x00000001u) {
3672
0
    GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3673
0
    (*stream_id_.UnsafeRawStringPointer())->clear();
3674
0
  }
3675
0
  local_only_ = false;
3676
0
  _has_bits_.Clear();
3677
0
  _internal_metadata_.Clear();
3678
0
}
3679
3680
bool ListTabletsRequestPB::MergePartialFromCodedStream(
3681
0
    ::google::protobuf::io::CodedInputStream* input) {
3682
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3683
0
  ::google::protobuf::uint32 tag;
3684
  // @@protoc_insertion_point(parse_start:yb.cdc.ListTabletsRequestPB)
3685
0
  for (;;) {
3686
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3687
0
    tag = p.first;
3688
0
    if (!p.second) goto handle_unusual;
3689
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3690
      // optional string stream_id = 1;
3691
0
      case 1: {
3692
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3693
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3694
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3695
0
                input, this->mutable_stream_id()));
3696
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3697
0
            this->stream_id().data(), static_cast<int>(this->stream_id().length()),
3698
0
            ::google::protobuf::internal::WireFormat::PARSE,
3699
0
            "yb.cdc.ListTabletsRequestPB.stream_id");
3700
0
        } else {
3701
0
          goto handle_unusual;
3702
0
        }
3703
0
        break;
3704
0
      }
3705
3706
      // optional bool local_only = 2 [default = false];
3707
0
      case 2: {
3708
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3709
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3710
0
          set_has_local_only();
3711
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3712
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3713
0
                 input, &local_only_)));
3714
0
        } else {
3715
0
          goto handle_unusual;
3716
0
        }
3717
0
        break;
3718
0
      }
3719
3720
0
      default: {
3721
0
      handle_unusual:
3722
0
        if (tag == 0) {
3723
0
          goto success;
3724
0
        }
3725
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3726
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3727
0
        break;
3728
0
      }
3729
0
    }
3730
0
  }
3731
0
success:
3732
  // @@protoc_insertion_point(parse_success:yb.cdc.ListTabletsRequestPB)
3733
0
  return true;
3734
0
failure:
3735
  // @@protoc_insertion_point(parse_failure:yb.cdc.ListTabletsRequestPB)
3736
0
  return false;
3737
0
#undef DO_
3738
0
}
3739
3740
void ListTabletsRequestPB::SerializeWithCachedSizes(
3741
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3742
  // @@protoc_insertion_point(serialize_start:yb.cdc.ListTabletsRequestPB)
3743
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3744
0
  (void) cached_has_bits;
3745
3746
0
  cached_has_bits = _has_bits_[0];
3747
  // optional string stream_id = 1;
3748
0
  if (cached_has_bits & 0x00000001u) {
3749
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3750
0
      this->stream_id().data(), static_cast<int>(this->stream_id().length()),
3751
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3752
0
      "yb.cdc.ListTabletsRequestPB.stream_id");
3753
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3754
0
      1, this->stream_id(), output);
3755
0
  }
3756
3757
  // optional bool local_only = 2 [default = false];
3758
0
  if (cached_has_bits & 0x00000002u) {
3759
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->local_only(), output);
3760
0
  }
3761
3762
0
  if (_internal_metadata_.have_unknown_fields()) {
3763
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3764
0
        _internal_metadata_.unknown_fields(), output);
3765
0
  }
3766
  // @@protoc_insertion_point(serialize_end:yb.cdc.ListTabletsRequestPB)
3767
0
}
3768
3769
::google::protobuf::uint8* ListTabletsRequestPB::InternalSerializeWithCachedSizesToArray(
3770
0
    bool deterministic, ::google::protobuf::uint8* target) const {
3771
0
  (void)deterministic; // Unused
3772
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ListTabletsRequestPB)
3773
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3774
0
  (void) cached_has_bits;
3775
3776
0
  cached_has_bits = _has_bits_[0];
3777
  // optional string stream_id = 1;
3778
0
  if (cached_has_bits & 0x00000001u) {
3779
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3780
0
      this->stream_id().data(), static_cast<int>(this->stream_id().length()),
3781
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3782
0
      "yb.cdc.ListTabletsRequestPB.stream_id");
3783
0
    target =
3784
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3785
0
        1, this->stream_id(), target);
3786
0
  }
3787
3788
  // optional bool local_only = 2 [default = false];
3789
0
  if (cached_has_bits & 0x00000002u) {
3790
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->local_only(), target);
3791
0
  }
3792
3793
0
  if (_internal_metadata_.have_unknown_fields()) {
3794
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3795
0
        _internal_metadata_.unknown_fields(), target);
3796
0
  }
3797
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ListTabletsRequestPB)
3798
0
  return target;
3799
0
}
3800
3801
0
size_t ListTabletsRequestPB::ByteSizeLong() const {
3802
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.ListTabletsRequestPB)
3803
0
  size_t total_size = 0;
3804
3805
0
  if (_internal_metadata_.have_unknown_fields()) {
3806
0
    total_size +=
3807
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3808
0
        _internal_metadata_.unknown_fields());
3809
0
  }
3810
0
  if (_has_bits_[0 / 32] & 3u) {
3811
    // optional string stream_id = 1;
3812
0
    if (has_stream_id()) {
3813
0
      total_size += 1 +
3814
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
3815
0
          this->stream_id());
3816
0
    }
3817
3818
    // optional bool local_only = 2 [default = false];
3819
0
    if (has_local_only()) {
3820
0
      total_size += 1 + 1;
3821
0
    }
3822
3823
0
  }
3824
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3825
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3826
0
  _cached_size_ = cached_size;
3827
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3828
0
  return total_size;
3829
0
}
3830
3831
0
void ListTabletsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3832
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ListTabletsRequestPB)
3833
0
  GOOGLE_DCHECK_NE(&from, this);
3834
0
  const ListTabletsRequestPB* source =
3835
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsRequestPB>(
3836
0
          &from);
3837
0
  if (source == NULL) {
3838
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ListTabletsRequestPB)
3839
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3840
0
  } else {
3841
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ListTabletsRequestPB)
3842
0
    MergeFrom(*source);
3843
0
  }
3844
0
}
3845
3846
0
void ListTabletsRequestPB::MergeFrom(const ListTabletsRequestPB& from) {
3847
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ListTabletsRequestPB)
3848
0
  GOOGLE_DCHECK_NE(&from, this);
3849
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3850
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3851
0
  (void) cached_has_bits;
3852
3853
0
  cached_has_bits = from._has_bits_[0];
3854
0
  if (cached_has_bits & 3u) {
3855
0
    if (cached_has_bits & 0x00000001u) {
3856
0
      set_has_stream_id();
3857
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
3858
0
    }
3859
0
    if (cached_has_bits & 0x00000002u) {
3860
0
      local_only_ = from.local_only_;
3861
0
    }
3862
0
    _has_bits_[0] |= cached_has_bits;
3863
0
  }
3864
0
}
3865
3866
0
void ListTabletsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3867
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ListTabletsRequestPB)
3868
0
  if (&from == this) return;
3869
0
  Clear();
3870
0
  MergeFrom(from);
3871
0
}
3872
3873
0
void ListTabletsRequestPB::CopyFrom(const ListTabletsRequestPB& from) {
3874
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ListTabletsRequestPB)
3875
0
  if (&from == this) return;
3876
0
  Clear();
3877
0
  MergeFrom(from);
3878
0
}
3879
3880
0
bool ListTabletsRequestPB::IsInitialized() const {
3881
0
  return true;
3882
0
}
3883
3884
0
void ListTabletsRequestPB::Swap(ListTabletsRequestPB* other) {
3885
0
  if (other == this) return;
3886
0
  InternalSwap(other);
3887
0
}
3888
0
void ListTabletsRequestPB::InternalSwap(ListTabletsRequestPB* other) {
3889
0
  using std::swap;
3890
0
  stream_id_.Swap(&other->stream_id_);
3891
0
  swap(local_only_, other->local_only_);
3892
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3893
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3894
0
  swap(_cached_size_, other->_cached_size_);
3895
0
}
3896
3897
0
::google::protobuf::Metadata ListTabletsRequestPB::GetMetadata() const {
3898
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3899
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
3900
0
}
3901
3902
3903
// ===================================================================
3904
3905
11.1k
void ListTabletsResponsePB::InitAsDefaultInstance() {
3906
11.1k
  ::yb::cdc::_ListTabletsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
3907
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
3908
11.1k
}
3909
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3910
const int ListTabletsResponsePB::kErrorFieldNumber;
3911
const int ListTabletsResponsePB::kTabletsFieldNumber;
3912
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3913
3914
ListTabletsResponsePB::ListTabletsResponsePB()
3915
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3916
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3917
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsResponsePB();
3918
0
  }
3919
11.1k
  SharedCtor();
3920
  // @@protoc_insertion_point(constructor:yb.cdc.ListTabletsResponsePB)
3921
11.1k
}
3922
ListTabletsResponsePB::ListTabletsResponsePB(const ListTabletsResponsePB& from)
3923
  : ::google::protobuf::Message(),
3924
      _internal_metadata_(NULL),
3925
      _has_bits_(from._has_bits_),
3926
      _cached_size_(0),
3927
0
      tablets_(from.tablets_) {
3928
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3929
0
  if (from.has_error()) {
3930
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
3931
0
  } else {
3932
0
    error_ = NULL;
3933
0
  }
3934
  // @@protoc_insertion_point(copy_constructor:yb.cdc.ListTabletsResponsePB)
3935
0
}
3936
3937
11.1k
void ListTabletsResponsePB::SharedCtor() {
3938
11.1k
  _cached_size_ = 0;
3939
11.1k
  error_ = NULL;
3940
11.1k
}
3941
3942
0
ListTabletsResponsePB::~ListTabletsResponsePB() {
3943
  // @@protoc_insertion_point(destructor:yb.cdc.ListTabletsResponsePB)
3944
0
  SharedDtor();
3945
0
}
3946
3947
0
void ListTabletsResponsePB::SharedDtor() {
3948
0
  if (this != internal_default_instance()) delete error_;
3949
0
}
3950
3951
0
void ListTabletsResponsePB::SetCachedSize(int size) const {
3952
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3953
0
  _cached_size_ = size;
3954
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3955
0
}
3956
0
const ::google::protobuf::Descriptor* ListTabletsResponsePB::descriptor() {
3957
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
3958
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3959
0
}
3960
3961
0
const ListTabletsResponsePB& ListTabletsResponsePB::default_instance() {
3962
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsListTabletsResponsePB();
3963
0
  return *internal_default_instance();
3964
0
}
3965
3966
0
ListTabletsResponsePB* ListTabletsResponsePB::New(::google::protobuf::Arena* arena) const {
3967
0
  ListTabletsResponsePB* n = new ListTabletsResponsePB;
3968
0
  if (arena != NULL) {
3969
0
    arena->Own(n);
3970
0
  }
3971
0
  return n;
3972
0
}
3973
3974
0
void ListTabletsResponsePB::Clear() {
3975
// @@protoc_insertion_point(message_clear_start:yb.cdc.ListTabletsResponsePB)
3976
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3977
  // Prevent compiler warnings about cached_has_bits being unused
3978
0
  (void) cached_has_bits;
3979
3980
0
  tablets_.Clear();
3981
0
  cached_has_bits = _has_bits_[0];
3982
0
  if (cached_has_bits & 0x00000001u) {
3983
0
    GOOGLE_DCHECK(error_ != NULL);
3984
0
    error_->Clear();
3985
0
  }
3986
0
  _has_bits_.Clear();
3987
0
  _internal_metadata_.Clear();
3988
0
}
3989
3990
bool ListTabletsResponsePB::MergePartialFromCodedStream(
3991
0
    ::google::protobuf::io::CodedInputStream* input) {
3992
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3993
0
  ::google::protobuf::uint32 tag;
3994
  // @@protoc_insertion_point(parse_start:yb.cdc.ListTabletsResponsePB)
3995
0
  for (;;) {
3996
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3997
0
    tag = p.first;
3998
0
    if (!p.second) goto handle_unusual;
3999
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4000
      // optional .yb.cdc.CDCErrorPB error = 1;
4001
0
      case 1: {
4002
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4003
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4004
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4005
0
               input, mutable_error()));
4006
0
        } else {
4007
0
          goto handle_unusual;
4008
0
        }
4009
0
        break;
4010
0
      }
4011
4012
      // repeated .yb.cdc.CDCTabletPB tablets = 2;
4013
0
      case 2: {
4014
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4015
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4016
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablets()));
4017
0
        } else {
4018
0
          goto handle_unusual;
4019
0
        }
4020
0
        break;
4021
0
      }
4022
4023
0
      default: {
4024
0
      handle_unusual:
4025
0
        if (tag == 0) {
4026
0
          goto success;
4027
0
        }
4028
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4029
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4030
0
        break;
4031
0
      }
4032
0
    }
4033
0
  }
4034
0
success:
4035
  // @@protoc_insertion_point(parse_success:yb.cdc.ListTabletsResponsePB)
4036
0
  return true;
4037
0
failure:
4038
  // @@protoc_insertion_point(parse_failure:yb.cdc.ListTabletsResponsePB)
4039
0
  return false;
4040
0
#undef DO_
4041
0
}
4042
4043
void ListTabletsResponsePB::SerializeWithCachedSizes(
4044
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4045
  // @@protoc_insertion_point(serialize_start:yb.cdc.ListTabletsResponsePB)
4046
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4047
0
  (void) cached_has_bits;
4048
4049
0
  cached_has_bits = _has_bits_[0];
4050
  // optional .yb.cdc.CDCErrorPB error = 1;
4051
0
  if (cached_has_bits & 0x00000001u) {
4052
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4053
0
      1, *this->error_, output);
4054
0
  }
4055
4056
  // repeated .yb.cdc.CDCTabletPB tablets = 2;
4057
0
  for (unsigned int i = 0,
4058
0
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
4059
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4060
0
      2, this->tablets(static_cast<int>(i)), output);
4061
0
  }
4062
4063
0
  if (_internal_metadata_.have_unknown_fields()) {
4064
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4065
0
        _internal_metadata_.unknown_fields(), output);
4066
0
  }
4067
  // @@protoc_insertion_point(serialize_end:yb.cdc.ListTabletsResponsePB)
4068
0
}
4069
4070
::google::protobuf::uint8* ListTabletsResponsePB::InternalSerializeWithCachedSizesToArray(
4071
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4072
0
  (void)deterministic; // Unused
4073
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ListTabletsResponsePB)
4074
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4075
0
  (void) cached_has_bits;
4076
4077
0
  cached_has_bits = _has_bits_[0];
4078
  // optional .yb.cdc.CDCErrorPB error = 1;
4079
0
  if (cached_has_bits & 0x00000001u) {
4080
0
    target = ::google::protobuf::internal::WireFormatLite::
4081
0
      InternalWriteMessageToArray(
4082
0
        1, *this->error_, deterministic, target);
4083
0
  }
4084
4085
  // repeated .yb.cdc.CDCTabletPB tablets = 2;
4086
0
  for (unsigned int i = 0,
4087
0
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
4088
0
    target = ::google::protobuf::internal::WireFormatLite::
4089
0
      InternalWriteMessageToArray(
4090
0
        2, this->tablets(static_cast<int>(i)), deterministic, target);
4091
0
  }
4092
4093
0
  if (_internal_metadata_.have_unknown_fields()) {
4094
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4095
0
        _internal_metadata_.unknown_fields(), target);
4096
0
  }
4097
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ListTabletsResponsePB)
4098
0
  return target;
4099
0
}
4100
4101
0
size_t ListTabletsResponsePB::ByteSizeLong() const {
4102
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.ListTabletsResponsePB)
4103
0
  size_t total_size = 0;
4104
4105
0
  if (_internal_metadata_.have_unknown_fields()) {
4106
0
    total_size +=
4107
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4108
0
        _internal_metadata_.unknown_fields());
4109
0
  }
4110
  // repeated .yb.cdc.CDCTabletPB tablets = 2;
4111
0
  {
4112
0
    unsigned int count = static_cast<unsigned int>(this->tablets_size());
4113
0
    total_size += 1UL * count;
4114
0
    for (unsigned int i = 0; i < count; i++) {
4115
0
      total_size +=
4116
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4117
0
          this->tablets(static_cast<int>(i)));
4118
0
    }
4119
0
  }
4120
4121
  // optional .yb.cdc.CDCErrorPB error = 1;
4122
0
  if (has_error()) {
4123
0
    total_size += 1 +
4124
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4125
0
        *this->error_);
4126
0
  }
4127
4128
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4129
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4130
0
  _cached_size_ = cached_size;
4131
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4132
0
  return total_size;
4133
0
}
4134
4135
0
void ListTabletsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4136
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ListTabletsResponsePB)
4137
0
  GOOGLE_DCHECK_NE(&from, this);
4138
0
  const ListTabletsResponsePB* source =
4139
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ListTabletsResponsePB>(
4140
0
          &from);
4141
0
  if (source == NULL) {
4142
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ListTabletsResponsePB)
4143
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4144
0
  } else {
4145
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ListTabletsResponsePB)
4146
0
    MergeFrom(*source);
4147
0
  }
4148
0
}
4149
4150
0
void ListTabletsResponsePB::MergeFrom(const ListTabletsResponsePB& from) {
4151
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ListTabletsResponsePB)
4152
0
  GOOGLE_DCHECK_NE(&from, this);
4153
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4154
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4155
0
  (void) cached_has_bits;
4156
4157
0
  tablets_.MergeFrom(from.tablets_);
4158
0
  if (from.has_error()) {
4159
0
    mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
4160
0
  }
4161
0
}
4162
4163
0
void ListTabletsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4164
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ListTabletsResponsePB)
4165
0
  if (&from == this) return;
4166
0
  Clear();
4167
0
  MergeFrom(from);
4168
0
}
4169
4170
0
void ListTabletsResponsePB::CopyFrom(const ListTabletsResponsePB& from) {
4171
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ListTabletsResponsePB)
4172
0
  if (&from == this) return;
4173
0
  Clear();
4174
0
  MergeFrom(from);
4175
0
}
4176
4177
0
bool ListTabletsResponsePB::IsInitialized() const {
4178
0
  if (!::google::protobuf::internal::AllAreInitialized(this->tablets())) return false;
4179
0
  if (has_error()) {
4180
0
    if (!this->error_->IsInitialized()) return false;
4181
0
  }
4182
0
  return true;
4183
0
}
4184
4185
0
void ListTabletsResponsePB::Swap(ListTabletsResponsePB* other) {
4186
0
  if (other == this) return;
4187
0
  InternalSwap(other);
4188
0
}
4189
0
void ListTabletsResponsePB::InternalSwap(ListTabletsResponsePB* other) {
4190
0
  using std::swap;
4191
0
  tablets_.InternalSwap(&other->tablets_);
4192
0
  swap(error_, other->error_);
4193
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4194
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4195
0
  swap(_cached_size_, other->_cached_size_);
4196
0
}
4197
4198
0
::google::protobuf::Metadata ListTabletsResponsePB::GetMetadata() const {
4199
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4200
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
4201
0
}
4202
4203
4204
// ===================================================================
4205
4206
11.1k
void CDCTabletPB_ReplicaPB::InitAsDefaultInstance() {
4207
11.1k
}
4208
0
void CDCTabletPB_ReplicaPB::clear_broadcast_addresses() {
4209
0
  broadcast_addresses_.Clear();
4210
0
}
4211
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4212
const int CDCTabletPB_ReplicaPB::kBroadcastAddressesFieldNumber;
4213
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4214
4215
CDCTabletPB_ReplicaPB::CDCTabletPB_ReplicaPB()
4216
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4217
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4218
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB();
4219
0
  }
4220
11.1k
  SharedCtor();
4221
  // @@protoc_insertion_point(constructor:yb.cdc.CDCTabletPB.ReplicaPB)
4222
11.1k
}
4223
CDCTabletPB_ReplicaPB::CDCTabletPB_ReplicaPB(const CDCTabletPB_ReplicaPB& from)
4224
  : ::google::protobuf::Message(),
4225
      _internal_metadata_(NULL),
4226
      _has_bits_(from._has_bits_),
4227
      _cached_size_(0),
4228
0
      broadcast_addresses_(from.broadcast_addresses_) {
4229
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4230
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCTabletPB.ReplicaPB)
4231
0
}
4232
4233
11.1k
void CDCTabletPB_ReplicaPB::SharedCtor() {
4234
11.1k
  _cached_size_ = 0;
4235
11.1k
}
4236
4237
0
CDCTabletPB_ReplicaPB::~CDCTabletPB_ReplicaPB() {
4238
  // @@protoc_insertion_point(destructor:yb.cdc.CDCTabletPB.ReplicaPB)
4239
0
  SharedDtor();
4240
0
}
4241
4242
0
void CDCTabletPB_ReplicaPB::SharedDtor() {
4243
0
}
4244
4245
0
void CDCTabletPB_ReplicaPB::SetCachedSize(int size) const {
4246
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4247
0
  _cached_size_ = size;
4248
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4249
0
}
4250
0
const ::google::protobuf::Descriptor* CDCTabletPB_ReplicaPB::descriptor() {
4251
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4252
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4253
0
}
4254
4255
0
const CDCTabletPB_ReplicaPB& CDCTabletPB_ReplicaPB::default_instance() {
4256
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB_ReplicaPB();
4257
0
  return *internal_default_instance();
4258
0
}
4259
4260
0
CDCTabletPB_ReplicaPB* CDCTabletPB_ReplicaPB::New(::google::protobuf::Arena* arena) const {
4261
0
  CDCTabletPB_ReplicaPB* n = new CDCTabletPB_ReplicaPB;
4262
0
  if (arena != NULL) {
4263
0
    arena->Own(n);
4264
0
  }
4265
0
  return n;
4266
0
}
4267
4268
0
void CDCTabletPB_ReplicaPB::Clear() {
4269
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCTabletPB.ReplicaPB)
4270
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4271
  // Prevent compiler warnings about cached_has_bits being unused
4272
0
  (void) cached_has_bits;
4273
4274
0
  broadcast_addresses_.Clear();
4275
0
  _has_bits_.Clear();
4276
0
  _internal_metadata_.Clear();
4277
0
}
4278
4279
bool CDCTabletPB_ReplicaPB::MergePartialFromCodedStream(
4280
0
    ::google::protobuf::io::CodedInputStream* input) {
4281
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4282
0
  ::google::protobuf::uint32 tag;
4283
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCTabletPB.ReplicaPB)
4284
0
  for (;;) {
4285
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4286
0
    tag = p.first;
4287
0
    if (!p.second) goto handle_unusual;
4288
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4289
      // repeated .yb.HostPortPB broadcast_addresses = 1;
4290
0
      case 1: {
4291
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4292
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4293
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_broadcast_addresses()));
4294
0
        } else {
4295
0
          goto handle_unusual;
4296
0
        }
4297
0
        break;
4298
0
      }
4299
4300
0
      default: {
4301
0
      handle_unusual:
4302
0
        if (tag == 0) {
4303
0
          goto success;
4304
0
        }
4305
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4306
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4307
0
        break;
4308
0
      }
4309
0
    }
4310
0
  }
4311
0
success:
4312
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCTabletPB.ReplicaPB)
4313
0
  return true;
4314
0
failure:
4315
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCTabletPB.ReplicaPB)
4316
0
  return false;
4317
0
#undef DO_
4318
0
}
4319
4320
void CDCTabletPB_ReplicaPB::SerializeWithCachedSizes(
4321
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4322
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCTabletPB.ReplicaPB)
4323
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4324
0
  (void) cached_has_bits;
4325
4326
  // repeated .yb.HostPortPB broadcast_addresses = 1;
4327
0
  for (unsigned int i = 0,
4328
0
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) {
4329
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4330
0
      1, this->broadcast_addresses(static_cast<int>(i)), output);
4331
0
  }
4332
4333
0
  if (_internal_metadata_.have_unknown_fields()) {
4334
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4335
0
        _internal_metadata_.unknown_fields(), output);
4336
0
  }
4337
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCTabletPB.ReplicaPB)
4338
0
}
4339
4340
::google::protobuf::uint8* CDCTabletPB_ReplicaPB::InternalSerializeWithCachedSizesToArray(
4341
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4342
0
  (void)deterministic; // Unused
4343
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCTabletPB.ReplicaPB)
4344
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4345
0
  (void) cached_has_bits;
4346
4347
  // repeated .yb.HostPortPB broadcast_addresses = 1;
4348
0
  for (unsigned int i = 0,
4349
0
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) {
4350
0
    target = ::google::protobuf::internal::WireFormatLite::
4351
0
      InternalWriteMessageToArray(
4352
0
        1, this->broadcast_addresses(static_cast<int>(i)), deterministic, target);
4353
0
  }
4354
4355
0
  if (_internal_metadata_.have_unknown_fields()) {
4356
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4357
0
        _internal_metadata_.unknown_fields(), target);
4358
0
  }
4359
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCTabletPB.ReplicaPB)
4360
0
  return target;
4361
0
}
4362
4363
0
size_t CDCTabletPB_ReplicaPB::ByteSizeLong() const {
4364
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCTabletPB.ReplicaPB)
4365
0
  size_t total_size = 0;
4366
4367
0
  if (_internal_metadata_.have_unknown_fields()) {
4368
0
    total_size +=
4369
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4370
0
        _internal_metadata_.unknown_fields());
4371
0
  }
4372
  // repeated .yb.HostPortPB broadcast_addresses = 1;
4373
0
  {
4374
0
    unsigned int count = static_cast<unsigned int>(this->broadcast_addresses_size());
4375
0
    total_size += 1UL * count;
4376
0
    for (unsigned int i = 0; i < count; i++) {
4377
0
      total_size +=
4378
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4379
0
          this->broadcast_addresses(static_cast<int>(i)));
4380
0
    }
4381
0
  }
4382
4383
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4384
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4385
0
  _cached_size_ = cached_size;
4386
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4387
0
  return total_size;
4388
0
}
4389
4390
0
void CDCTabletPB_ReplicaPB::MergeFrom(const ::google::protobuf::Message& from) {
4391
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCTabletPB.ReplicaPB)
4392
0
  GOOGLE_DCHECK_NE(&from, this);
4393
0
  const CDCTabletPB_ReplicaPB* source =
4394
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCTabletPB_ReplicaPB>(
4395
0
          &from);
4396
0
  if (source == NULL) {
4397
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCTabletPB.ReplicaPB)
4398
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4399
0
  } else {
4400
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCTabletPB.ReplicaPB)
4401
0
    MergeFrom(*source);
4402
0
  }
4403
0
}
4404
4405
0
void CDCTabletPB_ReplicaPB::MergeFrom(const CDCTabletPB_ReplicaPB& from) {
4406
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCTabletPB.ReplicaPB)
4407
0
  GOOGLE_DCHECK_NE(&from, this);
4408
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4409
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4410
0
  (void) cached_has_bits;
4411
4412
0
  broadcast_addresses_.MergeFrom(from.broadcast_addresses_);
4413
0
}
4414
4415
0
void CDCTabletPB_ReplicaPB::CopyFrom(const ::google::protobuf::Message& from) {
4416
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCTabletPB.ReplicaPB)
4417
0
  if (&from == this) return;
4418
0
  Clear();
4419
0
  MergeFrom(from);
4420
0
}
4421
4422
0
void CDCTabletPB_ReplicaPB::CopyFrom(const CDCTabletPB_ReplicaPB& from) {
4423
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCTabletPB.ReplicaPB)
4424
0
  if (&from == this) return;
4425
0
  Clear();
4426
0
  MergeFrom(from);
4427
0
}
4428
4429
0
bool CDCTabletPB_ReplicaPB::IsInitialized() const {
4430
0
  if (!::google::protobuf::internal::AllAreInitialized(this->broadcast_addresses())) return false;
4431
0
  return true;
4432
0
}
4433
4434
0
void CDCTabletPB_ReplicaPB::Swap(CDCTabletPB_ReplicaPB* other) {
4435
0
  if (other == this) return;
4436
0
  InternalSwap(other);
4437
0
}
4438
0
void CDCTabletPB_ReplicaPB::InternalSwap(CDCTabletPB_ReplicaPB* other) {
4439
0
  using std::swap;
4440
0
  broadcast_addresses_.InternalSwap(&other->broadcast_addresses_);
4441
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4442
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4443
0
  swap(_cached_size_, other->_cached_size_);
4444
0
}
4445
4446
0
::google::protobuf::Metadata CDCTabletPB_ReplicaPB::GetMetadata() const {
4447
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4448
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
4449
0
}
4450
4451
4452
// ===================================================================
4453
4454
11.1k
void CDCTabletPB::InitAsDefaultInstance() {
4455
11.1k
}
4456
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4457
const int CDCTabletPB::kTabletIdFieldNumber;
4458
const int CDCTabletPB::kTserversFieldNumber;
4459
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4460
4461
CDCTabletPB::CDCTabletPB()
4462
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4463
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4464
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB();
4465
0
  }
4466
11.1k
  SharedCtor();
4467
  // @@protoc_insertion_point(constructor:yb.cdc.CDCTabletPB)
4468
11.1k
}
4469
CDCTabletPB::CDCTabletPB(const CDCTabletPB& from)
4470
  : ::google::protobuf::Message(),
4471
      _internal_metadata_(NULL),
4472
      _has_bits_(from._has_bits_),
4473
      _cached_size_(0),
4474
0
      tservers_(from.tservers_) {
4475
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4476
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4477
0
  if (from.has_tablet_id()) {
4478
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
4479
0
  }
4480
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCTabletPB)
4481
0
}
4482
4483
11.1k
void CDCTabletPB::SharedCtor() {
4484
11.1k
  _cached_size_ = 0;
4485
11.1k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4486
11.1k
}
4487
4488
0
CDCTabletPB::~CDCTabletPB() {
4489
  // @@protoc_insertion_point(destructor:yb.cdc.CDCTabletPB)
4490
0
  SharedDtor();
4491
0
}
4492
4493
0
void CDCTabletPB::SharedDtor() {
4494
0
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4495
0
}
4496
4497
0
void CDCTabletPB::SetCachedSize(int size) const {
4498
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4499
0
  _cached_size_ = size;
4500
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4501
0
}
4502
0
const ::google::protobuf::Descriptor* CDCTabletPB::descriptor() {
4503
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4504
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4505
0
}
4506
4507
0
const CDCTabletPB& CDCTabletPB::default_instance() {
4508
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCTabletPB();
4509
0
  return *internal_default_instance();
4510
0
}
4511
4512
0
CDCTabletPB* CDCTabletPB::New(::google::protobuf::Arena* arena) const {
4513
0
  CDCTabletPB* n = new CDCTabletPB;
4514
0
  if (arena != NULL) {
4515
0
    arena->Own(n);
4516
0
  }
4517
0
  return n;
4518
0
}
4519
4520
0
void CDCTabletPB::Clear() {
4521
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCTabletPB)
4522
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4523
  // Prevent compiler warnings about cached_has_bits being unused
4524
0
  (void) cached_has_bits;
4525
4526
0
  tservers_.Clear();
4527
0
  cached_has_bits = _has_bits_[0];
4528
0
  if (cached_has_bits & 0x00000001u) {
4529
0
    GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4530
0
    (*tablet_id_.UnsafeRawStringPointer())->clear();
4531
0
  }
4532
0
  _has_bits_.Clear();
4533
0
  _internal_metadata_.Clear();
4534
0
}
4535
4536
bool CDCTabletPB::MergePartialFromCodedStream(
4537
0
    ::google::protobuf::io::CodedInputStream* input) {
4538
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4539
0
  ::google::protobuf::uint32 tag;
4540
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCTabletPB)
4541
0
  for (;;) {
4542
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4543
0
    tag = p.first;
4544
0
    if (!p.second) goto handle_unusual;
4545
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4546
      // optional bytes tablet_id = 1;
4547
0
      case 1: {
4548
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4549
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4550
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4551
0
                input, this->mutable_tablet_id()));
4552
0
        } else {
4553
0
          goto handle_unusual;
4554
0
        }
4555
0
        break;
4556
0
      }
4557
4558
      // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2;
4559
0
      case 2: {
4560
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4561
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4562
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tservers()));
4563
0
        } else {
4564
0
          goto handle_unusual;
4565
0
        }
4566
0
        break;
4567
0
      }
4568
4569
0
      default: {
4570
0
      handle_unusual:
4571
0
        if (tag == 0) {
4572
0
          goto success;
4573
0
        }
4574
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4575
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4576
0
        break;
4577
0
      }
4578
0
    }
4579
0
  }
4580
0
success:
4581
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCTabletPB)
4582
0
  return true;
4583
0
failure:
4584
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCTabletPB)
4585
0
  return false;
4586
0
#undef DO_
4587
0
}
4588
4589
void CDCTabletPB::SerializeWithCachedSizes(
4590
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4591
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCTabletPB)
4592
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4593
0
  (void) cached_has_bits;
4594
4595
0
  cached_has_bits = _has_bits_[0];
4596
  // optional bytes tablet_id = 1;
4597
0
  if (cached_has_bits & 0x00000001u) {
4598
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4599
0
      1, this->tablet_id(), output);
4600
0
  }
4601
4602
  // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2;
4603
0
  for (unsigned int i = 0,
4604
0
      n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) {
4605
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4606
0
      2, this->tservers(static_cast<int>(i)), output);
4607
0
  }
4608
4609
0
  if (_internal_metadata_.have_unknown_fields()) {
4610
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4611
0
        _internal_metadata_.unknown_fields(), output);
4612
0
  }
4613
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCTabletPB)
4614
0
}
4615
4616
::google::protobuf::uint8* CDCTabletPB::InternalSerializeWithCachedSizesToArray(
4617
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4618
0
  (void)deterministic; // Unused
4619
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCTabletPB)
4620
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4621
0
  (void) cached_has_bits;
4622
4623
0
  cached_has_bits = _has_bits_[0];
4624
  // optional bytes tablet_id = 1;
4625
0
  if (cached_has_bits & 0x00000001u) {
4626
0
    target =
4627
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4628
0
        1, this->tablet_id(), target);
4629
0
  }
4630
4631
  // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2;
4632
0
  for (unsigned int i = 0,
4633
0
      n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) {
4634
0
    target = ::google::protobuf::internal::WireFormatLite::
4635
0
      InternalWriteMessageToArray(
4636
0
        2, this->tservers(static_cast<int>(i)), deterministic, target);
4637
0
  }
4638
4639
0
  if (_internal_metadata_.have_unknown_fields()) {
4640
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4641
0
        _internal_metadata_.unknown_fields(), target);
4642
0
  }
4643
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCTabletPB)
4644
0
  return target;
4645
0
}
4646
4647
0
size_t CDCTabletPB::ByteSizeLong() const {
4648
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCTabletPB)
4649
0
  size_t total_size = 0;
4650
4651
0
  if (_internal_metadata_.have_unknown_fields()) {
4652
0
    total_size +=
4653
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4654
0
        _internal_metadata_.unknown_fields());
4655
0
  }
4656
  // repeated .yb.cdc.CDCTabletPB.ReplicaPB tservers = 2;
4657
0
  {
4658
0
    unsigned int count = static_cast<unsigned int>(this->tservers_size());
4659
0
    total_size += 1UL * count;
4660
0
    for (unsigned int i = 0; i < count; i++) {
4661
0
      total_size +=
4662
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4663
0
          this->tservers(static_cast<int>(i)));
4664
0
    }
4665
0
  }
4666
4667
  // optional bytes tablet_id = 1;
4668
0
  if (has_tablet_id()) {
4669
0
    total_size += 1 +
4670
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
4671
0
        this->tablet_id());
4672
0
  }
4673
4674
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4675
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4676
0
  _cached_size_ = cached_size;
4677
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4678
0
  return total_size;
4679
0
}
4680
4681
0
void CDCTabletPB::MergeFrom(const ::google::protobuf::Message& from) {
4682
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCTabletPB)
4683
0
  GOOGLE_DCHECK_NE(&from, this);
4684
0
  const CDCTabletPB* source =
4685
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCTabletPB>(
4686
0
          &from);
4687
0
  if (source == NULL) {
4688
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCTabletPB)
4689
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4690
0
  } else {
4691
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCTabletPB)
4692
0
    MergeFrom(*source);
4693
0
  }
4694
0
}
4695
4696
0
void CDCTabletPB::MergeFrom(const CDCTabletPB& from) {
4697
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCTabletPB)
4698
0
  GOOGLE_DCHECK_NE(&from, this);
4699
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4700
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4701
0
  (void) cached_has_bits;
4702
4703
0
  tservers_.MergeFrom(from.tservers_);
4704
0
  if (from.has_tablet_id()) {
4705
0
    set_has_tablet_id();
4706
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
4707
0
  }
4708
0
}
4709
4710
0
void CDCTabletPB::CopyFrom(const ::google::protobuf::Message& from) {
4711
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCTabletPB)
4712
0
  if (&from == this) return;
4713
0
  Clear();
4714
0
  MergeFrom(from);
4715
0
}
4716
4717
0
void CDCTabletPB::CopyFrom(const CDCTabletPB& from) {
4718
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCTabletPB)
4719
0
  if (&from == this) return;
4720
0
  Clear();
4721
0
  MergeFrom(from);
4722
0
}
4723
4724
0
bool CDCTabletPB::IsInitialized() const {
4725
0
  if (!::google::protobuf::internal::AllAreInitialized(this->tservers())) return false;
4726
0
  return true;
4727
0
}
4728
4729
0
void CDCTabletPB::Swap(CDCTabletPB* other) {
4730
0
  if (other == this) return;
4731
0
  InternalSwap(other);
4732
0
}
4733
0
void CDCTabletPB::InternalSwap(CDCTabletPB* other) {
4734
0
  using std::swap;
4735
0
  tservers_.InternalSwap(&other->tservers_);
4736
0
  tablet_id_.Swap(&other->tablet_id_);
4737
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4738
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4739
0
  swap(_cached_size_, other->_cached_size_);
4740
0
}
4741
4742
0
::google::protobuf::Metadata CDCTabletPB::GetMetadata() const {
4743
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4744
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
4745
0
}
4746
4747
4748
// ===================================================================
4749
4750
9.25k
void CDCSDKCheckpointPB::InitAsDefaultInstance() {
4751
9.25k
}
4752
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4753
const int CDCSDKCheckpointPB::kTermFieldNumber;
4754
const int CDCSDKCheckpointPB::kIndexFieldNumber;
4755
const int CDCSDKCheckpointPB::kKeyFieldNumber;
4756
const int CDCSDKCheckpointPB::kWriteIdFieldNumber;
4757
const int CDCSDKCheckpointPB::kSnapshotTimeFieldNumber;
4758
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4759
4760
CDCSDKCheckpointPB::CDCSDKCheckpointPB()
4761
10.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4762
975
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4763
975
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB();
4764
975
  }
4765
10.2k
  SharedCtor();
4766
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKCheckpointPB)
4767
10.2k
}
4768
CDCSDKCheckpointPB::CDCSDKCheckpointPB(const CDCSDKCheckpointPB& from)
4769
  : ::google::protobuf::Message(),
4770
      _internal_metadata_(NULL),
4771
      _has_bits_(from._has_bits_),
4772
0
      _cached_size_(0) {
4773
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4774
0
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4775
0
  if (from.has_key()) {
4776
0
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
4777
0
  }
4778
0
  ::memcpy(&term_, &from.term_,
4779
0
    static_cast<size_t>(reinterpret_cast<char*>(&write_id_) -
4780
0
    reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
4781
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKCheckpointPB)
4782
0
}
4783
4784
10.2k
void CDCSDKCheckpointPB::SharedCtor() {
4785
10.2k
  _cached_size_ = 0;
4786
10.2k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4787
10.2k
  ::memset(&term_, 0, static_cast<size_t>(
4788
10.2k
      reinterpret_cast<char*>(&write_id_) -
4789
10.2k
      reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
4790
10.2k
}
4791
4792
975
CDCSDKCheckpointPB::~CDCSDKCheckpointPB() {
4793
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKCheckpointPB)
4794
975
  SharedDtor();
4795
975
}
4796
4797
975
void CDCSDKCheckpointPB::SharedDtor() {
4798
975
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4799
975
}
4800
4801
0
void CDCSDKCheckpointPB::SetCachedSize(int size) const {
4802
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4803
0
  _cached_size_ = size;
4804
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4805
0
}
4806
0
const ::google::protobuf::Descriptor* CDCSDKCheckpointPB::descriptor() {
4807
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
4808
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4809
0
}
4810
4811
0
const CDCSDKCheckpointPB& CDCSDKCheckpointPB::default_instance() {
4812
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKCheckpointPB();
4813
0
  return *internal_default_instance();
4814
0
}
4815
4816
0
CDCSDKCheckpointPB* CDCSDKCheckpointPB::New(::google::protobuf::Arena* arena) const {
4817
0
  CDCSDKCheckpointPB* n = new CDCSDKCheckpointPB;
4818
0
  if (arena != NULL) {
4819
0
    arena->Own(n);
4820
0
  }
4821
0
  return n;
4822
0
}
4823
4824
337
void CDCSDKCheckpointPB::Clear() {
4825
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKCheckpointPB)
4826
337
  ::google::protobuf::uint32 cached_has_bits = 0;
4827
  // Prevent compiler warnings about cached_has_bits being unused
4828
337
  (void) cached_has_bits;
4829
4830
337
  cached_has_bits = _has_bits_[0];
4831
337
  if (cached_has_bits & 0x00000001u) {
4832
0
    GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4833
0
    (*key_.UnsafeRawStringPointer())->clear();
4834
0
  }
4835
337
  if (cached_has_bits & 30u) {
4836
0
    ::memset(&term_, 0, static_cast<size_t>(
4837
0
        reinterpret_cast<char*>(&write_id_) -
4838
0
        reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
4839
0
  }
4840
337
  _has_bits_.Clear();
4841
337
  _internal_metadata_.Clear();
4842
337
}
4843
4844
bool CDCSDKCheckpointPB::MergePartialFromCodedStream(
4845
18
    ::google::protobuf::io::CodedInputStream* input) {
4846
90
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4847
18
  ::google::protobuf::uint32 tag;
4848
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKCheckpointPB)
4849
108
  for (;;) {
4850
108
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4851
108
    tag = p.first;
4852
108
    if (!p.second) goto handle_unusual;
4853
90
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4854
      // optional int64 term = 1;
4855
18
      case 1: {
4856
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4857
18
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4858
18
          set_has_term();
4859
18
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4860
18
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4861
18
                 input, &term_)));
4862
0
        } else {
4863
0
          goto handle_unusual;
4864
0
        }
4865
18
        break;
4866
18
      }
4867
4868
      // optional int64 index = 2;
4869
18
      case 2: {
4870
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4871
18
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4872
18
          set_has_index();
4873
18
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4874
18
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4875
18
                 input, &index_)));
4876
0
        } else {
4877
0
          goto handle_unusual;
4878
0
        }
4879
18
        break;
4880
18
      }
4881
4882
      // optional bytes key = 3;
4883
18
      case 3: {
4884
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4885
18
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4886
18
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4887
18
                input, this->mutable_key()));
4888
0
        } else {
4889
0
          goto handle_unusual;
4890
0
        }
4891
18
        break;
4892
18
      }
4893
4894
      // optional int32 write_id = 4 [default = 0];
4895
18
      case 4: {
4896
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4897
18
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
4898
18
          set_has_write_id();
4899
18
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4900
18
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4901
18
                 input, &write_id_)));
4902
0
        } else {
4903
0
          goto handle_unusual;
4904
0
        }
4905
18
        break;
4906
18
      }
4907
4908
      // optional uint64 snapshot_time = 5;
4909
18
      case 5: {
4910
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4911
18
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
4912
18
          set_has_snapshot_time();
4913
18
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4914
18
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4915
18
                 input, &snapshot_time_)));
4916
0
        } else {
4917
0
          goto handle_unusual;
4918
0
        }
4919
18
        break;
4920
18
      }
4921
4922
0
      default: {
4923
18
      handle_unusual:
4924
18
        if (tag == 0) {
4925
18
          goto success;
4926
18
        }
4927
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4928
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4929
0
        break;
4930
0
      }
4931
90
    }
4932
90
  }
4933
18
success:
4934
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKCheckpointPB)
4935
18
  return true;
4936
0
failure:
4937
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKCheckpointPB)
4938
0
  return false;
4939
18
#undef DO_
4940
18
}
4941
4942
void CDCSDKCheckpointPB::SerializeWithCachedSizes(
4943
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4944
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKCheckpointPB)
4945
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4946
0
  (void) cached_has_bits;
4947
4948
0
  cached_has_bits = _has_bits_[0];
4949
  // optional int64 term = 1;
4950
0
  if (cached_has_bits & 0x00000002u) {
4951
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->term(), output);
4952
0
  }
4953
4954
  // optional int64 index = 2;
4955
0
  if (cached_has_bits & 0x00000004u) {
4956
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->index(), output);
4957
0
  }
4958
4959
  // optional bytes key = 3;
4960
0
  if (cached_has_bits & 0x00000001u) {
4961
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4962
0
      3, this->key(), output);
4963
0
  }
4964
4965
  // optional int32 write_id = 4 [default = 0];
4966
0
  if (cached_has_bits & 0x00000010u) {
4967
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->write_id(), output);
4968
0
  }
4969
4970
  // optional uint64 snapshot_time = 5;
4971
0
  if (cached_has_bits & 0x00000008u) {
4972
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->snapshot_time(), output);
4973
0
  }
4974
4975
0
  if (_internal_metadata_.have_unknown_fields()) {
4976
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4977
0
        _internal_metadata_.unknown_fields(), output);
4978
0
  }
4979
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKCheckpointPB)
4980
0
}
4981
4982
::google::protobuf::uint8* CDCSDKCheckpointPB::InternalSerializeWithCachedSizesToArray(
4983
319
    bool deterministic, ::google::protobuf::uint8* target) const {
4984
319
  (void)deterministic; // Unused
4985
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKCheckpointPB)
4986
319
  ::google::protobuf::uint32 cached_has_bits = 0;
4987
319
  (void) cached_has_bits;
4988
4989
319
  cached_has_bits = _has_bits_[0];
4990
  // optional int64 term = 1;
4991
319
  if (cached_has_bits & 0x00000002u) {
4992
319
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->term(), target);
4993
319
  }
4994
4995
  // optional int64 index = 2;
4996
319
  if (cached_has_bits & 0x00000004u) {
4997
319
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->index(), target);
4998
319
  }
4999
5000
  // optional bytes key = 3;
5001
319
  if (cached_has_bits & 0x00000001u) {
5002
319
    target =
5003
319
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5004
319
        3, this->key(), target);
5005
319
  }
5006
5007
  // optional int32 write_id = 4 [default = 0];
5008
319
  if (cached_has_bits & 0x00000010u) {
5009
319
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->write_id(), target);
5010
319
  }
5011
5012
  // optional uint64 snapshot_time = 5;
5013
319
  if (cached_has_bits & 0x00000008u) {
5014
319
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->snapshot_time(), target);
5015
319
  }
5016
5017
319
  if (_internal_metadata_.have_unknown_fields()) {
5018
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5019
0
        _internal_metadata_.unknown_fields(), target);
5020
0
  }
5021
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKCheckpointPB)
5022
319
  return target;
5023
319
}
5024
5025
638
size_t CDCSDKCheckpointPB::ByteSizeLong() const {
5026
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKCheckpointPB)
5027
638
  size_t total_size = 0;
5028
5029
638
  if (_internal_metadata_.have_unknown_fields()) {
5030
0
    total_size +=
5031
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5032
0
        _internal_metadata_.unknown_fields());
5033
0
  }
5034
638
  if (_has_bits_[0 / 32] & 31u) {
5035
    // optional bytes key = 3;
5036
638
    if (has_key()) {
5037
638
      total_size += 1 +
5038
638
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5039
638
          this->key());
5040
638
    }
5041
5042
    // optional int64 term = 1;
5043
638
    if (has_term()) {
5044
638
      total_size += 1 +
5045
638
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5046
638
          this->term());
5047
638
    }
5048
5049
    // optional int64 index = 2;
5050
638
    if (has_index()) {
5051
638
      total_size += 1 +
5052
638
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5053
638
          this->index());
5054
638
    }
5055
5056
    // optional uint64 snapshot_time = 5;
5057
638
    if (has_snapshot_time()) {
5058
638
      total_size += 1 +
5059
638
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5060
638
          this->snapshot_time());
5061
638
    }
5062
5063
    // optional int32 write_id = 4 [default = 0];
5064
638
    if (has_write_id()) {
5065
638
      total_size += 1 +
5066
638
        ::google::protobuf::internal::WireFormatLite::Int32Size(
5067
638
          this->write_id());
5068
638
    }
5069
5070
638
  }
5071
638
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5072
638
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5073
638
  _cached_size_ = cached_size;
5074
638
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5075
638
  return total_size;
5076
638
}
5077
5078
0
void CDCSDKCheckpointPB::MergeFrom(const ::google::protobuf::Message& from) {
5079
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKCheckpointPB)
5080
0
  GOOGLE_DCHECK_NE(&from, this);
5081
0
  const CDCSDKCheckpointPB* source =
5082
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKCheckpointPB>(
5083
0
          &from);
5084
0
  if (source == NULL) {
5085
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKCheckpointPB)
5086
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5087
0
  } else {
5088
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKCheckpointPB)
5089
0
    MergeFrom(*source);
5090
0
  }
5091
0
}
5092
5093
337
void CDCSDKCheckpointPB::MergeFrom(const CDCSDKCheckpointPB& from) {
5094
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKCheckpointPB)
5095
337
  GOOGLE_DCHECK_NE(&from, this);
5096
337
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5097
337
  ::google::protobuf::uint32 cached_has_bits = 0;
5098
337
  (void) cached_has_bits;
5099
5100
337
  cached_has_bits = from._has_bits_[0];
5101
337
  if (cached_has_bits & 31u) {
5102
337
    if (cached_has_bits & 0x00000001u) {
5103
337
      set_has_key();
5104
337
      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
5105
337
    }
5106
337
    if (cached_has_bits & 0x00000002u) {
5107
337
      term_ = from.term_;
5108
337
    }
5109
337
    if (cached_has_bits & 0x00000004u) {
5110
337
      index_ = from.index_;
5111
337
    }
5112
337
    if (cached_has_bits & 0x00000008u) {
5113
337
      snapshot_time_ = from.snapshot_time_;
5114
337
    }
5115
337
    if (cached_has_bits & 0x00000010u) {
5116
337
      write_id_ = from.write_id_;
5117
337
    }
5118
337
    _has_bits_[0] |= cached_has_bits;
5119
337
  }
5120
337
}
5121
5122
0
void CDCSDKCheckpointPB::CopyFrom(const ::google::protobuf::Message& from) {
5123
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKCheckpointPB)
5124
0
  if (&from == this) return;
5125
0
  Clear();
5126
0
  MergeFrom(from);
5127
0
}
5128
5129
337
void CDCSDKCheckpointPB::CopyFrom(const CDCSDKCheckpointPB& from) {
5130
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKCheckpointPB)
5131
337
  if (&from == this) return;
5132
337
  Clear();
5133
337
  MergeFrom(from);
5134
337
}
5135
5136
0
bool CDCSDKCheckpointPB::IsInitialized() const {
5137
0
  return true;
5138
0
}
5139
5140
0
void CDCSDKCheckpointPB::Swap(CDCSDKCheckpointPB* other) {
5141
0
  if (other == this) return;
5142
0
  InternalSwap(other);
5143
0
}
5144
0
void CDCSDKCheckpointPB::InternalSwap(CDCSDKCheckpointPB* other) {
5145
0
  using std::swap;
5146
0
  key_.Swap(&other->key_);
5147
0
  swap(term_, other->term_);
5148
0
  swap(index_, other->index_);
5149
0
  swap(snapshot_time_, other->snapshot_time_);
5150
0
  swap(write_id_, other->write_id_);
5151
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5152
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5153
0
  swap(_cached_size_, other->_cached_size_);
5154
0
}
5155
5156
30
::google::protobuf::Metadata CDCSDKCheckpointPB::GetMetadata() const {
5157
30
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
5158
30
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
5159
30
}
5160
5161
5162
// ===================================================================
5163
5164
11.1k
void CDCCheckpointPB::InitAsDefaultInstance() {
5165
11.1k
  ::yb::cdc::_CDCCheckpointPB_default_instance_._instance.get_mutable()->op_id_ = const_cast< ::yb::OpIdPB*>(
5166
11.1k
      ::yb::OpIdPB::internal_default_instance());
5167
11.1k
}
5168
0
void CDCCheckpointPB::clear_op_id() {
5169
0
  if (op_id_ != NULL) op_id_->Clear();
5170
0
  clear_has_op_id();
5171
0
}
5172
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5173
const int CDCCheckpointPB::kOpIdFieldNumber;
5174
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5175
5176
CDCCheckpointPB::CDCCheckpointPB()
5177
11.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5178
317
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5179
317
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
5180
317
  }
5181
11.5k
  SharedCtor();
5182
  // @@protoc_insertion_point(constructor:yb.cdc.CDCCheckpointPB)
5183
11.5k
}
5184
CDCCheckpointPB::CDCCheckpointPB(const CDCCheckpointPB& from)
5185
  : ::google::protobuf::Message(),
5186
      _internal_metadata_(NULL),
5187
      _has_bits_(from._has_bits_),
5188
0
      _cached_size_(0) {
5189
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5190
0
  if (from.has_op_id()) {
5191
0
    op_id_ = new ::yb::OpIdPB(*from.op_id_);
5192
0
  } else {
5193
0
    op_id_ = NULL;
5194
0
  }
5195
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCCheckpointPB)
5196
0
}
5197
5198
11.5k
void CDCCheckpointPB::SharedCtor() {
5199
11.5k
  _cached_size_ = 0;
5200
11.5k
  op_id_ = NULL;
5201
11.5k
}
5202
5203
317
CDCCheckpointPB::~CDCCheckpointPB() {
5204
  // @@protoc_insertion_point(destructor:yb.cdc.CDCCheckpointPB)
5205
317
  SharedDtor();
5206
317
}
5207
5208
317
void CDCCheckpointPB::SharedDtor() {
5209
317
  if (this != internal_default_instance()) delete op_id_;
5210
317
}
5211
5212
0
void CDCCheckpointPB::SetCachedSize(int size) const {
5213
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5214
0
  _cached_size_ = size;
5215
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5216
0
}
5217
0
const ::google::protobuf::Descriptor* CDCCheckpointPB::descriptor() {
5218
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
5219
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5220
0
}
5221
5222
0
const CDCCheckpointPB& CDCCheckpointPB::default_instance() {
5223
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCCheckpointPB();
5224
0
  return *internal_default_instance();
5225
0
}
5226
5227
0
CDCCheckpointPB* CDCCheckpointPB::New(::google::protobuf::Arena* arena) const {
5228
0
  CDCCheckpointPB* n = new CDCCheckpointPB;
5229
0
  if (arena != NULL) {
5230
0
    arena->Own(n);
5231
0
  }
5232
0
  return n;
5233
0
}
5234
5235
0
void CDCCheckpointPB::Clear() {
5236
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCCheckpointPB)
5237
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5238
  // Prevent compiler warnings about cached_has_bits being unused
5239
0
  (void) cached_has_bits;
5240
5241
0
  cached_has_bits = _has_bits_[0];
5242
0
  if (cached_has_bits & 0x00000001u) {
5243
0
    GOOGLE_DCHECK(op_id_ != NULL);
5244
0
    op_id_->Clear();
5245
0
  }
5246
0
  _has_bits_.Clear();
5247
0
  _internal_metadata_.Clear();
5248
0
}
5249
5250
bool CDCCheckpointPB::MergePartialFromCodedStream(
5251
3
    ::google::protobuf::io::CodedInputStream* input) {
5252
3
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5253
3
  ::google::protobuf::uint32 tag;
5254
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCCheckpointPB)
5255
6
  for (;;) {
5256
6
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5257
6
    tag = p.first;
5258
6
    if (!p.second) goto handle_unusual;
5259
3
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5260
      // optional .yb.OpIdPB op_id = 1;
5261
3
      case 1: {
5262
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5263
3
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5264
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5265
3
               input, mutable_op_id()));
5266
0
        } else {
5267
0
          goto handle_unusual;
5268
0
        }
5269
3
        break;
5270
3
      }
5271
5272
0
      default: {
5273
3
      handle_unusual:
5274
3
        if (tag == 0) {
5275
3
          goto success;
5276
3
        }
5277
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5278
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5279
0
        break;
5280
0
      }
5281
3
    }
5282
3
  }
5283
3
success:
5284
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCCheckpointPB)
5285
3
  return true;
5286
0
failure:
5287
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCCheckpointPB)
5288
0
  return false;
5289
3
#undef DO_
5290
3
}
5291
5292
void CDCCheckpointPB::SerializeWithCachedSizes(
5293
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5294
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCCheckpointPB)
5295
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5296
0
  (void) cached_has_bits;
5297
5298
0
  cached_has_bits = _has_bits_[0];
5299
  // optional .yb.OpIdPB op_id = 1;
5300
0
  if (cached_has_bits & 0x00000001u) {
5301
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5302
0
      1, *this->op_id_, output);
5303
0
  }
5304
5305
0
  if (_internal_metadata_.have_unknown_fields()) {
5306
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5307
0
        _internal_metadata_.unknown_fields(), output);
5308
0
  }
5309
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCCheckpointPB)
5310
0
}
5311
5312
::google::protobuf::uint8* CDCCheckpointPB::InternalSerializeWithCachedSizesToArray(
5313
314
    bool deterministic, ::google::protobuf::uint8* target) const {
5314
314
  (void)deterministic; // Unused
5315
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCCheckpointPB)
5316
314
  ::google::protobuf::uint32 cached_has_bits = 0;
5317
314
  (void) cached_has_bits;
5318
5319
314
  cached_has_bits = _has_bits_[0];
5320
  // optional .yb.OpIdPB op_id = 1;
5321
314
  if (cached_has_bits & 0x00000001u) {
5322
314
    target = ::google::protobuf::internal::WireFormatLite::
5323
314
      InternalWriteMessageToArray(
5324
314
        1, *this->op_id_, deterministic, target);
5325
314
  }
5326
5327
314
  if (_internal_metadata_.have_unknown_fields()) {
5328
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5329
0
        _internal_metadata_.unknown_fields(), target);
5330
0
  }
5331
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCCheckpointPB)
5332
314
  return target;
5333
314
}
5334
5335
628
size_t CDCCheckpointPB::ByteSizeLong() const {
5336
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCCheckpointPB)
5337
628
  size_t total_size = 0;
5338
5339
628
  if (_internal_metadata_.have_unknown_fields()) {
5340
0
    total_size +=
5341
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5342
0
        _internal_metadata_.unknown_fields());
5343
0
  }
5344
  // optional .yb.OpIdPB op_id = 1;
5345
628
  if (has_op_id()) {
5346
628
    total_size += 1 +
5347
628
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5348
628
        *this->op_id_);
5349
628
  }
5350
5351
628
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5352
628
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5353
628
  _cached_size_ = cached_size;
5354
628
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5355
628
  return total_size;
5356
628
}
5357
5358
0
void CDCCheckpointPB::MergeFrom(const ::google::protobuf::Message& from) {
5359
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCCheckpointPB)
5360
0
  GOOGLE_DCHECK_NE(&from, this);
5361
0
  const CDCCheckpointPB* source =
5362
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCCheckpointPB>(
5363
0
          &from);
5364
0
  if (source == NULL) {
5365
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCCheckpointPB)
5366
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5367
0
  } else {
5368
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCCheckpointPB)
5369
0
    MergeFrom(*source);
5370
0
  }
5371
0
}
5372
5373
0
void CDCCheckpointPB::MergeFrom(const CDCCheckpointPB& from) {
5374
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCCheckpointPB)
5375
0
  GOOGLE_DCHECK_NE(&from, this);
5376
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5377
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5378
0
  (void) cached_has_bits;
5379
5380
0
  if (from.has_op_id()) {
5381
0
    mutable_op_id()->::yb::OpIdPB::MergeFrom(from.op_id());
5382
0
  }
5383
0
}
5384
5385
0
void CDCCheckpointPB::CopyFrom(const ::google::protobuf::Message& from) {
5386
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCCheckpointPB)
5387
0
  if (&from == this) return;
5388
0
  Clear();
5389
0
  MergeFrom(from);
5390
0
}
5391
5392
0
void CDCCheckpointPB::CopyFrom(const CDCCheckpointPB& from) {
5393
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCCheckpointPB)
5394
0
  if (&from == this) return;
5395
0
  Clear();
5396
0
  MergeFrom(from);
5397
0
}
5398
5399
317
bool CDCCheckpointPB::IsInitialized() const {
5400
317
  if (has_op_id()) {
5401
317
    if (!this->op_id_->IsInitialized()) return false;
5402
317
  }
5403
317
  return true;
5404
317
}
5405
5406
0
void CDCCheckpointPB::Swap(CDCCheckpointPB* other) {
5407
0
  if (other == this) return;
5408
0
  InternalSwap(other);
5409
0
}
5410
0
void CDCCheckpointPB::InternalSwap(CDCCheckpointPB* other) {
5411
0
  using std::swap;
5412
0
  swap(op_id_, other->op_id_);
5413
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5414
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5415
0
  swap(_cached_size_, other->_cached_size_);
5416
0
}
5417
5418
3
::google::protobuf::Metadata CDCCheckpointPB::GetMetadata() const {
5419
3
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
5420
3
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
5421
3
}
5422
5423
5424
// ===================================================================
5425
5426
11.1k
void GetChangesRequestPB::InitAsDefaultInstance() {
5427
11.1k
  ::yb::cdc::_GetChangesRequestPB_default_instance_._instance.get_mutable()->from_checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>(
5428
11.1k
      ::yb::cdc::CDCCheckpointPB::internal_default_instance());
5429
11.1k
  ::yb::cdc::_GetChangesRequestPB_default_instance_._instance.get_mutable()->from_cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>(
5430
11.1k
      ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance());
5431
11.1k
}
5432
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5433
const int GetChangesRequestPB::kStreamIdFieldNumber;
5434
const int GetChangesRequestPB::kTabletIdFieldNumber;
5435
const int GetChangesRequestPB::kFromCheckpointFieldNumber;
5436
const int GetChangesRequestPB::kMaxRecordsFieldNumber;
5437
const int GetChangesRequestPB::kServeAsProxyFieldNumber;
5438
const int GetChangesRequestPB::kDbStreamIdFieldNumber;
5439
const int GetChangesRequestPB::kTableIdFieldNumber;
5440
const int GetChangesRequestPB::kFromCdcSdkCheckpointFieldNumber;
5441
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5442
5443
GetChangesRequestPB::GetChangesRequestPB()
5444
11.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5445
320
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5446
320
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesRequestPB();
5447
320
  }
5448
11.5k
  SharedCtor();
5449
  // @@protoc_insertion_point(constructor:yb.cdc.GetChangesRequestPB)
5450
11.5k
}
5451
GetChangesRequestPB::GetChangesRequestPB(const GetChangesRequestPB& from)
5452
  : ::google::protobuf::Message(),
5453
      _internal_metadata_(NULL),
5454
      _has_bits_(from._has_bits_),
5455
0
      _cached_size_(0) {
5456
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5457
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5458
0
  if (from.has_stream_id()) {
5459
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
5460
0
  }
5461
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5462
0
  if (from.has_tablet_id()) {
5463
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
5464
0
  }
5465
0
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5466
0
  if (from.has_db_stream_id()) {
5467
0
    db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
5468
0
  }
5469
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5470
0
  if (from.has_table_id()) {
5471
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
5472
0
  }
5473
0
  if (from.has_from_checkpoint()) {
5474
0
    from_checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.from_checkpoint_);
5475
0
  } else {
5476
0
    from_checkpoint_ = NULL;
5477
0
  }
5478
0
  if (from.has_from_cdc_sdk_checkpoint()) {
5479
0
    from_cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.from_cdc_sdk_checkpoint_);
5480
0
  } else {
5481
0
    from_cdc_sdk_checkpoint_ = NULL;
5482
0
  }
5483
0
  ::memcpy(&max_records_, &from.max_records_,
5484
0
    static_cast<size_t>(reinterpret_cast<char*>(&serve_as_proxy_) -
5485
0
    reinterpret_cast<char*>(&max_records_)) + sizeof(serve_as_proxy_));
5486
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetChangesRequestPB)
5487
0
}
5488
5489
11.5k
void GetChangesRequestPB::SharedCtor() {
5490
11.5k
  _cached_size_ = 0;
5491
11.5k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5492
11.5k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5493
11.5k
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5494
11.5k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5495
11.5k
  ::memset(&from_checkpoint_, 0, static_cast<size_t>(
5496
11.5k
      reinterpret_cast<char*>(&max_records_) -
5497
11.5k
      reinterpret_cast<char*>(&from_checkpoint_)) + sizeof(max_records_));
5498
11.5k
  serve_as_proxy_ = true;
5499
11.5k
}
5500
5501
320
GetChangesRequestPB::~GetChangesRequestPB() {
5502
  // @@protoc_insertion_point(destructor:yb.cdc.GetChangesRequestPB)
5503
320
  SharedDtor();
5504
320
}
5505
5506
320
void GetChangesRequestPB::SharedDtor() {
5507
320
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5508
320
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5509
320
  db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5510
320
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5511
320
  if (this != internal_default_instance()) delete from_checkpoint_;
5512
320
  if (this != internal_default_instance()) delete from_cdc_sdk_checkpoint_;
5513
320
}
5514
5515
0
void GetChangesRequestPB::SetCachedSize(int size) const {
5516
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5517
0
  _cached_size_ = size;
5518
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5519
0
}
5520
0
const ::google::protobuf::Descriptor* GetChangesRequestPB::descriptor() {
5521
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
5522
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5523
0
}
5524
5525
0
const GetChangesRequestPB& GetChangesRequestPB::default_instance() {
5526
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesRequestPB();
5527
0
  return *internal_default_instance();
5528
0
}
5529
5530
0
GetChangesRequestPB* GetChangesRequestPB::New(::google::protobuf::Arena* arena) const {
5531
0
  GetChangesRequestPB* n = new GetChangesRequestPB;
5532
0
  if (arena != NULL) {
5533
0
    arena->Own(n);
5534
0
  }
5535
0
  return n;
5536
0
}
5537
5538
320
void GetChangesRequestPB::Clear() {
5539
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetChangesRequestPB)
5540
320
  ::google::protobuf::uint32 cached_has_bits = 0;
5541
  // Prevent compiler warnings about cached_has_bits being unused
5542
320
  (void) cached_has_bits;
5543
5544
320
  cached_has_bits = _has_bits_[0];
5545
320
  if (cached_has_bits & 63u) {
5546
0
    if (cached_has_bits & 0x00000001u) {
5547
0
      GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5548
0
      (*stream_id_.UnsafeRawStringPointer())->clear();
5549
0
    }
5550
0
    if (cached_has_bits & 0x00000002u) {
5551
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5552
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
5553
0
    }
5554
0
    if (cached_has_bits & 0x00000004u) {
5555
0
      GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5556
0
      (*db_stream_id_.UnsafeRawStringPointer())->clear();
5557
0
    }
5558
0
    if (cached_has_bits & 0x00000008u) {
5559
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5560
0
      (*table_id_.UnsafeRawStringPointer())->clear();
5561
0
    }
5562
0
    if (cached_has_bits & 0x00000010u) {
5563
0
      GOOGLE_DCHECK(from_checkpoint_ != NULL);
5564
0
      from_checkpoint_->Clear();
5565
0
    }
5566
0
    if (cached_has_bits & 0x00000020u) {
5567
0
      GOOGLE_DCHECK(from_cdc_sdk_checkpoint_ != NULL);
5568
0
      from_cdc_sdk_checkpoint_->Clear();
5569
0
    }
5570
0
  }
5571
320
  if (cached_has_bits & 192u) {
5572
0
    max_records_ = 0u;
5573
0
    serve_as_proxy_ = true;
5574
0
  }
5575
320
  _has_bits_.Clear();
5576
320
  _internal_metadata_.Clear();
5577
320
}
5578
5579
bool GetChangesRequestPB::MergePartialFromCodedStream(
5580
320
    ::google::protobuf::io::CodedInputStream* input) {
5581
658
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5582
320
  ::google::protobuf::uint32 tag;
5583
  // @@protoc_insertion_point(parse_start:yb.cdc.GetChangesRequestPB)
5584
978
  for (;;) {
5585
978
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5586
978
    tag = p.first;
5587
978
    if (!p.second) goto handle_unusual;
5588
658
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5589
      // optional bytes stream_id = 1;
5590
0
      case 1: {
5591
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5592
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5593
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5594
0
                input, this->mutable_stream_id()));
5595
0
        } else {
5596
0
          goto handle_unusual;
5597
0
        }
5598
0
        break;
5599
0
      }
5600
5601
      // optional bytes tablet_id = 2;
5602
320
      case 2: {
5603
320
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5604
320
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5605
320
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5606
320
                input, this->mutable_tablet_id()));
5607
0
        } else {
5608
0
          goto handle_unusual;
5609
0
        }
5610
320
        break;
5611
320
      }
5612
5613
      // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3;
5614
0
      case 3: {
5615
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5616
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5617
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5618
0
               input, mutable_from_checkpoint()));
5619
0
        } else {
5620
0
          goto handle_unusual;
5621
0
        }
5622
0
        break;
5623
0
      }
5624
5625
      // optional uint32 max_records = 4;
5626
0
      case 4: {
5627
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5628
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
5629
0
          set_has_max_records();
5630
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5631
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5632
0
                 input, &max_records_)));
5633
0
        } else {
5634
0
          goto handle_unusual;
5635
0
        }
5636
0
        break;
5637
0
      }
5638
5639
      // optional bool serve_as_proxy = 5 [default = true];
5640
0
      case 5: {
5641
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5642
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5643
0
          set_has_serve_as_proxy();
5644
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5645
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5646
0
                 input, &serve_as_proxy_)));
5647
0
        } else {
5648
0
          goto handle_unusual;
5649
0
        }
5650
0
        break;
5651
0
      }
5652
5653
      // optional bytes db_stream_id = 6;
5654
320
      case 6: {
5655
320
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5656
320
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
5657
320
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5658
320
                input, this->mutable_db_stream_id()));
5659
0
        } else {
5660
0
          goto handle_unusual;
5661
0
        }
5662
320
        break;
5663
320
      }
5664
5665
      // optional bytes table_id = 7;
5666
0
      case 7: {
5667
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5668
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5669
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5670
0
                input, this->mutable_table_id()));
5671
0
        } else {
5672
0
          goto handle_unusual;
5673
0
        }
5674
0
        break;
5675
0
      }
5676
5677
      // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8;
5678
18
      case 8: {
5679
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5680
18
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5681
18
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5682
18
               input, mutable_from_cdc_sdk_checkpoint()));
5683
0
        } else {
5684
0
          goto handle_unusual;
5685
0
        }
5686
18
        break;
5687
320
      }
5688
5689
0
      default: {
5690
320
      handle_unusual:
5691
320
        if (tag == 0) {
5692
320
          goto success;
5693
320
        }
5694
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5695
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5696
0
        break;
5697
0
      }
5698
658
    }
5699
658
  }
5700
320
success:
5701
  // @@protoc_insertion_point(parse_success:yb.cdc.GetChangesRequestPB)
5702
320
  return true;
5703
0
failure:
5704
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetChangesRequestPB)
5705
0
  return false;
5706
320
#undef DO_
5707
320
}
5708
5709
void GetChangesRequestPB::SerializeWithCachedSizes(
5710
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5711
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetChangesRequestPB)
5712
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5713
0
  (void) cached_has_bits;
5714
5715
0
  cached_has_bits = _has_bits_[0];
5716
  // optional bytes stream_id = 1;
5717
0
  if (cached_has_bits & 0x00000001u) {
5718
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5719
0
      1, this->stream_id(), output);
5720
0
  }
5721
5722
  // optional bytes tablet_id = 2;
5723
0
  if (cached_has_bits & 0x00000002u) {
5724
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5725
0
      2, this->tablet_id(), output);
5726
0
  }
5727
5728
  // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3;
5729
0
  if (cached_has_bits & 0x00000010u) {
5730
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5731
0
      3, *this->from_checkpoint_, output);
5732
0
  }
5733
5734
  // optional uint32 max_records = 4;
5735
0
  if (cached_has_bits & 0x00000040u) {
5736
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->max_records(), output);
5737
0
  }
5738
5739
  // optional bool serve_as_proxy = 5 [default = true];
5740
0
  if (cached_has_bits & 0x00000080u) {
5741
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->serve_as_proxy(), output);
5742
0
  }
5743
5744
  // optional bytes db_stream_id = 6;
5745
0
  if (cached_has_bits & 0x00000004u) {
5746
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5747
0
      6, this->db_stream_id(), output);
5748
0
  }
5749
5750
  // optional bytes table_id = 7;
5751
0
  if (cached_has_bits & 0x00000008u) {
5752
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5753
0
      7, this->table_id(), output);
5754
0
  }
5755
5756
  // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8;
5757
0
  if (cached_has_bits & 0x00000020u) {
5758
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5759
0
      8, *this->from_cdc_sdk_checkpoint_, output);
5760
0
  }
5761
5762
0
  if (_internal_metadata_.have_unknown_fields()) {
5763
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5764
0
        _internal_metadata_.unknown_fields(), output);
5765
0
  }
5766
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetChangesRequestPB)
5767
0
}
5768
5769
::google::protobuf::uint8* GetChangesRequestPB::InternalSerializeWithCachedSizesToArray(
5770
0
    bool deterministic, ::google::protobuf::uint8* target) const {
5771
0
  (void)deterministic; // Unused
5772
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetChangesRequestPB)
5773
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5774
0
  (void) cached_has_bits;
5775
5776
0
  cached_has_bits = _has_bits_[0];
5777
  // optional bytes stream_id = 1;
5778
0
  if (cached_has_bits & 0x00000001u) {
5779
0
    target =
5780
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5781
0
        1, this->stream_id(), target);
5782
0
  }
5783
5784
  // optional bytes tablet_id = 2;
5785
0
  if (cached_has_bits & 0x00000002u) {
5786
0
    target =
5787
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5788
0
        2, this->tablet_id(), target);
5789
0
  }
5790
5791
  // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3;
5792
0
  if (cached_has_bits & 0x00000010u) {
5793
0
    target = ::google::protobuf::internal::WireFormatLite::
5794
0
      InternalWriteMessageToArray(
5795
0
        3, *this->from_checkpoint_, deterministic, target);
5796
0
  }
5797
5798
  // optional uint32 max_records = 4;
5799
0
  if (cached_has_bits & 0x00000040u) {
5800
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->max_records(), target);
5801
0
  }
5802
5803
  // optional bool serve_as_proxy = 5 [default = true];
5804
0
  if (cached_has_bits & 0x00000080u) {
5805
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->serve_as_proxy(), target);
5806
0
  }
5807
5808
  // optional bytes db_stream_id = 6;
5809
0
  if (cached_has_bits & 0x00000004u) {
5810
0
    target =
5811
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5812
0
        6, this->db_stream_id(), target);
5813
0
  }
5814
5815
  // optional bytes table_id = 7;
5816
0
  if (cached_has_bits & 0x00000008u) {
5817
0
    target =
5818
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5819
0
        7, this->table_id(), target);
5820
0
  }
5821
5822
  // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8;
5823
0
  if (cached_has_bits & 0x00000020u) {
5824
0
    target = ::google::protobuf::internal::WireFormatLite::
5825
0
      InternalWriteMessageToArray(
5826
0
        8, *this->from_cdc_sdk_checkpoint_, deterministic, target);
5827
0
  }
5828
5829
0
  if (_internal_metadata_.have_unknown_fields()) {
5830
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5831
0
        _internal_metadata_.unknown_fields(), target);
5832
0
  }
5833
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetChangesRequestPB)
5834
0
  return target;
5835
0
}
5836
5837
0
size_t GetChangesRequestPB::ByteSizeLong() const {
5838
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetChangesRequestPB)
5839
0
  size_t total_size = 0;
5840
5841
0
  if (_internal_metadata_.have_unknown_fields()) {
5842
0
    total_size +=
5843
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5844
0
        _internal_metadata_.unknown_fields());
5845
0
  }
5846
0
  if (_has_bits_[0 / 32] & 255u) {
5847
    // optional bytes stream_id = 1;
5848
0
    if (has_stream_id()) {
5849
0
      total_size += 1 +
5850
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5851
0
          this->stream_id());
5852
0
    }
5853
5854
    // optional bytes tablet_id = 2;
5855
0
    if (has_tablet_id()) {
5856
0
      total_size += 1 +
5857
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5858
0
          this->tablet_id());
5859
0
    }
5860
5861
    // optional bytes db_stream_id = 6;
5862
0
    if (has_db_stream_id()) {
5863
0
      total_size += 1 +
5864
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5865
0
          this->db_stream_id());
5866
0
    }
5867
5868
    // optional bytes table_id = 7;
5869
0
    if (has_table_id()) {
5870
0
      total_size += 1 +
5871
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5872
0
          this->table_id());
5873
0
    }
5874
5875
    // optional .yb.cdc.CDCCheckpointPB from_checkpoint = 3;
5876
0
    if (has_from_checkpoint()) {
5877
0
      total_size += 1 +
5878
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5879
0
          *this->from_checkpoint_);
5880
0
    }
5881
5882
    // optional .yb.cdc.CDCSDKCheckpointPB from_cdc_sdk_checkpoint = 8;
5883
0
    if (has_from_cdc_sdk_checkpoint()) {
5884
0
      total_size += 1 +
5885
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5886
0
          *this->from_cdc_sdk_checkpoint_);
5887
0
    }
5888
5889
    // optional uint32 max_records = 4;
5890
0
    if (has_max_records()) {
5891
0
      total_size += 1 +
5892
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5893
0
          this->max_records());
5894
0
    }
5895
5896
    // optional bool serve_as_proxy = 5 [default = true];
5897
0
    if (has_serve_as_proxy()) {
5898
0
      total_size += 1 + 1;
5899
0
    }
5900
5901
0
  }
5902
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5903
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5904
0
  _cached_size_ = cached_size;
5905
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5906
0
  return total_size;
5907
0
}
5908
5909
0
void GetChangesRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5910
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetChangesRequestPB)
5911
0
  GOOGLE_DCHECK_NE(&from, this);
5912
0
  const GetChangesRequestPB* source =
5913
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetChangesRequestPB>(
5914
0
          &from);
5915
0
  if (source == NULL) {
5916
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetChangesRequestPB)
5917
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5918
0
  } else {
5919
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetChangesRequestPB)
5920
0
    MergeFrom(*source);
5921
0
  }
5922
0
}
5923
5924
0
void GetChangesRequestPB::MergeFrom(const GetChangesRequestPB& from) {
5925
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetChangesRequestPB)
5926
0
  GOOGLE_DCHECK_NE(&from, this);
5927
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5928
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5929
0
  (void) cached_has_bits;
5930
5931
0
  cached_has_bits = from._has_bits_[0];
5932
0
  if (cached_has_bits & 255u) {
5933
0
    if (cached_has_bits & 0x00000001u) {
5934
0
      set_has_stream_id();
5935
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
5936
0
    }
5937
0
    if (cached_has_bits & 0x00000002u) {
5938
0
      set_has_tablet_id();
5939
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
5940
0
    }
5941
0
    if (cached_has_bits & 0x00000004u) {
5942
0
      set_has_db_stream_id();
5943
0
      db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
5944
0
    }
5945
0
    if (cached_has_bits & 0x00000008u) {
5946
0
      set_has_table_id();
5947
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
5948
0
    }
5949
0
    if (cached_has_bits & 0x00000010u) {
5950
0
      mutable_from_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.from_checkpoint());
5951
0
    }
5952
0
    if (cached_has_bits & 0x00000020u) {
5953
0
      mutable_from_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.from_cdc_sdk_checkpoint());
5954
0
    }
5955
0
    if (cached_has_bits & 0x00000040u) {
5956
0
      max_records_ = from.max_records_;
5957
0
    }
5958
0
    if (cached_has_bits & 0x00000080u) {
5959
0
      serve_as_proxy_ = from.serve_as_proxy_;
5960
0
    }
5961
0
    _has_bits_[0] |= cached_has_bits;
5962
0
  }
5963
0
}
5964
5965
0
void GetChangesRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5966
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetChangesRequestPB)
5967
0
  if (&from == this) return;
5968
0
  Clear();
5969
0
  MergeFrom(from);
5970
0
}
5971
5972
0
void GetChangesRequestPB::CopyFrom(const GetChangesRequestPB& from) {
5973
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetChangesRequestPB)
5974
0
  if (&from == this) return;
5975
0
  Clear();
5976
0
  MergeFrom(from);
5977
0
}
5978
5979
320
bool GetChangesRequestPB::IsInitialized() const {
5980
320
  if (has_from_checkpoint()) {
5981
0
    if (!this->from_checkpoint_->IsInitialized()) return false;
5982
320
  }
5983
320
  return true;
5984
320
}
5985
5986
0
void GetChangesRequestPB::Swap(GetChangesRequestPB* other) {
5987
0
  if (other == this) return;
5988
0
  InternalSwap(other);
5989
0
}
5990
0
void GetChangesRequestPB::InternalSwap(GetChangesRequestPB* other) {
5991
0
  using std::swap;
5992
0
  stream_id_.Swap(&other->stream_id_);
5993
0
  tablet_id_.Swap(&other->tablet_id_);
5994
0
  db_stream_id_.Swap(&other->db_stream_id_);
5995
0
  table_id_.Swap(&other->table_id_);
5996
0
  swap(from_checkpoint_, other->from_checkpoint_);
5997
0
  swap(from_cdc_sdk_checkpoint_, other->from_cdc_sdk_checkpoint_);
5998
0
  swap(max_records_, other->max_records_);
5999
0
  swap(serve_as_proxy_, other->serve_as_proxy_);
6000
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6001
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6002
0
  swap(_cached_size_, other->_cached_size_);
6003
0
}
6004
6005
480
::google::protobuf::Metadata GetChangesRequestPB::GetMetadata() const {
6006
480
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
6007
480
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
6008
480
}
6009
6010
6011
// ===================================================================
6012
6013
11.1k
void KeyValuePairPB::InitAsDefaultInstance() {
6014
11.1k
  ::yb::cdc::_KeyValuePairPB_default_instance_._instance.get_mutable()->value_ = const_cast< ::yb::QLValuePB*>(
6015
11.1k
      ::yb::QLValuePB::internal_default_instance());
6016
11.1k
}
6017
0
void KeyValuePairPB::clear_value() {
6018
0
  if (value_ != NULL) value_->Clear();
6019
0
  clear_has_value();
6020
0
}
6021
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6022
const int KeyValuePairPB::kKeyFieldNumber;
6023
const int KeyValuePairPB::kValueFieldNumber;
6024
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6025
6026
KeyValuePairPB::KeyValuePairPB()
6027
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6028
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6029
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB();
6030
0
  }
6031
11.1k
  SharedCtor();
6032
  // @@protoc_insertion_point(constructor:yb.cdc.KeyValuePairPB)
6033
11.1k
}
6034
KeyValuePairPB::KeyValuePairPB(const KeyValuePairPB& from)
6035
  : ::google::protobuf::Message(),
6036
      _internal_metadata_(NULL),
6037
      _has_bits_(from._has_bits_),
6038
0
      _cached_size_(0) {
6039
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6040
0
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6041
0
  if (from.has_key()) {
6042
0
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
6043
0
  }
6044
0
  if (from.has_value()) {
6045
0
    value_ = new ::yb::QLValuePB(*from.value_);
6046
0
  } else {
6047
0
    value_ = NULL;
6048
0
  }
6049
  // @@protoc_insertion_point(copy_constructor:yb.cdc.KeyValuePairPB)
6050
0
}
6051
6052
11.1k
void KeyValuePairPB::SharedCtor() {
6053
11.1k
  _cached_size_ = 0;
6054
11.1k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6055
11.1k
  value_ = NULL;
6056
11.1k
}
6057
6058
0
KeyValuePairPB::~KeyValuePairPB() {
6059
  // @@protoc_insertion_point(destructor:yb.cdc.KeyValuePairPB)
6060
0
  SharedDtor();
6061
0
}
6062
6063
0
void KeyValuePairPB::SharedDtor() {
6064
0
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6065
0
  if (this != internal_default_instance()) delete value_;
6066
0
}
6067
6068
0
void KeyValuePairPB::SetCachedSize(int size) const {
6069
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6070
0
  _cached_size_ = size;
6071
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6072
0
}
6073
0
const ::google::protobuf::Descriptor* KeyValuePairPB::descriptor() {
6074
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
6075
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6076
0
}
6077
6078
0
const KeyValuePairPB& KeyValuePairPB::default_instance() {
6079
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsKeyValuePairPB();
6080
0
  return *internal_default_instance();
6081
0
}
6082
6083
0
KeyValuePairPB* KeyValuePairPB::New(::google::protobuf::Arena* arena) const {
6084
0
  KeyValuePairPB* n = new KeyValuePairPB;
6085
0
  if (arena != NULL) {
6086
0
    arena->Own(n);
6087
0
  }
6088
0
  return n;
6089
0
}
6090
6091
0
void KeyValuePairPB::Clear() {
6092
// @@protoc_insertion_point(message_clear_start:yb.cdc.KeyValuePairPB)
6093
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6094
  // Prevent compiler warnings about cached_has_bits being unused
6095
0
  (void) cached_has_bits;
6096
6097
0
  cached_has_bits = _has_bits_[0];
6098
0
  if (cached_has_bits & 3u) {
6099
0
    if (cached_has_bits & 0x00000001u) {
6100
0
      GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6101
0
      (*key_.UnsafeRawStringPointer())->clear();
6102
0
    }
6103
0
    if (cached_has_bits & 0x00000002u) {
6104
0
      GOOGLE_DCHECK(value_ != NULL);
6105
0
      value_->Clear();
6106
0
    }
6107
0
  }
6108
0
  _has_bits_.Clear();
6109
0
  _internal_metadata_.Clear();
6110
0
}
6111
6112
bool KeyValuePairPB::MergePartialFromCodedStream(
6113
0
    ::google::protobuf::io::CodedInputStream* input) {
6114
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6115
0
  ::google::protobuf::uint32 tag;
6116
  // @@protoc_insertion_point(parse_start:yb.cdc.KeyValuePairPB)
6117
0
  for (;;) {
6118
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6119
0
    tag = p.first;
6120
0
    if (!p.second) goto handle_unusual;
6121
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6122
      // optional bytes key = 1;
6123
0
      case 1: {
6124
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6125
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6126
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6127
0
                input, this->mutable_key()));
6128
0
        } else {
6129
0
          goto handle_unusual;
6130
0
        }
6131
0
        break;
6132
0
      }
6133
6134
      // optional .yb.QLValuePB value = 2;
6135
0
      case 2: {
6136
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6137
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6138
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6139
0
               input, mutable_value()));
6140
0
        } else {
6141
0
          goto handle_unusual;
6142
0
        }
6143
0
        break;
6144
0
      }
6145
6146
0
      default: {
6147
0
      handle_unusual:
6148
0
        if (tag == 0) {
6149
0
          goto success;
6150
0
        }
6151
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6152
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6153
0
        break;
6154
0
      }
6155
0
    }
6156
0
  }
6157
0
success:
6158
  // @@protoc_insertion_point(parse_success:yb.cdc.KeyValuePairPB)
6159
0
  return true;
6160
0
failure:
6161
  // @@protoc_insertion_point(parse_failure:yb.cdc.KeyValuePairPB)
6162
0
  return false;
6163
0
#undef DO_
6164
0
}
6165
6166
void KeyValuePairPB::SerializeWithCachedSizes(
6167
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6168
  // @@protoc_insertion_point(serialize_start:yb.cdc.KeyValuePairPB)
6169
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6170
0
  (void) cached_has_bits;
6171
6172
0
  cached_has_bits = _has_bits_[0];
6173
  // optional bytes key = 1;
6174
0
  if (cached_has_bits & 0x00000001u) {
6175
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6176
0
      1, this->key(), output);
6177
0
  }
6178
6179
  // optional .yb.QLValuePB value = 2;
6180
0
  if (cached_has_bits & 0x00000002u) {
6181
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6182
0
      2, *this->value_, output);
6183
0
  }
6184
6185
0
  if (_internal_metadata_.have_unknown_fields()) {
6186
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6187
0
        _internal_metadata_.unknown_fields(), output);
6188
0
  }
6189
  // @@protoc_insertion_point(serialize_end:yb.cdc.KeyValuePairPB)
6190
0
}
6191
6192
::google::protobuf::uint8* KeyValuePairPB::InternalSerializeWithCachedSizesToArray(
6193
0
    bool deterministic, ::google::protobuf::uint8* target) const {
6194
0
  (void)deterministic; // Unused
6195
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.KeyValuePairPB)
6196
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6197
0
  (void) cached_has_bits;
6198
6199
0
  cached_has_bits = _has_bits_[0];
6200
  // optional bytes key = 1;
6201
0
  if (cached_has_bits & 0x00000001u) {
6202
0
    target =
6203
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6204
0
        1, this->key(), target);
6205
0
  }
6206
6207
  // optional .yb.QLValuePB value = 2;
6208
0
  if (cached_has_bits & 0x00000002u) {
6209
0
    target = ::google::protobuf::internal::WireFormatLite::
6210
0
      InternalWriteMessageToArray(
6211
0
        2, *this->value_, deterministic, target);
6212
0
  }
6213
6214
0
  if (_internal_metadata_.have_unknown_fields()) {
6215
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6216
0
        _internal_metadata_.unknown_fields(), target);
6217
0
  }
6218
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.KeyValuePairPB)
6219
0
  return target;
6220
0
}
6221
6222
0
size_t KeyValuePairPB::ByteSizeLong() const {
6223
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.KeyValuePairPB)
6224
0
  size_t total_size = 0;
6225
6226
0
  if (_internal_metadata_.have_unknown_fields()) {
6227
0
    total_size +=
6228
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6229
0
        _internal_metadata_.unknown_fields());
6230
0
  }
6231
0
  if (_has_bits_[0 / 32] & 3u) {
6232
    // optional bytes key = 1;
6233
0
    if (has_key()) {
6234
0
      total_size += 1 +
6235
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6236
0
          this->key());
6237
0
    }
6238
6239
    // optional .yb.QLValuePB value = 2;
6240
0
    if (has_value()) {
6241
0
      total_size += 1 +
6242
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6243
0
          *this->value_);
6244
0
    }
6245
6246
0
  }
6247
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6248
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6249
0
  _cached_size_ = cached_size;
6250
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6251
0
  return total_size;
6252
0
}
6253
6254
0
void KeyValuePairPB::MergeFrom(const ::google::protobuf::Message& from) {
6255
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.KeyValuePairPB)
6256
0
  GOOGLE_DCHECK_NE(&from, this);
6257
0
  const KeyValuePairPB* source =
6258
0
      ::google::protobuf::internal::DynamicCastToGenerated<const KeyValuePairPB>(
6259
0
          &from);
6260
0
  if (source == NULL) {
6261
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.KeyValuePairPB)
6262
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6263
0
  } else {
6264
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.KeyValuePairPB)
6265
0
    MergeFrom(*source);
6266
0
  }
6267
0
}
6268
6269
0
void KeyValuePairPB::MergeFrom(const KeyValuePairPB& from) {
6270
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.KeyValuePairPB)
6271
0
  GOOGLE_DCHECK_NE(&from, this);
6272
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6273
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6274
0
  (void) cached_has_bits;
6275
6276
0
  cached_has_bits = from._has_bits_[0];
6277
0
  if (cached_has_bits & 3u) {
6278
0
    if (cached_has_bits & 0x00000001u) {
6279
0
      set_has_key();
6280
0
      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
6281
0
    }
6282
0
    if (cached_has_bits & 0x00000002u) {
6283
0
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
6284
0
    }
6285
0
  }
6286
0
}
6287
6288
0
void KeyValuePairPB::CopyFrom(const ::google::protobuf::Message& from) {
6289
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.KeyValuePairPB)
6290
0
  if (&from == this) return;
6291
0
  Clear();
6292
0
  MergeFrom(from);
6293
0
}
6294
6295
0
void KeyValuePairPB::CopyFrom(const KeyValuePairPB& from) {
6296
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.KeyValuePairPB)
6297
0
  if (&from == this) return;
6298
0
  Clear();
6299
0
  MergeFrom(from);
6300
0
}
6301
6302
0
bool KeyValuePairPB::IsInitialized() const {
6303
0
  return true;
6304
0
}
6305
6306
0
void KeyValuePairPB::Swap(KeyValuePairPB* other) {
6307
0
  if (other == this) return;
6308
0
  InternalSwap(other);
6309
0
}
6310
0
void KeyValuePairPB::InternalSwap(KeyValuePairPB* other) {
6311
0
  using std::swap;
6312
0
  key_.Swap(&other->key_);
6313
0
  swap(value_, other->value_);
6314
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6315
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6316
0
  swap(_cached_size_, other->_cached_size_);
6317
0
}
6318
6319
0
::google::protobuf::Metadata KeyValuePairPB::GetMetadata() const {
6320
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
6321
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
6322
0
}
6323
6324
6325
// ===================================================================
6326
6327
11.1k
void CDCRecordPB::InitAsDefaultInstance() {
6328
11.1k
  ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->transaction_state_ = const_cast< ::yb::tablet::TransactionStatePB*>(
6329
11.1k
      ::yb::tablet::TransactionStatePB::internal_default_instance());
6330
11.1k
  ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>(
6331
11.1k
      ::yb::PartitionPB::internal_default_instance());
6332
11.1k
  ::yb::cdc::_CDCRecordPB_default_instance_._instance.get_mutable()->split_tablet_request_ = const_cast< ::yb::tablet::SplitTabletRequestPB*>(
6333
11.1k
      ::yb::tablet::SplitTabletRequestPB::internal_default_instance());
6334
11.1k
}
6335
0
void CDCRecordPB::clear_transaction_state() {
6336
0
  if (transaction_state_ != NULL) transaction_state_->Clear();
6337
0
  clear_has_transaction_state();
6338
0
}
6339
0
void CDCRecordPB::clear_partition() {
6340
0
  if (partition_ != NULL) partition_->Clear();
6341
0
  clear_has_partition();
6342
0
}
6343
0
void CDCRecordPB::clear_split_tablet_request() {
6344
0
  if (split_tablet_request_ != NULL) split_tablet_request_->Clear();
6345
0
  clear_has_split_tablet_request();
6346
0
}
6347
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6348
const int CDCRecordPB::kTimeFieldNumber;
6349
const int CDCRecordPB::kOperationFieldNumber;
6350
const int CDCRecordPB::kKeyFieldNumber;
6351
const int CDCRecordPB::kChangesFieldNumber;
6352
const int CDCRecordPB::kBeforeFieldNumber;
6353
const int CDCRecordPB::kAfterFieldNumber;
6354
const int CDCRecordPB::kTransactionStateFieldNumber;
6355
const int CDCRecordPB::kPartitionFieldNumber;
6356
const int CDCRecordPB::kSplitTabletRequestFieldNumber;
6357
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6358
6359
CDCRecordPB::CDCRecordPB()
6360
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6361
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6362
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB();
6363
0
  }
6364
11.1k
  SharedCtor();
6365
  // @@protoc_insertion_point(constructor:yb.cdc.CDCRecordPB)
6366
11.1k
}
6367
CDCRecordPB::CDCRecordPB(const CDCRecordPB& from)
6368
  : ::google::protobuf::Message(),
6369
      _internal_metadata_(NULL),
6370
      _has_bits_(from._has_bits_),
6371
      _cached_size_(0),
6372
      key_(from.key_),
6373
      changes_(from.changes_),
6374
      before_(from.before_),
6375
0
      after_(from.after_) {
6376
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6377
0
  if (from.has_transaction_state()) {
6378
0
    transaction_state_ = new ::yb::tablet::TransactionStatePB(*from.transaction_state_);
6379
0
  } else {
6380
0
    transaction_state_ = NULL;
6381
0
  }
6382
0
  if (from.has_partition()) {
6383
0
    partition_ = new ::yb::PartitionPB(*from.partition_);
6384
0
  } else {
6385
0
    partition_ = NULL;
6386
0
  }
6387
0
  if (from.has_split_tablet_request()) {
6388
0
    split_tablet_request_ = new ::yb::tablet::SplitTabletRequestPB(*from.split_tablet_request_);
6389
0
  } else {
6390
0
    split_tablet_request_ = NULL;
6391
0
  }
6392
0
  ::memcpy(&time_, &from.time_,
6393
0
    static_cast<size_t>(reinterpret_cast<char*>(&operation_) -
6394
0
    reinterpret_cast<char*>(&time_)) + sizeof(operation_));
6395
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCRecordPB)
6396
0
}
6397
6398
11.1k
void CDCRecordPB::SharedCtor() {
6399
11.1k
  _cached_size_ = 0;
6400
11.1k
  ::memset(&transaction_state_, 0, static_cast<size_t>(
6401
11.1k
      reinterpret_cast<char*>(&time_) -
6402
11.1k
      reinterpret_cast<char*>(&transaction_state_)) + sizeof(time_));
6403
11.1k
  operation_ = 1;
6404
11.1k
}
6405
6406
0
CDCRecordPB::~CDCRecordPB() {
6407
  // @@protoc_insertion_point(destructor:yb.cdc.CDCRecordPB)
6408
0
  SharedDtor();
6409
0
}
6410
6411
0
void CDCRecordPB::SharedDtor() {
6412
0
  if (this != internal_default_instance()) delete transaction_state_;
6413
0
  if (this != internal_default_instance()) delete partition_;
6414
0
  if (this != internal_default_instance()) delete split_tablet_request_;
6415
0
}
6416
6417
0
void CDCRecordPB::SetCachedSize(int size) const {
6418
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6419
0
  _cached_size_ = size;
6420
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6421
0
}
6422
0
const ::google::protobuf::Descriptor* CDCRecordPB::descriptor() {
6423
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
6424
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6425
0
}
6426
6427
0
const CDCRecordPB& CDCRecordPB::default_instance() {
6428
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCRecordPB();
6429
0
  return *internal_default_instance();
6430
0
}
6431
6432
0
CDCRecordPB* CDCRecordPB::New(::google::protobuf::Arena* arena) const {
6433
0
  CDCRecordPB* n = new CDCRecordPB;
6434
0
  if (arena != NULL) {
6435
0
    arena->Own(n);
6436
0
  }
6437
0
  return n;
6438
0
}
6439
6440
0
void CDCRecordPB::Clear() {
6441
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCRecordPB)
6442
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6443
  // Prevent compiler warnings about cached_has_bits being unused
6444
0
  (void) cached_has_bits;
6445
6446
0
  key_.Clear();
6447
0
  changes_.Clear();
6448
0
  before_.Clear();
6449
0
  after_.Clear();
6450
0
  cached_has_bits = _has_bits_[0];
6451
0
  if (cached_has_bits & 7u) {
6452
0
    if (cached_has_bits & 0x00000001u) {
6453
0
      GOOGLE_DCHECK(transaction_state_ != NULL);
6454
0
      transaction_state_->Clear();
6455
0
    }
6456
0
    if (cached_has_bits & 0x00000002u) {
6457
0
      GOOGLE_DCHECK(partition_ != NULL);
6458
0
      partition_->Clear();
6459
0
    }
6460
0
    if (cached_has_bits & 0x00000004u) {
6461
0
      GOOGLE_DCHECK(split_tablet_request_ != NULL);
6462
0
      split_tablet_request_->Clear();
6463
0
    }
6464
0
  }
6465
0
  if (cached_has_bits & 24u) {
6466
0
    time_ = GOOGLE_ULONGLONG(0);
6467
0
    operation_ = 1;
6468
0
  }
6469
0
  _has_bits_.Clear();
6470
0
  _internal_metadata_.Clear();
6471
0
}
6472
6473
bool CDCRecordPB::MergePartialFromCodedStream(
6474
0
    ::google::protobuf::io::CodedInputStream* input) {
6475
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6476
0
  ::google::protobuf::uint32 tag;
6477
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCRecordPB)
6478
0
  for (;;) {
6479
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6480
0
    tag = p.first;
6481
0
    if (!p.second) goto handle_unusual;
6482
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6483
      // optional uint64 time = 1;
6484
0
      case 1: {
6485
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6486
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6487
0
          set_has_time();
6488
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6489
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6490
0
                 input, &time_)));
6491
0
        } else {
6492
0
          goto handle_unusual;
6493
0
        }
6494
0
        break;
6495
0
      }
6496
6497
      // optional .yb.cdc.CDCRecordPB.OperationType operation = 2;
6498
0
      case 2: {
6499
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6500
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6501
0
          int value;
6502
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6503
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6504
0
                 input, &value)));
6505
0
          if (::yb::cdc::CDCRecordPB_OperationType_IsValid(value)) {
6506
0
            set_operation(static_cast< ::yb::cdc::CDCRecordPB_OperationType >(value));
6507
0
          } else {
6508
0
            mutable_unknown_fields()->AddVarint(
6509
0
                2, static_cast< ::google::protobuf::uint64>(value));
6510
0
          }
6511
0
        } else {
6512
0
          goto handle_unusual;
6513
0
        }
6514
0
        break;
6515
0
      }
6516
6517
      // repeated .yb.cdc.KeyValuePairPB key = 3;
6518
0
      case 3: {
6519
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6520
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6521
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_key()));
6522
0
        } else {
6523
0
          goto handle_unusual;
6524
0
        }
6525
0
        break;
6526
0
      }
6527
6528
      // repeated .yb.cdc.KeyValuePairPB changes = 4;
6529
0
      case 4: {
6530
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6531
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
6532
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_changes()));
6533
0
        } else {
6534
0
          goto handle_unusual;
6535
0
        }
6536
0
        break;
6537
0
      }
6538
6539
      // repeated .yb.cdc.KeyValuePairPB before = 5;
6540
0
      case 5: {
6541
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6542
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
6543
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_before()));
6544
0
        } else {
6545
0
          goto handle_unusual;
6546
0
        }
6547
0
        break;
6548
0
      }
6549
6550
      // repeated .yb.cdc.KeyValuePairPB after = 6;
6551
0
      case 6: {
6552
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6553
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6554
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_after()));
6555
0
        } else {
6556
0
          goto handle_unusual;
6557
0
        }
6558
0
        break;
6559
0
      }
6560
6561
      // optional .yb.tablet.TransactionStatePB transaction_state = 7;
6562
0
      case 7: {
6563
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6564
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
6565
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6566
0
               input, mutable_transaction_state()));
6567
0
        } else {
6568
0
          goto handle_unusual;
6569
0
        }
6570
0
        break;
6571
0
      }
6572
6573
      // optional .yb.PartitionPB partition = 9;
6574
0
      case 9: {
6575
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6576
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
6577
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6578
0
               input, mutable_partition()));
6579
0
        } else {
6580
0
          goto handle_unusual;
6581
0
        }
6582
0
        break;
6583
0
      }
6584
6585
      // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10;
6586
0
      case 10: {
6587
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6588
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
6589
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6590
0
               input, mutable_split_tablet_request()));
6591
0
        } else {
6592
0
          goto handle_unusual;
6593
0
        }
6594
0
        break;
6595
0
      }
6596
6597
0
      default: {
6598
0
      handle_unusual:
6599
0
        if (tag == 0) {
6600
0
          goto success;
6601
0
        }
6602
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6603
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6604
0
        break;
6605
0
      }
6606
0
    }
6607
0
  }
6608
0
success:
6609
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCRecordPB)
6610
0
  return true;
6611
0
failure:
6612
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCRecordPB)
6613
0
  return false;
6614
0
#undef DO_
6615
0
}
6616
6617
void CDCRecordPB::SerializeWithCachedSizes(
6618
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6619
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCRecordPB)
6620
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6621
0
  (void) cached_has_bits;
6622
6623
0
  cached_has_bits = _has_bits_[0];
6624
  // optional uint64 time = 1;
6625
0
  if (cached_has_bits & 0x00000008u) {
6626
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->time(), output);
6627
0
  }
6628
6629
  // optional .yb.cdc.CDCRecordPB.OperationType operation = 2;
6630
0
  if (cached_has_bits & 0x00000010u) {
6631
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
6632
0
      2, this->operation(), output);
6633
0
  }
6634
6635
  // repeated .yb.cdc.KeyValuePairPB key = 3;
6636
0
  for (unsigned int i = 0,
6637
0
      n = static_cast<unsigned int>(this->key_size()); i < n; i++) {
6638
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6639
0
      3, this->key(static_cast<int>(i)), output);
6640
0
  }
6641
6642
  // repeated .yb.cdc.KeyValuePairPB changes = 4;
6643
0
  for (unsigned int i = 0,
6644
0
      n = static_cast<unsigned int>(this->changes_size()); i < n; i++) {
6645
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6646
0
      4, this->changes(static_cast<int>(i)), output);
6647
0
  }
6648
6649
  // repeated .yb.cdc.KeyValuePairPB before = 5;
6650
0
  for (unsigned int i = 0,
6651
0
      n = static_cast<unsigned int>(this->before_size()); i < n; i++) {
6652
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6653
0
      5, this->before(static_cast<int>(i)), output);
6654
0
  }
6655
6656
  // repeated .yb.cdc.KeyValuePairPB after = 6;
6657
0
  for (unsigned int i = 0,
6658
0
      n = static_cast<unsigned int>(this->after_size()); i < n; i++) {
6659
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6660
0
      6, this->after(static_cast<int>(i)), output);
6661
0
  }
6662
6663
  // optional .yb.tablet.TransactionStatePB transaction_state = 7;
6664
0
  if (cached_has_bits & 0x00000001u) {
6665
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6666
0
      7, *this->transaction_state_, output);
6667
0
  }
6668
6669
  // optional .yb.PartitionPB partition = 9;
6670
0
  if (cached_has_bits & 0x00000002u) {
6671
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6672
0
      9, *this->partition_, output);
6673
0
  }
6674
6675
  // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10;
6676
0
  if (cached_has_bits & 0x00000004u) {
6677
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6678
0
      10, *this->split_tablet_request_, output);
6679
0
  }
6680
6681
0
  if (_internal_metadata_.have_unknown_fields()) {
6682
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6683
0
        _internal_metadata_.unknown_fields(), output);
6684
0
  }
6685
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCRecordPB)
6686
0
}
6687
6688
::google::protobuf::uint8* CDCRecordPB::InternalSerializeWithCachedSizesToArray(
6689
0
    bool deterministic, ::google::protobuf::uint8* target) const {
6690
0
  (void)deterministic; // Unused
6691
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCRecordPB)
6692
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6693
0
  (void) cached_has_bits;
6694
6695
0
  cached_has_bits = _has_bits_[0];
6696
  // optional uint64 time = 1;
6697
0
  if (cached_has_bits & 0x00000008u) {
6698
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->time(), target);
6699
0
  }
6700
6701
  // optional .yb.cdc.CDCRecordPB.OperationType operation = 2;
6702
0
  if (cached_has_bits & 0x00000010u) {
6703
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6704
0
      2, this->operation(), target);
6705
0
  }
6706
6707
  // repeated .yb.cdc.KeyValuePairPB key = 3;
6708
0
  for (unsigned int i = 0,
6709
0
      n = static_cast<unsigned int>(this->key_size()); i < n; i++) {
6710
0
    target = ::google::protobuf::internal::WireFormatLite::
6711
0
      InternalWriteMessageToArray(
6712
0
        3, this->key(static_cast<int>(i)), deterministic, target);
6713
0
  }
6714
6715
  // repeated .yb.cdc.KeyValuePairPB changes = 4;
6716
0
  for (unsigned int i = 0,
6717
0
      n = static_cast<unsigned int>(this->changes_size()); i < n; i++) {
6718
0
    target = ::google::protobuf::internal::WireFormatLite::
6719
0
      InternalWriteMessageToArray(
6720
0
        4, this->changes(static_cast<int>(i)), deterministic, target);
6721
0
  }
6722
6723
  // repeated .yb.cdc.KeyValuePairPB before = 5;
6724
0
  for (unsigned int i = 0,
6725
0
      n = static_cast<unsigned int>(this->before_size()); i < n; i++) {
6726
0
    target = ::google::protobuf::internal::WireFormatLite::
6727
0
      InternalWriteMessageToArray(
6728
0
        5, this->before(static_cast<int>(i)), deterministic, target);
6729
0
  }
6730
6731
  // repeated .yb.cdc.KeyValuePairPB after = 6;
6732
0
  for (unsigned int i = 0,
6733
0
      n = static_cast<unsigned int>(this->after_size()); i < n; i++) {
6734
0
    target = ::google::protobuf::internal::WireFormatLite::
6735
0
      InternalWriteMessageToArray(
6736
0
        6, this->after(static_cast<int>(i)), deterministic, target);
6737
0
  }
6738
6739
  // optional .yb.tablet.TransactionStatePB transaction_state = 7;
6740
0
  if (cached_has_bits & 0x00000001u) {
6741
0
    target = ::google::protobuf::internal::WireFormatLite::
6742
0
      InternalWriteMessageToArray(
6743
0
        7, *this->transaction_state_, deterministic, target);
6744
0
  }
6745
6746
  // optional .yb.PartitionPB partition = 9;
6747
0
  if (cached_has_bits & 0x00000002u) {
6748
0
    target = ::google::protobuf::internal::WireFormatLite::
6749
0
      InternalWriteMessageToArray(
6750
0
        9, *this->partition_, deterministic, target);
6751
0
  }
6752
6753
  // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10;
6754
0
  if (cached_has_bits & 0x00000004u) {
6755
0
    target = ::google::protobuf::internal::WireFormatLite::
6756
0
      InternalWriteMessageToArray(
6757
0
        10, *this->split_tablet_request_, deterministic, target);
6758
0
  }
6759
6760
0
  if (_internal_metadata_.have_unknown_fields()) {
6761
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6762
0
        _internal_metadata_.unknown_fields(), target);
6763
0
  }
6764
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCRecordPB)
6765
0
  return target;
6766
0
}
6767
6768
0
size_t CDCRecordPB::ByteSizeLong() const {
6769
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCRecordPB)
6770
0
  size_t total_size = 0;
6771
6772
0
  if (_internal_metadata_.have_unknown_fields()) {
6773
0
    total_size +=
6774
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6775
0
        _internal_metadata_.unknown_fields());
6776
0
  }
6777
  // repeated .yb.cdc.KeyValuePairPB key = 3;
6778
0
  {
6779
0
    unsigned int count = static_cast<unsigned int>(this->key_size());
6780
0
    total_size += 1UL * count;
6781
0
    for (unsigned int i = 0; i < count; i++) {
6782
0
      total_size +=
6783
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6784
0
          this->key(static_cast<int>(i)));
6785
0
    }
6786
0
  }
6787
6788
  // repeated .yb.cdc.KeyValuePairPB changes = 4;
6789
0
  {
6790
0
    unsigned int count = static_cast<unsigned int>(this->changes_size());
6791
0
    total_size += 1UL * count;
6792
0
    for (unsigned int i = 0; i < count; i++) {
6793
0
      total_size +=
6794
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6795
0
          this->changes(static_cast<int>(i)));
6796
0
    }
6797
0
  }
6798
6799
  // repeated .yb.cdc.KeyValuePairPB before = 5;
6800
0
  {
6801
0
    unsigned int count = static_cast<unsigned int>(this->before_size());
6802
0
    total_size += 1UL * count;
6803
0
    for (unsigned int i = 0; i < count; i++) {
6804
0
      total_size +=
6805
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6806
0
          this->before(static_cast<int>(i)));
6807
0
    }
6808
0
  }
6809
6810
  // repeated .yb.cdc.KeyValuePairPB after = 6;
6811
0
  {
6812
0
    unsigned int count = static_cast<unsigned int>(this->after_size());
6813
0
    total_size += 1UL * count;
6814
0
    for (unsigned int i = 0; i < count; i++) {
6815
0
      total_size +=
6816
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6817
0
          this->after(static_cast<int>(i)));
6818
0
    }
6819
0
  }
6820
6821
0
  if (_has_bits_[0 / 32] & 31u) {
6822
    // optional .yb.tablet.TransactionStatePB transaction_state = 7;
6823
0
    if (has_transaction_state()) {
6824
0
      total_size += 1 +
6825
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6826
0
          *this->transaction_state_);
6827
0
    }
6828
6829
    // optional .yb.PartitionPB partition = 9;
6830
0
    if (has_partition()) {
6831
0
      total_size += 1 +
6832
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6833
0
          *this->partition_);
6834
0
    }
6835
6836
    // optional .yb.tablet.SplitTabletRequestPB split_tablet_request = 10;
6837
0
    if (has_split_tablet_request()) {
6838
0
      total_size += 1 +
6839
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6840
0
          *this->split_tablet_request_);
6841
0
    }
6842
6843
    // optional uint64 time = 1;
6844
0
    if (has_time()) {
6845
0
      total_size += 1 +
6846
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6847
0
          this->time());
6848
0
    }
6849
6850
    // optional .yb.cdc.CDCRecordPB.OperationType operation = 2;
6851
0
    if (has_operation()) {
6852
0
      total_size += 1 +
6853
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
6854
0
    }
6855
6856
0
  }
6857
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6858
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6859
0
  _cached_size_ = cached_size;
6860
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6861
0
  return total_size;
6862
0
}
6863
6864
0
void CDCRecordPB::MergeFrom(const ::google::protobuf::Message& from) {
6865
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCRecordPB)
6866
0
  GOOGLE_DCHECK_NE(&from, this);
6867
0
  const CDCRecordPB* source =
6868
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCRecordPB>(
6869
0
          &from);
6870
0
  if (source == NULL) {
6871
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCRecordPB)
6872
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6873
0
  } else {
6874
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCRecordPB)
6875
0
    MergeFrom(*source);
6876
0
  }
6877
0
}
6878
6879
0
void CDCRecordPB::MergeFrom(const CDCRecordPB& from) {
6880
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCRecordPB)
6881
0
  GOOGLE_DCHECK_NE(&from, this);
6882
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6883
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6884
0
  (void) cached_has_bits;
6885
6886
0
  key_.MergeFrom(from.key_);
6887
0
  changes_.MergeFrom(from.changes_);
6888
0
  before_.MergeFrom(from.before_);
6889
0
  after_.MergeFrom(from.after_);
6890
0
  cached_has_bits = from._has_bits_[0];
6891
0
  if (cached_has_bits & 31u) {
6892
0
    if (cached_has_bits & 0x00000001u) {
6893
0
      mutable_transaction_state()->::yb::tablet::TransactionStatePB::MergeFrom(from.transaction_state());
6894
0
    }
6895
0
    if (cached_has_bits & 0x00000002u) {
6896
0
      mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition());
6897
0
    }
6898
0
    if (cached_has_bits & 0x00000004u) {
6899
0
      mutable_split_tablet_request()->::yb::tablet::SplitTabletRequestPB::MergeFrom(from.split_tablet_request());
6900
0
    }
6901
0
    if (cached_has_bits & 0x00000008u) {
6902
0
      time_ = from.time_;
6903
0
    }
6904
0
    if (cached_has_bits & 0x00000010u) {
6905
0
      operation_ = from.operation_;
6906
0
    }
6907
0
    _has_bits_[0] |= cached_has_bits;
6908
0
  }
6909
0
}
6910
6911
0
void CDCRecordPB::CopyFrom(const ::google::protobuf::Message& from) {
6912
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCRecordPB)
6913
0
  if (&from == this) return;
6914
0
  Clear();
6915
0
  MergeFrom(from);
6916
0
}
6917
6918
0
void CDCRecordPB::CopyFrom(const CDCRecordPB& from) {
6919
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCRecordPB)
6920
0
  if (&from == this) return;
6921
0
  Clear();
6922
0
  MergeFrom(from);
6923
0
}
6924
6925
0
bool CDCRecordPB::IsInitialized() const {
6926
0
  if (has_split_tablet_request()) {
6927
0
    if (!this->split_tablet_request_->IsInitialized()) return false;
6928
0
  }
6929
0
  return true;
6930
0
}
6931
6932
0
void CDCRecordPB::Swap(CDCRecordPB* other) {
6933
0
  if (other == this) return;
6934
0
  InternalSwap(other);
6935
0
}
6936
0
void CDCRecordPB::InternalSwap(CDCRecordPB* other) {
6937
0
  using std::swap;
6938
0
  key_.InternalSwap(&other->key_);
6939
0
  changes_.InternalSwap(&other->changes_);
6940
0
  before_.InternalSwap(&other->before_);
6941
0
  after_.InternalSwap(&other->after_);
6942
0
  swap(transaction_state_, other->transaction_state_);
6943
0
  swap(partition_, other->partition_);
6944
0
  swap(split_tablet_request_, other->split_tablet_request_);
6945
0
  swap(time_, other->time_);
6946
0
  swap(operation_, other->operation_);
6947
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6948
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6949
0
  swap(_cached_size_, other->_cached_size_);
6950
0
}
6951
6952
0
::google::protobuf::Metadata CDCRecordPB::GetMetadata() const {
6953
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
6954
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
6955
0
}
6956
6957
6958
// ===================================================================
6959
6960
9.25k
void CDCSDKColumnInfoPB::InitAsDefaultInstance() {
6961
9.25k
  ::yb::cdc::_CDCSDKColumnInfoPB_default_instance_._instance.get_mutable()->type_ = const_cast< ::yb::QLTypePB*>(
6962
9.25k
      ::yb::QLTypePB::internal_default_instance());
6963
9.25k
}
6964
0
void CDCSDKColumnInfoPB::clear_type() {
6965
0
  if (type_ != NULL) type_->Clear();
6966
0
  clear_has_type();
6967
0
}
6968
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6969
const int CDCSDKColumnInfoPB::kNameFieldNumber;
6970
const int CDCSDKColumnInfoPB::kTypeFieldNumber;
6971
const int CDCSDKColumnInfoPB::kIsKeyFieldNumber;
6972
const int CDCSDKColumnInfoPB::kIsHashKeyFieldNumber;
6973
const int CDCSDKColumnInfoPB::kIsNullableFieldNumber;
6974
const int CDCSDKColumnInfoPB::kOidFieldNumber;
6975
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6976
6977
CDCSDKColumnInfoPB::CDCSDKColumnInfoPB()
6978
10.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6979
883
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6980
883
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB();
6981
883
  }
6982
10.1k
  SharedCtor();
6983
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKColumnInfoPB)
6984
10.1k
}
6985
CDCSDKColumnInfoPB::CDCSDKColumnInfoPB(const CDCSDKColumnInfoPB& from)
6986
  : ::google::protobuf::Message(),
6987
      _internal_metadata_(NULL),
6988
      _has_bits_(from._has_bits_),
6989
0
      _cached_size_(0) {
6990
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6991
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6992
0
  if (from.has_name()) {
6993
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6994
0
  }
6995
0
  if (from.has_type()) {
6996
0
    type_ = new ::yb::QLTypePB(*from.type_);
6997
0
  } else {
6998
0
    type_ = NULL;
6999
0
  }
7000
0
  ::memcpy(&is_key_, &from.is_key_,
7001
0
    static_cast<size_t>(reinterpret_cast<char*>(&oid_) -
7002
0
    reinterpret_cast<char*>(&is_key_)) + sizeof(oid_));
7003
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKColumnInfoPB)
7004
0
}
7005
7006
10.1k
void CDCSDKColumnInfoPB::SharedCtor() {
7007
10.1k
  _cached_size_ = 0;
7008
10.1k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7009
10.1k
  ::memset(&type_, 0, static_cast<size_t>(
7010
10.1k
      reinterpret_cast<char*>(&oid_) -
7011
10.1k
      reinterpret_cast<char*>(&type_)) + sizeof(oid_));
7012
10.1k
}
7013
7014
883
CDCSDKColumnInfoPB::~CDCSDKColumnInfoPB() {
7015
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKColumnInfoPB)
7016
883
  SharedDtor();
7017
883
}
7018
7019
883
void CDCSDKColumnInfoPB::SharedDtor() {
7020
883
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7021
883
  if (this != internal_default_instance()) delete type_;
7022
883
}
7023
7024
0
void CDCSDKColumnInfoPB::SetCachedSize(int size) const {
7025
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7026
0
  _cached_size_ = size;
7027
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7028
0
}
7029
0
const ::google::protobuf::Descriptor* CDCSDKColumnInfoPB::descriptor() {
7030
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
7031
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7032
0
}
7033
7034
0
const CDCSDKColumnInfoPB& CDCSDKColumnInfoPB::default_instance() {
7035
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKColumnInfoPB();
7036
0
  return *internal_default_instance();
7037
0
}
7038
7039
0
CDCSDKColumnInfoPB* CDCSDKColumnInfoPB::New(::google::protobuf::Arena* arena) const {
7040
0
  CDCSDKColumnInfoPB* n = new CDCSDKColumnInfoPB;
7041
0
  if (arena != NULL) {
7042
0
    arena->Own(n);
7043
0
  }
7044
0
  return n;
7045
0
}
7046
7047
0
void CDCSDKColumnInfoPB::Clear() {
7048
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKColumnInfoPB)
7049
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7050
  // Prevent compiler warnings about cached_has_bits being unused
7051
0
  (void) cached_has_bits;
7052
7053
0
  cached_has_bits = _has_bits_[0];
7054
0
  if (cached_has_bits & 3u) {
7055
0
    if (cached_has_bits & 0x00000001u) {
7056
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7057
0
      (*name_.UnsafeRawStringPointer())->clear();
7058
0
    }
7059
0
    if (cached_has_bits & 0x00000002u) {
7060
0
      GOOGLE_DCHECK(type_ != NULL);
7061
0
      type_->Clear();
7062
0
    }
7063
0
  }
7064
0
  if (cached_has_bits & 60u) {
7065
0
    ::memset(&is_key_, 0, static_cast<size_t>(
7066
0
        reinterpret_cast<char*>(&oid_) -
7067
0
        reinterpret_cast<char*>(&is_key_)) + sizeof(oid_));
7068
0
  }
7069
0
  _has_bits_.Clear();
7070
0
  _internal_metadata_.Clear();
7071
0
}
7072
7073
bool CDCSDKColumnInfoPB::MergePartialFromCodedStream(
7074
0
    ::google::protobuf::io::CodedInputStream* input) {
7075
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7076
0
  ::google::protobuf::uint32 tag;
7077
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKColumnInfoPB)
7078
0
  for (;;) {
7079
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7080
0
    tag = p.first;
7081
0
    if (!p.second) goto handle_unusual;
7082
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7083
      // optional string name = 1;
7084
0
      case 1: {
7085
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7086
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7087
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7088
0
                input, this->mutable_name()));
7089
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7090
0
            this->name().data(), static_cast<int>(this->name().length()),
7091
0
            ::google::protobuf::internal::WireFormat::PARSE,
7092
0
            "yb.cdc.CDCSDKColumnInfoPB.name");
7093
0
        } else {
7094
0
          goto handle_unusual;
7095
0
        }
7096
0
        break;
7097
0
      }
7098
7099
      // optional .yb.QLTypePB type = 2;
7100
0
      case 2: {
7101
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7102
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7103
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7104
0
               input, mutable_type()));
7105
0
        } else {
7106
0
          goto handle_unusual;
7107
0
        }
7108
0
        break;
7109
0
      }
7110
7111
      // optional bool is_key = 3 [default = false];
7112
0
      case 3: {
7113
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7114
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7115
0
          set_has_is_key();
7116
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7117
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7118
0
                 input, &is_key_)));
7119
0
        } else {
7120
0
          goto handle_unusual;
7121
0
        }
7122
0
        break;
7123
0
      }
7124
7125
      // optional bool is_hash_key = 4 [default = false];
7126
0
      case 4: {
7127
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7128
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
7129
0
          set_has_is_hash_key();
7130
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7131
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7132
0
                 input, &is_hash_key_)));
7133
0
        } else {
7134
0
          goto handle_unusual;
7135
0
        }
7136
0
        break;
7137
0
      }
7138
7139
      // optional bool is_nullable = 5 [default = false];
7140
0
      case 5: {
7141
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7142
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
7143
0
          set_has_is_nullable();
7144
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7145
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7146
0
                 input, &is_nullable_)));
7147
0
        } else {
7148
0
          goto handle_unusual;
7149
0
        }
7150
0
        break;
7151
0
      }
7152
7153
      // optional int32 oid = 6 [default = 0];
7154
0
      case 6: {
7155
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7156
0
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
7157
0
          set_has_oid();
7158
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7159
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7160
0
                 input, &oid_)));
7161
0
        } else {
7162
0
          goto handle_unusual;
7163
0
        }
7164
0
        break;
7165
0
      }
7166
7167
0
      default: {
7168
0
      handle_unusual:
7169
0
        if (tag == 0) {
7170
0
          goto success;
7171
0
        }
7172
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7173
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7174
0
        break;
7175
0
      }
7176
0
    }
7177
0
  }
7178
0
success:
7179
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKColumnInfoPB)
7180
0
  return true;
7181
0
failure:
7182
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKColumnInfoPB)
7183
0
  return false;
7184
0
#undef DO_
7185
0
}
7186
7187
void CDCSDKColumnInfoPB::SerializeWithCachedSizes(
7188
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7189
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKColumnInfoPB)
7190
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7191
0
  (void) cached_has_bits;
7192
7193
0
  cached_has_bits = _has_bits_[0];
7194
  // optional string name = 1;
7195
0
  if (cached_has_bits & 0x00000001u) {
7196
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7197
0
      this->name().data(), static_cast<int>(this->name().length()),
7198
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7199
0
      "yb.cdc.CDCSDKColumnInfoPB.name");
7200
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7201
0
      1, this->name(), output);
7202
0
  }
7203
7204
  // optional .yb.QLTypePB type = 2;
7205
0
  if (cached_has_bits & 0x00000002u) {
7206
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7207
0
      2, *this->type_, output);
7208
0
  }
7209
7210
  // optional bool is_key = 3 [default = false];
7211
0
  if (cached_has_bits & 0x00000004u) {
7212
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_key(), output);
7213
0
  }
7214
7215
  // optional bool is_hash_key = 4 [default = false];
7216
0
  if (cached_has_bits & 0x00000008u) {
7217
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_hash_key(), output);
7218
0
  }
7219
7220
  // optional bool is_nullable = 5 [default = false];
7221
0
  if (cached_has_bits & 0x00000010u) {
7222
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_nullable(), output);
7223
0
  }
7224
7225
  // optional int32 oid = 6 [default = 0];
7226
0
  if (cached_has_bits & 0x00000020u) {
7227
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->oid(), output);
7228
0
  }
7229
7230
0
  if (_internal_metadata_.have_unknown_fields()) {
7231
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7232
0
        _internal_metadata_.unknown_fields(), output);
7233
0
  }
7234
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKColumnInfoPB)
7235
0
}
7236
7237
::google::protobuf::uint8* CDCSDKColumnInfoPB::InternalSerializeWithCachedSizesToArray(
7238
883
    bool deterministic, ::google::protobuf::uint8* target) const {
7239
883
  (void)deterministic; // Unused
7240
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKColumnInfoPB)
7241
883
  ::google::protobuf::uint32 cached_has_bits = 0;
7242
883
  (void) cached_has_bits;
7243
7244
883
  cached_has_bits = _has_bits_[0];
7245
  // optional string name = 1;
7246
883
  if (cached_has_bits & 0x00000001u) {
7247
883
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7248
883
      this->name().data(), static_cast<int>(this->name().length()),
7249
883
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7250
883
      "yb.cdc.CDCSDKColumnInfoPB.name");
7251
883
    target =
7252
883
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7253
883
        1, this->name(), target);
7254
883
  }
7255
7256
  // optional .yb.QLTypePB type = 2;
7257
883
  if (cached_has_bits & 0x00000002u) {
7258
883
    target = ::google::protobuf::internal::WireFormatLite::
7259
883
      InternalWriteMessageToArray(
7260
883
        2, *this->type_, deterministic, target);
7261
883
  }
7262
7263
  // optional bool is_key = 3 [default = false];
7264
883
  if (cached_has_bits & 0x00000004u) {
7265
883
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_key(), target);
7266
883
  }
7267
7268
  // optional bool is_hash_key = 4 [default = false];
7269
883
  if (cached_has_bits & 0x00000008u) {
7270
883
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_hash_key(), target);
7271
883
  }
7272
7273
  // optional bool is_nullable = 5 [default = false];
7274
883
  if (cached_has_bits & 0x00000010u) {
7275
883
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_nullable(), target);
7276
883
  }
7277
7278
  // optional int32 oid = 6 [default = 0];
7279
883
  if (cached_has_bits & 0x00000020u) {
7280
883
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->oid(), target);
7281
883
  }
7282
7283
883
  if (_internal_metadata_.have_unknown_fields()) {
7284
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7285
0
        _internal_metadata_.unknown_fields(), target);
7286
0
  }
7287
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKColumnInfoPB)
7288
883
  return target;
7289
883
}
7290
7291
1.76k
size_t CDCSDKColumnInfoPB::ByteSizeLong() const {
7292
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKColumnInfoPB)
7293
1.76k
  size_t total_size = 0;
7294
7295
1.76k
  if (_internal_metadata_.have_unknown_fields()) {
7296
0
    total_size +=
7297
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7298
0
        _internal_metadata_.unknown_fields());
7299
0
  }
7300
1.76k
  if (_has_bits_[0 / 32] & 63u) {
7301
    // optional string name = 1;
7302
1.76k
    if (has_name()) {
7303
1.76k
      total_size += 1 +
7304
1.76k
        ::google::protobuf::internal::WireFormatLite::StringSize(
7305
1.76k
          this->name());
7306
1.76k
    }
7307
7308
    // optional .yb.QLTypePB type = 2;
7309
1.76k
    if (has_type()) {
7310
1.76k
      total_size += 1 +
7311
1.76k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7312
1.76k
          *this->type_);
7313
1.76k
    }
7314
7315
    // optional bool is_key = 3 [default = false];
7316
1.76k
    if (has_is_key()) {
7317
1.76k
      total_size += 1 + 1;
7318
1.76k
    }
7319
7320
    // optional bool is_hash_key = 4 [default = false];
7321
1.76k
    if (has_is_hash_key()) {
7322
1.76k
      total_size += 1 + 1;
7323
1.76k
    }
7324
7325
    // optional bool is_nullable = 5 [default = false];
7326
1.76k
    if (has_is_nullable()) {
7327
1.76k
      total_size += 1 + 1;
7328
1.76k
    }
7329
7330
    // optional int32 oid = 6 [default = 0];
7331
1.76k
    if (has_oid()) {
7332
1.76k
      total_size += 1 +
7333
1.76k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7334
1.76k
          this->oid());
7335
1.76k
    }
7336
7337
1.76k
  }
7338
1.76k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7339
1.76k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7340
1.76k
  _cached_size_ = cached_size;
7341
1.76k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7342
1.76k
  return total_size;
7343
1.76k
}
7344
7345
0
void CDCSDKColumnInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
7346
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKColumnInfoPB)
7347
0
  GOOGLE_DCHECK_NE(&from, this);
7348
0
  const CDCSDKColumnInfoPB* source =
7349
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKColumnInfoPB>(
7350
0
          &from);
7351
0
  if (source == NULL) {
7352
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKColumnInfoPB)
7353
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7354
0
  } else {
7355
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKColumnInfoPB)
7356
0
    MergeFrom(*source);
7357
0
  }
7358
0
}
7359
7360
0
void CDCSDKColumnInfoPB::MergeFrom(const CDCSDKColumnInfoPB& from) {
7361
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKColumnInfoPB)
7362
0
  GOOGLE_DCHECK_NE(&from, this);
7363
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7364
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7365
0
  (void) cached_has_bits;
7366
7367
0
  cached_has_bits = from._has_bits_[0];
7368
0
  if (cached_has_bits & 63u) {
7369
0
    if (cached_has_bits & 0x00000001u) {
7370
0
      set_has_name();
7371
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7372
0
    }
7373
0
    if (cached_has_bits & 0x00000002u) {
7374
0
      mutable_type()->::yb::QLTypePB::MergeFrom(from.type());
7375
0
    }
7376
0
    if (cached_has_bits & 0x00000004u) {
7377
0
      is_key_ = from.is_key_;
7378
0
    }
7379
0
    if (cached_has_bits & 0x00000008u) {
7380
0
      is_hash_key_ = from.is_hash_key_;
7381
0
    }
7382
0
    if (cached_has_bits & 0x00000010u) {
7383
0
      is_nullable_ = from.is_nullable_;
7384
0
    }
7385
0
    if (cached_has_bits & 0x00000020u) {
7386
0
      oid_ = from.oid_;
7387
0
    }
7388
0
    _has_bits_[0] |= cached_has_bits;
7389
0
  }
7390
0
}
7391
7392
0
void CDCSDKColumnInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
7393
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKColumnInfoPB)
7394
0
  if (&from == this) return;
7395
0
  Clear();
7396
0
  MergeFrom(from);
7397
0
}
7398
7399
0
void CDCSDKColumnInfoPB::CopyFrom(const CDCSDKColumnInfoPB& from) {
7400
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKColumnInfoPB)
7401
0
  if (&from == this) return;
7402
0
  Clear();
7403
0
  MergeFrom(from);
7404
0
}
7405
7406
0
bool CDCSDKColumnInfoPB::IsInitialized() const {
7407
0
  return true;
7408
0
}
7409
7410
0
void CDCSDKColumnInfoPB::Swap(CDCSDKColumnInfoPB* other) {
7411
0
  if (other == this) return;
7412
0
  InternalSwap(other);
7413
0
}
7414
0
void CDCSDKColumnInfoPB::InternalSwap(CDCSDKColumnInfoPB* other) {
7415
0
  using std::swap;
7416
0
  name_.Swap(&other->name_);
7417
0
  swap(type_, other->type_);
7418
0
  swap(is_key_, other->is_key_);
7419
0
  swap(is_hash_key_, other->is_hash_key_);
7420
0
  swap(is_nullable_, other->is_nullable_);
7421
0
  swap(oid_, other->oid_);
7422
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7423
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7424
0
  swap(_cached_size_, other->_cached_size_);
7425
0
}
7426
7427
0
::google::protobuf::Metadata CDCSDKColumnInfoPB::GetMetadata() const {
7428
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
7429
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
7430
0
}
7431
7432
7433
// ===================================================================
7434
7435
9.25k
void CDCSDKTablePropertiesPB::InitAsDefaultInstance() {
7436
9.25k
}
7437
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7438
const int CDCSDKTablePropertiesPB::kDefaultTimeToLiveFieldNumber;
7439
const int CDCSDKTablePropertiesPB::kNumTabletsFieldNumber;
7440
const int CDCSDKTablePropertiesPB::kIsYsqlCatalogTableFieldNumber;
7441
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7442
7443
CDCSDKTablePropertiesPB::CDCSDKTablePropertiesPB()
7444
9.57k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7445
314
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7446
314
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB();
7447
314
  }
7448
9.57k
  SharedCtor();
7449
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKTablePropertiesPB)
7450
9.57k
}
7451
CDCSDKTablePropertiesPB::CDCSDKTablePropertiesPB(const CDCSDKTablePropertiesPB& from)
7452
  : ::google::protobuf::Message(),
7453
      _internal_metadata_(NULL),
7454
      _has_bits_(from._has_bits_),
7455
0
      _cached_size_(0) {
7456
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7457
0
  ::memcpy(&default_time_to_live_, &from.default_time_to_live_,
7458
0
    static_cast<size_t>(reinterpret_cast<char*>(&is_ysql_catalog_table_) -
7459
0
    reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_));
7460
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKTablePropertiesPB)
7461
0
}
7462
7463
9.57k
void CDCSDKTablePropertiesPB::SharedCtor() {
7464
9.57k
  _cached_size_ = 0;
7465
9.57k
  ::memset(&default_time_to_live_, 0, static_cast<size_t>(
7466
9.57k
      reinterpret_cast<char*>(&is_ysql_catalog_table_) -
7467
9.57k
      reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_));
7468
9.57k
}
7469
7470
314
CDCSDKTablePropertiesPB::~CDCSDKTablePropertiesPB() {
7471
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKTablePropertiesPB)
7472
314
  SharedDtor();
7473
314
}
7474
7475
314
void CDCSDKTablePropertiesPB::SharedDtor() {
7476
314
}
7477
7478
0
void CDCSDKTablePropertiesPB::SetCachedSize(int size) const {
7479
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7480
0
  _cached_size_ = size;
7481
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7482
0
}
7483
0
const ::google::protobuf::Descriptor* CDCSDKTablePropertiesPB::descriptor() {
7484
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
7485
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7486
0
}
7487
7488
0
const CDCSDKTablePropertiesPB& CDCSDKTablePropertiesPB::default_instance() {
7489
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKTablePropertiesPB();
7490
0
  return *internal_default_instance();
7491
0
}
7492
7493
0
CDCSDKTablePropertiesPB* CDCSDKTablePropertiesPB::New(::google::protobuf::Arena* arena) const {
7494
0
  CDCSDKTablePropertiesPB* n = new CDCSDKTablePropertiesPB;
7495
0
  if (arena != NULL) {
7496
0
    arena->Own(n);
7497
0
  }
7498
0
  return n;
7499
0
}
7500
7501
0
void CDCSDKTablePropertiesPB::Clear() {
7502
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKTablePropertiesPB)
7503
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7504
  // Prevent compiler warnings about cached_has_bits being unused
7505
0
  (void) cached_has_bits;
7506
7507
0
  cached_has_bits = _has_bits_[0];
7508
0
  if (cached_has_bits & 7u) {
7509
0
    ::memset(&default_time_to_live_, 0, static_cast<size_t>(
7510
0
        reinterpret_cast<char*>(&is_ysql_catalog_table_) -
7511
0
        reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(is_ysql_catalog_table_));
7512
0
  }
7513
0
  _has_bits_.Clear();
7514
0
  _internal_metadata_.Clear();
7515
0
}
7516
7517
bool CDCSDKTablePropertiesPB::MergePartialFromCodedStream(
7518
0
    ::google::protobuf::io::CodedInputStream* input) {
7519
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7520
0
  ::google::protobuf::uint32 tag;
7521
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKTablePropertiesPB)
7522
0
  for (;;) {
7523
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7524
0
    tag = p.first;
7525
0
    if (!p.second) goto handle_unusual;
7526
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7527
      // optional uint64 default_time_to_live = 1;
7528
0
      case 1: {
7529
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7530
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7531
0
          set_has_default_time_to_live();
7532
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7533
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7534
0
                 input, &default_time_to_live_)));
7535
0
        } else {
7536
0
          goto handle_unusual;
7537
0
        }
7538
0
        break;
7539
0
      }
7540
7541
      // optional int32 num_tablets = 2 [default = 0];
7542
0
      case 2: {
7543
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7544
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7545
0
          set_has_num_tablets();
7546
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7547
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7548
0
                 input, &num_tablets_)));
7549
0
        } else {
7550
0
          goto handle_unusual;
7551
0
        }
7552
0
        break;
7553
0
      }
7554
7555
      // optional bool is_ysql_catalog_table = 3 [default = false];
7556
0
      case 3: {
7557
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7558
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7559
0
          set_has_is_ysql_catalog_table();
7560
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7561
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7562
0
                 input, &is_ysql_catalog_table_)));
7563
0
        } else {
7564
0
          goto handle_unusual;
7565
0
        }
7566
0
        break;
7567
0
      }
7568
7569
0
      default: {
7570
0
      handle_unusual:
7571
0
        if (tag == 0) {
7572
0
          goto success;
7573
0
        }
7574
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7575
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7576
0
        break;
7577
0
      }
7578
0
    }
7579
0
  }
7580
0
success:
7581
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKTablePropertiesPB)
7582
0
  return true;
7583
0
failure:
7584
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKTablePropertiesPB)
7585
0
  return false;
7586
0
#undef DO_
7587
0
}
7588
7589
void CDCSDKTablePropertiesPB::SerializeWithCachedSizes(
7590
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7591
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKTablePropertiesPB)
7592
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7593
0
  (void) cached_has_bits;
7594
7595
0
  cached_has_bits = _has_bits_[0];
7596
  // optional uint64 default_time_to_live = 1;
7597
0
  if (cached_has_bits & 0x00000001u) {
7598
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->default_time_to_live(), output);
7599
0
  }
7600
7601
  // optional int32 num_tablets = 2 [default = 0];
7602
0
  if (cached_has_bits & 0x00000002u) {
7603
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_tablets(), output);
7604
0
  }
7605
7606
  // optional bool is_ysql_catalog_table = 3 [default = false];
7607
0
  if (cached_has_bits & 0x00000004u) {
7608
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_ysql_catalog_table(), output);
7609
0
  }
7610
7611
0
  if (_internal_metadata_.have_unknown_fields()) {
7612
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7613
0
        _internal_metadata_.unknown_fields(), output);
7614
0
  }
7615
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKTablePropertiesPB)
7616
0
}
7617
7618
::google::protobuf::uint8* CDCSDKTablePropertiesPB::InternalSerializeWithCachedSizesToArray(
7619
314
    bool deterministic, ::google::protobuf::uint8* target) const {
7620
314
  (void)deterministic; // Unused
7621
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKTablePropertiesPB)
7622
314
  ::google::protobuf::uint32 cached_has_bits = 0;
7623
314
  (void) cached_has_bits;
7624
7625
314
  cached_has_bits = _has_bits_[0];
7626
  // optional uint64 default_time_to_live = 1;
7627
314
  if (cached_has_bits & 0x00000001u) {
7628
314
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->default_time_to_live(), target);
7629
314
  }
7630
7631
  // optional int32 num_tablets = 2 [default = 0];
7632
314
  if (cached_has_bits & 0x00000002u) {
7633
314
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_tablets(), target);
7634
314
  }
7635
7636
  // optional bool is_ysql_catalog_table = 3 [default = false];
7637
314
  if (cached_has_bits & 0x00000004u) {
7638
314
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_ysql_catalog_table(), target);
7639
314
  }
7640
7641
314
  if (_internal_metadata_.have_unknown_fields()) {
7642
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7643
0
        _internal_metadata_.unknown_fields(), target);
7644
0
  }
7645
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKTablePropertiesPB)
7646
314
  return target;
7647
314
}
7648
7649
628
size_t CDCSDKTablePropertiesPB::ByteSizeLong() const {
7650
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKTablePropertiesPB)
7651
628
  size_t total_size = 0;
7652
7653
628
  if (_internal_metadata_.have_unknown_fields()) {
7654
0
    total_size +=
7655
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7656
0
        _internal_metadata_.unknown_fields());
7657
0
  }
7658
628
  if (_has_bits_[0 / 32] & 7u) {
7659
    // optional uint64 default_time_to_live = 1;
7660
628
    if (has_default_time_to_live()) {
7661
628
      total_size += 1 +
7662
628
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
7663
628
          this->default_time_to_live());
7664
628
    }
7665
7666
    // optional int32 num_tablets = 2 [default = 0];
7667
628
    if (has_num_tablets()) {
7668
628
      total_size += 1 +
7669
628
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7670
628
          this->num_tablets());
7671
628
    }
7672
7673
    // optional bool is_ysql_catalog_table = 3 [default = false];
7674
628
    if (has_is_ysql_catalog_table()) {
7675
628
      total_size += 1 + 1;
7676
628
    }
7677
7678
628
  }
7679
628
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7680
628
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7681
628
  _cached_size_ = cached_size;
7682
628
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7683
628
  return total_size;
7684
628
}
7685
7686
0
void CDCSDKTablePropertiesPB::MergeFrom(const ::google::protobuf::Message& from) {
7687
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKTablePropertiesPB)
7688
0
  GOOGLE_DCHECK_NE(&from, this);
7689
0
  const CDCSDKTablePropertiesPB* source =
7690
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKTablePropertiesPB>(
7691
0
          &from);
7692
0
  if (source == NULL) {
7693
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKTablePropertiesPB)
7694
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7695
0
  } else {
7696
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKTablePropertiesPB)
7697
0
    MergeFrom(*source);
7698
0
  }
7699
0
}
7700
7701
0
void CDCSDKTablePropertiesPB::MergeFrom(const CDCSDKTablePropertiesPB& from) {
7702
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKTablePropertiesPB)
7703
0
  GOOGLE_DCHECK_NE(&from, this);
7704
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7705
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7706
0
  (void) cached_has_bits;
7707
7708
0
  cached_has_bits = from._has_bits_[0];
7709
0
  if (cached_has_bits & 7u) {
7710
0
    if (cached_has_bits & 0x00000001u) {
7711
0
      default_time_to_live_ = from.default_time_to_live_;
7712
0
    }
7713
0
    if (cached_has_bits & 0x00000002u) {
7714
0
      num_tablets_ = from.num_tablets_;
7715
0
    }
7716
0
    if (cached_has_bits & 0x00000004u) {
7717
0
      is_ysql_catalog_table_ = from.is_ysql_catalog_table_;
7718
0
    }
7719
0
    _has_bits_[0] |= cached_has_bits;
7720
0
  }
7721
0
}
7722
7723
0
void CDCSDKTablePropertiesPB::CopyFrom(const ::google::protobuf::Message& from) {
7724
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKTablePropertiesPB)
7725
0
  if (&from == this) return;
7726
0
  Clear();
7727
0
  MergeFrom(from);
7728
0
}
7729
7730
0
void CDCSDKTablePropertiesPB::CopyFrom(const CDCSDKTablePropertiesPB& from) {
7731
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKTablePropertiesPB)
7732
0
  if (&from == this) return;
7733
0
  Clear();
7734
0
  MergeFrom(from);
7735
0
}
7736
7737
0
bool CDCSDKTablePropertiesPB::IsInitialized() const {
7738
0
  return true;
7739
0
}
7740
7741
0
void CDCSDKTablePropertiesPB::Swap(CDCSDKTablePropertiesPB* other) {
7742
0
  if (other == this) return;
7743
0
  InternalSwap(other);
7744
0
}
7745
0
void CDCSDKTablePropertiesPB::InternalSwap(CDCSDKTablePropertiesPB* other) {
7746
0
  using std::swap;
7747
0
  swap(default_time_to_live_, other->default_time_to_live_);
7748
0
  swap(num_tablets_, other->num_tablets_);
7749
0
  swap(is_ysql_catalog_table_, other->is_ysql_catalog_table_);
7750
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7751
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7752
0
  swap(_cached_size_, other->_cached_size_);
7753
0
}
7754
7755
0
::google::protobuf::Metadata CDCSDKTablePropertiesPB::GetMetadata() const {
7756
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
7757
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
7758
0
}
7759
7760
7761
// ===================================================================
7762
7763
9.25k
void CDCSDKSchemaPB::InitAsDefaultInstance() {
7764
9.25k
  ::yb::cdc::_CDCSDKSchemaPB_default_instance_._instance.get_mutable()->tab_info_ = const_cast< ::yb::cdc::CDCSDKTablePropertiesPB*>(
7765
9.25k
      ::yb::cdc::CDCSDKTablePropertiesPB::internal_default_instance());
7766
9.25k
}
7767
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7768
const int CDCSDKSchemaPB::kColumnInfoFieldNumber;
7769
const int CDCSDKSchemaPB::kTabInfoFieldNumber;
7770
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7771
7772
CDCSDKSchemaPB::CDCSDKSchemaPB()
7773
9.57k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7774
314
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7775
314
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB();
7776
314
  }
7777
9.57k
  SharedCtor();
7778
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKSchemaPB)
7779
9.57k
}
7780
CDCSDKSchemaPB::CDCSDKSchemaPB(const CDCSDKSchemaPB& from)
7781
  : ::google::protobuf::Message(),
7782
      _internal_metadata_(NULL),
7783
      _has_bits_(from._has_bits_),
7784
      _cached_size_(0),
7785
0
      column_info_(from.column_info_) {
7786
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7787
0
  if (from.has_tab_info()) {
7788
0
    tab_info_ = new ::yb::cdc::CDCSDKTablePropertiesPB(*from.tab_info_);
7789
0
  } else {
7790
0
    tab_info_ = NULL;
7791
0
  }
7792
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKSchemaPB)
7793
0
}
7794
7795
9.57k
void CDCSDKSchemaPB::SharedCtor() {
7796
9.57k
  _cached_size_ = 0;
7797
9.57k
  tab_info_ = NULL;
7798
9.57k
}
7799
7800
314
CDCSDKSchemaPB::~CDCSDKSchemaPB() {
7801
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKSchemaPB)
7802
314
  SharedDtor();
7803
314
}
7804
7805
314
void CDCSDKSchemaPB::SharedDtor() {
7806
314
  if (this != internal_default_instance()) delete tab_info_;
7807
314
}
7808
7809
0
void CDCSDKSchemaPB::SetCachedSize(int size) const {
7810
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7811
0
  _cached_size_ = size;
7812
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7813
0
}
7814
0
const ::google::protobuf::Descriptor* CDCSDKSchemaPB::descriptor() {
7815
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
7816
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7817
0
}
7818
7819
0
const CDCSDKSchemaPB& CDCSDKSchemaPB::default_instance() {
7820
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKSchemaPB();
7821
0
  return *internal_default_instance();
7822
0
}
7823
7824
0
CDCSDKSchemaPB* CDCSDKSchemaPB::New(::google::protobuf::Arena* arena) const {
7825
0
  CDCSDKSchemaPB* n = new CDCSDKSchemaPB;
7826
0
  if (arena != NULL) {
7827
0
    arena->Own(n);
7828
0
  }
7829
0
  return n;
7830
0
}
7831
7832
0
void CDCSDKSchemaPB::Clear() {
7833
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKSchemaPB)
7834
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7835
  // Prevent compiler warnings about cached_has_bits being unused
7836
0
  (void) cached_has_bits;
7837
7838
0
  column_info_.Clear();
7839
0
  cached_has_bits = _has_bits_[0];
7840
0
  if (cached_has_bits & 0x00000001u) {
7841
0
    GOOGLE_DCHECK(tab_info_ != NULL);
7842
0
    tab_info_->Clear();
7843
0
  }
7844
0
  _has_bits_.Clear();
7845
0
  _internal_metadata_.Clear();
7846
0
}
7847
7848
bool CDCSDKSchemaPB::MergePartialFromCodedStream(
7849
0
    ::google::protobuf::io::CodedInputStream* input) {
7850
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7851
0
  ::google::protobuf::uint32 tag;
7852
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKSchemaPB)
7853
0
  for (;;) {
7854
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7855
0
    tag = p.first;
7856
0
    if (!p.second) goto handle_unusual;
7857
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7858
      // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1;
7859
0
      case 1: {
7860
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7861
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7862
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_info()));
7863
0
        } else {
7864
0
          goto handle_unusual;
7865
0
        }
7866
0
        break;
7867
0
      }
7868
7869
      // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2;
7870
0
      case 2: {
7871
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7872
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7873
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7874
0
               input, mutable_tab_info()));
7875
0
        } else {
7876
0
          goto handle_unusual;
7877
0
        }
7878
0
        break;
7879
0
      }
7880
7881
0
      default: {
7882
0
      handle_unusual:
7883
0
        if (tag == 0) {
7884
0
          goto success;
7885
0
        }
7886
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7887
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7888
0
        break;
7889
0
      }
7890
0
    }
7891
0
  }
7892
0
success:
7893
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKSchemaPB)
7894
0
  return true;
7895
0
failure:
7896
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKSchemaPB)
7897
0
  return false;
7898
0
#undef DO_
7899
0
}
7900
7901
void CDCSDKSchemaPB::SerializeWithCachedSizes(
7902
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7903
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKSchemaPB)
7904
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7905
0
  (void) cached_has_bits;
7906
7907
  // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1;
7908
0
  for (unsigned int i = 0,
7909
0
      n = static_cast<unsigned int>(this->column_info_size()); i < n; i++) {
7910
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7911
0
      1, this->column_info(static_cast<int>(i)), output);
7912
0
  }
7913
7914
0
  cached_has_bits = _has_bits_[0];
7915
  // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2;
7916
0
  if (cached_has_bits & 0x00000001u) {
7917
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7918
0
      2, *this->tab_info_, output);
7919
0
  }
7920
7921
0
  if (_internal_metadata_.have_unknown_fields()) {
7922
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7923
0
        _internal_metadata_.unknown_fields(), output);
7924
0
  }
7925
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKSchemaPB)
7926
0
}
7927
7928
::google::protobuf::uint8* CDCSDKSchemaPB::InternalSerializeWithCachedSizesToArray(
7929
314
    bool deterministic, ::google::protobuf::uint8* target) const {
7930
314
  (void)deterministic; // Unused
7931
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKSchemaPB)
7932
314
  ::google::protobuf::uint32 cached_has_bits = 0;
7933
314
  (void) cached_has_bits;
7934
7935
  // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1;
7936
314
  for (unsigned int i = 0,
7937
1.19k
      n = static_cast<unsigned int>(this->column_info_size()); i < n; i++) {
7938
883
    target = ::google::protobuf::internal::WireFormatLite::
7939
883
      InternalWriteMessageToArray(
7940
883
        1, this->column_info(static_cast<int>(i)), deterministic, target);
7941
883
  }
7942
7943
314
  cached_has_bits = _has_bits_[0];
7944
  // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2;
7945
314
  if (cached_has_bits & 0x00000001u) {
7946
314
    target = ::google::protobuf::internal::WireFormatLite::
7947
314
      InternalWriteMessageToArray(
7948
314
        2, *this->tab_info_, deterministic, target);
7949
314
  }
7950
7951
314
  if (_internal_metadata_.have_unknown_fields()) {
7952
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7953
0
        _internal_metadata_.unknown_fields(), target);
7954
0
  }
7955
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKSchemaPB)
7956
314
  return target;
7957
314
}
7958
7959
628
size_t CDCSDKSchemaPB::ByteSizeLong() const {
7960
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKSchemaPB)
7961
628
  size_t total_size = 0;
7962
7963
628
  if (_internal_metadata_.have_unknown_fields()) {
7964
0
    total_size +=
7965
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7966
0
        _internal_metadata_.unknown_fields());
7967
0
  }
7968
  // repeated .yb.cdc.CDCSDKColumnInfoPB column_info = 1;
7969
628
  {
7970
628
    unsigned int count = static_cast<unsigned int>(this->column_info_size());
7971
628
    total_size += 1UL * count;
7972
2.39k
    for (unsigned int i = 0; i < count; i++) {
7973
1.76k
      total_size +=
7974
1.76k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7975
1.76k
          this->column_info(static_cast<int>(i)));
7976
1.76k
    }
7977
628
  }
7978
7979
  // optional .yb.cdc.CDCSDKTablePropertiesPB tab_info = 2;
7980
628
  if (has_tab_info()) {
7981
628
    total_size += 1 +
7982
628
      ::google::protobuf::internal::WireFormatLite::MessageSize(
7983
628
        *this->tab_info_);
7984
628
  }
7985
7986
628
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7987
628
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7988
628
  _cached_size_ = cached_size;
7989
628
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7990
628
  return total_size;
7991
628
}
7992
7993
0
void CDCSDKSchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
7994
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKSchemaPB)
7995
0
  GOOGLE_DCHECK_NE(&from, this);
7996
0
  const CDCSDKSchemaPB* source =
7997
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKSchemaPB>(
7998
0
          &from);
7999
0
  if (source == NULL) {
8000
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKSchemaPB)
8001
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8002
0
  } else {
8003
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKSchemaPB)
8004
0
    MergeFrom(*source);
8005
0
  }
8006
0
}
8007
8008
0
void CDCSDKSchemaPB::MergeFrom(const CDCSDKSchemaPB& from) {
8009
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKSchemaPB)
8010
0
  GOOGLE_DCHECK_NE(&from, this);
8011
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8012
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8013
0
  (void) cached_has_bits;
8014
8015
0
  column_info_.MergeFrom(from.column_info_);
8016
0
  if (from.has_tab_info()) {
8017
0
    mutable_tab_info()->::yb::cdc::CDCSDKTablePropertiesPB::MergeFrom(from.tab_info());
8018
0
  }
8019
0
}
8020
8021
0
void CDCSDKSchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
8022
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKSchemaPB)
8023
0
  if (&from == this) return;
8024
0
  Clear();
8025
0
  MergeFrom(from);
8026
0
}
8027
8028
0
void CDCSDKSchemaPB::CopyFrom(const CDCSDKSchemaPB& from) {
8029
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKSchemaPB)
8030
0
  if (&from == this) return;
8031
0
  Clear();
8032
0
  MergeFrom(from);
8033
0
}
8034
8035
0
bool CDCSDKSchemaPB::IsInitialized() const {
8036
0
  return true;
8037
0
}
8038
8039
0
void CDCSDKSchemaPB::Swap(CDCSDKSchemaPB* other) {
8040
0
  if (other == this) return;
8041
0
  InternalSwap(other);
8042
0
}
8043
0
void CDCSDKSchemaPB::InternalSwap(CDCSDKSchemaPB* other) {
8044
0
  using std::swap;
8045
0
  column_info_.InternalSwap(&other->column_info_);
8046
0
  swap(tab_info_, other->tab_info_);
8047
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8048
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8049
0
  swap(_cached_size_, other->_cached_size_);
8050
0
}
8051
8052
0
::google::protobuf::Metadata CDCSDKSchemaPB::GetMetadata() const {
8053
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8054
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
8055
0
}
8056
8057
8058
// ===================================================================
8059
8060
9.25k
void CDCSDKOpIdPB::InitAsDefaultInstance() {
8061
9.25k
}
8062
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8063
const int CDCSDKOpIdPB::kTermFieldNumber;
8064
const int CDCSDKOpIdPB::kIndexFieldNumber;
8065
const int CDCSDKOpIdPB::kWriteIdFieldNumber;
8066
const int CDCSDKOpIdPB::kWriteIdKeyFieldNumber;
8067
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8068
8069
CDCSDKOpIdPB::CDCSDKOpIdPB()
8070
9.93k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8071
678
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8072
678
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB();
8073
678
  }
8074
9.93k
  SharedCtor();
8075
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKOpIdPB)
8076
9.93k
}
8077
CDCSDKOpIdPB::CDCSDKOpIdPB(const CDCSDKOpIdPB& from)
8078
  : ::google::protobuf::Message(),
8079
      _internal_metadata_(NULL),
8080
      _has_bits_(from._has_bits_),
8081
0
      _cached_size_(0) {
8082
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8083
0
  write_id_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8084
0
  if (from.has_write_id_key()) {
8085
0
    write_id_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.write_id_key_);
8086
0
  }
8087
0
  ::memcpy(&term_, &from.term_,
8088
0
    static_cast<size_t>(reinterpret_cast<char*>(&write_id_) -
8089
0
    reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
8090
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKOpIdPB)
8091
0
}
8092
8093
9.93k
void CDCSDKOpIdPB::SharedCtor() {
8094
9.93k
  _cached_size_ = 0;
8095
9.93k
  write_id_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8096
9.93k
  ::memset(&term_, 0, static_cast<size_t>(
8097
9.93k
      reinterpret_cast<char*>(&write_id_) -
8098
9.93k
      reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
8099
9.93k
}
8100
8101
678
CDCSDKOpIdPB::~CDCSDKOpIdPB() {
8102
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKOpIdPB)
8103
678
  SharedDtor();
8104
678
}
8105
8106
678
void CDCSDKOpIdPB::SharedDtor() {
8107
678
  write_id_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8108
678
}
8109
8110
0
void CDCSDKOpIdPB::SetCachedSize(int size) const {
8111
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8112
0
  _cached_size_ = size;
8113
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8114
0
}
8115
0
const ::google::protobuf::Descriptor* CDCSDKOpIdPB::descriptor() {
8116
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8117
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8118
0
}
8119
8120
0
const CDCSDKOpIdPB& CDCSDKOpIdPB::default_instance() {
8121
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKOpIdPB();
8122
0
  return *internal_default_instance();
8123
0
}
8124
8125
0
CDCSDKOpIdPB* CDCSDKOpIdPB::New(::google::protobuf::Arena* arena) const {
8126
0
  CDCSDKOpIdPB* n = new CDCSDKOpIdPB;
8127
0
  if (arena != NULL) {
8128
0
    arena->Own(n);
8129
0
  }
8130
0
  return n;
8131
0
}
8132
8133
99
void CDCSDKOpIdPB::Clear() {
8134
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKOpIdPB)
8135
99
  ::google::protobuf::uint32 cached_has_bits = 0;
8136
  // Prevent compiler warnings about cached_has_bits being unused
8137
99
  (void) cached_has_bits;
8138
8139
99
  cached_has_bits = _has_bits_[0];
8140
99
  if (cached_has_bits & 0x00000001u) {
8141
99
    GOOGLE_DCHECK(!write_id_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8142
99
    (*write_id_key_.UnsafeRawStringPointer())->clear();
8143
99
  }
8144
99
  if (cached_has_bits & 14u) {
8145
99
    ::memset(&term_, 0, static_cast<size_t>(
8146
99
        reinterpret_cast<char*>(&write_id_) -
8147
99
        reinterpret_cast<char*>(&term_)) + sizeof(write_id_));
8148
99
  }
8149
99
  _has_bits_.Clear();
8150
99
  _internal_metadata_.Clear();
8151
99
}
8152
8153
bool CDCSDKOpIdPB::MergePartialFromCodedStream(
8154
0
    ::google::protobuf::io::CodedInputStream* input) {
8155
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8156
0
  ::google::protobuf::uint32 tag;
8157
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKOpIdPB)
8158
0
  for (;;) {
8159
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8160
0
    tag = p.first;
8161
0
    if (!p.second) goto handle_unusual;
8162
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8163
      // optional int64 term = 1;
8164
0
      case 1: {
8165
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8166
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8167
0
          set_has_term();
8168
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8169
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8170
0
                 input, &term_)));
8171
0
        } else {
8172
0
          goto handle_unusual;
8173
0
        }
8174
0
        break;
8175
0
      }
8176
8177
      // optional int64 index = 2;
8178
0
      case 2: {
8179
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8180
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8181
0
          set_has_index();
8182
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8183
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8184
0
                 input, &index_)));
8185
0
        } else {
8186
0
          goto handle_unusual;
8187
0
        }
8188
0
        break;
8189
0
      }
8190
8191
      // optional uint32 write_id = 3 [default = 0];
8192
0
      case 3: {
8193
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8194
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
8195
0
          set_has_write_id();
8196
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8197
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8198
0
                 input, &write_id_)));
8199
0
        } else {
8200
0
          goto handle_unusual;
8201
0
        }
8202
0
        break;
8203
0
      }
8204
8205
      // optional bytes write_id_key = 4 [default = ""];
8206
0
      case 4: {
8207
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8208
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8209
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8210
0
                input, this->mutable_write_id_key()));
8211
0
        } else {
8212
0
          goto handle_unusual;
8213
0
        }
8214
0
        break;
8215
0
      }
8216
8217
0
      default: {
8218
0
      handle_unusual:
8219
0
        if (tag == 0) {
8220
0
          goto success;
8221
0
        }
8222
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8223
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8224
0
        break;
8225
0
      }
8226
0
    }
8227
0
  }
8228
0
success:
8229
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKOpIdPB)
8230
0
  return true;
8231
0
failure:
8232
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKOpIdPB)
8233
0
  return false;
8234
0
#undef DO_
8235
0
}
8236
8237
void CDCSDKOpIdPB::SerializeWithCachedSizes(
8238
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8239
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKOpIdPB)
8240
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8241
0
  (void) cached_has_bits;
8242
8243
0
  cached_has_bits = _has_bits_[0];
8244
  // optional int64 term = 1;
8245
0
  if (cached_has_bits & 0x00000002u) {
8246
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->term(), output);
8247
0
  }
8248
8249
  // optional int64 index = 2;
8250
0
  if (cached_has_bits & 0x00000004u) {
8251
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->index(), output);
8252
0
  }
8253
8254
  // optional uint32 write_id = 3 [default = 0];
8255
0
  if (cached_has_bits & 0x00000008u) {
8256
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->write_id(), output);
8257
0
  }
8258
8259
  // optional bytes write_id_key = 4 [default = ""];
8260
0
  if (cached_has_bits & 0x00000001u) {
8261
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8262
0
      4, this->write_id_key(), output);
8263
0
  }
8264
8265
0
  if (_internal_metadata_.have_unknown_fields()) {
8266
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8267
0
        _internal_metadata_.unknown_fields(), output);
8268
0
  }
8269
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKOpIdPB)
8270
0
}
8271
8272
::google::protobuf::uint8* CDCSDKOpIdPB::InternalSerializeWithCachedSizesToArray(
8273
604
    bool deterministic, ::google::protobuf::uint8* target) const {
8274
604
  (void)deterministic; // Unused
8275
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKOpIdPB)
8276
604
  ::google::protobuf::uint32 cached_has_bits = 0;
8277
604
  (void) cached_has_bits;
8278
8279
604
  cached_has_bits = _has_bits_[0];
8280
  // optional int64 term = 1;
8281
604
  if (cached_has_bits & 0x00000002u) {
8282
604
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->term(), target);
8283
604
  }
8284
8285
  // optional int64 index = 2;
8286
604
  if (cached_has_bits & 0x00000004u) {
8287
604
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->index(), target);
8288
604
  }
8289
8290
  // optional uint32 write_id = 3 [default = 0];
8291
604
  if (cached_has_bits & 0x00000008u) {
8292
604
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->write_id(), target);
8293
604
  }
8294
8295
  // optional bytes write_id_key = 4 [default = ""];
8296
604
  if (cached_has_bits & 0x00000001u) {
8297
604
    target =
8298
604
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8299
604
        4, this->write_id_key(), target);
8300
604
  }
8301
8302
604
  if (_internal_metadata_.have_unknown_fields()) {
8303
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8304
0
        _internal_metadata_.unknown_fields(), target);
8305
0
  }
8306
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKOpIdPB)
8307
604
  return target;
8308
604
}
8309
8310
1.20k
size_t CDCSDKOpIdPB::ByteSizeLong() const {
8311
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKOpIdPB)
8312
1.20k
  size_t total_size = 0;
8313
8314
1.20k
  if (_internal_metadata_.have_unknown_fields()) {
8315
0
    total_size +=
8316
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8317
0
        _internal_metadata_.unknown_fields());
8318
0
  }
8319
1.20k
  if (_has_bits_[0 / 32] & 15u) {
8320
    // optional bytes write_id_key = 4 [default = ""];
8321
1.20k
    if (has_write_id_key()) {
8322
1.20k
      total_size += 1 +
8323
1.20k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8324
1.20k
          this->write_id_key());
8325
1.20k
    }
8326
8327
    // optional int64 term = 1;
8328
1.20k
    if (has_term()) {
8329
1.20k
      total_size += 1 +
8330
1.20k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
8331
1.20k
          this->term());
8332
1.20k
    }
8333
8334
    // optional int64 index = 2;
8335
1.20k
    if (has_index()) {
8336
1.20k
      total_size += 1 +
8337
1.20k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
8338
1.20k
          this->index());
8339
1.20k
    }
8340
8341
    // optional uint32 write_id = 3 [default = 0];
8342
1.20k
    if (has_write_id()) {
8343
1.20k
      total_size += 1 +
8344
1.20k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8345
1.20k
          this->write_id());
8346
1.20k
    }
8347
8348
1.20k
  }
8349
1.20k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8350
1.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8351
1.20k
  _cached_size_ = cached_size;
8352
1.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8353
1.20k
  return total_size;
8354
1.20k
}
8355
8356
0
void CDCSDKOpIdPB::MergeFrom(const ::google::protobuf::Message& from) {
8357
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKOpIdPB)
8358
0
  GOOGLE_DCHECK_NE(&from, this);
8359
0
  const CDCSDKOpIdPB* source =
8360
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKOpIdPB>(
8361
0
          &from);
8362
0
  if (source == NULL) {
8363
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKOpIdPB)
8364
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8365
0
  } else {
8366
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKOpIdPB)
8367
0
    MergeFrom(*source);
8368
0
  }
8369
0
}
8370
8371
173
void CDCSDKOpIdPB::MergeFrom(const CDCSDKOpIdPB& from) {
8372
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKOpIdPB)
8373
173
  GOOGLE_DCHECK_NE(&from, this);
8374
173
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8375
173
  ::google::protobuf::uint32 cached_has_bits = 0;
8376
173
  (void) cached_has_bits;
8377
8378
173
  cached_has_bits = from._has_bits_[0];
8379
173
  if (cached_has_bits & 15u) {
8380
173
    if (cached_has_bits & 0x00000001u) {
8381
173
      set_has_write_id_key();
8382
173
      write_id_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.write_id_key_);
8383
173
    }
8384
173
    if (cached_has_bits & 0x00000002u) {
8385
173
      term_ = from.term_;
8386
173
    }
8387
173
    if (cached_has_bits & 0x00000004u) {
8388
173
      index_ = from.index_;
8389
173
    }
8390
173
    if (cached_has_bits & 0x00000008u) {
8391
173
      write_id_ = from.write_id_;
8392
173
    }
8393
173
    _has_bits_[0] |= cached_has_bits;
8394
173
  }
8395
173
}
8396
8397
0
void CDCSDKOpIdPB::CopyFrom(const ::google::protobuf::Message& from) {
8398
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKOpIdPB)
8399
0
  if (&from == this) return;
8400
0
  Clear();
8401
0
  MergeFrom(from);
8402
0
}
8403
8404
0
void CDCSDKOpIdPB::CopyFrom(const CDCSDKOpIdPB& from) {
8405
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKOpIdPB)
8406
0
  if (&from == this) return;
8407
0
  Clear();
8408
0
  MergeFrom(from);
8409
0
}
8410
8411
0
bool CDCSDKOpIdPB::IsInitialized() const {
8412
0
  return true;
8413
0
}
8414
8415
0
void CDCSDKOpIdPB::Swap(CDCSDKOpIdPB* other) {
8416
0
  if (other == this) return;
8417
0
  InternalSwap(other);
8418
0
}
8419
0
void CDCSDKOpIdPB::InternalSwap(CDCSDKOpIdPB* other) {
8420
0
  using std::swap;
8421
0
  write_id_key_.Swap(&other->write_id_key_);
8422
0
  swap(term_, other->term_);
8423
0
  swap(index_, other->index_);
8424
0
  swap(write_id_, other->write_id_);
8425
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8426
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8427
0
  swap(_cached_size_, other->_cached_size_);
8428
0
}
8429
8430
0
::google::protobuf::Metadata CDCSDKOpIdPB::GetMetadata() const {
8431
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8432
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
8433
0
}
8434
8435
8436
// ===================================================================
8437
8438
9.25k
void TypeInfo::InitAsDefaultInstance() {
8439
9.25k
}
8440
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8441
const int TypeInfo::kModifierFieldNumber;
8442
const int TypeInfo::kValueOptionalFieldNumber;
8443
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8444
8445
TypeInfo::TypeInfo()
8446
9.25k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8447
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8448
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo();
8449
0
  }
8450
9.25k
  SharedCtor();
8451
  // @@protoc_insertion_point(constructor:yb.cdc.TypeInfo)
8452
9.25k
}
8453
TypeInfo::TypeInfo(const TypeInfo& from)
8454
  : ::google::protobuf::Message(),
8455
      _internal_metadata_(NULL),
8456
      _has_bits_(from._has_bits_),
8457
0
      _cached_size_(0) {
8458
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8459
0
  modifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8460
0
  if (from.has_modifier()) {
8461
0
    modifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modifier_);
8462
0
  }
8463
0
  value_optional_ = from.value_optional_;
8464
  // @@protoc_insertion_point(copy_constructor:yb.cdc.TypeInfo)
8465
0
}
8466
8467
9.25k
void TypeInfo::SharedCtor() {
8468
9.25k
  _cached_size_ = 0;
8469
9.25k
  modifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8470
9.25k
  value_optional_ = false;
8471
9.25k
}
8472
8473
0
TypeInfo::~TypeInfo() {
8474
  // @@protoc_insertion_point(destructor:yb.cdc.TypeInfo)
8475
0
  SharedDtor();
8476
0
}
8477
8478
0
void TypeInfo::SharedDtor() {
8479
0
  modifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8480
0
}
8481
8482
0
void TypeInfo::SetCachedSize(int size) const {
8483
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8484
0
  _cached_size_ = size;
8485
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8486
0
}
8487
0
const ::google::protobuf::Descriptor* TypeInfo::descriptor() {
8488
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8489
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8490
0
}
8491
8492
0
const TypeInfo& TypeInfo::default_instance() {
8493
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTypeInfo();
8494
0
  return *internal_default_instance();
8495
0
}
8496
8497
0
TypeInfo* TypeInfo::New(::google::protobuf::Arena* arena) const {
8498
0
  TypeInfo* n = new TypeInfo;
8499
0
  if (arena != NULL) {
8500
0
    arena->Own(n);
8501
0
  }
8502
0
  return n;
8503
0
}
8504
8505
0
void TypeInfo::Clear() {
8506
// @@protoc_insertion_point(message_clear_start:yb.cdc.TypeInfo)
8507
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8508
  // Prevent compiler warnings about cached_has_bits being unused
8509
0
  (void) cached_has_bits;
8510
8511
0
  cached_has_bits = _has_bits_[0];
8512
0
  if (cached_has_bits & 0x00000001u) {
8513
0
    GOOGLE_DCHECK(!modifier_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8514
0
    (*modifier_.UnsafeRawStringPointer())->clear();
8515
0
  }
8516
0
  value_optional_ = false;
8517
0
  _has_bits_.Clear();
8518
0
  _internal_metadata_.Clear();
8519
0
}
8520
8521
bool TypeInfo::MergePartialFromCodedStream(
8522
0
    ::google::protobuf::io::CodedInputStream* input) {
8523
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8524
0
  ::google::protobuf::uint32 tag;
8525
  // @@protoc_insertion_point(parse_start:yb.cdc.TypeInfo)
8526
0
  for (;;) {
8527
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8528
0
    tag = p.first;
8529
0
    if (!p.second) goto handle_unusual;
8530
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8531
      // optional string modifier = 1;
8532
0
      case 1: {
8533
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8534
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8535
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8536
0
                input, this->mutable_modifier()));
8537
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8538
0
            this->modifier().data(), static_cast<int>(this->modifier().length()),
8539
0
            ::google::protobuf::internal::WireFormat::PARSE,
8540
0
            "yb.cdc.TypeInfo.modifier");
8541
0
        } else {
8542
0
          goto handle_unusual;
8543
0
        }
8544
0
        break;
8545
0
      }
8546
8547
      // optional bool value_optional = 2;
8548
0
      case 2: {
8549
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8550
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8551
0
          set_has_value_optional();
8552
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8553
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8554
0
                 input, &value_optional_)));
8555
0
        } else {
8556
0
          goto handle_unusual;
8557
0
        }
8558
0
        break;
8559
0
      }
8560
8561
0
      default: {
8562
0
      handle_unusual:
8563
0
        if (tag == 0) {
8564
0
          goto success;
8565
0
        }
8566
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8567
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8568
0
        break;
8569
0
      }
8570
0
    }
8571
0
  }
8572
0
success:
8573
  // @@protoc_insertion_point(parse_success:yb.cdc.TypeInfo)
8574
0
  return true;
8575
0
failure:
8576
  // @@protoc_insertion_point(parse_failure:yb.cdc.TypeInfo)
8577
0
  return false;
8578
0
#undef DO_
8579
0
}
8580
8581
void TypeInfo::SerializeWithCachedSizes(
8582
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8583
  // @@protoc_insertion_point(serialize_start:yb.cdc.TypeInfo)
8584
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8585
0
  (void) cached_has_bits;
8586
8587
0
  cached_has_bits = _has_bits_[0];
8588
  // optional string modifier = 1;
8589
0
  if (cached_has_bits & 0x00000001u) {
8590
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8591
0
      this->modifier().data(), static_cast<int>(this->modifier().length()),
8592
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8593
0
      "yb.cdc.TypeInfo.modifier");
8594
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8595
0
      1, this->modifier(), output);
8596
0
  }
8597
8598
  // optional bool value_optional = 2;
8599
0
  if (cached_has_bits & 0x00000002u) {
8600
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value_optional(), output);
8601
0
  }
8602
8603
0
  if (_internal_metadata_.have_unknown_fields()) {
8604
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8605
0
        _internal_metadata_.unknown_fields(), output);
8606
0
  }
8607
  // @@protoc_insertion_point(serialize_end:yb.cdc.TypeInfo)
8608
0
}
8609
8610
::google::protobuf::uint8* TypeInfo::InternalSerializeWithCachedSizesToArray(
8611
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8612
0
  (void)deterministic; // Unused
8613
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.TypeInfo)
8614
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8615
0
  (void) cached_has_bits;
8616
8617
0
  cached_has_bits = _has_bits_[0];
8618
  // optional string modifier = 1;
8619
0
  if (cached_has_bits & 0x00000001u) {
8620
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8621
0
      this->modifier().data(), static_cast<int>(this->modifier().length()),
8622
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8623
0
      "yb.cdc.TypeInfo.modifier");
8624
0
    target =
8625
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8626
0
        1, this->modifier(), target);
8627
0
  }
8628
8629
  // optional bool value_optional = 2;
8630
0
  if (cached_has_bits & 0x00000002u) {
8631
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->value_optional(), target);
8632
0
  }
8633
8634
0
  if (_internal_metadata_.have_unknown_fields()) {
8635
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8636
0
        _internal_metadata_.unknown_fields(), target);
8637
0
  }
8638
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.TypeInfo)
8639
0
  return target;
8640
0
}
8641
8642
0
size_t TypeInfo::ByteSizeLong() const {
8643
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.TypeInfo)
8644
0
  size_t total_size = 0;
8645
8646
0
  if (_internal_metadata_.have_unknown_fields()) {
8647
0
    total_size +=
8648
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8649
0
        _internal_metadata_.unknown_fields());
8650
0
  }
8651
0
  if (_has_bits_[0 / 32] & 3u) {
8652
    // optional string modifier = 1;
8653
0
    if (has_modifier()) {
8654
0
      total_size += 1 +
8655
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
8656
0
          this->modifier());
8657
0
    }
8658
8659
    // optional bool value_optional = 2;
8660
0
    if (has_value_optional()) {
8661
0
      total_size += 1 + 1;
8662
0
    }
8663
8664
0
  }
8665
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8666
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8667
0
  _cached_size_ = cached_size;
8668
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8669
0
  return total_size;
8670
0
}
8671
8672
0
void TypeInfo::MergeFrom(const ::google::protobuf::Message& from) {
8673
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.TypeInfo)
8674
0
  GOOGLE_DCHECK_NE(&from, this);
8675
0
  const TypeInfo* source =
8676
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TypeInfo>(
8677
0
          &from);
8678
0
  if (source == NULL) {
8679
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.TypeInfo)
8680
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8681
0
  } else {
8682
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.TypeInfo)
8683
0
    MergeFrom(*source);
8684
0
  }
8685
0
}
8686
8687
0
void TypeInfo::MergeFrom(const TypeInfo& from) {
8688
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.TypeInfo)
8689
0
  GOOGLE_DCHECK_NE(&from, this);
8690
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8691
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8692
0
  (void) cached_has_bits;
8693
8694
0
  cached_has_bits = from._has_bits_[0];
8695
0
  if (cached_has_bits & 3u) {
8696
0
    if (cached_has_bits & 0x00000001u) {
8697
0
      set_has_modifier();
8698
0
      modifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modifier_);
8699
0
    }
8700
0
    if (cached_has_bits & 0x00000002u) {
8701
0
      value_optional_ = from.value_optional_;
8702
0
    }
8703
0
    _has_bits_[0] |= cached_has_bits;
8704
0
  }
8705
0
}
8706
8707
0
void TypeInfo::CopyFrom(const ::google::protobuf::Message& from) {
8708
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.TypeInfo)
8709
0
  if (&from == this) return;
8710
0
  Clear();
8711
0
  MergeFrom(from);
8712
0
}
8713
8714
0
void TypeInfo::CopyFrom(const TypeInfo& from) {
8715
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.TypeInfo)
8716
0
  if (&from == this) return;
8717
0
  Clear();
8718
0
  MergeFrom(from);
8719
0
}
8720
8721
0
bool TypeInfo::IsInitialized() const {
8722
0
  return true;
8723
0
}
8724
8725
0
void TypeInfo::Swap(TypeInfo* other) {
8726
0
  if (other == this) return;
8727
0
  InternalSwap(other);
8728
0
}
8729
0
void TypeInfo::InternalSwap(TypeInfo* other) {
8730
0
  using std::swap;
8731
0
  modifier_.Swap(&other->modifier_);
8732
0
  swap(value_optional_, other->value_optional_);
8733
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8734
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8735
0
  swap(_cached_size_, other->_cached_size_);
8736
0
}
8737
8738
0
::google::protobuf::Metadata TypeInfo::GetMetadata() const {
8739
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8740
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
8741
0
}
8742
8743
8744
// ===================================================================
8745
8746
9.25k
void RowMessage::InitAsDefaultInstance() {
8747
9.25k
  ::yb::cdc::_RowMessage_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::cdc::CDCSDKSchemaPB*>(
8748
9.25k
      ::yb::cdc::CDCSDKSchemaPB::internal_default_instance());
8749
9.25k
  ::yb::cdc::_RowMessage_default_instance_._instance.get_mutable()->truncate_request_info_ = const_cast< ::yb::tserver::TruncateRequestPB*>(
8750
9.25k
      ::yb::tserver::TruncateRequestPB::internal_default_instance());
8751
9.25k
}
8752
0
void RowMessage::clear_new_tuple() {
8753
0
  new_tuple_.Clear();
8754
0
}
8755
0
void RowMessage::clear_old_tuple() {
8756
0
  old_tuple_.Clear();
8757
0
}
8758
0
void RowMessage::clear_truncate_request_info() {
8759
0
  if (truncate_request_info_ != NULL) truncate_request_info_->Clear();
8760
0
  clear_has_truncate_request_info();
8761
0
}
8762
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8763
const int RowMessage::kTransactionIdFieldNumber;
8764
const int RowMessage::kCommitTimeFieldNumber;
8765
const int RowMessage::kTableFieldNumber;
8766
const int RowMessage::kOpFieldNumber;
8767
const int RowMessage::kNewTupleFieldNumber;
8768
const int RowMessage::kOldTupleFieldNumber;
8769
const int RowMessage::kNewTypeinfoFieldNumber;
8770
const int RowMessage::kSchemaFieldNumber;
8771
const int RowMessage::kSchemaVersionFieldNumber;
8772
const int RowMessage::kNewTableNameFieldNumber;
8773
const int RowMessage::kPgschemaNameFieldNumber;
8774
const int RowMessage::kTruncateRequestInfoFieldNumber;
8775
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8776
8777
RowMessage::RowMessage()
8778
22.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8779
13.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8780
13.6k
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage();
8781
13.6k
  }
8782
22.9k
  SharedCtor();
8783
  // @@protoc_insertion_point(constructor:yb.cdc.RowMessage)
8784
22.9k
}
8785
RowMessage::RowMessage(const RowMessage& from)
8786
  : ::google::protobuf::Message(),
8787
      _internal_metadata_(NULL),
8788
      _has_bits_(from._has_bits_),
8789
      _cached_size_(0),
8790
      new_tuple_(from.new_tuple_),
8791
      old_tuple_(from.old_tuple_),
8792
0
      new_typeinfo_(from.new_typeinfo_) {
8793
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8794
0
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8795
0
  if (from.has_transaction_id()) {
8796
0
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
8797
0
  }
8798
0
  table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8799
0
  if (from.has_table()) {
8800
0
    table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_);
8801
0
  }
8802
0
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8803
0
  if (from.has_new_table_name()) {
8804
0
    new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
8805
0
  }
8806
0
  pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8807
0
  if (from.has_pgschema_name()) {
8808
0
    pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_);
8809
0
  }
8810
0
  if (from.has_schema()) {
8811
0
    schema_ = new ::yb::cdc::CDCSDKSchemaPB(*from.schema_);
8812
0
  } else {
8813
0
    schema_ = NULL;
8814
0
  }
8815
0
  if (from.has_truncate_request_info()) {
8816
0
    truncate_request_info_ = new ::yb::tserver::TruncateRequestPB(*from.truncate_request_info_);
8817
0
  } else {
8818
0
    truncate_request_info_ = NULL;
8819
0
  }
8820
0
  ::memcpy(&commit_time_, &from.commit_time_,
8821
0
    static_cast<size_t>(reinterpret_cast<char*>(&op_) -
8822
0
    reinterpret_cast<char*>(&commit_time_)) + sizeof(op_));
8823
  // @@protoc_insertion_point(copy_constructor:yb.cdc.RowMessage)
8824
0
}
8825
8826
22.9k
void RowMessage::SharedCtor() {
8827
22.9k
  _cached_size_ = 0;
8828
22.9k
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8829
22.9k
  table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8830
22.9k
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8831
22.9k
  pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8832
22.9k
  ::memset(&schema_, 0, static_cast<size_t>(
8833
22.9k
      reinterpret_cast<char*>(&schema_version_) -
8834
22.9k
      reinterpret_cast<char*>(&schema_)) + sizeof(schema_version_));
8835
22.9k
  op_ = -1;
8836
22.9k
}
8837
8838
13.6k
RowMessage::~RowMessage() {
8839
  // @@protoc_insertion_point(destructor:yb.cdc.RowMessage)
8840
13.6k
  SharedDtor();
8841
13.6k
}
8842
8843
13.6k
void RowMessage::SharedDtor() {
8844
13.6k
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8845
13.6k
  table_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8846
13.6k
  new_table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8847
13.6k
  pgschema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8848
13.6k
  if (this != internal_default_instance()) delete schema_;
8849
13.6k
  if (this != internal_default_instance()) delete truncate_request_info_;
8850
13.6k
}
8851
8852
0
void RowMessage::SetCachedSize(int size) const {
8853
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8854
0
  _cached_size_ = size;
8855
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8856
0
}
8857
0
const ::google::protobuf::Descriptor* RowMessage::descriptor() {
8858
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
8859
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8860
0
}
8861
8862
0
const RowMessage& RowMessage::default_instance() {
8863
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsRowMessage();
8864
0
  return *internal_default_instance();
8865
0
}
8866
8867
0
RowMessage* RowMessage::New(::google::protobuf::Arena* arena) const {
8868
0
  RowMessage* n = new RowMessage;
8869
0
  if (arena != NULL) {
8870
0
    arena->Own(n);
8871
0
  }
8872
0
  return n;
8873
0
}
8874
8875
420
void RowMessage::Clear() {
8876
// @@protoc_insertion_point(message_clear_start:yb.cdc.RowMessage)
8877
420
  ::google::protobuf::uint32 cached_has_bits = 0;
8878
  // Prevent compiler warnings about cached_has_bits being unused
8879
420
  (void) cached_has_bits;
8880
8881
420
  new_tuple_.Clear();
8882
420
  old_tuple_.Clear();
8883
420
  new_typeinfo_.Clear();
8884
420
  cached_has_bits = _has_bits_[0];
8885
420
  if (cached_has_bits & 63u) {
8886
99
    if (cached_has_bits & 0x00000001u) {
8887
99
      GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8888
99
      (*transaction_id_.UnsafeRawStringPointer())->clear();
8889
99
    }
8890
99
    if (cached_has_bits & 0x00000002u) {
8891
99
      GOOGLE_DCHECK(!table_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8892
99
      (*table_.UnsafeRawStringPointer())->clear();
8893
99
    }
8894
99
    if (cached_has_bits & 0x00000004u) {
8895
0
      GOOGLE_DCHECK(!new_table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8896
0
      (*new_table_name_.UnsafeRawStringPointer())->clear();
8897
0
    }
8898
99
    if (cached_has_bits & 0x00000008u) {
8899
99
      GOOGLE_DCHECK(!pgschema_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8900
99
      (*pgschema_name_.UnsafeRawStringPointer())->clear();
8901
99
    }
8902
99
    if (cached_has_bits & 0x00000010u) {
8903
0
      GOOGLE_DCHECK(schema_ != NULL);
8904
0
      schema_->Clear();
8905
0
    }
8906
99
    if (cached_has_bits & 0x00000020u) {
8907
0
      GOOGLE_DCHECK(truncate_request_info_ != NULL);
8908
0
      truncate_request_info_->Clear();
8909
0
    }
8910
99
  }
8911
420
  if (cached_has_bits & 192u) {
8912
0
    ::memset(&commit_time_, 0, static_cast<size_t>(
8913
0
        reinterpret_cast<char*>(&schema_version_) -
8914
0
        reinterpret_cast<char*>(&commit_time_)) + sizeof(schema_version_));
8915
0
  }
8916
420
  op_ = -1;
8917
420
  _has_bits_.Clear();
8918
420
  _internal_metadata_.Clear();
8919
420
}
8920
8921
bool RowMessage::MergePartialFromCodedStream(
8922
0
    ::google::protobuf::io::CodedInputStream* input) {
8923
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8924
0
  ::google::protobuf::uint32 tag;
8925
  // @@protoc_insertion_point(parse_start:yb.cdc.RowMessage)
8926
0
  for (;;) {
8927
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8928
0
    tag = p.first;
8929
0
    if (!p.second) goto handle_unusual;
8930
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8931
      // optional bytes transaction_id = 1;
8932
0
      case 1: {
8933
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8934
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8935
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8936
0
                input, this->mutable_transaction_id()));
8937
0
        } else {
8938
0
          goto handle_unusual;
8939
0
        }
8940
0
        break;
8941
0
      }
8942
8943
      // optional uint64 commit_time = 2;
8944
0
      case 2: {
8945
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8946
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8947
0
          set_has_commit_time();
8948
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8949
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8950
0
                 input, &commit_time_)));
8951
0
        } else {
8952
0
          goto handle_unusual;
8953
0
        }
8954
0
        break;
8955
0
      }
8956
8957
      // optional string table = 3;
8958
0
      case 3: {
8959
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8960
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
8961
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8962
0
                input, this->mutable_table()));
8963
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8964
0
            this->table().data(), static_cast<int>(this->table().length()),
8965
0
            ::google::protobuf::internal::WireFormat::PARSE,
8966
0
            "yb.cdc.RowMessage.table");
8967
0
        } else {
8968
0
          goto handle_unusual;
8969
0
        }
8970
0
        break;
8971
0
      }
8972
8973
      // optional .yb.cdc.RowMessage.Op op = 4;
8974
0
      case 4: {
8975
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8976
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
8977
0
          int value;
8978
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8979
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8980
0
                 input, &value)));
8981
0
          if (::yb::cdc::RowMessage_Op_IsValid(value)) {
8982
0
            set_op(static_cast< ::yb::cdc::RowMessage_Op >(value));
8983
0
          } else {
8984
0
            mutable_unknown_fields()->AddVarint(
8985
0
                4, static_cast< ::google::protobuf::uint64>(value));
8986
0
          }
8987
0
        } else {
8988
0
          goto handle_unusual;
8989
0
        }
8990
0
        break;
8991
0
      }
8992
8993
      // repeated .yb.DatumMessagePB new_tuple = 5;
8994
0
      case 5: {
8995
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8996
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8997
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_new_tuple()));
8998
0
        } else {
8999
0
          goto handle_unusual;
9000
0
        }
9001
0
        break;
9002
0
      }
9003
9004
      // repeated .yb.DatumMessagePB old_tuple = 6;
9005
0
      case 6: {
9006
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9007
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
9008
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_old_tuple()));
9009
0
        } else {
9010
0
          goto handle_unusual;
9011
0
        }
9012
0
        break;
9013
0
      }
9014
9015
      // repeated .yb.cdc.TypeInfo new_typeinfo = 7;
9016
0
      case 7: {
9017
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9018
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
9019
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_new_typeinfo()));
9020
0
        } else {
9021
0
          goto handle_unusual;
9022
0
        }
9023
0
        break;
9024
0
      }
9025
9026
      // optional .yb.cdc.CDCSDKSchemaPB schema = 8;
9027
0
      case 8: {
9028
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9029
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
9030
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9031
0
               input, mutable_schema()));
9032
0
        } else {
9033
0
          goto handle_unusual;
9034
0
        }
9035
0
        break;
9036
0
      }
9037
9038
      // optional uint32 schema_version = 9;
9039
0
      case 9: {
9040
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9041
0
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
9042
0
          set_has_schema_version();
9043
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9044
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
9045
0
                 input, &schema_version_)));
9046
0
        } else {
9047
0
          goto handle_unusual;
9048
0
        }
9049
0
        break;
9050
0
      }
9051
9052
      // optional string new_table_name = 10;
9053
0
      case 10: {
9054
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9055
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
9056
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9057
0
                input, this->mutable_new_table_name()));
9058
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9059
0
            this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
9060
0
            ::google::protobuf::internal::WireFormat::PARSE,
9061
0
            "yb.cdc.RowMessage.new_table_name");
9062
0
        } else {
9063
0
          goto handle_unusual;
9064
0
        }
9065
0
        break;
9066
0
      }
9067
9068
      // optional string pgschema_name = 11;
9069
0
      case 11: {
9070
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9071
0
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
9072
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9073
0
                input, this->mutable_pgschema_name()));
9074
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9075
0
            this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
9076
0
            ::google::protobuf::internal::WireFormat::PARSE,
9077
0
            "yb.cdc.RowMessage.pgschema_name");
9078
0
        } else {
9079
0
          goto handle_unusual;
9080
0
        }
9081
0
        break;
9082
0
      }
9083
9084
      // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13;
9085
0
      case 13: {
9086
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9087
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
9088
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9089
0
               input, mutable_truncate_request_info()));
9090
0
        } else {
9091
0
          goto handle_unusual;
9092
0
        }
9093
0
        break;
9094
0
      }
9095
9096
0
      default: {
9097
0
      handle_unusual:
9098
0
        if (tag == 0) {
9099
0
          goto success;
9100
0
        }
9101
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9102
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9103
0
        break;
9104
0
      }
9105
0
    }
9106
0
  }
9107
0
success:
9108
  // @@protoc_insertion_point(parse_success:yb.cdc.RowMessage)
9109
0
  return true;
9110
0
failure:
9111
  // @@protoc_insertion_point(parse_failure:yb.cdc.RowMessage)
9112
0
  return false;
9113
0
#undef DO_
9114
0
}
9115
9116
void RowMessage::SerializeWithCachedSizes(
9117
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9118
  // @@protoc_insertion_point(serialize_start:yb.cdc.RowMessage)
9119
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9120
0
  (void) cached_has_bits;
9121
9122
0
  cached_has_bits = _has_bits_[0];
9123
  // optional bytes transaction_id = 1;
9124
0
  if (cached_has_bits & 0x00000001u) {
9125
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9126
0
      1, this->transaction_id(), output);
9127
0
  }
9128
9129
  // optional uint64 commit_time = 2;
9130
0
  if (cached_has_bits & 0x00000040u) {
9131
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->commit_time(), output);
9132
0
  }
9133
9134
  // optional string table = 3;
9135
0
  if (cached_has_bits & 0x00000002u) {
9136
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9137
0
      this->table().data(), static_cast<int>(this->table().length()),
9138
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9139
0
      "yb.cdc.RowMessage.table");
9140
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9141
0
      3, this->table(), output);
9142
0
  }
9143
9144
  // optional .yb.cdc.RowMessage.Op op = 4;
9145
0
  if (cached_has_bits & 0x00000100u) {
9146
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
9147
0
      4, this->op(), output);
9148
0
  }
9149
9150
  // repeated .yb.DatumMessagePB new_tuple = 5;
9151
0
  for (unsigned int i = 0,
9152
0
      n = static_cast<unsigned int>(this->new_tuple_size()); i < n; i++) {
9153
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9154
0
      5, this->new_tuple(static_cast<int>(i)), output);
9155
0
  }
9156
9157
  // repeated .yb.DatumMessagePB old_tuple = 6;
9158
0
  for (unsigned int i = 0,
9159
0
      n = static_cast<unsigned int>(this->old_tuple_size()); i < n; i++) {
9160
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9161
0
      6, this->old_tuple(static_cast<int>(i)), output);
9162
0
  }
9163
9164
  // repeated .yb.cdc.TypeInfo new_typeinfo = 7;
9165
0
  for (unsigned int i = 0,
9166
0
      n = static_cast<unsigned int>(this->new_typeinfo_size()); i < n; i++) {
9167
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9168
0
      7, this->new_typeinfo(static_cast<int>(i)), output);
9169
0
  }
9170
9171
  // optional .yb.cdc.CDCSDKSchemaPB schema = 8;
9172
0
  if (cached_has_bits & 0x00000010u) {
9173
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9174
0
      8, *this->schema_, output);
9175
0
  }
9176
9177
  // optional uint32 schema_version = 9;
9178
0
  if (cached_has_bits & 0x00000080u) {
9179
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->schema_version(), output);
9180
0
  }
9181
9182
  // optional string new_table_name = 10;
9183
0
  if (cached_has_bits & 0x00000004u) {
9184
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9185
0
      this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
9186
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9187
0
      "yb.cdc.RowMessage.new_table_name");
9188
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9189
0
      10, this->new_table_name(), output);
9190
0
  }
9191
9192
  // optional string pgschema_name = 11;
9193
0
  if (cached_has_bits & 0x00000008u) {
9194
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9195
0
      this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
9196
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9197
0
      "yb.cdc.RowMessage.pgschema_name");
9198
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9199
0
      11, this->pgschema_name(), output);
9200
0
  }
9201
9202
  // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13;
9203
0
  if (cached_has_bits & 0x00000020u) {
9204
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9205
0
      13, *this->truncate_request_info_, output);
9206
0
  }
9207
9208
0
  if (_internal_metadata_.have_unknown_fields()) {
9209
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9210
0
        _internal_metadata_.unknown_fields(), output);
9211
0
  }
9212
  // @@protoc_insertion_point(serialize_end:yb.cdc.RowMessage)
9213
0
}
9214
9215
::google::protobuf::uint8* RowMessage::InternalSerializeWithCachedSizesToArray(
9216
13.5k
    bool deterministic, ::google::protobuf::uint8* target) const {
9217
13.5k
  (void)deterministic; // Unused
9218
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.RowMessage)
9219
13.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
9220
13.5k
  (void) cached_has_bits;
9221
9222
13.5k
  cached_has_bits = _has_bits_[0];
9223
  // optional bytes transaction_id = 1;
9224
13.5k
  if (cached_has_bits & 0x00000001u) {
9225
321
    target =
9226
321
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9227
321
        1, this->transaction_id(), target);
9228
321
  }
9229
9230
  // optional uint64 commit_time = 2;
9231
13.5k
  if (cached_has_bits & 0x00000040u) {
9232
12.9k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->commit_time(), target);
9233
12.9k
  }
9234
9235
  // optional string table = 3;
9236
13.5k
  if (cached_has_bits & 0x00000002u) {
9237
13.5k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9238
13.5k
      this->table().data(), static_cast<int>(this->table().length()),
9239
13.5k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9240
13.5k
      "yb.cdc.RowMessage.table");
9241
13.5k
    target =
9242
13.5k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9243
13.5k
        3, this->table(), target);
9244
13.5k
  }
9245
9246
  // optional .yb.cdc.RowMessage.Op op = 4;
9247
13.5k
  if (cached_has_bits & 0x00000100u) {
9248
13.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9249
13.5k
      4, this->op(), target);
9250
13.5k
  }
9251
9252
  // repeated .yb.DatumMessagePB new_tuple = 5;
9253
13.5k
  for (unsigned int i = 0,
9254
52.7k
      n = static_cast<unsigned int>(this->new_tuple_size()); i < n; i++) {
9255
39.1k
    target = ::google::protobuf::internal::WireFormatLite::
9256
39.1k
      InternalWriteMessageToArray(
9257
39.1k
        5, this->new_tuple(static_cast<int>(i)), deterministic, target);
9258
39.1k
  }
9259
9260
  // repeated .yb.DatumMessagePB old_tuple = 6;
9261
13.5k
  for (unsigned int i = 0,
9262
52.7k
      n = static_cast<unsigned int>(this->old_tuple_size()); i < n; i++) {
9263
39.1k
    target = ::google::protobuf::internal::WireFormatLite::
9264
39.1k
      InternalWriteMessageToArray(
9265
39.1k
        6, this->old_tuple(static_cast<int>(i)), deterministic, target);
9266
39.1k
  }
9267
9268
  // repeated .yb.cdc.TypeInfo new_typeinfo = 7;
9269
13.5k
  for (unsigned int i = 0,
9270
13.5k
      n = static_cast<unsigned int>(this->new_typeinfo_size()); i < n; i++) {
9271
0
    target = ::google::protobuf::internal::WireFormatLite::
9272
0
      InternalWriteMessageToArray(
9273
0
        7, this->new_typeinfo(static_cast<int>(i)), deterministic, target);
9274
0
  }
9275
9276
  // optional .yb.cdc.CDCSDKSchemaPB schema = 8;
9277
13.5k
  if (cached_has_bits & 0x00000010u) {
9278
314
    target = ::google::protobuf::internal::WireFormatLite::
9279
314
      InternalWriteMessageToArray(
9280
314
        8, *this->schema_, deterministic, target);
9281
314
  }
9282
9283
  // optional uint32 schema_version = 9;
9284
13.5k
  if (cached_has_bits & 0x00000080u) {
9285
314
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->schema_version(), target);
9286
314
  }
9287
9288
  // optional string new_table_name = 10;
9289
13.5k
  if (cached_has_bits & 0x00000004u) {
9290
152
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9291
152
      this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
9292
152
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9293
152
      "yb.cdc.RowMessage.new_table_name");
9294
152
    target =
9295
152
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9296
152
        10, this->new_table_name(), target);
9297
152
  }
9298
9299
  // optional string pgschema_name = 11;
9300
13.5k
  if (cached_has_bits & 0x00000008u) {
9301
13.4k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9302
13.4k
      this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
9303
13.4k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9304
13.4k
      "yb.cdc.RowMessage.pgschema_name");
9305
13.4k
    target =
9306
13.4k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9307
13.4k
        11, this->pgschema_name(), target);
9308
13.4k
  }
9309
9310
  // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13;
9311
13.5k
  if (cached_has_bits & 0x00000020u) {
9312
0
    target = ::google::protobuf::internal::WireFormatLite::
9313
0
      InternalWriteMessageToArray(
9314
0
        13, *this->truncate_request_info_, deterministic, target);
9315
0
  }
9316
9317
13.5k
  if (_internal_metadata_.have_unknown_fields()) {
9318
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9319
0
        _internal_metadata_.unknown_fields(), target);
9320
0
  }
9321
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.RowMessage)
9322
13.5k
  return target;
9323
13.5k
}
9324
9325
27.1k
size_t RowMessage::ByteSizeLong() const {
9326
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.RowMessage)
9327
27.1k
  size_t total_size = 0;
9328
9329
27.1k
  if (_internal_metadata_.have_unknown_fields()) {
9330
0
    total_size +=
9331
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9332
0
        _internal_metadata_.unknown_fields());
9333
0
  }
9334
  // repeated .yb.DatumMessagePB new_tuple = 5;
9335
27.1k
  {
9336
27.1k
    unsigned int count = static_cast<unsigned int>(this->new_tuple_size());
9337
27.1k
    total_size += 1UL * count;
9338
105k
    for (unsigned int i = 0; i < count; i++) {
9339
78.3k
      total_size +=
9340
78.3k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9341
78.3k
          this->new_tuple(static_cast<int>(i)));
9342
78.3k
    }
9343
27.1k
  }
9344
9345
  // repeated .yb.DatumMessagePB old_tuple = 6;
9346
27.1k
  {
9347
27.1k
    unsigned int count = static_cast<unsigned int>(this->old_tuple_size());
9348
27.1k
    total_size += 1UL * count;
9349
105k
    for (unsigned int i = 0; i < count; i++) {
9350
78.3k
      total_size +=
9351
78.3k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9352
78.3k
          this->old_tuple(static_cast<int>(i)));
9353
78.3k
    }
9354
27.1k
  }
9355
9356
  // repeated .yb.cdc.TypeInfo new_typeinfo = 7;
9357
27.1k
  {
9358
27.1k
    unsigned int count = static_cast<unsigned int>(this->new_typeinfo_size());
9359
27.1k
    total_size += 1UL * count;
9360
27.1k
    for (unsigned int i = 0; i < count; i++) {
9361
0
      total_size +=
9362
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9363
0
          this->new_typeinfo(static_cast<int>(i)));
9364
0
    }
9365
27.1k
  }
9366
9367
27.1k
  if (_has_bits_[0 / 32] & 255u) {
9368
    // optional bytes transaction_id = 1;
9369
27.1k
    if (has_transaction_id()) {
9370
642
      total_size += 1 +
9371
642
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9372
642
          this->transaction_id());
9373
642
    }
9374
9375
    // optional string table = 3;
9376
27.1k
    if (has_table()) {
9377
27.1k
      total_size += 1 +
9378
27.1k
        ::google::protobuf::internal::WireFormatLite::StringSize(
9379
27.1k
          this->table());
9380
27.1k
    }
9381
9382
    // optional string new_table_name = 10;
9383
27.1k
    if (has_new_table_name()) {
9384
304
      total_size += 1 +
9385
304
        ::google::protobuf::internal::WireFormatLite::StringSize(
9386
304
          this->new_table_name());
9387
304
    }
9388
9389
    // optional string pgschema_name = 11;
9390
27.1k
    if (has_pgschema_name()) {
9391
26.8k
      total_size += 1 +
9392
26.8k
        ::google::protobuf::internal::WireFormatLite::StringSize(
9393
26.8k
          this->pgschema_name());
9394
26.8k
    }
9395
9396
    // optional .yb.cdc.CDCSDKSchemaPB schema = 8;
9397
27.1k
    if (has_schema()) {
9398
628
      total_size += 1 +
9399
628
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9400
628
          *this->schema_);
9401
628
    }
9402
9403
    // optional .yb.tserver.TruncateRequestPB truncate_request_info = 13;
9404
27.1k
    if (has_truncate_request_info()) {
9405
0
      total_size += 1 +
9406
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9407
0
          *this->truncate_request_info_);
9408
0
    }
9409
9410
    // optional uint64 commit_time = 2;
9411
27.1k
    if (has_commit_time()) {
9412
25.9k
      total_size += 1 +
9413
25.9k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9414
25.9k
          this->commit_time());
9415
25.9k
    }
9416
9417
    // optional uint32 schema_version = 9;
9418
27.1k
    if (has_schema_version()) {
9419
628
      total_size += 1 +
9420
628
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
9421
628
          this->schema_version());
9422
628
    }
9423
9424
27.1k
  }
9425
  // optional .yb.cdc.RowMessage.Op op = 4;
9426
27.1k
  if (has_op()) {
9427
27.1k
    total_size += 1 +
9428
27.1k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
9429
27.1k
  }
9430
9431
27.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9432
27.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9433
27.1k
  _cached_size_ = cached_size;
9434
27.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9435
27.1k
  return total_size;
9436
27.1k
}
9437
9438
0
void RowMessage::MergeFrom(const ::google::protobuf::Message& from) {
9439
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.RowMessage)
9440
0
  GOOGLE_DCHECK_NE(&from, this);
9441
0
  const RowMessage* source =
9442
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RowMessage>(
9443
0
          &from);
9444
0
  if (source == NULL) {
9445
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.RowMessage)
9446
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9447
0
  } else {
9448
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.RowMessage)
9449
0
    MergeFrom(*source);
9450
0
  }
9451
0
}
9452
9453
173
void RowMessage::MergeFrom(const RowMessage& from) {
9454
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.RowMessage)
9455
173
  GOOGLE_DCHECK_NE(&from, this);
9456
173
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9457
173
  ::google::protobuf::uint32 cached_has_bits = 0;
9458
173
  (void) cached_has_bits;
9459
9460
173
  new_tuple_.MergeFrom(from.new_tuple_);
9461
173
  old_tuple_.MergeFrom(from.old_tuple_);
9462
173
  new_typeinfo_.MergeFrom(from.new_typeinfo_);
9463
173
  cached_has_bits = from._has_bits_[0];
9464
173
  if (cached_has_bits & 255u) {
9465
173
    if (cached_has_bits & 0x00000001u) {
9466
173
      set_has_transaction_id();
9467
173
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
9468
173
    }
9469
173
    if (cached_has_bits & 0x00000002u) {
9470
173
      set_has_table();
9471
173
      table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_);
9472
173
    }
9473
173
    if (cached_has_bits & 0x00000004u) {
9474
0
      set_has_new_table_name();
9475
0
      new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
9476
0
    }
9477
173
    if (cached_has_bits & 0x00000008u) {
9478
173
      set_has_pgschema_name();
9479
173
      pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_);
9480
173
    }
9481
173
    if (cached_has_bits & 0x00000010u) {
9482
0
      mutable_schema()->::yb::cdc::CDCSDKSchemaPB::MergeFrom(from.schema());
9483
0
    }
9484
173
    if (cached_has_bits & 0x00000020u) {
9485
0
      mutable_truncate_request_info()->::yb::tserver::TruncateRequestPB::MergeFrom(from.truncate_request_info());
9486
0
    }
9487
173
    if (cached_has_bits & 0x00000040u) {
9488
0
      commit_time_ = from.commit_time_;
9489
0
    }
9490
173
    if (cached_has_bits & 0x00000080u) {
9491
0
      schema_version_ = from.schema_version_;
9492
0
    }
9493
173
    _has_bits_[0] |= cached_has_bits;
9494
173
  }
9495
173
  if (cached_has_bits & 0x00000100u) {
9496
173
    set_op(from.op());
9497
173
  }
9498
173
}
9499
9500
0
void RowMessage::CopyFrom(const ::google::protobuf::Message& from) {
9501
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.RowMessage)
9502
0
  if (&from == this) return;
9503
0
  Clear();
9504
0
  MergeFrom(from);
9505
0
}
9506
9507
173
void RowMessage::CopyFrom(const RowMessage& from) {
9508
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.RowMessage)
9509
173
  if (&from == this) return;
9510
173
  Clear();
9511
173
  MergeFrom(from);
9512
173
}
9513
9514
792
bool RowMessage::IsInitialized() const {
9515
792
  return true;
9516
792
}
9517
9518
0
void RowMessage::Swap(RowMessage* other) {
9519
0
  if (other == this) return;
9520
0
  InternalSwap(other);
9521
0
}
9522
0
void RowMessage::InternalSwap(RowMessage* other) {
9523
0
  using std::swap;
9524
0
  new_tuple_.InternalSwap(&other->new_tuple_);
9525
0
  old_tuple_.InternalSwap(&other->old_tuple_);
9526
0
  new_typeinfo_.InternalSwap(&other->new_typeinfo_);
9527
0
  transaction_id_.Swap(&other->transaction_id_);
9528
0
  table_.Swap(&other->table_);
9529
0
  new_table_name_.Swap(&other->new_table_name_);
9530
0
  pgschema_name_.Swap(&other->pgschema_name_);
9531
0
  swap(schema_, other->schema_);
9532
0
  swap(truncate_request_info_, other->truncate_request_info_);
9533
0
  swap(commit_time_, other->commit_time_);
9534
0
  swap(schema_version_, other->schema_version_);
9535
0
  swap(op_, other->op_);
9536
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9537
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9538
0
  swap(_cached_size_, other->_cached_size_);
9539
0
}
9540
9541
0
::google::protobuf::Metadata RowMessage::GetMetadata() const {
9542
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
9543
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
9544
0
}
9545
9546
9547
// ===================================================================
9548
9549
9.25k
void CDCSDKProtoRecordPB::InitAsDefaultInstance() {
9550
9.25k
  ::yb::cdc::_CDCSDKProtoRecordPB_default_instance_._instance.get_mutable()->row_message_ = const_cast< ::yb::cdc::RowMessage*>(
9551
9.25k
      ::yb::cdc::RowMessage::internal_default_instance());
9552
9.25k
  ::yb::cdc::_CDCSDKProtoRecordPB_default_instance_._instance.get_mutable()->cdc_sdk_op_id_ = const_cast< ::yb::cdc::CDCSDKOpIdPB*>(
9553
9.25k
      ::yb::cdc::CDCSDKOpIdPB::internal_default_instance());
9554
9.25k
}
9555
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9556
const int CDCSDKProtoRecordPB::kRowMessageFieldNumber;
9557
const int CDCSDKProtoRecordPB::kCdcSdkOpIdFieldNumber;
9558
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9559
9560
CDCSDKProtoRecordPB::CDCSDKProtoRecordPB()
9561
22.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9562
13.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9563
13.6k
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB();
9564
13.6k
  }
9565
22.9k
  SharedCtor();
9566
  // @@protoc_insertion_point(constructor:yb.cdc.CDCSDKProtoRecordPB)
9567
22.9k
}
9568
CDCSDKProtoRecordPB::CDCSDKProtoRecordPB(const CDCSDKProtoRecordPB& from)
9569
  : ::google::protobuf::Message(),
9570
      _internal_metadata_(NULL),
9571
      _has_bits_(from._has_bits_),
9572
0
      _cached_size_(0) {
9573
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9574
0
  if (from.has_row_message()) {
9575
0
    row_message_ = new ::yb::cdc::RowMessage(*from.row_message_);
9576
0
  } else {
9577
0
    row_message_ = NULL;
9578
0
  }
9579
0
  if (from.has_cdc_sdk_op_id()) {
9580
0
    cdc_sdk_op_id_ = new ::yb::cdc::CDCSDKOpIdPB(*from.cdc_sdk_op_id_);
9581
0
  } else {
9582
0
    cdc_sdk_op_id_ = NULL;
9583
0
  }
9584
  // @@protoc_insertion_point(copy_constructor:yb.cdc.CDCSDKProtoRecordPB)
9585
0
}
9586
9587
22.9k
void CDCSDKProtoRecordPB::SharedCtor() {
9588
22.9k
  _cached_size_ = 0;
9589
22.9k
  ::memset(&row_message_, 0, static_cast<size_t>(
9590
22.9k
      reinterpret_cast<char*>(&cdc_sdk_op_id_) -
9591
22.9k
      reinterpret_cast<char*>(&row_message_)) + sizeof(cdc_sdk_op_id_));
9592
22.9k
}
9593
9594
13.6k
CDCSDKProtoRecordPB::~CDCSDKProtoRecordPB() {
9595
  // @@protoc_insertion_point(destructor:yb.cdc.CDCSDKProtoRecordPB)
9596
13.6k
  SharedDtor();
9597
13.6k
}
9598
9599
13.6k
void CDCSDKProtoRecordPB::SharedDtor() {
9600
13.6k
  if (this != internal_default_instance()) delete row_message_;
9601
13.6k
  if (this != internal_default_instance()) delete cdc_sdk_op_id_;
9602
13.6k
}
9603
9604
0
void CDCSDKProtoRecordPB::SetCachedSize(int size) const {
9605
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9606
0
  _cached_size_ = size;
9607
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9608
0
}
9609
0
const ::google::protobuf::Descriptor* CDCSDKProtoRecordPB::descriptor() {
9610
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
9611
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9612
0
}
9613
9614
0
const CDCSDKProtoRecordPB& CDCSDKProtoRecordPB::default_instance() {
9615
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsCDCSDKProtoRecordPB();
9616
0
  return *internal_default_instance();
9617
0
}
9618
9619
0
CDCSDKProtoRecordPB* CDCSDKProtoRecordPB::New(::google::protobuf::Arena* arena) const {
9620
0
  CDCSDKProtoRecordPB* n = new CDCSDKProtoRecordPB;
9621
0
  if (arena != NULL) {
9622
0
    arena->Own(n);
9623
0
  }
9624
0
  return n;
9625
0
}
9626
9627
346
void CDCSDKProtoRecordPB::Clear() {
9628
// @@protoc_insertion_point(message_clear_start:yb.cdc.CDCSDKProtoRecordPB)
9629
346
  ::google::protobuf::uint32 cached_has_bits = 0;
9630
  // Prevent compiler warnings about cached_has_bits being unused
9631
346
  (void) cached_has_bits;
9632
9633
346
  cached_has_bits = _has_bits_[0];
9634
346
  if (cached_has_bits & 3u) {
9635
173
    if (cached_has_bits & 0x00000001u) {
9636
74
      GOOGLE_DCHECK(row_message_ != NULL);
9637
74
      row_message_->Clear();
9638
74
    }
9639
173
    if (cached_has_bits & 0x00000002u) {
9640
99
      GOOGLE_DCHECK(cdc_sdk_op_id_ != NULL);
9641
99
      cdc_sdk_op_id_->Clear();
9642
99
    }
9643
173
  }
9644
346
  _has_bits_.Clear();
9645
346
  _internal_metadata_.Clear();
9646
346
}
9647
9648
bool CDCSDKProtoRecordPB::MergePartialFromCodedStream(
9649
0
    ::google::protobuf::io::CodedInputStream* input) {
9650
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9651
0
  ::google::protobuf::uint32 tag;
9652
  // @@protoc_insertion_point(parse_start:yb.cdc.CDCSDKProtoRecordPB)
9653
0
  for (;;) {
9654
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9655
0
    tag = p.first;
9656
0
    if (!p.second) goto handle_unusual;
9657
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9658
      // optional .yb.cdc.RowMessage row_message = 1;
9659
0
      case 1: {
9660
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9661
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9662
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9663
0
               input, mutable_row_message()));
9664
0
        } else {
9665
0
          goto handle_unusual;
9666
0
        }
9667
0
        break;
9668
0
      }
9669
9670
      // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2;
9671
0
      case 2: {
9672
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9673
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9674
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9675
0
               input, mutable_cdc_sdk_op_id()));
9676
0
        } else {
9677
0
          goto handle_unusual;
9678
0
        }
9679
0
        break;
9680
0
      }
9681
9682
0
      default: {
9683
0
      handle_unusual:
9684
0
        if (tag == 0) {
9685
0
          goto success;
9686
0
        }
9687
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9688
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9689
0
        break;
9690
0
      }
9691
0
    }
9692
0
  }
9693
0
success:
9694
  // @@protoc_insertion_point(parse_success:yb.cdc.CDCSDKProtoRecordPB)
9695
0
  return true;
9696
0
failure:
9697
  // @@protoc_insertion_point(parse_failure:yb.cdc.CDCSDKProtoRecordPB)
9698
0
  return false;
9699
0
#undef DO_
9700
0
}
9701
9702
void CDCSDKProtoRecordPB::SerializeWithCachedSizes(
9703
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9704
  // @@protoc_insertion_point(serialize_start:yb.cdc.CDCSDKProtoRecordPB)
9705
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9706
0
  (void) cached_has_bits;
9707
9708
0
  cached_has_bits = _has_bits_[0];
9709
  // optional .yb.cdc.RowMessage row_message = 1;
9710
0
  if (cached_has_bits & 0x00000001u) {
9711
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9712
0
      1, *this->row_message_, output);
9713
0
  }
9714
9715
  // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2;
9716
0
  if (cached_has_bits & 0x00000002u) {
9717
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9718
0
      2, *this->cdc_sdk_op_id_, output);
9719
0
  }
9720
9721
0
  if (_internal_metadata_.have_unknown_fields()) {
9722
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9723
0
        _internal_metadata_.unknown_fields(), output);
9724
0
  }
9725
  // @@protoc_insertion_point(serialize_end:yb.cdc.CDCSDKProtoRecordPB)
9726
0
}
9727
9728
::google::protobuf::uint8* CDCSDKProtoRecordPB::InternalSerializeWithCachedSizesToArray(
9729
13.5k
    bool deterministic, ::google::protobuf::uint8* target) const {
9730
13.5k
  (void)deterministic; // Unused
9731
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.CDCSDKProtoRecordPB)
9732
13.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
9733
13.5k
  (void) cached_has_bits;
9734
9735
13.5k
  cached_has_bits = _has_bits_[0];
9736
  // optional .yb.cdc.RowMessage row_message = 1;
9737
13.5k
  if (cached_has_bits & 0x00000001u) {
9738
13.5k
    target = ::google::protobuf::internal::WireFormatLite::
9739
13.5k
      InternalWriteMessageToArray(
9740
13.5k
        1, *this->row_message_, deterministic, target);
9741
13.5k
  }
9742
9743
  // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2;
9744
13.5k
  if (cached_has_bits & 0x00000002u) {
9745
604
    target = ::google::protobuf::internal::WireFormatLite::
9746
604
      InternalWriteMessageToArray(
9747
604
        2, *this->cdc_sdk_op_id_, deterministic, target);
9748
604
  }
9749
9750
13.5k
  if (_internal_metadata_.have_unknown_fields()) {
9751
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9752
0
        _internal_metadata_.unknown_fields(), target);
9753
0
  }
9754
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.CDCSDKProtoRecordPB)
9755
13.5k
  return target;
9756
13.5k
}
9757
9758
27.1k
size_t CDCSDKProtoRecordPB::ByteSizeLong() const {
9759
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.CDCSDKProtoRecordPB)
9760
27.1k
  size_t total_size = 0;
9761
9762
27.1k
  if (_internal_metadata_.have_unknown_fields()) {
9763
0
    total_size +=
9764
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9765
0
        _internal_metadata_.unknown_fields());
9766
0
  }
9767
27.1k
  if (_has_bits_[0 / 32] & 3u) {
9768
    // optional .yb.cdc.RowMessage row_message = 1;
9769
27.1k
    if (has_row_message()) {
9770
27.1k
      total_size += 1 +
9771
27.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9772
27.1k
          *this->row_message_);
9773
27.1k
    }
9774
9775
    // optional .yb.cdc.CDCSDKOpIdPB cdc_sdk_op_id = 2;
9776
27.1k
    if (has_cdc_sdk_op_id()) {
9777
1.20k
      total_size += 1 +
9778
1.20k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9779
1.20k
          *this->cdc_sdk_op_id_);
9780
1.20k
    }
9781
9782
27.1k
  }
9783
27.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9784
27.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9785
27.1k
  _cached_size_ = cached_size;
9786
27.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9787
27.1k
  return total_size;
9788
27.1k
}
9789
9790
0
void CDCSDKProtoRecordPB::MergeFrom(const ::google::protobuf::Message& from) {
9791
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.CDCSDKProtoRecordPB)
9792
0
  GOOGLE_DCHECK_NE(&from, this);
9793
0
  const CDCSDKProtoRecordPB* source =
9794
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCSDKProtoRecordPB>(
9795
0
          &from);
9796
0
  if (source == NULL) {
9797
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.CDCSDKProtoRecordPB)
9798
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9799
0
  } else {
9800
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.CDCSDKProtoRecordPB)
9801
0
    MergeFrom(*source);
9802
0
  }
9803
0
}
9804
9805
173
void CDCSDKProtoRecordPB::MergeFrom(const CDCSDKProtoRecordPB& from) {
9806
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.CDCSDKProtoRecordPB)
9807
173
  GOOGLE_DCHECK_NE(&from, this);
9808
173
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9809
173
  ::google::protobuf::uint32 cached_has_bits = 0;
9810
173
  (void) cached_has_bits;
9811
9812
173
  cached_has_bits = from._has_bits_[0];
9813
173
  if (cached_has_bits & 3u) {
9814
173
    if (cached_has_bits & 0x00000001u) {
9815
0
      mutable_row_message()->::yb::cdc::RowMessage::MergeFrom(from.row_message());
9816
0
    }
9817
173
    if (cached_has_bits & 0x00000002u) {
9818
173
      mutable_cdc_sdk_op_id()->::yb::cdc::CDCSDKOpIdPB::MergeFrom(from.cdc_sdk_op_id());
9819
173
    }
9820
173
  }
9821
173
}
9822
9823
0
void CDCSDKProtoRecordPB::CopyFrom(const ::google::protobuf::Message& from) {
9824
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.CDCSDKProtoRecordPB)
9825
0
  if (&from == this) return;
9826
0
  Clear();
9827
0
  MergeFrom(from);
9828
0
}
9829
9830
173
void CDCSDKProtoRecordPB::CopyFrom(const CDCSDKProtoRecordPB& from) {
9831
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.CDCSDKProtoRecordPB)
9832
173
  if (&from == this) return;
9833
173
  Clear();
9834
173
  MergeFrom(from);
9835
173
}
9836
9837
0
bool CDCSDKProtoRecordPB::IsInitialized() const {
9838
0
  return true;
9839
0
}
9840
9841
0
void CDCSDKProtoRecordPB::Swap(CDCSDKProtoRecordPB* other) {
9842
0
  if (other == this) return;
9843
0
  InternalSwap(other);
9844
0
}
9845
0
void CDCSDKProtoRecordPB::InternalSwap(CDCSDKProtoRecordPB* other) {
9846
0
  using std::swap;
9847
0
  swap(row_message_, other->row_message_);
9848
0
  swap(cdc_sdk_op_id_, other->cdc_sdk_op_id_);
9849
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9850
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9851
0
  swap(_cached_size_, other->_cached_size_);
9852
0
}
9853
9854
0
::google::protobuf::Metadata CDCSDKProtoRecordPB::GetMetadata() const {
9855
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
9856
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
9857
0
}
9858
9859
9860
// ===================================================================
9861
9862
11.1k
void GetChangesResponsePB::InitAsDefaultInstance() {
9863
11.1k
  ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
9864
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
9865
11.1k
  ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>(
9866
11.1k
      ::yb::cdc::CDCCheckpointPB::internal_default_instance());
9867
11.1k
  ::yb::cdc::_GetChangesResponsePB_default_instance_._instance.get_mutable()->cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>(
9868
11.1k
      ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance());
9869
11.1k
}
9870
0
void GetChangesResponsePB::clear_tserver() {
9871
0
  tserver_.Clear();
9872
0
}
9873
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9874
const int GetChangesResponsePB::kErrorFieldNumber;
9875
const int GetChangesResponsePB::kRecordTypeFieldNumber;
9876
const int GetChangesResponsePB::kRecordFormatFieldNumber;
9877
const int GetChangesResponsePB::kRecordsFieldNumber;
9878
const int GetChangesResponsePB::kCheckpointFieldNumber;
9879
const int GetChangesResponsePB::kTserverFieldNumber;
9880
const int GetChangesResponsePB::kCdcSdkProtoRecordsFieldNumber;
9881
const int GetChangesResponsePB::kCdcSdkCheckpointFieldNumber;
9882
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9883
9884
GetChangesResponsePB::GetChangesResponsePB()
9885
11.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9886
320
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9887
320
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesResponsePB();
9888
320
  }
9889
11.5k
  SharedCtor();
9890
  // @@protoc_insertion_point(constructor:yb.cdc.GetChangesResponsePB)
9891
11.5k
}
9892
GetChangesResponsePB::GetChangesResponsePB(const GetChangesResponsePB& from)
9893
  : ::google::protobuf::Message(),
9894
      _internal_metadata_(NULL),
9895
      _has_bits_(from._has_bits_),
9896
      _cached_size_(0),
9897
      records_(from.records_),
9898
      tserver_(from.tserver_),
9899
0
      cdc_sdk_proto_records_(from.cdc_sdk_proto_records_) {
9900
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9901
0
  if (from.has_error()) {
9902
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
9903
0
  } else {
9904
0
    error_ = NULL;
9905
0
  }
9906
0
  if (from.has_checkpoint()) {
9907
0
    checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_);
9908
0
  } else {
9909
0
    checkpoint_ = NULL;
9910
0
  }
9911
0
  if (from.has_cdc_sdk_checkpoint()) {
9912
0
    cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.cdc_sdk_checkpoint_);
9913
0
  } else {
9914
0
    cdc_sdk_checkpoint_ = NULL;
9915
0
  }
9916
0
  ::memcpy(&record_type_, &from.record_type_,
9917
0
    static_cast<size_t>(reinterpret_cast<char*>(&record_format_) -
9918
0
    reinterpret_cast<char*>(&record_type_)) + sizeof(record_format_));
9919
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetChangesResponsePB)
9920
0
}
9921
9922
11.5k
void GetChangesResponsePB::SharedCtor() {
9923
11.5k
  _cached_size_ = 0;
9924
11.5k
  ::memset(&error_, 0, static_cast<size_t>(
9925
11.5k
      reinterpret_cast<char*>(&cdc_sdk_checkpoint_) -
9926
11.5k
      reinterpret_cast<char*>(&error_)) + sizeof(cdc_sdk_checkpoint_));
9927
11.5k
  record_type_ = 1;
9928
11.5k
  record_format_ = 1;
9929
11.5k
}
9930
9931
320
GetChangesResponsePB::~GetChangesResponsePB() {
9932
  // @@protoc_insertion_point(destructor:yb.cdc.GetChangesResponsePB)
9933
320
  SharedDtor();
9934
320
}
9935
9936
320
void GetChangesResponsePB::SharedDtor() {
9937
320
  if (this != internal_default_instance()) delete error_;
9938
320
  if (this != internal_default_instance()) delete checkpoint_;
9939
320
  if (this != internal_default_instance()) delete cdc_sdk_checkpoint_;
9940
320
}
9941
9942
0
void GetChangesResponsePB::SetCachedSize(int size) const {
9943
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9944
0
  _cached_size_ = size;
9945
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9946
0
}
9947
0
const ::google::protobuf::Descriptor* GetChangesResponsePB::descriptor() {
9948
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
9949
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9950
0
}
9951
9952
0
const GetChangesResponsePB& GetChangesResponsePB::default_instance() {
9953
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetChangesResponsePB();
9954
0
  return *internal_default_instance();
9955
0
}
9956
9957
0
GetChangesResponsePB* GetChangesResponsePB::New(::google::protobuf::Arena* arena) const {
9958
0
  GetChangesResponsePB* n = new GetChangesResponsePB;
9959
0
  if (arena != NULL) {
9960
0
    arena->Own(n);
9961
0
  }
9962
0
  return n;
9963
0
}
9964
9965
0
void GetChangesResponsePB::Clear() {
9966
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetChangesResponsePB)
9967
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9968
  // Prevent compiler warnings about cached_has_bits being unused
9969
0
  (void) cached_has_bits;
9970
9971
0
  records_.Clear();
9972
0
  tserver_.Clear();
9973
0
  cdc_sdk_proto_records_.Clear();
9974
0
  cached_has_bits = _has_bits_[0];
9975
0
  if (cached_has_bits & 31u) {
9976
0
    if (cached_has_bits & 0x00000001u) {
9977
0
      GOOGLE_DCHECK(error_ != NULL);
9978
0
      error_->Clear();
9979
0
    }
9980
0
    if (cached_has_bits & 0x00000002u) {
9981
0
      GOOGLE_DCHECK(checkpoint_ != NULL);
9982
0
      checkpoint_->Clear();
9983
0
    }
9984
0
    if (cached_has_bits & 0x00000004u) {
9985
0
      GOOGLE_DCHECK(cdc_sdk_checkpoint_ != NULL);
9986
0
      cdc_sdk_checkpoint_->Clear();
9987
0
    }
9988
0
    record_type_ = 1;
9989
0
    record_format_ = 1;
9990
0
  }
9991
0
  _has_bits_.Clear();
9992
0
  _internal_metadata_.Clear();
9993
0
}
9994
9995
bool GetChangesResponsePB::MergePartialFromCodedStream(
9996
0
    ::google::protobuf::io::CodedInputStream* input) {
9997
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9998
0
  ::google::protobuf::uint32 tag;
9999
  // @@protoc_insertion_point(parse_start:yb.cdc.GetChangesResponsePB)
10000
0
  for (;;) {
10001
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10002
0
    tag = p.first;
10003
0
    if (!p.second) goto handle_unusual;
10004
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10005
      // optional .yb.cdc.CDCErrorPB error = 1;
10006
0
      case 1: {
10007
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10008
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10009
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10010
0
               input, mutable_error()));
10011
0
        } else {
10012
0
          goto handle_unusual;
10013
0
        }
10014
0
        break;
10015
0
      }
10016
10017
      // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
10018
0
      case 2: {
10019
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10020
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
10021
0
          int value;
10022
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10023
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10024
0
                 input, &value)));
10025
0
          if (::yb::cdc::CDCRecordType_IsValid(value)) {
10026
0
            set_record_type(static_cast< ::yb::cdc::CDCRecordType >(value));
10027
0
          } else {
10028
0
            mutable_unknown_fields()->AddVarint(
10029
0
                2, static_cast< ::google::protobuf::uint64>(value));
10030
0
          }
10031
0
        } else {
10032
0
          goto handle_unusual;
10033
0
        }
10034
0
        break;
10035
0
      }
10036
10037
      // optional .yb.cdc.CDCRecordFormat record_format = 3;
10038
0
      case 3: {
10039
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10040
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
10041
0
          int value;
10042
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10043
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10044
0
                 input, &value)));
10045
0
          if (::yb::cdc::CDCRecordFormat_IsValid(value)) {
10046
0
            set_record_format(static_cast< ::yb::cdc::CDCRecordFormat >(value));
10047
0
          } else {
10048
0
            mutable_unknown_fields()->AddVarint(
10049
0
                3, static_cast< ::google::protobuf::uint64>(value));
10050
0
          }
10051
0
        } else {
10052
0
          goto handle_unusual;
10053
0
        }
10054
0
        break;
10055
0
      }
10056
10057
      // repeated .yb.cdc.CDCRecordPB records = 4;
10058
0
      case 4: {
10059
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10060
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
10061
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_records()));
10062
0
        } else {
10063
0
          goto handle_unusual;
10064
0
        }
10065
0
        break;
10066
0
      }
10067
10068
      // optional .yb.cdc.CDCCheckpointPB checkpoint = 5;
10069
0
      case 5: {
10070
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10071
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
10072
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10073
0
               input, mutable_checkpoint()));
10074
0
        } else {
10075
0
          goto handle_unusual;
10076
0
        }
10077
0
        break;
10078
0
      }
10079
10080
      // repeated .yb.HostPortPB tserver = 6;
10081
0
      case 6: {
10082
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10083
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
10084
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tserver()));
10085
0
        } else {
10086
0
          goto handle_unusual;
10087
0
        }
10088
0
        break;
10089
0
      }
10090
10091
      // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8;
10092
0
      case 8: {
10093
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10094
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
10095
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_cdc_sdk_proto_records()));
10096
0
        } else {
10097
0
          goto handle_unusual;
10098
0
        }
10099
0
        break;
10100
0
      }
10101
10102
      // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9;
10103
0
      case 9: {
10104
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10105
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
10106
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10107
0
               input, mutable_cdc_sdk_checkpoint()));
10108
0
        } else {
10109
0
          goto handle_unusual;
10110
0
        }
10111
0
        break;
10112
0
      }
10113
10114
0
      default: {
10115
0
      handle_unusual:
10116
0
        if (tag == 0) {
10117
0
          goto success;
10118
0
        }
10119
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10120
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10121
0
        break;
10122
0
      }
10123
0
    }
10124
0
  }
10125
0
success:
10126
  // @@protoc_insertion_point(parse_success:yb.cdc.GetChangesResponsePB)
10127
0
  return true;
10128
0
failure:
10129
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetChangesResponsePB)
10130
0
  return false;
10131
0
#undef DO_
10132
0
}
10133
10134
void GetChangesResponsePB::SerializeWithCachedSizes(
10135
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10136
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetChangesResponsePB)
10137
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10138
0
  (void) cached_has_bits;
10139
10140
0
  cached_has_bits = _has_bits_[0];
10141
  // optional .yb.cdc.CDCErrorPB error = 1;
10142
0
  if (cached_has_bits & 0x00000001u) {
10143
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10144
0
      1, *this->error_, output);
10145
0
  }
10146
10147
  // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
10148
0
  if (cached_has_bits & 0x00000008u) {
10149
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10150
0
      2, this->record_type(), output);
10151
0
  }
10152
10153
  // optional .yb.cdc.CDCRecordFormat record_format = 3;
10154
0
  if (cached_has_bits & 0x00000010u) {
10155
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10156
0
      3, this->record_format(), output);
10157
0
  }
10158
10159
  // repeated .yb.cdc.CDCRecordPB records = 4;
10160
0
  for (unsigned int i = 0,
10161
0
      n = static_cast<unsigned int>(this->records_size()); i < n; i++) {
10162
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10163
0
      4, this->records(static_cast<int>(i)), output);
10164
0
  }
10165
10166
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 5;
10167
0
  if (cached_has_bits & 0x00000002u) {
10168
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10169
0
      5, *this->checkpoint_, output);
10170
0
  }
10171
10172
  // repeated .yb.HostPortPB tserver = 6;
10173
0
  for (unsigned int i = 0,
10174
0
      n = static_cast<unsigned int>(this->tserver_size()); i < n; i++) {
10175
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10176
0
      6, this->tserver(static_cast<int>(i)), output);
10177
0
  }
10178
10179
  // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8;
10180
0
  for (unsigned int i = 0,
10181
0
      n = static_cast<unsigned int>(this->cdc_sdk_proto_records_size()); i < n; i++) {
10182
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10183
0
      8, this->cdc_sdk_proto_records(static_cast<int>(i)), output);
10184
0
  }
10185
10186
  // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9;
10187
0
  if (cached_has_bits & 0x00000004u) {
10188
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10189
0
      9, *this->cdc_sdk_checkpoint_, output);
10190
0
  }
10191
10192
0
  if (_internal_metadata_.have_unknown_fields()) {
10193
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10194
0
        _internal_metadata_.unknown_fields(), output);
10195
0
  }
10196
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetChangesResponsePB)
10197
0
}
10198
10199
::google::protobuf::uint8* GetChangesResponsePB::InternalSerializeWithCachedSizesToArray(
10200
320
    bool deterministic, ::google::protobuf::uint8* target) const {
10201
320
  (void)deterministic; // Unused
10202
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetChangesResponsePB)
10203
320
  ::google::protobuf::uint32 cached_has_bits = 0;
10204
320
  (void) cached_has_bits;
10205
10206
320
  cached_has_bits = _has_bits_[0];
10207
  // optional .yb.cdc.CDCErrorPB error = 1;
10208
320
  if (cached_has_bits & 0x00000001u) {
10209
1
    target = ::google::protobuf::internal::WireFormatLite::
10210
1
      InternalWriteMessageToArray(
10211
1
        1, *this->error_, deterministic, target);
10212
1
  }
10213
10214
  // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
10215
320
  if (cached_has_bits & 0x00000008u) {
10216
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10217
0
      2, this->record_type(), target);
10218
0
  }
10219
10220
  // optional .yb.cdc.CDCRecordFormat record_format = 3;
10221
320
  if (cached_has_bits & 0x00000010u) {
10222
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10223
0
      3, this->record_format(), target);
10224
0
  }
10225
10226
  // repeated .yb.cdc.CDCRecordPB records = 4;
10227
320
  for (unsigned int i = 0,
10228
320
      n = static_cast<unsigned int>(this->records_size()); i < n; i++) {
10229
0
    target = ::google::protobuf::internal::WireFormatLite::
10230
0
      InternalWriteMessageToArray(
10231
0
        4, this->records(static_cast<int>(i)), deterministic, target);
10232
0
  }
10233
10234
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 5;
10235
320
  if (cached_has_bits & 0x00000002u) {
10236
307
    target = ::google::protobuf::internal::WireFormatLite::
10237
307
      InternalWriteMessageToArray(
10238
307
        5, *this->checkpoint_, deterministic, target);
10239
307
  }
10240
10241
  // repeated .yb.HostPortPB tserver = 6;
10242
320
  for (unsigned int i = 0,
10243
320
      n = static_cast<unsigned int>(this->tserver_size()); i < n; i++) {
10244
0
    target = ::google::protobuf::internal::WireFormatLite::
10245
0
      InternalWriteMessageToArray(
10246
0
        6, this->tserver(static_cast<int>(i)), deterministic, target);
10247
0
  }
10248
10249
  // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8;
10250
320
  for (unsigned int i = 0,
10251
13.9k
      n = static_cast<unsigned int>(this->cdc_sdk_proto_records_size()); i < n; i++) {
10252
13.5k
    target = ::google::protobuf::internal::WireFormatLite::
10253
13.5k
      InternalWriteMessageToArray(
10254
13.5k
        8, this->cdc_sdk_proto_records(static_cast<int>(i)), deterministic, target);
10255
13.5k
  }
10256
10257
  // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9;
10258
320
  if (cached_has_bits & 0x00000004u) {
10259
319
    target = ::google::protobuf::internal::WireFormatLite::
10260
319
      InternalWriteMessageToArray(
10261
319
        9, *this->cdc_sdk_checkpoint_, deterministic, target);
10262
319
  }
10263
10264
320
  if (_internal_metadata_.have_unknown_fields()) {
10265
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10266
0
        _internal_metadata_.unknown_fields(), target);
10267
0
  }
10268
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetChangesResponsePB)
10269
320
  return target;
10270
320
}
10271
10272
640
size_t GetChangesResponsePB::ByteSizeLong() const {
10273
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetChangesResponsePB)
10274
640
  size_t total_size = 0;
10275
10276
640
  if (_internal_metadata_.have_unknown_fields()) {
10277
0
    total_size +=
10278
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10279
0
        _internal_metadata_.unknown_fields());
10280
0
  }
10281
  // repeated .yb.cdc.CDCRecordPB records = 4;
10282
640
  {
10283
640
    unsigned int count = static_cast<unsigned int>(this->records_size());
10284
640
    total_size += 1UL * count;
10285
640
    for (unsigned int i = 0; i < count; i++) {
10286
0
      total_size +=
10287
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10288
0
          this->records(static_cast<int>(i)));
10289
0
    }
10290
640
  }
10291
10292
  // repeated .yb.HostPortPB tserver = 6;
10293
640
  {
10294
640
    unsigned int count = static_cast<unsigned int>(this->tserver_size());
10295
640
    total_size += 1UL * count;
10296
640
    for (unsigned int i = 0; i < count; i++) {
10297
0
      total_size +=
10298
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10299
0
          this->tserver(static_cast<int>(i)));
10300
0
    }
10301
640
  }
10302
10303
  // repeated .yb.cdc.CDCSDKProtoRecordPB cdc_sdk_proto_records = 8;
10304
640
  {
10305
640
    unsigned int count = static_cast<unsigned int>(this->cdc_sdk_proto_records_size());
10306
640
    total_size += 1UL * count;
10307
27.8k
    for (unsigned int i = 0; i < count; i++) {
10308
27.1k
      total_size +=
10309
27.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10310
27.1k
          this->cdc_sdk_proto_records(static_cast<int>(i)));
10311
27.1k
    }
10312
640
  }
10313
10314
640
  if (_has_bits_[0 / 32] & 31u) {
10315
    // optional .yb.cdc.CDCErrorPB error = 1;
10316
640
    if (has_error()) {
10317
2
      total_size += 1 +
10318
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10319
2
          *this->error_);
10320
2
    }
10321
10322
    // optional .yb.cdc.CDCCheckpointPB checkpoint = 5;
10323
640
    if (has_checkpoint()) {
10324
614
      total_size += 1 +
10325
614
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10326
614
          *this->checkpoint_);
10327
614
    }
10328
10329
    // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 9;
10330
640
    if (has_cdc_sdk_checkpoint()) {
10331
638
      total_size += 1 +
10332
638
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10333
638
          *this->cdc_sdk_checkpoint_);
10334
638
    }
10335
10336
    // optional .yb.cdc.CDCRecordType record_type = 2 [default = CHANGE];
10337
640
    if (has_record_type()) {
10338
0
      total_size += 1 +
10339
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_type());
10340
0
    }
10341
10342
    // optional .yb.cdc.CDCRecordFormat record_format = 3;
10343
640
    if (has_record_format()) {
10344
0
      total_size += 1 +
10345
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->record_format());
10346
0
    }
10347
10348
640
  }
10349
640
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10350
640
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10351
640
  _cached_size_ = cached_size;
10352
640
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10353
640
  return total_size;
10354
640
}
10355
10356
0
void GetChangesResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
10357
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetChangesResponsePB)
10358
0
  GOOGLE_DCHECK_NE(&from, this);
10359
0
  const GetChangesResponsePB* source =
10360
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetChangesResponsePB>(
10361
0
          &from);
10362
0
  if (source == NULL) {
10363
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetChangesResponsePB)
10364
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10365
0
  } else {
10366
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetChangesResponsePB)
10367
0
    MergeFrom(*source);
10368
0
  }
10369
0
}
10370
10371
0
void GetChangesResponsePB::MergeFrom(const GetChangesResponsePB& from) {
10372
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetChangesResponsePB)
10373
0
  GOOGLE_DCHECK_NE(&from, this);
10374
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10375
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10376
0
  (void) cached_has_bits;
10377
10378
0
  records_.MergeFrom(from.records_);
10379
0
  tserver_.MergeFrom(from.tserver_);
10380
0
  cdc_sdk_proto_records_.MergeFrom(from.cdc_sdk_proto_records_);
10381
0
  cached_has_bits = from._has_bits_[0];
10382
0
  if (cached_has_bits & 31u) {
10383
0
    if (cached_has_bits & 0x00000001u) {
10384
0
      mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
10385
0
    }
10386
0
    if (cached_has_bits & 0x00000002u) {
10387
0
      mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint());
10388
0
    }
10389
0
    if (cached_has_bits & 0x00000004u) {
10390
0
      mutable_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.cdc_sdk_checkpoint());
10391
0
    }
10392
0
    if (cached_has_bits & 0x00000008u) {
10393
0
      record_type_ = from.record_type_;
10394
0
    }
10395
0
    if (cached_has_bits & 0x00000010u) {
10396
0
      record_format_ = from.record_format_;
10397
0
    }
10398
0
    _has_bits_[0] |= cached_has_bits;
10399
0
  }
10400
0
}
10401
10402
0
void GetChangesResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
10403
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetChangesResponsePB)
10404
0
  if (&from == this) return;
10405
0
  Clear();
10406
0
  MergeFrom(from);
10407
0
}
10408
10409
0
void GetChangesResponsePB::CopyFrom(const GetChangesResponsePB& from) {
10410
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetChangesResponsePB)
10411
0
  if (&from == this) return;
10412
0
  Clear();
10413
0
  MergeFrom(from);
10414
0
}
10415
10416
320
bool GetChangesResponsePB::IsInitialized() const {
10417
320
  if (!::google::protobuf::internal::AllAreInitialized(this->records())) return false;
10418
320
  if (!::google::protobuf::internal::AllAreInitialized(this->tserver())) return false;
10419
320
  if (has_error()) {
10420
1
    if (!this->error_->IsInitialized()) return false;
10421
320
  }
10422
320
  if (has_checkpoint()) {
10423
307
    if (!this->checkpoint_->IsInitialized()) return false;
10424
320
  }
10425
320
  return true;
10426
320
}
10427
10428
0
void GetChangesResponsePB::Swap(GetChangesResponsePB* other) {
10429
0
  if (other == this) return;
10430
0
  InternalSwap(other);
10431
0
}
10432
0
void GetChangesResponsePB::InternalSwap(GetChangesResponsePB* other) {
10433
0
  using std::swap;
10434
0
  records_.InternalSwap(&other->records_);
10435
0
  tserver_.InternalSwap(&other->tserver_);
10436
0
  cdc_sdk_proto_records_.InternalSwap(&other->cdc_sdk_proto_records_);
10437
0
  swap(error_, other->error_);
10438
0
  swap(checkpoint_, other->checkpoint_);
10439
0
  swap(cdc_sdk_checkpoint_, other->cdc_sdk_checkpoint_);
10440
0
  swap(record_type_, other->record_type_);
10441
0
  swap(record_format_, other->record_format_);
10442
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10443
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10444
0
  swap(_cached_size_, other->_cached_size_);
10445
0
}
10446
10447
0
::google::protobuf::Metadata GetChangesResponsePB::GetMetadata() const {
10448
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
10449
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
10450
0
}
10451
10452
10453
// ===================================================================
10454
10455
11.1k
void GetCheckpointRequestPB::InitAsDefaultInstance() {
10456
11.1k
}
10457
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10458
const int GetCheckpointRequestPB::kStreamIdFieldNumber;
10459
const int GetCheckpointRequestPB::kTabletIdFieldNumber;
10460
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10461
10462
GetCheckpointRequestPB::GetCheckpointRequestPB()
10463
11.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10464
7
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10465
7
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointRequestPB();
10466
7
  }
10467
11.2k
  SharedCtor();
10468
  // @@protoc_insertion_point(constructor:yb.cdc.GetCheckpointRequestPB)
10469
11.2k
}
10470
GetCheckpointRequestPB::GetCheckpointRequestPB(const GetCheckpointRequestPB& from)
10471
  : ::google::protobuf::Message(),
10472
      _internal_metadata_(NULL),
10473
      _has_bits_(from._has_bits_),
10474
0
      _cached_size_(0) {
10475
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10476
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10477
0
  if (from.has_stream_id()) {
10478
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
10479
0
  }
10480
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10481
0
  if (from.has_tablet_id()) {
10482
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
10483
0
  }
10484
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCheckpointRequestPB)
10485
0
}
10486
10487
11.2k
void GetCheckpointRequestPB::SharedCtor() {
10488
11.2k
  _cached_size_ = 0;
10489
11.2k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10490
11.2k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10491
11.2k
}
10492
10493
7
GetCheckpointRequestPB::~GetCheckpointRequestPB() {
10494
  // @@protoc_insertion_point(destructor:yb.cdc.GetCheckpointRequestPB)
10495
7
  SharedDtor();
10496
7
}
10497
10498
7
void GetCheckpointRequestPB::SharedDtor() {
10499
7
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10500
7
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10501
7
}
10502
10503
0
void GetCheckpointRequestPB::SetCachedSize(int size) const {
10504
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10505
0
  _cached_size_ = size;
10506
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10507
0
}
10508
0
const ::google::protobuf::Descriptor* GetCheckpointRequestPB::descriptor() {
10509
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
10510
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10511
0
}
10512
10513
0
const GetCheckpointRequestPB& GetCheckpointRequestPB::default_instance() {
10514
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointRequestPB();
10515
0
  return *internal_default_instance();
10516
0
}
10517
10518
0
GetCheckpointRequestPB* GetCheckpointRequestPB::New(::google::protobuf::Arena* arena) const {
10519
0
  GetCheckpointRequestPB* n = new GetCheckpointRequestPB;
10520
0
  if (arena != NULL) {
10521
0
    arena->Own(n);
10522
0
  }
10523
0
  return n;
10524
0
}
10525
10526
7
void GetCheckpointRequestPB::Clear() {
10527
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetCheckpointRequestPB)
10528
7
  ::google::protobuf::uint32 cached_has_bits = 0;
10529
  // Prevent compiler warnings about cached_has_bits being unused
10530
7
  (void) cached_has_bits;
10531
10532
7
  cached_has_bits = _has_bits_[0];
10533
7
  if (cached_has_bits & 3u) {
10534
0
    if (cached_has_bits & 0x00000001u) {
10535
0
      GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10536
0
      (*stream_id_.UnsafeRawStringPointer())->clear();
10537
0
    }
10538
0
    if (cached_has_bits & 0x00000002u) {
10539
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10540
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
10541
0
    }
10542
0
  }
10543
7
  _has_bits_.Clear();
10544
7
  _internal_metadata_.Clear();
10545
7
}
10546
10547
bool GetCheckpointRequestPB::MergePartialFromCodedStream(
10548
7
    ::google::protobuf::io::CodedInputStream* input) {
10549
14
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10550
7
  ::google::protobuf::uint32 tag;
10551
  // @@protoc_insertion_point(parse_start:yb.cdc.GetCheckpointRequestPB)
10552
21
  for (;;) {
10553
21
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10554
21
    tag = p.first;
10555
21
    if (!p.second) goto handle_unusual;
10556
14
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10557
      // optional bytes stream_id = 1;
10558
7
      case 1: {
10559
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10560
7
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10561
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10562
7
                input, this->mutable_stream_id()));
10563
0
        } else {
10564
0
          goto handle_unusual;
10565
0
        }
10566
7
        break;
10567
7
      }
10568
10569
      // optional bytes tablet_id = 2;
10570
7
      case 2: {
10571
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10572
7
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10573
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10574
7
                input, this->mutable_tablet_id()));
10575
0
        } else {
10576
0
          goto handle_unusual;
10577
0
        }
10578
7
        break;
10579
7
      }
10580
10581
0
      default: {
10582
7
      handle_unusual:
10583
7
        if (tag == 0) {
10584
7
          goto success;
10585
7
        }
10586
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10587
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10588
0
        break;
10589
0
      }
10590
14
    }
10591
14
  }
10592
7
success:
10593
  // @@protoc_insertion_point(parse_success:yb.cdc.GetCheckpointRequestPB)
10594
7
  return true;
10595
0
failure:
10596
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetCheckpointRequestPB)
10597
0
  return false;
10598
7
#undef DO_
10599
7
}
10600
10601
void GetCheckpointRequestPB::SerializeWithCachedSizes(
10602
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10603
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetCheckpointRequestPB)
10604
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10605
0
  (void) cached_has_bits;
10606
10607
0
  cached_has_bits = _has_bits_[0];
10608
  // optional bytes stream_id = 1;
10609
0
  if (cached_has_bits & 0x00000001u) {
10610
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10611
0
      1, this->stream_id(), output);
10612
0
  }
10613
10614
  // optional bytes tablet_id = 2;
10615
0
  if (cached_has_bits & 0x00000002u) {
10616
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10617
0
      2, this->tablet_id(), output);
10618
0
  }
10619
10620
0
  if (_internal_metadata_.have_unknown_fields()) {
10621
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10622
0
        _internal_metadata_.unknown_fields(), output);
10623
0
  }
10624
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetCheckpointRequestPB)
10625
0
}
10626
10627
::google::protobuf::uint8* GetCheckpointRequestPB::InternalSerializeWithCachedSizesToArray(
10628
0
    bool deterministic, ::google::protobuf::uint8* target) const {
10629
0
  (void)deterministic; // Unused
10630
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCheckpointRequestPB)
10631
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10632
0
  (void) cached_has_bits;
10633
10634
0
  cached_has_bits = _has_bits_[0];
10635
  // optional bytes stream_id = 1;
10636
0
  if (cached_has_bits & 0x00000001u) {
10637
0
    target =
10638
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10639
0
        1, this->stream_id(), target);
10640
0
  }
10641
10642
  // optional bytes tablet_id = 2;
10643
0
  if (cached_has_bits & 0x00000002u) {
10644
0
    target =
10645
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10646
0
        2, this->tablet_id(), target);
10647
0
  }
10648
10649
0
  if (_internal_metadata_.have_unknown_fields()) {
10650
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10651
0
        _internal_metadata_.unknown_fields(), target);
10652
0
  }
10653
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCheckpointRequestPB)
10654
0
  return target;
10655
0
}
10656
10657
0
size_t GetCheckpointRequestPB::ByteSizeLong() const {
10658
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCheckpointRequestPB)
10659
0
  size_t total_size = 0;
10660
10661
0
  if (_internal_metadata_.have_unknown_fields()) {
10662
0
    total_size +=
10663
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10664
0
        _internal_metadata_.unknown_fields());
10665
0
  }
10666
0
  if (_has_bits_[0 / 32] & 3u) {
10667
    // optional bytes stream_id = 1;
10668
0
    if (has_stream_id()) {
10669
0
      total_size += 1 +
10670
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10671
0
          this->stream_id());
10672
0
    }
10673
10674
    // optional bytes tablet_id = 2;
10675
0
    if (has_tablet_id()) {
10676
0
      total_size += 1 +
10677
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10678
0
          this->tablet_id());
10679
0
    }
10680
10681
0
  }
10682
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10683
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10684
0
  _cached_size_ = cached_size;
10685
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10686
0
  return total_size;
10687
0
}
10688
10689
0
void GetCheckpointRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
10690
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCheckpointRequestPB)
10691
0
  GOOGLE_DCHECK_NE(&from, this);
10692
0
  const GetCheckpointRequestPB* source =
10693
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetCheckpointRequestPB>(
10694
0
          &from);
10695
0
  if (source == NULL) {
10696
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCheckpointRequestPB)
10697
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10698
0
  } else {
10699
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCheckpointRequestPB)
10700
0
    MergeFrom(*source);
10701
0
  }
10702
0
}
10703
10704
0
void GetCheckpointRequestPB::MergeFrom(const GetCheckpointRequestPB& from) {
10705
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCheckpointRequestPB)
10706
0
  GOOGLE_DCHECK_NE(&from, this);
10707
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10708
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10709
0
  (void) cached_has_bits;
10710
10711
0
  cached_has_bits = from._has_bits_[0];
10712
0
  if (cached_has_bits & 3u) {
10713
0
    if (cached_has_bits & 0x00000001u) {
10714
0
      set_has_stream_id();
10715
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
10716
0
    }
10717
0
    if (cached_has_bits & 0x00000002u) {
10718
0
      set_has_tablet_id();
10719
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
10720
0
    }
10721
0
  }
10722
0
}
10723
10724
0
void GetCheckpointRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
10725
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCheckpointRequestPB)
10726
0
  if (&from == this) return;
10727
0
  Clear();
10728
0
  MergeFrom(from);
10729
0
}
10730
10731
0
void GetCheckpointRequestPB::CopyFrom(const GetCheckpointRequestPB& from) {
10732
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCheckpointRequestPB)
10733
0
  if (&from == this) return;
10734
0
  Clear();
10735
0
  MergeFrom(from);
10736
0
}
10737
10738
7
bool GetCheckpointRequestPB::IsInitialized() const {
10739
7
  return true;
10740
7
}
10741
10742
0
void GetCheckpointRequestPB::Swap(GetCheckpointRequestPB* other) {
10743
0
  if (other == this) return;
10744
0
  InternalSwap(other);
10745
0
}
10746
0
void GetCheckpointRequestPB::InternalSwap(GetCheckpointRequestPB* other) {
10747
0
  using std::swap;
10748
0
  stream_id_.Swap(&other->stream_id_);
10749
0
  tablet_id_.Swap(&other->tablet_id_);
10750
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10751
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10752
0
  swap(_cached_size_, other->_cached_size_);
10753
0
}
10754
10755
7
::google::protobuf::Metadata GetCheckpointRequestPB::GetMetadata() const {
10756
7
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
10757
7
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
10758
7
}
10759
10760
10761
// ===================================================================
10762
10763
11.1k
void GetCheckpointResponsePB::InitAsDefaultInstance() {
10764
11.1k
  ::yb::cdc::_GetCheckpointResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
10765
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
10766
11.1k
  ::yb::cdc::_GetCheckpointResponsePB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>(
10767
11.1k
      ::yb::cdc::CDCCheckpointPB::internal_default_instance());
10768
11.1k
}
10769
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10770
const int GetCheckpointResponsePB::kErrorFieldNumber;
10771
const int GetCheckpointResponsePB::kCheckpointFieldNumber;
10772
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10773
10774
GetCheckpointResponsePB::GetCheckpointResponsePB()
10775
11.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10776
7
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10777
7
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointResponsePB();
10778
7
  }
10779
11.2k
  SharedCtor();
10780
  // @@protoc_insertion_point(constructor:yb.cdc.GetCheckpointResponsePB)
10781
11.2k
}
10782
GetCheckpointResponsePB::GetCheckpointResponsePB(const GetCheckpointResponsePB& from)
10783
  : ::google::protobuf::Message(),
10784
      _internal_metadata_(NULL),
10785
      _has_bits_(from._has_bits_),
10786
0
      _cached_size_(0) {
10787
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10788
0
  if (from.has_error()) {
10789
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
10790
0
  } else {
10791
0
    error_ = NULL;
10792
0
  }
10793
0
  if (from.has_checkpoint()) {
10794
0
    checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_);
10795
0
  } else {
10796
0
    checkpoint_ = NULL;
10797
0
  }
10798
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCheckpointResponsePB)
10799
0
}
10800
10801
11.2k
void GetCheckpointResponsePB::SharedCtor() {
10802
11.2k
  _cached_size_ = 0;
10803
11.2k
  ::memset(&error_, 0, static_cast<size_t>(
10804
11.2k
      reinterpret_cast<char*>(&checkpoint_) -
10805
11.2k
      reinterpret_cast<char*>(&error_)) + sizeof(checkpoint_));
10806
11.2k
}
10807
10808
7
GetCheckpointResponsePB::~GetCheckpointResponsePB() {
10809
  // @@protoc_insertion_point(destructor:yb.cdc.GetCheckpointResponsePB)
10810
7
  SharedDtor();
10811
7
}
10812
10813
7
void GetCheckpointResponsePB::SharedDtor() {
10814
7
  if (this != internal_default_instance()) delete error_;
10815
7
  if (this != internal_default_instance()) delete checkpoint_;
10816
7
}
10817
10818
0
void GetCheckpointResponsePB::SetCachedSize(int size) const {
10819
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10820
0
  _cached_size_ = size;
10821
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10822
0
}
10823
0
const ::google::protobuf::Descriptor* GetCheckpointResponsePB::descriptor() {
10824
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
10825
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10826
0
}
10827
10828
0
const GetCheckpointResponsePB& GetCheckpointResponsePB::default_instance() {
10829
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCheckpointResponsePB();
10830
0
  return *internal_default_instance();
10831
0
}
10832
10833
0
GetCheckpointResponsePB* GetCheckpointResponsePB::New(::google::protobuf::Arena* arena) const {
10834
0
  GetCheckpointResponsePB* n = new GetCheckpointResponsePB;
10835
0
  if (arena != NULL) {
10836
0
    arena->Own(n);
10837
0
  }
10838
0
  return n;
10839
0
}
10840
10841
0
void GetCheckpointResponsePB::Clear() {
10842
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetCheckpointResponsePB)
10843
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10844
  // Prevent compiler warnings about cached_has_bits being unused
10845
0
  (void) cached_has_bits;
10846
10847
0
  cached_has_bits = _has_bits_[0];
10848
0
  if (cached_has_bits & 3u) {
10849
0
    if (cached_has_bits & 0x00000001u) {
10850
0
      GOOGLE_DCHECK(error_ != NULL);
10851
0
      error_->Clear();
10852
0
    }
10853
0
    if (cached_has_bits & 0x00000002u) {
10854
0
      GOOGLE_DCHECK(checkpoint_ != NULL);
10855
0
      checkpoint_->Clear();
10856
0
    }
10857
0
  }
10858
0
  _has_bits_.Clear();
10859
0
  _internal_metadata_.Clear();
10860
0
}
10861
10862
bool GetCheckpointResponsePB::MergePartialFromCodedStream(
10863
0
    ::google::protobuf::io::CodedInputStream* input) {
10864
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10865
0
  ::google::protobuf::uint32 tag;
10866
  // @@protoc_insertion_point(parse_start:yb.cdc.GetCheckpointResponsePB)
10867
0
  for (;;) {
10868
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10869
0
    tag = p.first;
10870
0
    if (!p.second) goto handle_unusual;
10871
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10872
      // optional .yb.cdc.CDCErrorPB error = 1;
10873
0
      case 1: {
10874
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10875
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10876
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10877
0
               input, mutable_error()));
10878
0
        } else {
10879
0
          goto handle_unusual;
10880
0
        }
10881
0
        break;
10882
0
      }
10883
10884
      // optional .yb.cdc.CDCCheckpointPB checkpoint = 2;
10885
0
      case 2: {
10886
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10887
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10888
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10889
0
               input, mutable_checkpoint()));
10890
0
        } else {
10891
0
          goto handle_unusual;
10892
0
        }
10893
0
        break;
10894
0
      }
10895
10896
0
      default: {
10897
0
      handle_unusual:
10898
0
        if (tag == 0) {
10899
0
          goto success;
10900
0
        }
10901
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10902
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10903
0
        break;
10904
0
      }
10905
0
    }
10906
0
  }
10907
0
success:
10908
  // @@protoc_insertion_point(parse_success:yb.cdc.GetCheckpointResponsePB)
10909
0
  return true;
10910
0
failure:
10911
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetCheckpointResponsePB)
10912
0
  return false;
10913
0
#undef DO_
10914
0
}
10915
10916
void GetCheckpointResponsePB::SerializeWithCachedSizes(
10917
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10918
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetCheckpointResponsePB)
10919
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10920
0
  (void) cached_has_bits;
10921
10922
0
  cached_has_bits = _has_bits_[0];
10923
  // optional .yb.cdc.CDCErrorPB error = 1;
10924
0
  if (cached_has_bits & 0x00000001u) {
10925
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10926
0
      1, *this->error_, output);
10927
0
  }
10928
10929
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 2;
10930
0
  if (cached_has_bits & 0x00000002u) {
10931
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10932
0
      2, *this->checkpoint_, output);
10933
0
  }
10934
10935
0
  if (_internal_metadata_.have_unknown_fields()) {
10936
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10937
0
        _internal_metadata_.unknown_fields(), output);
10938
0
  }
10939
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetCheckpointResponsePB)
10940
0
}
10941
10942
::google::protobuf::uint8* GetCheckpointResponsePB::InternalSerializeWithCachedSizesToArray(
10943
7
    bool deterministic, ::google::protobuf::uint8* target) const {
10944
7
  (void)deterministic; // Unused
10945
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCheckpointResponsePB)
10946
7
  ::google::protobuf::uint32 cached_has_bits = 0;
10947
7
  (void) cached_has_bits;
10948
10949
7
  cached_has_bits = _has_bits_[0];
10950
  // optional .yb.cdc.CDCErrorPB error = 1;
10951
7
  if (cached_has_bits & 0x00000001u) {
10952
0
    target = ::google::protobuf::internal::WireFormatLite::
10953
0
      InternalWriteMessageToArray(
10954
0
        1, *this->error_, deterministic, target);
10955
0
  }
10956
10957
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 2;
10958
7
  if (cached_has_bits & 0x00000002u) {
10959
7
    target = ::google::protobuf::internal::WireFormatLite::
10960
7
      InternalWriteMessageToArray(
10961
7
        2, *this->checkpoint_, deterministic, target);
10962
7
  }
10963
10964
7
  if (_internal_metadata_.have_unknown_fields()) {
10965
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10966
0
        _internal_metadata_.unknown_fields(), target);
10967
0
  }
10968
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCheckpointResponsePB)
10969
7
  return target;
10970
7
}
10971
10972
14
size_t GetCheckpointResponsePB::ByteSizeLong() const {
10973
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCheckpointResponsePB)
10974
14
  size_t total_size = 0;
10975
10976
14
  if (_internal_metadata_.have_unknown_fields()) {
10977
0
    total_size +=
10978
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10979
0
        _internal_metadata_.unknown_fields());
10980
0
  }
10981
14
  if (_has_bits_[0 / 32] & 3u) {
10982
    // optional .yb.cdc.CDCErrorPB error = 1;
10983
14
    if (has_error()) {
10984
0
      total_size += 1 +
10985
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10986
0
          *this->error_);
10987
0
    }
10988
10989
    // optional .yb.cdc.CDCCheckpointPB checkpoint = 2;
10990
14
    if (has_checkpoint()) {
10991
14
      total_size += 1 +
10992
14
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10993
14
          *this->checkpoint_);
10994
14
    }
10995
10996
14
  }
10997
14
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10998
14
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10999
14
  _cached_size_ = cached_size;
11000
14
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11001
14
  return total_size;
11002
14
}
11003
11004
0
void GetCheckpointResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
11005
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCheckpointResponsePB)
11006
0
  GOOGLE_DCHECK_NE(&from, this);
11007
0
  const GetCheckpointResponsePB* source =
11008
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetCheckpointResponsePB>(
11009
0
          &from);
11010
0
  if (source == NULL) {
11011
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCheckpointResponsePB)
11012
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11013
0
  } else {
11014
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCheckpointResponsePB)
11015
0
    MergeFrom(*source);
11016
0
  }
11017
0
}
11018
11019
0
void GetCheckpointResponsePB::MergeFrom(const GetCheckpointResponsePB& from) {
11020
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCheckpointResponsePB)
11021
0
  GOOGLE_DCHECK_NE(&from, this);
11022
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11023
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11024
0
  (void) cached_has_bits;
11025
11026
0
  cached_has_bits = from._has_bits_[0];
11027
0
  if (cached_has_bits & 3u) {
11028
0
    if (cached_has_bits & 0x00000001u) {
11029
0
      mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
11030
0
    }
11031
0
    if (cached_has_bits & 0x00000002u) {
11032
0
      mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint());
11033
0
    }
11034
0
  }
11035
0
}
11036
11037
0
void GetCheckpointResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
11038
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCheckpointResponsePB)
11039
0
  if (&from == this) return;
11040
0
  Clear();
11041
0
  MergeFrom(from);
11042
0
}
11043
11044
0
void GetCheckpointResponsePB::CopyFrom(const GetCheckpointResponsePB& from) {
11045
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCheckpointResponsePB)
11046
0
  if (&from == this) return;
11047
0
  Clear();
11048
0
  MergeFrom(from);
11049
0
}
11050
11051
7
bool GetCheckpointResponsePB::IsInitialized() const {
11052
7
  if (has_error()) {
11053
0
    if (!this->error_->IsInitialized()) return false;
11054
7
  }
11055
7
  if (has_checkpoint()) {
11056
7
    if (!this->checkpoint_->IsInitialized()) return false;
11057
7
  }
11058
7
  return true;
11059
7
}
11060
11061
0
void GetCheckpointResponsePB::Swap(GetCheckpointResponsePB* other) {
11062
0
  if (other == this) return;
11063
0
  InternalSwap(other);
11064
0
}
11065
0
void GetCheckpointResponsePB::InternalSwap(GetCheckpointResponsePB* other) {
11066
0
  using std::swap;
11067
0
  swap(error_, other->error_);
11068
0
  swap(checkpoint_, other->checkpoint_);
11069
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11070
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11071
0
  swap(_cached_size_, other->_cached_size_);
11072
0
}
11073
11074
0
::google::protobuf::Metadata GetCheckpointResponsePB::GetMetadata() const {
11075
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11076
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
11077
0
}
11078
11079
11080
// ===================================================================
11081
11082
11.1k
void UpdateCdcReplicatedIndexRequestPB::InitAsDefaultInstance() {
11083
11.1k
}
11084
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11085
const int UpdateCdcReplicatedIndexRequestPB::kTabletIdFieldNumber;
11086
const int UpdateCdcReplicatedIndexRequestPB::kReplicatedIndexFieldNumber;
11087
const int UpdateCdcReplicatedIndexRequestPB::kReplicatedTermFieldNumber;
11088
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11089
11090
UpdateCdcReplicatedIndexRequestPB::UpdateCdcReplicatedIndexRequestPB()
11091
11.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11092
318
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11093
318
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexRequestPB();
11094
318
  }
11095
11.5k
  SharedCtor();
11096
  // @@protoc_insertion_point(constructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11097
11.5k
}
11098
UpdateCdcReplicatedIndexRequestPB::UpdateCdcReplicatedIndexRequestPB(const UpdateCdcReplicatedIndexRequestPB& from)
11099
  : ::google::protobuf::Message(),
11100
      _internal_metadata_(NULL),
11101
      _has_bits_(from._has_bits_),
11102
0
      _cached_size_(0) {
11103
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11104
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11105
0
  if (from.has_tablet_id()) {
11106
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
11107
0
  }
11108
0
  ::memcpy(&replicated_index_, &from.replicated_index_,
11109
0
    static_cast<size_t>(reinterpret_cast<char*>(&replicated_term_) -
11110
0
    reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_));
11111
  // @@protoc_insertion_point(copy_constructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11112
0
}
11113
11114
11.5k
void UpdateCdcReplicatedIndexRequestPB::SharedCtor() {
11115
11.5k
  _cached_size_ = 0;
11116
11.5k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11117
11.5k
  ::memset(&replicated_index_, 0, static_cast<size_t>(
11118
11.5k
      reinterpret_cast<char*>(&replicated_term_) -
11119
11.5k
      reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_));
11120
11.5k
}
11121
11122
318
UpdateCdcReplicatedIndexRequestPB::~UpdateCdcReplicatedIndexRequestPB() {
11123
  // @@protoc_insertion_point(destructor:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11124
318
  SharedDtor();
11125
318
}
11126
11127
318
void UpdateCdcReplicatedIndexRequestPB::SharedDtor() {
11128
318
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11129
318
}
11130
11131
0
void UpdateCdcReplicatedIndexRequestPB::SetCachedSize(int size) const {
11132
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11133
0
  _cached_size_ = size;
11134
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11135
0
}
11136
0
const ::google::protobuf::Descriptor* UpdateCdcReplicatedIndexRequestPB::descriptor() {
11137
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11138
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11139
0
}
11140
11141
0
const UpdateCdcReplicatedIndexRequestPB& UpdateCdcReplicatedIndexRequestPB::default_instance() {
11142
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexRequestPB();
11143
0
  return *internal_default_instance();
11144
0
}
11145
11146
0
UpdateCdcReplicatedIndexRequestPB* UpdateCdcReplicatedIndexRequestPB::New(::google::protobuf::Arena* arena) const {
11147
0
  UpdateCdcReplicatedIndexRequestPB* n = new UpdateCdcReplicatedIndexRequestPB;
11148
0
  if (arena != NULL) {
11149
0
    arena->Own(n);
11150
0
  }
11151
0
  return n;
11152
0
}
11153
11154
159
void UpdateCdcReplicatedIndexRequestPB::Clear() {
11155
// @@protoc_insertion_point(message_clear_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11156
159
  ::google::protobuf::uint32 cached_has_bits = 0;
11157
  // Prevent compiler warnings about cached_has_bits being unused
11158
159
  (void) cached_has_bits;
11159
11160
159
  cached_has_bits = _has_bits_[0];
11161
159
  if (cached_has_bits & 0x00000001u) {
11162
0
    GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11163
0
    (*tablet_id_.UnsafeRawStringPointer())->clear();
11164
0
  }
11165
159
  if (cached_has_bits & 6u) {
11166
0
    ::memset(&replicated_index_, 0, static_cast<size_t>(
11167
0
        reinterpret_cast<char*>(&replicated_term_) -
11168
0
        reinterpret_cast<char*>(&replicated_index_)) + sizeof(replicated_term_));
11169
0
  }
11170
159
  _has_bits_.Clear();
11171
159
  _internal_metadata_.Clear();
11172
159
}
11173
11174
bool UpdateCdcReplicatedIndexRequestPB::MergePartialFromCodedStream(
11175
159
    ::google::protobuf::io::CodedInputStream* input) {
11176
477
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11177
159
  ::google::protobuf::uint32 tag;
11178
  // @@protoc_insertion_point(parse_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11179
636
  for (;;) {
11180
636
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11181
636
    tag = p.first;
11182
636
    if (!p.second) goto handle_unusual;
11183
477
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11184
      // optional bytes tablet_id = 1;
11185
159
      case 1: {
11186
159
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11187
159
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11188
159
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11189
159
                input, this->mutable_tablet_id()));
11190
0
        } else {
11191
0
          goto handle_unusual;
11192
0
        }
11193
159
        break;
11194
159
      }
11195
11196
      // optional int64 replicated_index = 2;
11197
159
      case 2: {
11198
159
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11199
159
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11200
159
          set_has_replicated_index();
11201
159
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11202
159
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11203
159
                 input, &replicated_index_)));
11204
0
        } else {
11205
0
          goto handle_unusual;
11206
0
        }
11207
159
        break;
11208
159
      }
11209
11210
      // optional int64 replicated_term = 3;
11211
159
      case 3: {
11212
159
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11213
159
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
11214
159
          set_has_replicated_term();
11215
159
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11216
159
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11217
159
                 input, &replicated_term_)));
11218
0
        } else {
11219
0
          goto handle_unusual;
11220
0
        }
11221
159
        break;
11222
159
      }
11223
11224
0
      default: {
11225
159
      handle_unusual:
11226
159
        if (tag == 0) {
11227
159
          goto success;
11228
159
        }
11229
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11230
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11231
0
        break;
11232
0
      }
11233
477
    }
11234
477
  }
11235
159
success:
11236
  // @@protoc_insertion_point(parse_success:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11237
159
  return true;
11238
0
failure:
11239
  // @@protoc_insertion_point(parse_failure:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11240
0
  return false;
11241
159
#undef DO_
11242
159
}
11243
11244
void UpdateCdcReplicatedIndexRequestPB::SerializeWithCachedSizes(
11245
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11246
  // @@protoc_insertion_point(serialize_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11247
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11248
0
  (void) cached_has_bits;
11249
11250
0
  cached_has_bits = _has_bits_[0];
11251
  // optional bytes tablet_id = 1;
11252
0
  if (cached_has_bits & 0x00000001u) {
11253
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11254
0
      1, this->tablet_id(), output);
11255
0
  }
11256
11257
  // optional int64 replicated_index = 2;
11258
0
  if (cached_has_bits & 0x00000002u) {
11259
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->replicated_index(), output);
11260
0
  }
11261
11262
  // optional int64 replicated_term = 3;
11263
0
  if (cached_has_bits & 0x00000004u) {
11264
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->replicated_term(), output);
11265
0
  }
11266
11267
0
  if (_internal_metadata_.have_unknown_fields()) {
11268
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11269
0
        _internal_metadata_.unknown_fields(), output);
11270
0
  }
11271
  // @@protoc_insertion_point(serialize_end:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11272
0
}
11273
11274
::google::protobuf::uint8* UpdateCdcReplicatedIndexRequestPB::InternalSerializeWithCachedSizesToArray(
11275
159
    bool deterministic, ::google::protobuf::uint8* target) const {
11276
159
  (void)deterministic; // Unused
11277
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11278
159
  ::google::protobuf::uint32 cached_has_bits = 0;
11279
159
  (void) cached_has_bits;
11280
11281
159
  cached_has_bits = _has_bits_[0];
11282
  // optional bytes tablet_id = 1;
11283
159
  if (cached_has_bits & 0x00000001u) {
11284
159
    target =
11285
159
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11286
159
        1, this->tablet_id(), target);
11287
159
  }
11288
11289
  // optional int64 replicated_index = 2;
11290
159
  if (cached_has_bits & 0x00000002u) {
11291
159
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->replicated_index(), target);
11292
159
  }
11293
11294
  // optional int64 replicated_term = 3;
11295
159
  if (cached_has_bits & 0x00000004u) {
11296
159
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->replicated_term(), target);
11297
159
  }
11298
11299
159
  if (_internal_metadata_.have_unknown_fields()) {
11300
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11301
0
        _internal_metadata_.unknown_fields(), target);
11302
0
  }
11303
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11304
159
  return target;
11305
159
}
11306
11307
318
size_t UpdateCdcReplicatedIndexRequestPB::ByteSizeLong() const {
11308
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11309
318
  size_t total_size = 0;
11310
11311
318
  if (_internal_metadata_.have_unknown_fields()) {
11312
0
    total_size +=
11313
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11314
0
        _internal_metadata_.unknown_fields());
11315
0
  }
11316
318
  if (_has_bits_[0 / 32] & 7u) {
11317
    // optional bytes tablet_id = 1;
11318
318
    if (has_tablet_id()) {
11319
318
      total_size += 1 +
11320
318
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11321
318
          this->tablet_id());
11322
318
    }
11323
11324
    // optional int64 replicated_index = 2;
11325
318
    if (has_replicated_index()) {
11326
318
      total_size += 1 +
11327
318
        ::google::protobuf::internal::WireFormatLite::Int64Size(
11328
318
          this->replicated_index());
11329
318
    }
11330
11331
    // optional int64 replicated_term = 3;
11332
318
    if (has_replicated_term()) {
11333
318
      total_size += 1 +
11334
318
        ::google::protobuf::internal::WireFormatLite::Int64Size(
11335
318
          this->replicated_term());
11336
318
    }
11337
11338
318
  }
11339
318
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11340
318
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11341
318
  _cached_size_ = cached_size;
11342
318
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11343
318
  return total_size;
11344
318
}
11345
11346
0
void UpdateCdcReplicatedIndexRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
11347
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11348
0
  GOOGLE_DCHECK_NE(&from, this);
11349
0
  const UpdateCdcReplicatedIndexRequestPB* source =
11350
0
      ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCdcReplicatedIndexRequestPB>(
11351
0
          &from);
11352
0
  if (source == NULL) {
11353
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11354
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11355
0
  } else {
11356
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11357
0
    MergeFrom(*source);
11358
0
  }
11359
0
}
11360
11361
0
void UpdateCdcReplicatedIndexRequestPB::MergeFrom(const UpdateCdcReplicatedIndexRequestPB& from) {
11362
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11363
0
  GOOGLE_DCHECK_NE(&from, this);
11364
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11365
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11366
0
  (void) cached_has_bits;
11367
11368
0
  cached_has_bits = from._has_bits_[0];
11369
0
  if (cached_has_bits & 7u) {
11370
0
    if (cached_has_bits & 0x00000001u) {
11371
0
      set_has_tablet_id();
11372
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
11373
0
    }
11374
0
    if (cached_has_bits & 0x00000002u) {
11375
0
      replicated_index_ = from.replicated_index_;
11376
0
    }
11377
0
    if (cached_has_bits & 0x00000004u) {
11378
0
      replicated_term_ = from.replicated_term_;
11379
0
    }
11380
0
    _has_bits_[0] |= cached_has_bits;
11381
0
  }
11382
0
}
11383
11384
0
void UpdateCdcReplicatedIndexRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
11385
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11386
0
  if (&from == this) return;
11387
0
  Clear();
11388
0
  MergeFrom(from);
11389
0
}
11390
11391
0
void UpdateCdcReplicatedIndexRequestPB::CopyFrom(const UpdateCdcReplicatedIndexRequestPB& from) {
11392
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexRequestPB)
11393
0
  if (&from == this) return;
11394
0
  Clear();
11395
0
  MergeFrom(from);
11396
0
}
11397
11398
318
bool UpdateCdcReplicatedIndexRequestPB::IsInitialized() const {
11399
318
  return true;
11400
318
}
11401
11402
0
void UpdateCdcReplicatedIndexRequestPB::Swap(UpdateCdcReplicatedIndexRequestPB* other) {
11403
0
  if (other == this) return;
11404
0
  InternalSwap(other);
11405
0
}
11406
0
void UpdateCdcReplicatedIndexRequestPB::InternalSwap(UpdateCdcReplicatedIndexRequestPB* other) {
11407
0
  using std::swap;
11408
0
  tablet_id_.Swap(&other->tablet_id_);
11409
0
  swap(replicated_index_, other->replicated_index_);
11410
0
  swap(replicated_term_, other->replicated_term_);
11411
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11412
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11413
0
  swap(_cached_size_, other->_cached_size_);
11414
0
}
11415
11416
159
::google::protobuf::Metadata UpdateCdcReplicatedIndexRequestPB::GetMetadata() const {
11417
159
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11418
159
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
11419
159
}
11420
11421
11422
// ===================================================================
11423
11424
11.1k
void UpdateCdcReplicatedIndexResponsePB::InitAsDefaultInstance() {
11425
11.1k
  ::yb::cdc::_UpdateCdcReplicatedIndexResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
11426
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
11427
11.1k
}
11428
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11429
const int UpdateCdcReplicatedIndexResponsePB::kErrorFieldNumber;
11430
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11431
11432
UpdateCdcReplicatedIndexResponsePB::UpdateCdcReplicatedIndexResponsePB()
11433
11.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11434
318
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11435
318
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexResponsePB();
11436
318
  }
11437
11.5k
  SharedCtor();
11438
  // @@protoc_insertion_point(constructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11439
11.5k
}
11440
UpdateCdcReplicatedIndexResponsePB::UpdateCdcReplicatedIndexResponsePB(const UpdateCdcReplicatedIndexResponsePB& from)
11441
  : ::google::protobuf::Message(),
11442
      _internal_metadata_(NULL),
11443
      _has_bits_(from._has_bits_),
11444
0
      _cached_size_(0) {
11445
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11446
0
  if (from.has_error()) {
11447
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
11448
0
  } else {
11449
0
    error_ = NULL;
11450
0
  }
11451
  // @@protoc_insertion_point(copy_constructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11452
0
}
11453
11454
11.5k
void UpdateCdcReplicatedIndexResponsePB::SharedCtor() {
11455
11.5k
  _cached_size_ = 0;
11456
11.5k
  error_ = NULL;
11457
11.5k
}
11458
11459
318
UpdateCdcReplicatedIndexResponsePB::~UpdateCdcReplicatedIndexResponsePB() {
11460
  // @@protoc_insertion_point(destructor:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11461
318
  SharedDtor();
11462
318
}
11463
11464
318
void UpdateCdcReplicatedIndexResponsePB::SharedDtor() {
11465
318
  if (this != internal_default_instance()) delete error_;
11466
318
}
11467
11468
0
void UpdateCdcReplicatedIndexResponsePB::SetCachedSize(int size) const {
11469
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11470
0
  _cached_size_ = size;
11471
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11472
0
}
11473
0
const ::google::protobuf::Descriptor* UpdateCdcReplicatedIndexResponsePB::descriptor() {
11474
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11475
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11476
0
}
11477
11478
0
const UpdateCdcReplicatedIndexResponsePB& UpdateCdcReplicatedIndexResponsePB::default_instance() {
11479
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsUpdateCdcReplicatedIndexResponsePB();
11480
0
  return *internal_default_instance();
11481
0
}
11482
11483
0
UpdateCdcReplicatedIndexResponsePB* UpdateCdcReplicatedIndexResponsePB::New(::google::protobuf::Arena* arena) const {
11484
0
  UpdateCdcReplicatedIndexResponsePB* n = new UpdateCdcReplicatedIndexResponsePB;
11485
0
  if (arena != NULL) {
11486
0
    arena->Own(n);
11487
0
  }
11488
0
  return n;
11489
0
}
11490
11491
159
void UpdateCdcReplicatedIndexResponsePB::Clear() {
11492
// @@protoc_insertion_point(message_clear_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11493
159
  ::google::protobuf::uint32 cached_has_bits = 0;
11494
  // Prevent compiler warnings about cached_has_bits being unused
11495
159
  (void) cached_has_bits;
11496
11497
159
  cached_has_bits = _has_bits_[0];
11498
159
  if (cached_has_bits & 0x00000001u) {
11499
0
    GOOGLE_DCHECK(error_ != NULL);
11500
0
    error_->Clear();
11501
0
  }
11502
159
  _has_bits_.Clear();
11503
159
  _internal_metadata_.Clear();
11504
159
}
11505
11506
bool UpdateCdcReplicatedIndexResponsePB::MergePartialFromCodedStream(
11507
159
    ::google::protobuf::io::CodedInputStream* input) {
11508
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11509
159
  ::google::protobuf::uint32 tag;
11510
  // @@protoc_insertion_point(parse_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11511
159
  for (;;) {
11512
159
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11513
159
    tag = p.first;
11514
159
    if (!p.second) goto handle_unusual;
11515
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11516
      // optional .yb.cdc.CDCErrorPB error = 1;
11517
0
      case 1: {
11518
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11519
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11520
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11521
0
               input, mutable_error()));
11522
0
        } else {
11523
0
          goto handle_unusual;
11524
0
        }
11525
0
        break;
11526
159
      }
11527
11528
0
      default: {
11529
159
      handle_unusual:
11530
159
        if (tag == 0) {
11531
159
          goto success;
11532
159
        }
11533
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11534
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11535
0
        break;
11536
0
      }
11537
0
    }
11538
0
  }
11539
159
success:
11540
  // @@protoc_insertion_point(parse_success:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11541
159
  return true;
11542
0
failure:
11543
  // @@protoc_insertion_point(parse_failure:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11544
0
  return false;
11545
159
#undef DO_
11546
159
}
11547
11548
void UpdateCdcReplicatedIndexResponsePB::SerializeWithCachedSizes(
11549
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11550
  // @@protoc_insertion_point(serialize_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11551
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11552
0
  (void) cached_has_bits;
11553
11554
0
  cached_has_bits = _has_bits_[0];
11555
  // optional .yb.cdc.CDCErrorPB error = 1;
11556
0
  if (cached_has_bits & 0x00000001u) {
11557
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11558
0
      1, *this->error_, output);
11559
0
  }
11560
11561
0
  if (_internal_metadata_.have_unknown_fields()) {
11562
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11563
0
        _internal_metadata_.unknown_fields(), output);
11564
0
  }
11565
  // @@protoc_insertion_point(serialize_end:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11566
0
}
11567
11568
::google::protobuf::uint8* UpdateCdcReplicatedIndexResponsePB::InternalSerializeWithCachedSizesToArray(
11569
159
    bool deterministic, ::google::protobuf::uint8* target) const {
11570
159
  (void)deterministic; // Unused
11571
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11572
159
  ::google::protobuf::uint32 cached_has_bits = 0;
11573
159
  (void) cached_has_bits;
11574
11575
159
  cached_has_bits = _has_bits_[0];
11576
  // optional .yb.cdc.CDCErrorPB error = 1;
11577
159
  if (cached_has_bits & 0x00000001u) {
11578
0
    target = ::google::protobuf::internal::WireFormatLite::
11579
0
      InternalWriteMessageToArray(
11580
0
        1, *this->error_, deterministic, target);
11581
0
  }
11582
11583
159
  if (_internal_metadata_.have_unknown_fields()) {
11584
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11585
0
        _internal_metadata_.unknown_fields(), target);
11586
0
  }
11587
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11588
159
  return target;
11589
159
}
11590
11591
318
size_t UpdateCdcReplicatedIndexResponsePB::ByteSizeLong() const {
11592
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11593
318
  size_t total_size = 0;
11594
11595
318
  if (_internal_metadata_.have_unknown_fields()) {
11596
0
    total_size +=
11597
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11598
0
        _internal_metadata_.unknown_fields());
11599
0
  }
11600
  // optional .yb.cdc.CDCErrorPB error = 1;
11601
318
  if (has_error()) {
11602
0
    total_size += 1 +
11603
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
11604
0
        *this->error_);
11605
0
  }
11606
11607
318
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11608
318
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11609
318
  _cached_size_ = cached_size;
11610
318
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11611
318
  return total_size;
11612
318
}
11613
11614
0
void UpdateCdcReplicatedIndexResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
11615
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11616
0
  GOOGLE_DCHECK_NE(&from, this);
11617
0
  const UpdateCdcReplicatedIndexResponsePB* source =
11618
0
      ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCdcReplicatedIndexResponsePB>(
11619
0
          &from);
11620
0
  if (source == NULL) {
11621
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11622
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11623
0
  } else {
11624
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11625
0
    MergeFrom(*source);
11626
0
  }
11627
0
}
11628
11629
0
void UpdateCdcReplicatedIndexResponsePB::MergeFrom(const UpdateCdcReplicatedIndexResponsePB& from) {
11630
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11631
0
  GOOGLE_DCHECK_NE(&from, this);
11632
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11633
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11634
0
  (void) cached_has_bits;
11635
11636
0
  if (from.has_error()) {
11637
0
    mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
11638
0
  }
11639
0
}
11640
11641
0
void UpdateCdcReplicatedIndexResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
11642
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11643
0
  if (&from == this) return;
11644
0
  Clear();
11645
0
  MergeFrom(from);
11646
0
}
11647
11648
0
void UpdateCdcReplicatedIndexResponsePB::CopyFrom(const UpdateCdcReplicatedIndexResponsePB& from) {
11649
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.UpdateCdcReplicatedIndexResponsePB)
11650
0
  if (&from == this) return;
11651
0
  Clear();
11652
0
  MergeFrom(from);
11653
0
}
11654
11655
318
bool UpdateCdcReplicatedIndexResponsePB::IsInitialized() const {
11656
318
  if (has_error()) {
11657
0
    if (!this->error_->IsInitialized()) return false;
11658
318
  }
11659
318
  return true;
11660
318
}
11661
11662
0
void UpdateCdcReplicatedIndexResponsePB::Swap(UpdateCdcReplicatedIndexResponsePB* other) {
11663
0
  if (other == this) return;
11664
0
  InternalSwap(other);
11665
0
}
11666
0
void UpdateCdcReplicatedIndexResponsePB::InternalSwap(UpdateCdcReplicatedIndexResponsePB* other) {
11667
0
  using std::swap;
11668
0
  swap(error_, other->error_);
11669
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11670
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11671
0
  swap(_cached_size_, other->_cached_size_);
11672
0
}
11673
11674
0
::google::protobuf::Metadata UpdateCdcReplicatedIndexResponsePB::GetMetadata() const {
11675
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11676
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
11677
0
}
11678
11679
11680
// ===================================================================
11681
11682
11.1k
void BootstrapProducerRequestPB::InitAsDefaultInstance() {
11683
11.1k
}
11684
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11685
const int BootstrapProducerRequestPB::kTableIdsFieldNumber;
11686
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11687
11688
BootstrapProducerRequestPB::BootstrapProducerRequestPB()
11689
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11690
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11691
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerRequestPB();
11692
0
  }
11693
11.1k
  SharedCtor();
11694
  // @@protoc_insertion_point(constructor:yb.cdc.BootstrapProducerRequestPB)
11695
11.1k
}
11696
BootstrapProducerRequestPB::BootstrapProducerRequestPB(const BootstrapProducerRequestPB& from)
11697
  : ::google::protobuf::Message(),
11698
      _internal_metadata_(NULL),
11699
      _has_bits_(from._has_bits_),
11700
      _cached_size_(0),
11701
0
      table_ids_(from.table_ids_) {
11702
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11703
  // @@protoc_insertion_point(copy_constructor:yb.cdc.BootstrapProducerRequestPB)
11704
0
}
11705
11706
11.1k
void BootstrapProducerRequestPB::SharedCtor() {
11707
11.1k
  _cached_size_ = 0;
11708
11.1k
}
11709
11710
0
BootstrapProducerRequestPB::~BootstrapProducerRequestPB() {
11711
  // @@protoc_insertion_point(destructor:yb.cdc.BootstrapProducerRequestPB)
11712
0
  SharedDtor();
11713
0
}
11714
11715
0
void BootstrapProducerRequestPB::SharedDtor() {
11716
0
}
11717
11718
0
void BootstrapProducerRequestPB::SetCachedSize(int size) const {
11719
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11720
0
  _cached_size_ = size;
11721
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11722
0
}
11723
0
const ::google::protobuf::Descriptor* BootstrapProducerRequestPB::descriptor() {
11724
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11725
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11726
0
}
11727
11728
0
const BootstrapProducerRequestPB& BootstrapProducerRequestPB::default_instance() {
11729
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerRequestPB();
11730
0
  return *internal_default_instance();
11731
0
}
11732
11733
0
BootstrapProducerRequestPB* BootstrapProducerRequestPB::New(::google::protobuf::Arena* arena) const {
11734
0
  BootstrapProducerRequestPB* n = new BootstrapProducerRequestPB;
11735
0
  if (arena != NULL) {
11736
0
    arena->Own(n);
11737
0
  }
11738
0
  return n;
11739
0
}
11740
11741
0
void BootstrapProducerRequestPB::Clear() {
11742
// @@protoc_insertion_point(message_clear_start:yb.cdc.BootstrapProducerRequestPB)
11743
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11744
  // Prevent compiler warnings about cached_has_bits being unused
11745
0
  (void) cached_has_bits;
11746
11747
0
  table_ids_.Clear();
11748
0
  _has_bits_.Clear();
11749
0
  _internal_metadata_.Clear();
11750
0
}
11751
11752
bool BootstrapProducerRequestPB::MergePartialFromCodedStream(
11753
0
    ::google::protobuf::io::CodedInputStream* input) {
11754
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11755
0
  ::google::protobuf::uint32 tag;
11756
  // @@protoc_insertion_point(parse_start:yb.cdc.BootstrapProducerRequestPB)
11757
0
  for (;;) {
11758
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11759
0
    tag = p.first;
11760
0
    if (!p.second) goto handle_unusual;
11761
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11762
      // repeated string table_ids = 1;
11763
0
      case 1: {
11764
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11765
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11766
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11767
0
                input, this->add_table_ids()));
11768
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11769
0
            this->table_ids(this->table_ids_size() - 1).data(),
11770
0
            static_cast<int>(this->table_ids(this->table_ids_size() - 1).length()),
11771
0
            ::google::protobuf::internal::WireFormat::PARSE,
11772
0
            "yb.cdc.BootstrapProducerRequestPB.table_ids");
11773
0
        } else {
11774
0
          goto handle_unusual;
11775
0
        }
11776
0
        break;
11777
0
      }
11778
11779
0
      default: {
11780
0
      handle_unusual:
11781
0
        if (tag == 0) {
11782
0
          goto success;
11783
0
        }
11784
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11785
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11786
0
        break;
11787
0
      }
11788
0
    }
11789
0
  }
11790
0
success:
11791
  // @@protoc_insertion_point(parse_success:yb.cdc.BootstrapProducerRequestPB)
11792
0
  return true;
11793
0
failure:
11794
  // @@protoc_insertion_point(parse_failure:yb.cdc.BootstrapProducerRequestPB)
11795
0
  return false;
11796
0
#undef DO_
11797
0
}
11798
11799
void BootstrapProducerRequestPB::SerializeWithCachedSizes(
11800
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11801
  // @@protoc_insertion_point(serialize_start:yb.cdc.BootstrapProducerRequestPB)
11802
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11803
0
  (void) cached_has_bits;
11804
11805
  // repeated string table_ids = 1;
11806
0
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
11807
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11808
0
      this->table_ids(i).data(), static_cast<int>(this->table_ids(i).length()),
11809
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11810
0
      "yb.cdc.BootstrapProducerRequestPB.table_ids");
11811
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
11812
0
      1, this->table_ids(i), output);
11813
0
  }
11814
11815
0
  if (_internal_metadata_.have_unknown_fields()) {
11816
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11817
0
        _internal_metadata_.unknown_fields(), output);
11818
0
  }
11819
  // @@protoc_insertion_point(serialize_end:yb.cdc.BootstrapProducerRequestPB)
11820
0
}
11821
11822
::google::protobuf::uint8* BootstrapProducerRequestPB::InternalSerializeWithCachedSizesToArray(
11823
0
    bool deterministic, ::google::protobuf::uint8* target) const {
11824
0
  (void)deterministic; // Unused
11825
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.BootstrapProducerRequestPB)
11826
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11827
0
  (void) cached_has_bits;
11828
11829
  // repeated string table_ids = 1;
11830
0
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
11831
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11832
0
      this->table_ids(i).data(), static_cast<int>(this->table_ids(i).length()),
11833
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11834
0
      "yb.cdc.BootstrapProducerRequestPB.table_ids");
11835
0
    target = ::google::protobuf::internal::WireFormatLite::
11836
0
      WriteStringToArray(1, this->table_ids(i), target);
11837
0
  }
11838
11839
0
  if (_internal_metadata_.have_unknown_fields()) {
11840
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11841
0
        _internal_metadata_.unknown_fields(), target);
11842
0
  }
11843
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.BootstrapProducerRequestPB)
11844
0
  return target;
11845
0
}
11846
11847
0
size_t BootstrapProducerRequestPB::ByteSizeLong() const {
11848
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.BootstrapProducerRequestPB)
11849
0
  size_t total_size = 0;
11850
11851
0
  if (_internal_metadata_.have_unknown_fields()) {
11852
0
    total_size +=
11853
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11854
0
        _internal_metadata_.unknown_fields());
11855
0
  }
11856
  // repeated string table_ids = 1;
11857
0
  total_size += 1 *
11858
0
      ::google::protobuf::internal::FromIntSize(this->table_ids_size());
11859
0
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
11860
0
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
11861
0
      this->table_ids(i));
11862
0
  }
11863
11864
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11865
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11866
0
  _cached_size_ = cached_size;
11867
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11868
0
  return total_size;
11869
0
}
11870
11871
0
void BootstrapProducerRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
11872
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.BootstrapProducerRequestPB)
11873
0
  GOOGLE_DCHECK_NE(&from, this);
11874
0
  const BootstrapProducerRequestPB* source =
11875
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BootstrapProducerRequestPB>(
11876
0
          &from);
11877
0
  if (source == NULL) {
11878
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.BootstrapProducerRequestPB)
11879
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11880
0
  } else {
11881
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.BootstrapProducerRequestPB)
11882
0
    MergeFrom(*source);
11883
0
  }
11884
0
}
11885
11886
0
void BootstrapProducerRequestPB::MergeFrom(const BootstrapProducerRequestPB& from) {
11887
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.BootstrapProducerRequestPB)
11888
0
  GOOGLE_DCHECK_NE(&from, this);
11889
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11890
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11891
0
  (void) cached_has_bits;
11892
11893
0
  table_ids_.MergeFrom(from.table_ids_);
11894
0
}
11895
11896
0
void BootstrapProducerRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
11897
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.BootstrapProducerRequestPB)
11898
0
  if (&from == this) return;
11899
0
  Clear();
11900
0
  MergeFrom(from);
11901
0
}
11902
11903
0
void BootstrapProducerRequestPB::CopyFrom(const BootstrapProducerRequestPB& from) {
11904
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.BootstrapProducerRequestPB)
11905
0
  if (&from == this) return;
11906
0
  Clear();
11907
0
  MergeFrom(from);
11908
0
}
11909
11910
0
bool BootstrapProducerRequestPB::IsInitialized() const {
11911
0
  return true;
11912
0
}
11913
11914
0
void BootstrapProducerRequestPB::Swap(BootstrapProducerRequestPB* other) {
11915
0
  if (other == this) return;
11916
0
  InternalSwap(other);
11917
0
}
11918
0
void BootstrapProducerRequestPB::InternalSwap(BootstrapProducerRequestPB* other) {
11919
0
  using std::swap;
11920
0
  table_ids_.InternalSwap(&other->table_ids_);
11921
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11922
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11923
0
  swap(_cached_size_, other->_cached_size_);
11924
0
}
11925
11926
0
::google::protobuf::Metadata BootstrapProducerRequestPB::GetMetadata() const {
11927
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11928
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
11929
0
}
11930
11931
11932
// ===================================================================
11933
11934
11.1k
void BootstrapProducerResponsePB::InitAsDefaultInstance() {
11935
11.1k
  ::yb::cdc::_BootstrapProducerResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
11936
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
11937
11.1k
}
11938
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11939
const int BootstrapProducerResponsePB::kErrorFieldNumber;
11940
const int BootstrapProducerResponsePB::kCdcBootstrapIdsFieldNumber;
11941
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11942
11943
BootstrapProducerResponsePB::BootstrapProducerResponsePB()
11944
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11945
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11946
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerResponsePB();
11947
0
  }
11948
11.1k
  SharedCtor();
11949
  // @@protoc_insertion_point(constructor:yb.cdc.BootstrapProducerResponsePB)
11950
11.1k
}
11951
BootstrapProducerResponsePB::BootstrapProducerResponsePB(const BootstrapProducerResponsePB& from)
11952
  : ::google::protobuf::Message(),
11953
      _internal_metadata_(NULL),
11954
      _has_bits_(from._has_bits_),
11955
      _cached_size_(0),
11956
0
      cdc_bootstrap_ids_(from.cdc_bootstrap_ids_) {
11957
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11958
0
  if (from.has_error()) {
11959
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
11960
0
  } else {
11961
0
    error_ = NULL;
11962
0
  }
11963
  // @@protoc_insertion_point(copy_constructor:yb.cdc.BootstrapProducerResponsePB)
11964
0
}
11965
11966
11.1k
void BootstrapProducerResponsePB::SharedCtor() {
11967
11.1k
  _cached_size_ = 0;
11968
11.1k
  error_ = NULL;
11969
11.1k
}
11970
11971
0
BootstrapProducerResponsePB::~BootstrapProducerResponsePB() {
11972
  // @@protoc_insertion_point(destructor:yb.cdc.BootstrapProducerResponsePB)
11973
0
  SharedDtor();
11974
0
}
11975
11976
0
void BootstrapProducerResponsePB::SharedDtor() {
11977
0
  if (this != internal_default_instance()) delete error_;
11978
0
}
11979
11980
0
void BootstrapProducerResponsePB::SetCachedSize(int size) const {
11981
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11982
0
  _cached_size_ = size;
11983
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11984
0
}
11985
0
const ::google::protobuf::Descriptor* BootstrapProducerResponsePB::descriptor() {
11986
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
11987
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11988
0
}
11989
11990
0
const BootstrapProducerResponsePB& BootstrapProducerResponsePB::default_instance() {
11991
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsBootstrapProducerResponsePB();
11992
0
  return *internal_default_instance();
11993
0
}
11994
11995
0
BootstrapProducerResponsePB* BootstrapProducerResponsePB::New(::google::protobuf::Arena* arena) const {
11996
0
  BootstrapProducerResponsePB* n = new BootstrapProducerResponsePB;
11997
0
  if (arena != NULL) {
11998
0
    arena->Own(n);
11999
0
  }
12000
0
  return n;
12001
0
}
12002
12003
0
void BootstrapProducerResponsePB::Clear() {
12004
// @@protoc_insertion_point(message_clear_start:yb.cdc.BootstrapProducerResponsePB)
12005
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12006
  // Prevent compiler warnings about cached_has_bits being unused
12007
0
  (void) cached_has_bits;
12008
12009
0
  cdc_bootstrap_ids_.Clear();
12010
0
  cached_has_bits = _has_bits_[0];
12011
0
  if (cached_has_bits & 0x00000001u) {
12012
0
    GOOGLE_DCHECK(error_ != NULL);
12013
0
    error_->Clear();
12014
0
  }
12015
0
  _has_bits_.Clear();
12016
0
  _internal_metadata_.Clear();
12017
0
}
12018
12019
bool BootstrapProducerResponsePB::MergePartialFromCodedStream(
12020
0
    ::google::protobuf::io::CodedInputStream* input) {
12021
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12022
0
  ::google::protobuf::uint32 tag;
12023
  // @@protoc_insertion_point(parse_start:yb.cdc.BootstrapProducerResponsePB)
12024
0
  for (;;) {
12025
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12026
0
    tag = p.first;
12027
0
    if (!p.second) goto handle_unusual;
12028
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12029
      // optional .yb.cdc.CDCErrorPB error = 1;
12030
0
      case 1: {
12031
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12032
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12033
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12034
0
               input, mutable_error()));
12035
0
        } else {
12036
0
          goto handle_unusual;
12037
0
        }
12038
0
        break;
12039
0
      }
12040
12041
      // repeated bytes cdc_bootstrap_ids = 2;
12042
0
      case 2: {
12043
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12044
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12045
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12046
0
                input, this->add_cdc_bootstrap_ids()));
12047
0
        } else {
12048
0
          goto handle_unusual;
12049
0
        }
12050
0
        break;
12051
0
      }
12052
12053
0
      default: {
12054
0
      handle_unusual:
12055
0
        if (tag == 0) {
12056
0
          goto success;
12057
0
        }
12058
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12059
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12060
0
        break;
12061
0
      }
12062
0
    }
12063
0
  }
12064
0
success:
12065
  // @@protoc_insertion_point(parse_success:yb.cdc.BootstrapProducerResponsePB)
12066
0
  return true;
12067
0
failure:
12068
  // @@protoc_insertion_point(parse_failure:yb.cdc.BootstrapProducerResponsePB)
12069
0
  return false;
12070
0
#undef DO_
12071
0
}
12072
12073
void BootstrapProducerResponsePB::SerializeWithCachedSizes(
12074
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12075
  // @@protoc_insertion_point(serialize_start:yb.cdc.BootstrapProducerResponsePB)
12076
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12077
0
  (void) cached_has_bits;
12078
12079
0
  cached_has_bits = _has_bits_[0];
12080
  // optional .yb.cdc.CDCErrorPB error = 1;
12081
0
  if (cached_has_bits & 0x00000001u) {
12082
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12083
0
      1, *this->error_, output);
12084
0
  }
12085
12086
  // repeated bytes cdc_bootstrap_ids = 2;
12087
0
  for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) {
12088
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
12089
0
      2, this->cdc_bootstrap_ids(i), output);
12090
0
  }
12091
12092
0
  if (_internal_metadata_.have_unknown_fields()) {
12093
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12094
0
        _internal_metadata_.unknown_fields(), output);
12095
0
  }
12096
  // @@protoc_insertion_point(serialize_end:yb.cdc.BootstrapProducerResponsePB)
12097
0
}
12098
12099
::google::protobuf::uint8* BootstrapProducerResponsePB::InternalSerializeWithCachedSizesToArray(
12100
0
    bool deterministic, ::google::protobuf::uint8* target) const {
12101
0
  (void)deterministic; // Unused
12102
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.BootstrapProducerResponsePB)
12103
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12104
0
  (void) cached_has_bits;
12105
12106
0
  cached_has_bits = _has_bits_[0];
12107
  // optional .yb.cdc.CDCErrorPB error = 1;
12108
0
  if (cached_has_bits & 0x00000001u) {
12109
0
    target = ::google::protobuf::internal::WireFormatLite::
12110
0
      InternalWriteMessageToArray(
12111
0
        1, *this->error_, deterministic, target);
12112
0
  }
12113
12114
  // repeated bytes cdc_bootstrap_ids = 2;
12115
0
  for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) {
12116
0
    target = ::google::protobuf::internal::WireFormatLite::
12117
0
      WriteBytesToArray(2, this->cdc_bootstrap_ids(i), target);
12118
0
  }
12119
12120
0
  if (_internal_metadata_.have_unknown_fields()) {
12121
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12122
0
        _internal_metadata_.unknown_fields(), target);
12123
0
  }
12124
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.BootstrapProducerResponsePB)
12125
0
  return target;
12126
0
}
12127
12128
0
size_t BootstrapProducerResponsePB::ByteSizeLong() const {
12129
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.BootstrapProducerResponsePB)
12130
0
  size_t total_size = 0;
12131
12132
0
  if (_internal_metadata_.have_unknown_fields()) {
12133
0
    total_size +=
12134
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12135
0
        _internal_metadata_.unknown_fields());
12136
0
  }
12137
  // repeated bytes cdc_bootstrap_ids = 2;
12138
0
  total_size += 1 *
12139
0
      ::google::protobuf::internal::FromIntSize(this->cdc_bootstrap_ids_size());
12140
0
  for (int i = 0, n = this->cdc_bootstrap_ids_size(); i < n; i++) {
12141
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
12142
0
      this->cdc_bootstrap_ids(i));
12143
0
  }
12144
12145
  // optional .yb.cdc.CDCErrorPB error = 1;
12146
0
  if (has_error()) {
12147
0
    total_size += 1 +
12148
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
12149
0
        *this->error_);
12150
0
  }
12151
12152
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12153
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12154
0
  _cached_size_ = cached_size;
12155
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12156
0
  return total_size;
12157
0
}
12158
12159
0
void BootstrapProducerResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
12160
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.BootstrapProducerResponsePB)
12161
0
  GOOGLE_DCHECK_NE(&from, this);
12162
0
  const BootstrapProducerResponsePB* source =
12163
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BootstrapProducerResponsePB>(
12164
0
          &from);
12165
0
  if (source == NULL) {
12166
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.BootstrapProducerResponsePB)
12167
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12168
0
  } else {
12169
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.BootstrapProducerResponsePB)
12170
0
    MergeFrom(*source);
12171
0
  }
12172
0
}
12173
12174
0
void BootstrapProducerResponsePB::MergeFrom(const BootstrapProducerResponsePB& from) {
12175
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.BootstrapProducerResponsePB)
12176
0
  GOOGLE_DCHECK_NE(&from, this);
12177
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12178
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12179
0
  (void) cached_has_bits;
12180
12181
0
  cdc_bootstrap_ids_.MergeFrom(from.cdc_bootstrap_ids_);
12182
0
  if (from.has_error()) {
12183
0
    mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
12184
0
  }
12185
0
}
12186
12187
0
void BootstrapProducerResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
12188
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.BootstrapProducerResponsePB)
12189
0
  if (&from == this) return;
12190
0
  Clear();
12191
0
  MergeFrom(from);
12192
0
}
12193
12194
0
void BootstrapProducerResponsePB::CopyFrom(const BootstrapProducerResponsePB& from) {
12195
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.BootstrapProducerResponsePB)
12196
0
  if (&from == this) return;
12197
0
  Clear();
12198
0
  MergeFrom(from);
12199
0
}
12200
12201
0
bool BootstrapProducerResponsePB::IsInitialized() const {
12202
0
  if (has_error()) {
12203
0
    if (!this->error_->IsInitialized()) return false;
12204
0
  }
12205
0
  return true;
12206
0
}
12207
12208
0
void BootstrapProducerResponsePB::Swap(BootstrapProducerResponsePB* other) {
12209
0
  if (other == this) return;
12210
0
  InternalSwap(other);
12211
0
}
12212
0
void BootstrapProducerResponsePB::InternalSwap(BootstrapProducerResponsePB* other) {
12213
0
  using std::swap;
12214
0
  cdc_bootstrap_ids_.InternalSwap(&other->cdc_bootstrap_ids_);
12215
0
  swap(error_, other->error_);
12216
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12217
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12218
0
  swap(_cached_size_, other->_cached_size_);
12219
0
}
12220
12221
0
::google::protobuf::Metadata BootstrapProducerResponsePB::GetMetadata() const {
12222
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12223
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
12224
0
}
12225
12226
12227
// ===================================================================
12228
12229
11.1k
void GetLatestEntryOpIdRequestPB::InitAsDefaultInstance() {
12230
11.1k
}
12231
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12232
const int GetLatestEntryOpIdRequestPB::kTabletIdFieldNumber;
12233
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12234
12235
GetLatestEntryOpIdRequestPB::GetLatestEntryOpIdRequestPB()
12236
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12237
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12238
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdRequestPB();
12239
0
  }
12240
11.1k
  SharedCtor();
12241
  // @@protoc_insertion_point(constructor:yb.cdc.GetLatestEntryOpIdRequestPB)
12242
11.1k
}
12243
GetLatestEntryOpIdRequestPB::GetLatestEntryOpIdRequestPB(const GetLatestEntryOpIdRequestPB& from)
12244
  : ::google::protobuf::Message(),
12245
      _internal_metadata_(NULL),
12246
      _has_bits_(from._has_bits_),
12247
0
      _cached_size_(0) {
12248
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12249
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12250
0
  if (from.has_tablet_id()) {
12251
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
12252
0
  }
12253
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetLatestEntryOpIdRequestPB)
12254
0
}
12255
12256
11.1k
void GetLatestEntryOpIdRequestPB::SharedCtor() {
12257
11.1k
  _cached_size_ = 0;
12258
11.1k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12259
11.1k
}
12260
12261
0
GetLatestEntryOpIdRequestPB::~GetLatestEntryOpIdRequestPB() {
12262
  // @@protoc_insertion_point(destructor:yb.cdc.GetLatestEntryOpIdRequestPB)
12263
0
  SharedDtor();
12264
0
}
12265
12266
0
void GetLatestEntryOpIdRequestPB::SharedDtor() {
12267
0
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12268
0
}
12269
12270
0
void GetLatestEntryOpIdRequestPB::SetCachedSize(int size) const {
12271
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12272
0
  _cached_size_ = size;
12273
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12274
0
}
12275
0
const ::google::protobuf::Descriptor* GetLatestEntryOpIdRequestPB::descriptor() {
12276
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12277
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12278
0
}
12279
12280
0
const GetLatestEntryOpIdRequestPB& GetLatestEntryOpIdRequestPB::default_instance() {
12281
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdRequestPB();
12282
0
  return *internal_default_instance();
12283
0
}
12284
12285
0
GetLatestEntryOpIdRequestPB* GetLatestEntryOpIdRequestPB::New(::google::protobuf::Arena* arena) const {
12286
0
  GetLatestEntryOpIdRequestPB* n = new GetLatestEntryOpIdRequestPB;
12287
0
  if (arena != NULL) {
12288
0
    arena->Own(n);
12289
0
  }
12290
0
  return n;
12291
0
}
12292
12293
0
void GetLatestEntryOpIdRequestPB::Clear() {
12294
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12295
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12296
  // Prevent compiler warnings about cached_has_bits being unused
12297
0
  (void) cached_has_bits;
12298
12299
0
  cached_has_bits = _has_bits_[0];
12300
0
  if (cached_has_bits & 0x00000001u) {
12301
0
    GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12302
0
    (*tablet_id_.UnsafeRawStringPointer())->clear();
12303
0
  }
12304
0
  _has_bits_.Clear();
12305
0
  _internal_metadata_.Clear();
12306
0
}
12307
12308
bool GetLatestEntryOpIdRequestPB::MergePartialFromCodedStream(
12309
0
    ::google::protobuf::io::CodedInputStream* input) {
12310
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12311
0
  ::google::protobuf::uint32 tag;
12312
  // @@protoc_insertion_point(parse_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12313
0
  for (;;) {
12314
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12315
0
    tag = p.first;
12316
0
    if (!p.second) goto handle_unusual;
12317
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12318
      // optional bytes tablet_id = 1;
12319
0
      case 1: {
12320
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12321
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12322
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12323
0
                input, this->mutable_tablet_id()));
12324
0
        } else {
12325
0
          goto handle_unusual;
12326
0
        }
12327
0
        break;
12328
0
      }
12329
12330
0
      default: {
12331
0
      handle_unusual:
12332
0
        if (tag == 0) {
12333
0
          goto success;
12334
0
        }
12335
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12336
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12337
0
        break;
12338
0
      }
12339
0
    }
12340
0
  }
12341
0
success:
12342
  // @@protoc_insertion_point(parse_success:yb.cdc.GetLatestEntryOpIdRequestPB)
12343
0
  return true;
12344
0
failure:
12345
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetLatestEntryOpIdRequestPB)
12346
0
  return false;
12347
0
#undef DO_
12348
0
}
12349
12350
void GetLatestEntryOpIdRequestPB::SerializeWithCachedSizes(
12351
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12352
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12353
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12354
0
  (void) cached_has_bits;
12355
12356
0
  cached_has_bits = _has_bits_[0];
12357
  // optional bytes tablet_id = 1;
12358
0
  if (cached_has_bits & 0x00000001u) {
12359
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12360
0
      1, this->tablet_id(), output);
12361
0
  }
12362
12363
0
  if (_internal_metadata_.have_unknown_fields()) {
12364
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12365
0
        _internal_metadata_.unknown_fields(), output);
12366
0
  }
12367
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetLatestEntryOpIdRequestPB)
12368
0
}
12369
12370
::google::protobuf::uint8* GetLatestEntryOpIdRequestPB::InternalSerializeWithCachedSizesToArray(
12371
0
    bool deterministic, ::google::protobuf::uint8* target) const {
12372
0
  (void)deterministic; // Unused
12373
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12374
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12375
0
  (void) cached_has_bits;
12376
12377
0
  cached_has_bits = _has_bits_[0];
12378
  // optional bytes tablet_id = 1;
12379
0
  if (cached_has_bits & 0x00000001u) {
12380
0
    target =
12381
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12382
0
        1, this->tablet_id(), target);
12383
0
  }
12384
12385
0
  if (_internal_metadata_.have_unknown_fields()) {
12386
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12387
0
        _internal_metadata_.unknown_fields(), target);
12388
0
  }
12389
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetLatestEntryOpIdRequestPB)
12390
0
  return target;
12391
0
}
12392
12393
0
size_t GetLatestEntryOpIdRequestPB::ByteSizeLong() const {
12394
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12395
0
  size_t total_size = 0;
12396
12397
0
  if (_internal_metadata_.have_unknown_fields()) {
12398
0
    total_size +=
12399
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12400
0
        _internal_metadata_.unknown_fields());
12401
0
  }
12402
  // optional bytes tablet_id = 1;
12403
0
  if (has_tablet_id()) {
12404
0
    total_size += 1 +
12405
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
12406
0
        this->tablet_id());
12407
0
  }
12408
12409
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12410
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12411
0
  _cached_size_ = cached_size;
12412
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12413
0
  return total_size;
12414
0
}
12415
12416
0
void GetLatestEntryOpIdRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
12417
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12418
0
  GOOGLE_DCHECK_NE(&from, this);
12419
0
  const GetLatestEntryOpIdRequestPB* source =
12420
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetLatestEntryOpIdRequestPB>(
12421
0
          &from);
12422
0
  if (source == NULL) {
12423
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetLatestEntryOpIdRequestPB)
12424
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12425
0
  } else {
12426
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetLatestEntryOpIdRequestPB)
12427
0
    MergeFrom(*source);
12428
0
  }
12429
0
}
12430
12431
0
void GetLatestEntryOpIdRequestPB::MergeFrom(const GetLatestEntryOpIdRequestPB& from) {
12432
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12433
0
  GOOGLE_DCHECK_NE(&from, this);
12434
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12435
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12436
0
  (void) cached_has_bits;
12437
12438
0
  if (from.has_tablet_id()) {
12439
0
    set_has_tablet_id();
12440
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
12441
0
  }
12442
0
}
12443
12444
0
void GetLatestEntryOpIdRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
12445
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12446
0
  if (&from == this) return;
12447
0
  Clear();
12448
0
  MergeFrom(from);
12449
0
}
12450
12451
0
void GetLatestEntryOpIdRequestPB::CopyFrom(const GetLatestEntryOpIdRequestPB& from) {
12452
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetLatestEntryOpIdRequestPB)
12453
0
  if (&from == this) return;
12454
0
  Clear();
12455
0
  MergeFrom(from);
12456
0
}
12457
12458
0
bool GetLatestEntryOpIdRequestPB::IsInitialized() const {
12459
0
  return true;
12460
0
}
12461
12462
0
void GetLatestEntryOpIdRequestPB::Swap(GetLatestEntryOpIdRequestPB* other) {
12463
0
  if (other == this) return;
12464
0
  InternalSwap(other);
12465
0
}
12466
0
void GetLatestEntryOpIdRequestPB::InternalSwap(GetLatestEntryOpIdRequestPB* other) {
12467
0
  using std::swap;
12468
0
  tablet_id_.Swap(&other->tablet_id_);
12469
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12470
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12471
0
  swap(_cached_size_, other->_cached_size_);
12472
0
}
12473
12474
0
::google::protobuf::Metadata GetLatestEntryOpIdRequestPB::GetMetadata() const {
12475
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12476
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
12477
0
}
12478
12479
12480
// ===================================================================
12481
12482
11.1k
void GetLatestEntryOpIdResponsePB::InitAsDefaultInstance() {
12483
11.1k
  ::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
12484
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
12485
11.1k
  ::yb::cdc::_GetLatestEntryOpIdResponsePB_default_instance_._instance.get_mutable()->op_id_ = const_cast< ::yb::OpIdPB*>(
12486
11.1k
      ::yb::OpIdPB::internal_default_instance());
12487
11.1k
}
12488
0
void GetLatestEntryOpIdResponsePB::clear_op_id() {
12489
0
  if (op_id_ != NULL) op_id_->Clear();
12490
0
  clear_has_op_id();
12491
0
}
12492
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12493
const int GetLatestEntryOpIdResponsePB::kErrorFieldNumber;
12494
const int GetLatestEntryOpIdResponsePB::kOpIdFieldNumber;
12495
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12496
12497
GetLatestEntryOpIdResponsePB::GetLatestEntryOpIdResponsePB()
12498
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12499
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12500
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdResponsePB();
12501
0
  }
12502
11.1k
  SharedCtor();
12503
  // @@protoc_insertion_point(constructor:yb.cdc.GetLatestEntryOpIdResponsePB)
12504
11.1k
}
12505
GetLatestEntryOpIdResponsePB::GetLatestEntryOpIdResponsePB(const GetLatestEntryOpIdResponsePB& from)
12506
  : ::google::protobuf::Message(),
12507
      _internal_metadata_(NULL),
12508
      _has_bits_(from._has_bits_),
12509
0
      _cached_size_(0) {
12510
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12511
0
  if (from.has_error()) {
12512
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
12513
0
  } else {
12514
0
    error_ = NULL;
12515
0
  }
12516
0
  if (from.has_op_id()) {
12517
0
    op_id_ = new ::yb::OpIdPB(*from.op_id_);
12518
0
  } else {
12519
0
    op_id_ = NULL;
12520
0
  }
12521
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetLatestEntryOpIdResponsePB)
12522
0
}
12523
12524
11.1k
void GetLatestEntryOpIdResponsePB::SharedCtor() {
12525
11.1k
  _cached_size_ = 0;
12526
11.1k
  ::memset(&error_, 0, static_cast<size_t>(
12527
11.1k
      reinterpret_cast<char*>(&op_id_) -
12528
11.1k
      reinterpret_cast<char*>(&error_)) + sizeof(op_id_));
12529
11.1k
}
12530
12531
0
GetLatestEntryOpIdResponsePB::~GetLatestEntryOpIdResponsePB() {
12532
  // @@protoc_insertion_point(destructor:yb.cdc.GetLatestEntryOpIdResponsePB)
12533
0
  SharedDtor();
12534
0
}
12535
12536
0
void GetLatestEntryOpIdResponsePB::SharedDtor() {
12537
0
  if (this != internal_default_instance()) delete error_;
12538
0
  if (this != internal_default_instance()) delete op_id_;
12539
0
}
12540
12541
0
void GetLatestEntryOpIdResponsePB::SetCachedSize(int size) const {
12542
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12543
0
  _cached_size_ = size;
12544
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12545
0
}
12546
0
const ::google::protobuf::Descriptor* GetLatestEntryOpIdResponsePB::descriptor() {
12547
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12548
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12549
0
}
12550
12551
0
const GetLatestEntryOpIdResponsePB& GetLatestEntryOpIdResponsePB::default_instance() {
12552
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetLatestEntryOpIdResponsePB();
12553
0
  return *internal_default_instance();
12554
0
}
12555
12556
0
GetLatestEntryOpIdResponsePB* GetLatestEntryOpIdResponsePB::New(::google::protobuf::Arena* arena) const {
12557
0
  GetLatestEntryOpIdResponsePB* n = new GetLatestEntryOpIdResponsePB;
12558
0
  if (arena != NULL) {
12559
0
    arena->Own(n);
12560
0
  }
12561
0
  return n;
12562
0
}
12563
12564
0
void GetLatestEntryOpIdResponsePB::Clear() {
12565
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12566
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12567
  // Prevent compiler warnings about cached_has_bits being unused
12568
0
  (void) cached_has_bits;
12569
12570
0
  cached_has_bits = _has_bits_[0];
12571
0
  if (cached_has_bits & 3u) {
12572
0
    if (cached_has_bits & 0x00000001u) {
12573
0
      GOOGLE_DCHECK(error_ != NULL);
12574
0
      error_->Clear();
12575
0
    }
12576
0
    if (cached_has_bits & 0x00000002u) {
12577
0
      GOOGLE_DCHECK(op_id_ != NULL);
12578
0
      op_id_->Clear();
12579
0
    }
12580
0
  }
12581
0
  _has_bits_.Clear();
12582
0
  _internal_metadata_.Clear();
12583
0
}
12584
12585
bool GetLatestEntryOpIdResponsePB::MergePartialFromCodedStream(
12586
0
    ::google::protobuf::io::CodedInputStream* input) {
12587
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12588
0
  ::google::protobuf::uint32 tag;
12589
  // @@protoc_insertion_point(parse_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12590
0
  for (;;) {
12591
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12592
0
    tag = p.first;
12593
0
    if (!p.second) goto handle_unusual;
12594
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12595
      // optional .yb.cdc.CDCErrorPB error = 1;
12596
0
      case 1: {
12597
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12598
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12599
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12600
0
               input, mutable_error()));
12601
0
        } else {
12602
0
          goto handle_unusual;
12603
0
        }
12604
0
        break;
12605
0
      }
12606
12607
      // optional .yb.OpIdPB op_id = 2;
12608
0
      case 2: {
12609
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12610
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12611
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12612
0
               input, mutable_op_id()));
12613
0
        } else {
12614
0
          goto handle_unusual;
12615
0
        }
12616
0
        break;
12617
0
      }
12618
12619
0
      default: {
12620
0
      handle_unusual:
12621
0
        if (tag == 0) {
12622
0
          goto success;
12623
0
        }
12624
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12625
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12626
0
        break;
12627
0
      }
12628
0
    }
12629
0
  }
12630
0
success:
12631
  // @@protoc_insertion_point(parse_success:yb.cdc.GetLatestEntryOpIdResponsePB)
12632
0
  return true;
12633
0
failure:
12634
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetLatestEntryOpIdResponsePB)
12635
0
  return false;
12636
0
#undef DO_
12637
0
}
12638
12639
void GetLatestEntryOpIdResponsePB::SerializeWithCachedSizes(
12640
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12641
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12642
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12643
0
  (void) cached_has_bits;
12644
12645
0
  cached_has_bits = _has_bits_[0];
12646
  // optional .yb.cdc.CDCErrorPB error = 1;
12647
0
  if (cached_has_bits & 0x00000001u) {
12648
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12649
0
      1, *this->error_, output);
12650
0
  }
12651
12652
  // optional .yb.OpIdPB op_id = 2;
12653
0
  if (cached_has_bits & 0x00000002u) {
12654
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12655
0
      2, *this->op_id_, output);
12656
0
  }
12657
12658
0
  if (_internal_metadata_.have_unknown_fields()) {
12659
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12660
0
        _internal_metadata_.unknown_fields(), output);
12661
0
  }
12662
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetLatestEntryOpIdResponsePB)
12663
0
}
12664
12665
::google::protobuf::uint8* GetLatestEntryOpIdResponsePB::InternalSerializeWithCachedSizesToArray(
12666
0
    bool deterministic, ::google::protobuf::uint8* target) const {
12667
0
  (void)deterministic; // Unused
12668
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12669
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12670
0
  (void) cached_has_bits;
12671
12672
0
  cached_has_bits = _has_bits_[0];
12673
  // optional .yb.cdc.CDCErrorPB error = 1;
12674
0
  if (cached_has_bits & 0x00000001u) {
12675
0
    target = ::google::protobuf::internal::WireFormatLite::
12676
0
      InternalWriteMessageToArray(
12677
0
        1, *this->error_, deterministic, target);
12678
0
  }
12679
12680
  // optional .yb.OpIdPB op_id = 2;
12681
0
  if (cached_has_bits & 0x00000002u) {
12682
0
    target = ::google::protobuf::internal::WireFormatLite::
12683
0
      InternalWriteMessageToArray(
12684
0
        2, *this->op_id_, deterministic, target);
12685
0
  }
12686
12687
0
  if (_internal_metadata_.have_unknown_fields()) {
12688
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12689
0
        _internal_metadata_.unknown_fields(), target);
12690
0
  }
12691
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetLatestEntryOpIdResponsePB)
12692
0
  return target;
12693
0
}
12694
12695
0
size_t GetLatestEntryOpIdResponsePB::ByteSizeLong() const {
12696
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12697
0
  size_t total_size = 0;
12698
12699
0
  if (_internal_metadata_.have_unknown_fields()) {
12700
0
    total_size +=
12701
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12702
0
        _internal_metadata_.unknown_fields());
12703
0
  }
12704
0
  if (_has_bits_[0 / 32] & 3u) {
12705
    // optional .yb.cdc.CDCErrorPB error = 1;
12706
0
    if (has_error()) {
12707
0
      total_size += 1 +
12708
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12709
0
          *this->error_);
12710
0
    }
12711
12712
    // optional .yb.OpIdPB op_id = 2;
12713
0
    if (has_op_id()) {
12714
0
      total_size += 1 +
12715
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12716
0
          *this->op_id_);
12717
0
    }
12718
12719
0
  }
12720
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12721
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12722
0
  _cached_size_ = cached_size;
12723
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12724
0
  return total_size;
12725
0
}
12726
12727
0
void GetLatestEntryOpIdResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
12728
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12729
0
  GOOGLE_DCHECK_NE(&from, this);
12730
0
  const GetLatestEntryOpIdResponsePB* source =
12731
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetLatestEntryOpIdResponsePB>(
12732
0
          &from);
12733
0
  if (source == NULL) {
12734
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetLatestEntryOpIdResponsePB)
12735
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12736
0
  } else {
12737
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetLatestEntryOpIdResponsePB)
12738
0
    MergeFrom(*source);
12739
0
  }
12740
0
}
12741
12742
0
void GetLatestEntryOpIdResponsePB::MergeFrom(const GetLatestEntryOpIdResponsePB& from) {
12743
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12744
0
  GOOGLE_DCHECK_NE(&from, this);
12745
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12746
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12747
0
  (void) cached_has_bits;
12748
12749
0
  cached_has_bits = from._has_bits_[0];
12750
0
  if (cached_has_bits & 3u) {
12751
0
    if (cached_has_bits & 0x00000001u) {
12752
0
      mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
12753
0
    }
12754
0
    if (cached_has_bits & 0x00000002u) {
12755
0
      mutable_op_id()->::yb::OpIdPB::MergeFrom(from.op_id());
12756
0
    }
12757
0
  }
12758
0
}
12759
12760
0
void GetLatestEntryOpIdResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
12761
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12762
0
  if (&from == this) return;
12763
0
  Clear();
12764
0
  MergeFrom(from);
12765
0
}
12766
12767
0
void GetLatestEntryOpIdResponsePB::CopyFrom(const GetLatestEntryOpIdResponsePB& from) {
12768
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetLatestEntryOpIdResponsePB)
12769
0
  if (&from == this) return;
12770
0
  Clear();
12771
0
  MergeFrom(from);
12772
0
}
12773
12774
0
bool GetLatestEntryOpIdResponsePB::IsInitialized() const {
12775
0
  if (has_error()) {
12776
0
    if (!this->error_->IsInitialized()) return false;
12777
0
  }
12778
0
  if (has_op_id()) {
12779
0
    if (!this->op_id_->IsInitialized()) return false;
12780
0
  }
12781
0
  return true;
12782
0
}
12783
12784
0
void GetLatestEntryOpIdResponsePB::Swap(GetLatestEntryOpIdResponsePB* other) {
12785
0
  if (other == this) return;
12786
0
  InternalSwap(other);
12787
0
}
12788
0
void GetLatestEntryOpIdResponsePB::InternalSwap(GetLatestEntryOpIdResponsePB* other) {
12789
0
  using std::swap;
12790
0
  swap(error_, other->error_);
12791
0
  swap(op_id_, other->op_id_);
12792
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12793
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12794
0
  swap(_cached_size_, other->_cached_size_);
12795
0
}
12796
12797
0
::google::protobuf::Metadata GetLatestEntryOpIdResponsePB::GetMetadata() const {
12798
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12799
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
12800
0
}
12801
12802
12803
// ===================================================================
12804
12805
11.1k
void TableInfo::InitAsDefaultInstance() {
12806
11.1k
}
12807
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12808
const int TableInfo::kStreamIdFieldNumber;
12809
const int TableInfo::kTableIdFieldNumber;
12810
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12811
12812
TableInfo::TableInfo()
12813
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12814
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12815
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo();
12816
0
  }
12817
11.1k
  SharedCtor();
12818
  // @@protoc_insertion_point(constructor:yb.cdc.TableInfo)
12819
11.1k
}
12820
TableInfo::TableInfo(const TableInfo& from)
12821
  : ::google::protobuf::Message(),
12822
      _internal_metadata_(NULL),
12823
      _has_bits_(from._has_bits_),
12824
0
      _cached_size_(0) {
12825
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12826
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12827
0
  if (from.has_stream_id()) {
12828
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
12829
0
  }
12830
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12831
0
  if (from.has_table_id()) {
12832
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
12833
0
  }
12834
  // @@protoc_insertion_point(copy_constructor:yb.cdc.TableInfo)
12835
0
}
12836
12837
11.1k
void TableInfo::SharedCtor() {
12838
11.1k
  _cached_size_ = 0;
12839
11.1k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12840
11.1k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12841
11.1k
}
12842
12843
0
TableInfo::~TableInfo() {
12844
  // @@protoc_insertion_point(destructor:yb.cdc.TableInfo)
12845
0
  SharedDtor();
12846
0
}
12847
12848
0
void TableInfo::SharedDtor() {
12849
0
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12850
0
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12851
0
}
12852
12853
0
void TableInfo::SetCachedSize(int size) const {
12854
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12855
0
  _cached_size_ = size;
12856
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12857
0
}
12858
0
const ::google::protobuf::Descriptor* TableInfo::descriptor() {
12859
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
12860
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12861
0
}
12862
12863
0
const TableInfo& TableInfo::default_instance() {
12864
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsTableInfo();
12865
0
  return *internal_default_instance();
12866
0
}
12867
12868
0
TableInfo* TableInfo::New(::google::protobuf::Arena* arena) const {
12869
0
  TableInfo* n = new TableInfo;
12870
0
  if (arena != NULL) {
12871
0
    arena->Own(n);
12872
0
  }
12873
0
  return n;
12874
0
}
12875
12876
0
void TableInfo::Clear() {
12877
// @@protoc_insertion_point(message_clear_start:yb.cdc.TableInfo)
12878
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12879
  // Prevent compiler warnings about cached_has_bits being unused
12880
0
  (void) cached_has_bits;
12881
12882
0
  cached_has_bits = _has_bits_[0];
12883
0
  if (cached_has_bits & 3u) {
12884
0
    if (cached_has_bits & 0x00000001u) {
12885
0
      GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12886
0
      (*stream_id_.UnsafeRawStringPointer())->clear();
12887
0
    }
12888
0
    if (cached_has_bits & 0x00000002u) {
12889
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12890
0
      (*table_id_.UnsafeRawStringPointer())->clear();
12891
0
    }
12892
0
  }
12893
0
  _has_bits_.Clear();
12894
0
  _internal_metadata_.Clear();
12895
0
}
12896
12897
bool TableInfo::MergePartialFromCodedStream(
12898
0
    ::google::protobuf::io::CodedInputStream* input) {
12899
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12900
0
  ::google::protobuf::uint32 tag;
12901
  // @@protoc_insertion_point(parse_start:yb.cdc.TableInfo)
12902
0
  for (;;) {
12903
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12904
0
    tag = p.first;
12905
0
    if (!p.second) goto handle_unusual;
12906
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12907
      // optional bytes stream_id = 1;
12908
0
      case 1: {
12909
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12910
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12911
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12912
0
                input, this->mutable_stream_id()));
12913
0
        } else {
12914
0
          goto handle_unusual;
12915
0
        }
12916
0
        break;
12917
0
      }
12918
12919
      // optional bytes table_id = 2;
12920
0
      case 2: {
12921
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12922
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12923
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12924
0
                input, this->mutable_table_id()));
12925
0
        } else {
12926
0
          goto handle_unusual;
12927
0
        }
12928
0
        break;
12929
0
      }
12930
12931
0
      default: {
12932
0
      handle_unusual:
12933
0
        if (tag == 0) {
12934
0
          goto success;
12935
0
        }
12936
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12937
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12938
0
        break;
12939
0
      }
12940
0
    }
12941
0
  }
12942
0
success:
12943
  // @@protoc_insertion_point(parse_success:yb.cdc.TableInfo)
12944
0
  return true;
12945
0
failure:
12946
  // @@protoc_insertion_point(parse_failure:yb.cdc.TableInfo)
12947
0
  return false;
12948
0
#undef DO_
12949
0
}
12950
12951
void TableInfo::SerializeWithCachedSizes(
12952
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12953
  // @@protoc_insertion_point(serialize_start:yb.cdc.TableInfo)
12954
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12955
0
  (void) cached_has_bits;
12956
12957
0
  cached_has_bits = _has_bits_[0];
12958
  // optional bytes stream_id = 1;
12959
0
  if (cached_has_bits & 0x00000001u) {
12960
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12961
0
      1, this->stream_id(), output);
12962
0
  }
12963
12964
  // optional bytes table_id = 2;
12965
0
  if (cached_has_bits & 0x00000002u) {
12966
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12967
0
      2, this->table_id(), output);
12968
0
  }
12969
12970
0
  if (_internal_metadata_.have_unknown_fields()) {
12971
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12972
0
        _internal_metadata_.unknown_fields(), output);
12973
0
  }
12974
  // @@protoc_insertion_point(serialize_end:yb.cdc.TableInfo)
12975
0
}
12976
12977
::google::protobuf::uint8* TableInfo::InternalSerializeWithCachedSizesToArray(
12978
0
    bool deterministic, ::google::protobuf::uint8* target) const {
12979
0
  (void)deterministic; // Unused
12980
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.TableInfo)
12981
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12982
0
  (void) cached_has_bits;
12983
12984
0
  cached_has_bits = _has_bits_[0];
12985
  // optional bytes stream_id = 1;
12986
0
  if (cached_has_bits & 0x00000001u) {
12987
0
    target =
12988
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12989
0
        1, this->stream_id(), target);
12990
0
  }
12991
12992
  // optional bytes table_id = 2;
12993
0
  if (cached_has_bits & 0x00000002u) {
12994
0
    target =
12995
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12996
0
        2, this->table_id(), target);
12997
0
  }
12998
12999
0
  if (_internal_metadata_.have_unknown_fields()) {
13000
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13001
0
        _internal_metadata_.unknown_fields(), target);
13002
0
  }
13003
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.TableInfo)
13004
0
  return target;
13005
0
}
13006
13007
0
size_t TableInfo::ByteSizeLong() const {
13008
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.TableInfo)
13009
0
  size_t total_size = 0;
13010
13011
0
  if (_internal_metadata_.have_unknown_fields()) {
13012
0
    total_size +=
13013
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13014
0
        _internal_metadata_.unknown_fields());
13015
0
  }
13016
0
  if (_has_bits_[0 / 32] & 3u) {
13017
    // optional bytes stream_id = 1;
13018
0
    if (has_stream_id()) {
13019
0
      total_size += 1 +
13020
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13021
0
          this->stream_id());
13022
0
    }
13023
13024
    // optional bytes table_id = 2;
13025
0
    if (has_table_id()) {
13026
0
      total_size += 1 +
13027
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13028
0
          this->table_id());
13029
0
    }
13030
13031
0
  }
13032
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13033
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13034
0
  _cached_size_ = cached_size;
13035
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13036
0
  return total_size;
13037
0
}
13038
13039
0
void TableInfo::MergeFrom(const ::google::protobuf::Message& from) {
13040
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.TableInfo)
13041
0
  GOOGLE_DCHECK_NE(&from, this);
13042
0
  const TableInfo* source =
13043
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TableInfo>(
13044
0
          &from);
13045
0
  if (source == NULL) {
13046
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.TableInfo)
13047
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13048
0
  } else {
13049
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.TableInfo)
13050
0
    MergeFrom(*source);
13051
0
  }
13052
0
}
13053
13054
0
void TableInfo::MergeFrom(const TableInfo& from) {
13055
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.TableInfo)
13056
0
  GOOGLE_DCHECK_NE(&from, this);
13057
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13058
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13059
0
  (void) cached_has_bits;
13060
13061
0
  cached_has_bits = from._has_bits_[0];
13062
0
  if (cached_has_bits & 3u) {
13063
0
    if (cached_has_bits & 0x00000001u) {
13064
0
      set_has_stream_id();
13065
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
13066
0
    }
13067
0
    if (cached_has_bits & 0x00000002u) {
13068
0
      set_has_table_id();
13069
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
13070
0
    }
13071
0
  }
13072
0
}
13073
13074
0
void TableInfo::CopyFrom(const ::google::protobuf::Message& from) {
13075
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.TableInfo)
13076
0
  if (&from == this) return;
13077
0
  Clear();
13078
0
  MergeFrom(from);
13079
0
}
13080
13081
0
void TableInfo::CopyFrom(const TableInfo& from) {
13082
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.TableInfo)
13083
0
  if (&from == this) return;
13084
0
  Clear();
13085
0
  MergeFrom(from);
13086
0
}
13087
13088
0
bool TableInfo::IsInitialized() const {
13089
0
  return true;
13090
0
}
13091
13092
0
void TableInfo::Swap(TableInfo* other) {
13093
0
  if (other == this) return;
13094
0
  InternalSwap(other);
13095
0
}
13096
0
void TableInfo::InternalSwap(TableInfo* other) {
13097
0
  using std::swap;
13098
0
  stream_id_.Swap(&other->stream_id_);
13099
0
  table_id_.Swap(&other->table_id_);
13100
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13101
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13102
0
  swap(_cached_size_, other->_cached_size_);
13103
0
}
13104
13105
0
::google::protobuf::Metadata TableInfo::GetMetadata() const {
13106
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13107
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
13108
0
}
13109
13110
13111
// ===================================================================
13112
13113
11.1k
void GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance() {
13114
11.1k
}
13115
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13116
const int GetCDCDBStreamInfoRequestPB::kDbStreamIdFieldNumber;
13117
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13118
13119
GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB()
13120
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13121
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13122
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB();
13123
0
  }
13124
11.1k
  SharedCtor();
13125
  // @@protoc_insertion_point(constructor:yb.cdc.GetCDCDBStreamInfoRequestPB)
13126
11.1k
}
13127
GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB(const GetCDCDBStreamInfoRequestPB& from)
13128
  : ::google::protobuf::Message(),
13129
      _internal_metadata_(NULL),
13130
      _has_bits_(from._has_bits_),
13131
0
      _cached_size_(0) {
13132
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13133
0
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13134
0
  if (from.has_db_stream_id()) {
13135
0
    db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
13136
0
  }
13137
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCDCDBStreamInfoRequestPB)
13138
0
}
13139
13140
11.1k
void GetCDCDBStreamInfoRequestPB::SharedCtor() {
13141
11.1k
  _cached_size_ = 0;
13142
11.1k
  db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13143
11.1k
}
13144
13145
0
GetCDCDBStreamInfoRequestPB::~GetCDCDBStreamInfoRequestPB() {
13146
  // @@protoc_insertion_point(destructor:yb.cdc.GetCDCDBStreamInfoRequestPB)
13147
0
  SharedDtor();
13148
0
}
13149
13150
0
void GetCDCDBStreamInfoRequestPB::SharedDtor() {
13151
0
  db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13152
0
}
13153
13154
0
void GetCDCDBStreamInfoRequestPB::SetCachedSize(int size) const {
13155
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13156
0
  _cached_size_ = size;
13157
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13158
0
}
13159
0
const ::google::protobuf::Descriptor* GetCDCDBStreamInfoRequestPB::descriptor() {
13160
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13161
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13162
0
}
13163
13164
0
const GetCDCDBStreamInfoRequestPB& GetCDCDBStreamInfoRequestPB::default_instance() {
13165
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB();
13166
0
  return *internal_default_instance();
13167
0
}
13168
13169
0
GetCDCDBStreamInfoRequestPB* GetCDCDBStreamInfoRequestPB::New(::google::protobuf::Arena* arena) const {
13170
0
  GetCDCDBStreamInfoRequestPB* n = new GetCDCDBStreamInfoRequestPB;
13171
0
  if (arena != NULL) {
13172
0
    arena->Own(n);
13173
0
  }
13174
0
  return n;
13175
0
}
13176
13177
0
void GetCDCDBStreamInfoRequestPB::Clear() {
13178
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13179
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13180
  // Prevent compiler warnings about cached_has_bits being unused
13181
0
  (void) cached_has_bits;
13182
13183
0
  cached_has_bits = _has_bits_[0];
13184
0
  if (cached_has_bits & 0x00000001u) {
13185
0
    GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13186
0
    (*db_stream_id_.UnsafeRawStringPointer())->clear();
13187
0
  }
13188
0
  _has_bits_.Clear();
13189
0
  _internal_metadata_.Clear();
13190
0
}
13191
13192
bool GetCDCDBStreamInfoRequestPB::MergePartialFromCodedStream(
13193
0
    ::google::protobuf::io::CodedInputStream* input) {
13194
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13195
0
  ::google::protobuf::uint32 tag;
13196
  // @@protoc_insertion_point(parse_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13197
0
  for (;;) {
13198
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13199
0
    tag = p.first;
13200
0
    if (!p.second) goto handle_unusual;
13201
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13202
      // optional bytes db_stream_id = 1;
13203
0
      case 1: {
13204
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13205
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13206
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13207
0
                input, this->mutable_db_stream_id()));
13208
0
        } else {
13209
0
          goto handle_unusual;
13210
0
        }
13211
0
        break;
13212
0
      }
13213
13214
0
      default: {
13215
0
      handle_unusual:
13216
0
        if (tag == 0) {
13217
0
          goto success;
13218
0
        }
13219
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13220
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13221
0
        break;
13222
0
      }
13223
0
    }
13224
0
  }
13225
0
success:
13226
  // @@protoc_insertion_point(parse_success:yb.cdc.GetCDCDBStreamInfoRequestPB)
13227
0
  return true;
13228
0
failure:
13229
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetCDCDBStreamInfoRequestPB)
13230
0
  return false;
13231
0
#undef DO_
13232
0
}
13233
13234
void GetCDCDBStreamInfoRequestPB::SerializeWithCachedSizes(
13235
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13236
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13237
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13238
0
  (void) cached_has_bits;
13239
13240
0
  cached_has_bits = _has_bits_[0];
13241
  // optional bytes db_stream_id = 1;
13242
0
  if (cached_has_bits & 0x00000001u) {
13243
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13244
0
      1, this->db_stream_id(), output);
13245
0
  }
13246
13247
0
  if (_internal_metadata_.have_unknown_fields()) {
13248
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13249
0
        _internal_metadata_.unknown_fields(), output);
13250
0
  }
13251
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetCDCDBStreamInfoRequestPB)
13252
0
}
13253
13254
::google::protobuf::uint8* GetCDCDBStreamInfoRequestPB::InternalSerializeWithCachedSizesToArray(
13255
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13256
0
  (void)deterministic; // Unused
13257
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13258
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13259
0
  (void) cached_has_bits;
13260
13261
0
  cached_has_bits = _has_bits_[0];
13262
  // optional bytes db_stream_id = 1;
13263
0
  if (cached_has_bits & 0x00000001u) {
13264
0
    target =
13265
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13266
0
        1, this->db_stream_id(), target);
13267
0
  }
13268
13269
0
  if (_internal_metadata_.have_unknown_fields()) {
13270
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13271
0
        _internal_metadata_.unknown_fields(), target);
13272
0
  }
13273
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCDCDBStreamInfoRequestPB)
13274
0
  return target;
13275
0
}
13276
13277
0
size_t GetCDCDBStreamInfoRequestPB::ByteSizeLong() const {
13278
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13279
0
  size_t total_size = 0;
13280
13281
0
  if (_internal_metadata_.have_unknown_fields()) {
13282
0
    total_size +=
13283
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13284
0
        _internal_metadata_.unknown_fields());
13285
0
  }
13286
  // optional bytes db_stream_id = 1;
13287
0
  if (has_db_stream_id()) {
13288
0
    total_size += 1 +
13289
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
13290
0
        this->db_stream_id());
13291
0
  }
13292
13293
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13294
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13295
0
  _cached_size_ = cached_size;
13296
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13297
0
  return total_size;
13298
0
}
13299
13300
0
void GetCDCDBStreamInfoRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
13301
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13302
0
  GOOGLE_DCHECK_NE(&from, this);
13303
0
  const GetCDCDBStreamInfoRequestPB* source =
13304
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoRequestPB>(
13305
0
          &from);
13306
0
  if (source == NULL) {
13307
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCDCDBStreamInfoRequestPB)
13308
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13309
0
  } else {
13310
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCDCDBStreamInfoRequestPB)
13311
0
    MergeFrom(*source);
13312
0
  }
13313
0
}
13314
13315
0
void GetCDCDBStreamInfoRequestPB::MergeFrom(const GetCDCDBStreamInfoRequestPB& from) {
13316
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13317
0
  GOOGLE_DCHECK_NE(&from, this);
13318
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13319
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13320
0
  (void) cached_has_bits;
13321
13322
0
  if (from.has_db_stream_id()) {
13323
0
    set_has_db_stream_id();
13324
0
    db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_);
13325
0
  }
13326
0
}
13327
13328
0
void GetCDCDBStreamInfoRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
13329
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13330
0
  if (&from == this) return;
13331
0
  Clear();
13332
0
  MergeFrom(from);
13333
0
}
13334
13335
0
void GetCDCDBStreamInfoRequestPB::CopyFrom(const GetCDCDBStreamInfoRequestPB& from) {
13336
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCDCDBStreamInfoRequestPB)
13337
0
  if (&from == this) return;
13338
0
  Clear();
13339
0
  MergeFrom(from);
13340
0
}
13341
13342
0
bool GetCDCDBStreamInfoRequestPB::IsInitialized() const {
13343
0
  return true;
13344
0
}
13345
13346
0
void GetCDCDBStreamInfoRequestPB::Swap(GetCDCDBStreamInfoRequestPB* other) {
13347
0
  if (other == this) return;
13348
0
  InternalSwap(other);
13349
0
}
13350
0
void GetCDCDBStreamInfoRequestPB::InternalSwap(GetCDCDBStreamInfoRequestPB* other) {
13351
0
  using std::swap;
13352
0
  db_stream_id_.Swap(&other->db_stream_id_);
13353
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13354
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13355
0
  swap(_cached_size_, other->_cached_size_);
13356
0
}
13357
13358
0
::google::protobuf::Metadata GetCDCDBStreamInfoRequestPB::GetMetadata() const {
13359
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13360
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
13361
0
}
13362
13363
13364
// ===================================================================
13365
13366
11.1k
void GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance() {
13367
11.1k
  ::yb::cdc::_GetCDCDBStreamInfoResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
13368
11.1k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
13369
11.1k
}
13370
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13371
const int GetCDCDBStreamInfoResponsePB::kErrorFieldNumber;
13372
const int GetCDCDBStreamInfoResponsePB::kNamespaceIdFieldNumber;
13373
const int GetCDCDBStreamInfoResponsePB::kTableInfoFieldNumber;
13374
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13375
13376
GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB()
13377
11.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13378
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13379
0
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB();
13380
0
  }
13381
11.1k
  SharedCtor();
13382
  // @@protoc_insertion_point(constructor:yb.cdc.GetCDCDBStreamInfoResponsePB)
13383
11.1k
}
13384
GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB(const GetCDCDBStreamInfoResponsePB& from)
13385
  : ::google::protobuf::Message(),
13386
      _internal_metadata_(NULL),
13387
      _has_bits_(from._has_bits_),
13388
      _cached_size_(0),
13389
0
      table_info_(from.table_info_) {
13390
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13391
0
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13392
0
  if (from.has_namespace_id()) {
13393
0
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
13394
0
  }
13395
0
  if (from.has_error()) {
13396
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
13397
0
  } else {
13398
0
    error_ = NULL;
13399
0
  }
13400
  // @@protoc_insertion_point(copy_constructor:yb.cdc.GetCDCDBStreamInfoResponsePB)
13401
0
}
13402
13403
11.1k
void GetCDCDBStreamInfoResponsePB::SharedCtor() {
13404
11.1k
  _cached_size_ = 0;
13405
11.1k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13406
11.1k
  error_ = NULL;
13407
11.1k
}
13408
13409
0
GetCDCDBStreamInfoResponsePB::~GetCDCDBStreamInfoResponsePB() {
13410
  // @@protoc_insertion_point(destructor:yb.cdc.GetCDCDBStreamInfoResponsePB)
13411
0
  SharedDtor();
13412
0
}
13413
13414
0
void GetCDCDBStreamInfoResponsePB::SharedDtor() {
13415
0
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13416
0
  if (this != internal_default_instance()) delete error_;
13417
0
}
13418
13419
0
void GetCDCDBStreamInfoResponsePB::SetCachedSize(int size) const {
13420
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13421
0
  _cached_size_ = size;
13422
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13423
0
}
13424
0
const ::google::protobuf::Descriptor* GetCDCDBStreamInfoResponsePB::descriptor() {
13425
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13426
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13427
0
}
13428
13429
0
const GetCDCDBStreamInfoResponsePB& GetCDCDBStreamInfoResponsePB::default_instance() {
13430
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB();
13431
0
  return *internal_default_instance();
13432
0
}
13433
13434
0
GetCDCDBStreamInfoResponsePB* GetCDCDBStreamInfoResponsePB::New(::google::protobuf::Arena* arena) const {
13435
0
  GetCDCDBStreamInfoResponsePB* n = new GetCDCDBStreamInfoResponsePB;
13436
0
  if (arena != NULL) {
13437
0
    arena->Own(n);
13438
0
  }
13439
0
  return n;
13440
0
}
13441
13442
0
void GetCDCDBStreamInfoResponsePB::Clear() {
13443
// @@protoc_insertion_point(message_clear_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13444
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13445
  // Prevent compiler warnings about cached_has_bits being unused
13446
0
  (void) cached_has_bits;
13447
13448
0
  table_info_.Clear();
13449
0
  cached_has_bits = _has_bits_[0];
13450
0
  if (cached_has_bits & 3u) {
13451
0
    if (cached_has_bits & 0x00000001u) {
13452
0
      GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13453
0
      (*namespace_id_.UnsafeRawStringPointer())->clear();
13454
0
    }
13455
0
    if (cached_has_bits & 0x00000002u) {
13456
0
      GOOGLE_DCHECK(error_ != NULL);
13457
0
      error_->Clear();
13458
0
    }
13459
0
  }
13460
0
  _has_bits_.Clear();
13461
0
  _internal_metadata_.Clear();
13462
0
}
13463
13464
bool GetCDCDBStreamInfoResponsePB::MergePartialFromCodedStream(
13465
0
    ::google::protobuf::io::CodedInputStream* input) {
13466
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13467
0
  ::google::protobuf::uint32 tag;
13468
  // @@protoc_insertion_point(parse_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13469
0
  for (;;) {
13470
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13471
0
    tag = p.first;
13472
0
    if (!p.second) goto handle_unusual;
13473
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13474
      // optional .yb.cdc.CDCErrorPB error = 1;
13475
0
      case 1: {
13476
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13477
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13478
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13479
0
               input, mutable_error()));
13480
0
        } else {
13481
0
          goto handle_unusual;
13482
0
        }
13483
0
        break;
13484
0
      }
13485
13486
      // optional bytes namespace_id = 2;
13487
0
      case 2: {
13488
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13489
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13490
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13491
0
                input, this->mutable_namespace_id()));
13492
0
        } else {
13493
0
          goto handle_unusual;
13494
0
        }
13495
0
        break;
13496
0
      }
13497
13498
      // repeated .yb.cdc.TableInfo table_info = 3;
13499
0
      case 3: {
13500
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13501
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13502
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_table_info()));
13503
0
        } else {
13504
0
          goto handle_unusual;
13505
0
        }
13506
0
        break;
13507
0
      }
13508
13509
0
      default: {
13510
0
      handle_unusual:
13511
0
        if (tag == 0) {
13512
0
          goto success;
13513
0
        }
13514
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13515
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13516
0
        break;
13517
0
      }
13518
0
    }
13519
0
  }
13520
0
success:
13521
  // @@protoc_insertion_point(parse_success:yb.cdc.GetCDCDBStreamInfoResponsePB)
13522
0
  return true;
13523
0
failure:
13524
  // @@protoc_insertion_point(parse_failure:yb.cdc.GetCDCDBStreamInfoResponsePB)
13525
0
  return false;
13526
0
#undef DO_
13527
0
}
13528
13529
void GetCDCDBStreamInfoResponsePB::SerializeWithCachedSizes(
13530
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13531
  // @@protoc_insertion_point(serialize_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13532
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13533
0
  (void) cached_has_bits;
13534
13535
0
  cached_has_bits = _has_bits_[0];
13536
  // optional .yb.cdc.CDCErrorPB error = 1;
13537
0
  if (cached_has_bits & 0x00000002u) {
13538
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13539
0
      1, *this->error_, output);
13540
0
  }
13541
13542
  // optional bytes namespace_id = 2;
13543
0
  if (cached_has_bits & 0x00000001u) {
13544
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13545
0
      2, this->namespace_id(), output);
13546
0
  }
13547
13548
  // repeated .yb.cdc.TableInfo table_info = 3;
13549
0
  for (unsigned int i = 0,
13550
0
      n = static_cast<unsigned int>(this->table_info_size()); i < n; i++) {
13551
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13552
0
      3, this->table_info(static_cast<int>(i)), output);
13553
0
  }
13554
13555
0
  if (_internal_metadata_.have_unknown_fields()) {
13556
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13557
0
        _internal_metadata_.unknown_fields(), output);
13558
0
  }
13559
  // @@protoc_insertion_point(serialize_end:yb.cdc.GetCDCDBStreamInfoResponsePB)
13560
0
}
13561
13562
::google::protobuf::uint8* GetCDCDBStreamInfoResponsePB::InternalSerializeWithCachedSizesToArray(
13563
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13564
0
  (void)deterministic; // Unused
13565
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13566
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13567
0
  (void) cached_has_bits;
13568
13569
0
  cached_has_bits = _has_bits_[0];
13570
  // optional .yb.cdc.CDCErrorPB error = 1;
13571
0
  if (cached_has_bits & 0x00000002u) {
13572
0
    target = ::google::protobuf::internal::WireFormatLite::
13573
0
      InternalWriteMessageToArray(
13574
0
        1, *this->error_, deterministic, target);
13575
0
  }
13576
13577
  // optional bytes namespace_id = 2;
13578
0
  if (cached_has_bits & 0x00000001u) {
13579
0
    target =
13580
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13581
0
        2, this->namespace_id(), target);
13582
0
  }
13583
13584
  // repeated .yb.cdc.TableInfo table_info = 3;
13585
0
  for (unsigned int i = 0,
13586
0
      n = static_cast<unsigned int>(this->table_info_size()); i < n; i++) {
13587
0
    target = ::google::protobuf::internal::WireFormatLite::
13588
0
      InternalWriteMessageToArray(
13589
0
        3, this->table_info(static_cast<int>(i)), deterministic, target);
13590
0
  }
13591
13592
0
  if (_internal_metadata_.have_unknown_fields()) {
13593
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13594
0
        _internal_metadata_.unknown_fields(), target);
13595
0
  }
13596
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.GetCDCDBStreamInfoResponsePB)
13597
0
  return target;
13598
0
}
13599
13600
0
size_t GetCDCDBStreamInfoResponsePB::ByteSizeLong() const {
13601
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13602
0
  size_t total_size = 0;
13603
13604
0
  if (_internal_metadata_.have_unknown_fields()) {
13605
0
    total_size +=
13606
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13607
0
        _internal_metadata_.unknown_fields());
13608
0
  }
13609
  // repeated .yb.cdc.TableInfo table_info = 3;
13610
0
  {
13611
0
    unsigned int count = static_cast<unsigned int>(this->table_info_size());
13612
0
    total_size += 1UL * count;
13613
0
    for (unsigned int i = 0; i < count; i++) {
13614
0
      total_size +=
13615
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13616
0
          this->table_info(static_cast<int>(i)));
13617
0
    }
13618
0
  }
13619
13620
0
  if (_has_bits_[0 / 32] & 3u) {
13621
    // optional bytes namespace_id = 2;
13622
0
    if (has_namespace_id()) {
13623
0
      total_size += 1 +
13624
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13625
0
          this->namespace_id());
13626
0
    }
13627
13628
    // optional .yb.cdc.CDCErrorPB error = 1;
13629
0
    if (has_error()) {
13630
0
      total_size += 1 +
13631
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13632
0
          *this->error_);
13633
0
    }
13634
13635
0
  }
13636
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13637
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13638
0
  _cached_size_ = cached_size;
13639
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13640
0
  return total_size;
13641
0
}
13642
13643
0
void GetCDCDBStreamInfoResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
13644
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13645
0
  GOOGLE_DCHECK_NE(&from, this);
13646
0
  const GetCDCDBStreamInfoResponsePB* source =
13647
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoResponsePB>(
13648
0
          &from);
13649
0
  if (source == NULL) {
13650
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.GetCDCDBStreamInfoResponsePB)
13651
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13652
0
  } else {
13653
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.GetCDCDBStreamInfoResponsePB)
13654
0
    MergeFrom(*source);
13655
0
  }
13656
0
}
13657
13658
0
void GetCDCDBStreamInfoResponsePB::MergeFrom(const GetCDCDBStreamInfoResponsePB& from) {
13659
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13660
0
  GOOGLE_DCHECK_NE(&from, this);
13661
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13662
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13663
0
  (void) cached_has_bits;
13664
13665
0
  table_info_.MergeFrom(from.table_info_);
13666
0
  cached_has_bits = from._has_bits_[0];
13667
0
  if (cached_has_bits & 3u) {
13668
0
    if (cached_has_bits & 0x00000001u) {
13669
0
      set_has_namespace_id();
13670
0
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
13671
0
    }
13672
0
    if (cached_has_bits & 0x00000002u) {
13673
0
      mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
13674
0
    }
13675
0
  }
13676
0
}
13677
13678
0
void GetCDCDBStreamInfoResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
13679
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13680
0
  if (&from == this) return;
13681
0
  Clear();
13682
0
  MergeFrom(from);
13683
0
}
13684
13685
0
void GetCDCDBStreamInfoResponsePB::CopyFrom(const GetCDCDBStreamInfoResponsePB& from) {
13686
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.GetCDCDBStreamInfoResponsePB)
13687
0
  if (&from == this) return;
13688
0
  Clear();
13689
0
  MergeFrom(from);
13690
0
}
13691
13692
0
bool GetCDCDBStreamInfoResponsePB::IsInitialized() const {
13693
0
  if (has_error()) {
13694
0
    if (!this->error_->IsInitialized()) return false;
13695
0
  }
13696
0
  return true;
13697
0
}
13698
13699
0
void GetCDCDBStreamInfoResponsePB::Swap(GetCDCDBStreamInfoResponsePB* other) {
13700
0
  if (other == this) return;
13701
0
  InternalSwap(other);
13702
0
}
13703
0
void GetCDCDBStreamInfoResponsePB::InternalSwap(GetCDCDBStreamInfoResponsePB* other) {
13704
0
  using std::swap;
13705
0
  table_info_.InternalSwap(&other->table_info_);
13706
0
  namespace_id_.Swap(&other->namespace_id_);
13707
0
  swap(error_, other->error_);
13708
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13709
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13710
0
  swap(_cached_size_, other->_cached_size_);
13711
0
}
13712
13713
0
::google::protobuf::Metadata GetCDCDBStreamInfoResponsePB::GetMetadata() const {
13714
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13715
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
13716
0
}
13717
13718
13719
// ===================================================================
13720
13721
9.25k
void SetCDCCheckpointRequestPB::InitAsDefaultInstance() {
13722
9.25k
  ::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_._instance.get_mutable()->checkpoint_ = const_cast< ::yb::cdc::CDCCheckpointPB*>(
13723
9.25k
      ::yb::cdc::CDCCheckpointPB::internal_default_instance());
13724
9.25k
  ::yb::cdc::_SetCDCCheckpointRequestPB_default_instance_._instance.get_mutable()->cdc_sdk_checkpoint_ = const_cast< ::yb::cdc::CDCSDKCheckpointPB*>(
13725
9.25k
      ::yb::cdc::CDCSDKCheckpointPB::internal_default_instance());
13726
9.25k
}
13727
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13728
const int SetCDCCheckpointRequestPB::kCheckpointFieldNumber;
13729
const int SetCDCCheckpointRequestPB::kCdcSdkCheckpointFieldNumber;
13730
const int SetCDCCheckpointRequestPB::kStreamIdFieldNumber;
13731
const int SetCDCCheckpointRequestPB::kTabletIdFieldNumber;
13732
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13733
13734
SetCDCCheckpointRequestPB::SetCDCCheckpointRequestPB()
13735
9.26k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13736
3
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13737
3
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointRequestPB();
13738
3
  }
13739
9.26k
  SharedCtor();
13740
  // @@protoc_insertion_point(constructor:yb.cdc.SetCDCCheckpointRequestPB)
13741
9.26k
}
13742
SetCDCCheckpointRequestPB::SetCDCCheckpointRequestPB(const SetCDCCheckpointRequestPB& from)
13743
  : ::google::protobuf::Message(),
13744
      _internal_metadata_(NULL),
13745
      _has_bits_(from._has_bits_),
13746
0
      _cached_size_(0) {
13747
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13748
0
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13749
0
  if (from.has_stream_id()) {
13750
0
    stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
13751
0
  }
13752
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13753
0
  if (from.has_tablet_id()) {
13754
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
13755
0
  }
13756
0
  if (from.has_checkpoint()) {
13757
0
    checkpoint_ = new ::yb::cdc::CDCCheckpointPB(*from.checkpoint_);
13758
0
  } else {
13759
0
    checkpoint_ = NULL;
13760
0
  }
13761
0
  if (from.has_cdc_sdk_checkpoint()) {
13762
0
    cdc_sdk_checkpoint_ = new ::yb::cdc::CDCSDKCheckpointPB(*from.cdc_sdk_checkpoint_);
13763
0
  } else {
13764
0
    cdc_sdk_checkpoint_ = NULL;
13765
0
  }
13766
  // @@protoc_insertion_point(copy_constructor:yb.cdc.SetCDCCheckpointRequestPB)
13767
0
}
13768
13769
9.26k
void SetCDCCheckpointRequestPB::SharedCtor() {
13770
9.26k
  _cached_size_ = 0;
13771
9.26k
  stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13772
9.26k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13773
9.26k
  ::memset(&checkpoint_, 0, static_cast<size_t>(
13774
9.26k
      reinterpret_cast<char*>(&cdc_sdk_checkpoint_) -
13775
9.26k
      reinterpret_cast<char*>(&checkpoint_)) + sizeof(cdc_sdk_checkpoint_));
13776
9.26k
}
13777
13778
3
SetCDCCheckpointRequestPB::~SetCDCCheckpointRequestPB() {
13779
  // @@protoc_insertion_point(destructor:yb.cdc.SetCDCCheckpointRequestPB)
13780
3
  SharedDtor();
13781
3
}
13782
13783
3
void SetCDCCheckpointRequestPB::SharedDtor() {
13784
3
  stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13785
3
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13786
3
  if (this != internal_default_instance()) delete checkpoint_;
13787
3
  if (this != internal_default_instance()) delete cdc_sdk_checkpoint_;
13788
3
}
13789
13790
0
void SetCDCCheckpointRequestPB::SetCachedSize(int size) const {
13791
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13792
0
  _cached_size_ = size;
13793
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13794
0
}
13795
0
const ::google::protobuf::Descriptor* SetCDCCheckpointRequestPB::descriptor() {
13796
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
13797
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13798
0
}
13799
13800
0
const SetCDCCheckpointRequestPB& SetCDCCheckpointRequestPB::default_instance() {
13801
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointRequestPB();
13802
0
  return *internal_default_instance();
13803
0
}
13804
13805
0
SetCDCCheckpointRequestPB* SetCDCCheckpointRequestPB::New(::google::protobuf::Arena* arena) const {
13806
0
  SetCDCCheckpointRequestPB* n = new SetCDCCheckpointRequestPB;
13807
0
  if (arena != NULL) {
13808
0
    arena->Own(n);
13809
0
  }
13810
0
  return n;
13811
0
}
13812
13813
3
void SetCDCCheckpointRequestPB::Clear() {
13814
// @@protoc_insertion_point(message_clear_start:yb.cdc.SetCDCCheckpointRequestPB)
13815
3
  ::google::protobuf::uint32 cached_has_bits = 0;
13816
  // Prevent compiler warnings about cached_has_bits being unused
13817
3
  (void) cached_has_bits;
13818
13819
3
  cached_has_bits = _has_bits_[0];
13820
3
  if (cached_has_bits & 15u) {
13821
0
    if (cached_has_bits & 0x00000001u) {
13822
0
      GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13823
0
      (*stream_id_.UnsafeRawStringPointer())->clear();
13824
0
    }
13825
0
    if (cached_has_bits & 0x00000002u) {
13826
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13827
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
13828
0
    }
13829
0
    if (cached_has_bits & 0x00000004u) {
13830
0
      GOOGLE_DCHECK(checkpoint_ != NULL);
13831
0
      checkpoint_->Clear();
13832
0
    }
13833
0
    if (cached_has_bits & 0x00000008u) {
13834
0
      GOOGLE_DCHECK(cdc_sdk_checkpoint_ != NULL);
13835
0
      cdc_sdk_checkpoint_->Clear();
13836
0
    }
13837
0
  }
13838
3
  _has_bits_.Clear();
13839
3
  _internal_metadata_.Clear();
13840
3
}
13841
13842
bool SetCDCCheckpointRequestPB::MergePartialFromCodedStream(
13843
3
    ::google::protobuf::io::CodedInputStream* input) {
13844
9
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13845
3
  ::google::protobuf::uint32 tag;
13846
  // @@protoc_insertion_point(parse_start:yb.cdc.SetCDCCheckpointRequestPB)
13847
12
  for (;;) {
13848
12
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13849
12
    tag = p.first;
13850
12
    if (!p.second) goto handle_unusual;
13851
9
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13852
      // optional .yb.cdc.CDCCheckpointPB checkpoint = 1;
13853
3
      case 1: {
13854
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13855
3
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13856
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13857
3
               input, mutable_checkpoint()));
13858
0
        } else {
13859
0
          goto handle_unusual;
13860
0
        }
13861
3
        break;
13862
3
      }
13863
13864
      // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2;
13865
0
      case 2: {
13866
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13867
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13868
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13869
0
               input, mutable_cdc_sdk_checkpoint()));
13870
0
        } else {
13871
0
          goto handle_unusual;
13872
0
        }
13873
0
        break;
13874
0
      }
13875
13876
      // optional bytes stream_id = 3;
13877
3
      case 3: {
13878
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13879
3
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13880
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13881
3
                input, this->mutable_stream_id()));
13882
0
        } else {
13883
0
          goto handle_unusual;
13884
0
        }
13885
3
        break;
13886
3
      }
13887
13888
      // optional bytes tablet_id = 4;
13889
3
      case 4: {
13890
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13891
3
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
13892
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13893
3
                input, this->mutable_tablet_id()));
13894
0
        } else {
13895
0
          goto handle_unusual;
13896
0
        }
13897
3
        break;
13898
3
      }
13899
13900
0
      default: {
13901
3
      handle_unusual:
13902
3
        if (tag == 0) {
13903
3
          goto success;
13904
3
        }
13905
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13906
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13907
0
        break;
13908
0
      }
13909
9
    }
13910
9
  }
13911
3
success:
13912
  // @@protoc_insertion_point(parse_success:yb.cdc.SetCDCCheckpointRequestPB)
13913
3
  return true;
13914
0
failure:
13915
  // @@protoc_insertion_point(parse_failure:yb.cdc.SetCDCCheckpointRequestPB)
13916
0
  return false;
13917
3
#undef DO_
13918
3
}
13919
13920
void SetCDCCheckpointRequestPB::SerializeWithCachedSizes(
13921
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13922
  // @@protoc_insertion_point(serialize_start:yb.cdc.SetCDCCheckpointRequestPB)
13923
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13924
0
  (void) cached_has_bits;
13925
13926
0
  cached_has_bits = _has_bits_[0];
13927
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 1;
13928
0
  if (cached_has_bits & 0x00000004u) {
13929
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13930
0
      1, *this->checkpoint_, output);
13931
0
  }
13932
13933
  // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2;
13934
0
  if (cached_has_bits & 0x00000008u) {
13935
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13936
0
      2, *this->cdc_sdk_checkpoint_, output);
13937
0
  }
13938
13939
  // optional bytes stream_id = 3;
13940
0
  if (cached_has_bits & 0x00000001u) {
13941
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13942
0
      3, this->stream_id(), output);
13943
0
  }
13944
13945
  // optional bytes tablet_id = 4;
13946
0
  if (cached_has_bits & 0x00000002u) {
13947
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13948
0
      4, this->tablet_id(), output);
13949
0
  }
13950
13951
0
  if (_internal_metadata_.have_unknown_fields()) {
13952
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13953
0
        _internal_metadata_.unknown_fields(), output);
13954
0
  }
13955
  // @@protoc_insertion_point(serialize_end:yb.cdc.SetCDCCheckpointRequestPB)
13956
0
}
13957
13958
::google::protobuf::uint8* SetCDCCheckpointRequestPB::InternalSerializeWithCachedSizesToArray(
13959
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13960
0
  (void)deterministic; // Unused
13961
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.SetCDCCheckpointRequestPB)
13962
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13963
0
  (void) cached_has_bits;
13964
13965
0
  cached_has_bits = _has_bits_[0];
13966
  // optional .yb.cdc.CDCCheckpointPB checkpoint = 1;
13967
0
  if (cached_has_bits & 0x00000004u) {
13968
0
    target = ::google::protobuf::internal::WireFormatLite::
13969
0
      InternalWriteMessageToArray(
13970
0
        1, *this->checkpoint_, deterministic, target);
13971
0
  }
13972
13973
  // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2;
13974
0
  if (cached_has_bits & 0x00000008u) {
13975
0
    target = ::google::protobuf::internal::WireFormatLite::
13976
0
      InternalWriteMessageToArray(
13977
0
        2, *this->cdc_sdk_checkpoint_, deterministic, target);
13978
0
  }
13979
13980
  // optional bytes stream_id = 3;
13981
0
  if (cached_has_bits & 0x00000001u) {
13982
0
    target =
13983
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13984
0
        3, this->stream_id(), target);
13985
0
  }
13986
13987
  // optional bytes tablet_id = 4;
13988
0
  if (cached_has_bits & 0x00000002u) {
13989
0
    target =
13990
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13991
0
        4, this->tablet_id(), target);
13992
0
  }
13993
13994
0
  if (_internal_metadata_.have_unknown_fields()) {
13995
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13996
0
        _internal_metadata_.unknown_fields(), target);
13997
0
  }
13998
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.SetCDCCheckpointRequestPB)
13999
0
  return target;
14000
0
}
14001
14002
0
size_t SetCDCCheckpointRequestPB::ByteSizeLong() const {
14003
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.SetCDCCheckpointRequestPB)
14004
0
  size_t total_size = 0;
14005
14006
0
  if (_internal_metadata_.have_unknown_fields()) {
14007
0
    total_size +=
14008
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14009
0
        _internal_metadata_.unknown_fields());
14010
0
  }
14011
0
  if (_has_bits_[0 / 32] & 15u) {
14012
    // optional bytes stream_id = 3;
14013
0
    if (has_stream_id()) {
14014
0
      total_size += 1 +
14015
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
14016
0
          this->stream_id());
14017
0
    }
14018
14019
    // optional bytes tablet_id = 4;
14020
0
    if (has_tablet_id()) {
14021
0
      total_size += 1 +
14022
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
14023
0
          this->tablet_id());
14024
0
    }
14025
14026
    // optional .yb.cdc.CDCCheckpointPB checkpoint = 1;
14027
0
    if (has_checkpoint()) {
14028
0
      total_size += 1 +
14029
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
14030
0
          *this->checkpoint_);
14031
0
    }
14032
14033
    // optional .yb.cdc.CDCSDKCheckpointPB cdc_sdk_checkpoint = 2;
14034
0
    if (has_cdc_sdk_checkpoint()) {
14035
0
      total_size += 1 +
14036
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
14037
0
          *this->cdc_sdk_checkpoint_);
14038
0
    }
14039
14040
0
  }
14041
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14042
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14043
0
  _cached_size_ = cached_size;
14044
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14045
0
  return total_size;
14046
0
}
14047
14048
0
void SetCDCCheckpointRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
14049
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.SetCDCCheckpointRequestPB)
14050
0
  GOOGLE_DCHECK_NE(&from, this);
14051
0
  const SetCDCCheckpointRequestPB* source =
14052
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SetCDCCheckpointRequestPB>(
14053
0
          &from);
14054
0
  if (source == NULL) {
14055
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.SetCDCCheckpointRequestPB)
14056
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14057
0
  } else {
14058
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.SetCDCCheckpointRequestPB)
14059
0
    MergeFrom(*source);
14060
0
  }
14061
0
}
14062
14063
0
void SetCDCCheckpointRequestPB::MergeFrom(const SetCDCCheckpointRequestPB& from) {
14064
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.SetCDCCheckpointRequestPB)
14065
0
  GOOGLE_DCHECK_NE(&from, this);
14066
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14067
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14068
0
  (void) cached_has_bits;
14069
14070
0
  cached_has_bits = from._has_bits_[0];
14071
0
  if (cached_has_bits & 15u) {
14072
0
    if (cached_has_bits & 0x00000001u) {
14073
0
      set_has_stream_id();
14074
0
      stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
14075
0
    }
14076
0
    if (cached_has_bits & 0x00000002u) {
14077
0
      set_has_tablet_id();
14078
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
14079
0
    }
14080
0
    if (cached_has_bits & 0x00000004u) {
14081
0
      mutable_checkpoint()->::yb::cdc::CDCCheckpointPB::MergeFrom(from.checkpoint());
14082
0
    }
14083
0
    if (cached_has_bits & 0x00000008u) {
14084
0
      mutable_cdc_sdk_checkpoint()->::yb::cdc::CDCSDKCheckpointPB::MergeFrom(from.cdc_sdk_checkpoint());
14085
0
    }
14086
0
  }
14087
0
}
14088
14089
0
void SetCDCCheckpointRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
14090
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.SetCDCCheckpointRequestPB)
14091
0
  if (&from == this) return;
14092
0
  Clear();
14093
0
  MergeFrom(from);
14094
0
}
14095
14096
0
void SetCDCCheckpointRequestPB::CopyFrom(const SetCDCCheckpointRequestPB& from) {
14097
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.SetCDCCheckpointRequestPB)
14098
0
  if (&from == this) return;
14099
0
  Clear();
14100
0
  MergeFrom(from);
14101
0
}
14102
14103
3
bool SetCDCCheckpointRequestPB::IsInitialized() const {
14104
3
  if (has_checkpoint()) {
14105
3
    if (!this->checkpoint_->IsInitialized()) return false;
14106
3
  }
14107
3
  return true;
14108
3
}
14109
14110
0
void SetCDCCheckpointRequestPB::Swap(SetCDCCheckpointRequestPB* other) {
14111
0
  if (other == this) return;
14112
0
  InternalSwap(other);
14113
0
}
14114
0
void SetCDCCheckpointRequestPB::InternalSwap(SetCDCCheckpointRequestPB* other) {
14115
0
  using std::swap;
14116
0
  stream_id_.Swap(&other->stream_id_);
14117
0
  tablet_id_.Swap(&other->tablet_id_);
14118
0
  swap(checkpoint_, other->checkpoint_);
14119
0
  swap(cdc_sdk_checkpoint_, other->cdc_sdk_checkpoint_);
14120
0
  swap(_has_bits_[0], other->_has_bits_[0]);
14121
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
14122
0
  swap(_cached_size_, other->_cached_size_);
14123
0
}
14124
14125
3
::google::protobuf::Metadata SetCDCCheckpointRequestPB::GetMetadata() const {
14126
3
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
14127
3
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
14128
3
}
14129
14130
14131
// ===================================================================
14132
14133
9.25k
void SetCDCCheckpointResponsePB::InitAsDefaultInstance() {
14134
9.25k
  ::yb::cdc::_SetCDCCheckpointResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::cdc::CDCErrorPB*>(
14135
9.25k
      ::yb::cdc::CDCErrorPB::internal_default_instance());
14136
9.25k
}
14137
#if !defined(_MSC_VER) || _MSC_VER >= 1900
14138
const int SetCDCCheckpointResponsePB::kErrorFieldNumber;
14139
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14140
14141
SetCDCCheckpointResponsePB::SetCDCCheckpointResponsePB()
14142
9.26k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14143
9
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14144
9
    ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointResponsePB();
14145
9
  }
14146
9.26k
  SharedCtor();
14147
  // @@protoc_insertion_point(constructor:yb.cdc.SetCDCCheckpointResponsePB)
14148
9.26k
}
14149
SetCDCCheckpointResponsePB::SetCDCCheckpointResponsePB(const SetCDCCheckpointResponsePB& from)
14150
  : ::google::protobuf::Message(),
14151
      _internal_metadata_(NULL),
14152
      _has_bits_(from._has_bits_),
14153
0
      _cached_size_(0) {
14154
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14155
0
  if (from.has_error()) {
14156
0
    error_ = new ::yb::cdc::CDCErrorPB(*from.error_);
14157
0
  } else {
14158
0
    error_ = NULL;
14159
0
  }
14160
  // @@protoc_insertion_point(copy_constructor:yb.cdc.SetCDCCheckpointResponsePB)
14161
0
}
14162
14163
9.26k
void SetCDCCheckpointResponsePB::SharedCtor() {
14164
9.26k
  _cached_size_ = 0;
14165
9.26k
  error_ = NULL;
14166
9.26k
}
14167
14168
9
SetCDCCheckpointResponsePB::~SetCDCCheckpointResponsePB() {
14169
  // @@protoc_insertion_point(destructor:yb.cdc.SetCDCCheckpointResponsePB)
14170
9
  SharedDtor();
14171
9
}
14172
14173
9
void SetCDCCheckpointResponsePB::SharedDtor() {
14174
9
  if (this != internal_default_instance()) delete error_;
14175
9
}
14176
14177
0
void SetCDCCheckpointResponsePB::SetCachedSize(int size) const {
14178
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14179
0
  _cached_size_ = size;
14180
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14181
0
}
14182
0
const ::google::protobuf::Descriptor* SetCDCCheckpointResponsePB::descriptor() {
14183
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
14184
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
14185
0
}
14186
14187
0
const SetCDCCheckpointResponsePB& SetCDCCheckpointResponsePB::default_instance() {
14188
0
  ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::InitDefaultsSetCDCCheckpointResponsePB();
14189
0
  return *internal_default_instance();
14190
0
}
14191
14192
0
SetCDCCheckpointResponsePB* SetCDCCheckpointResponsePB::New(::google::protobuf::Arena* arena) const {
14193
0
  SetCDCCheckpointResponsePB* n = new SetCDCCheckpointResponsePB;
14194
0
  if (arena != NULL) {
14195
0
    arena->Own(n);
14196
0
  }
14197
0
  return n;
14198
0
}
14199
14200
0
void SetCDCCheckpointResponsePB::Clear() {
14201
// @@protoc_insertion_point(message_clear_start:yb.cdc.SetCDCCheckpointResponsePB)
14202
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14203
  // Prevent compiler warnings about cached_has_bits being unused
14204
0
  (void) cached_has_bits;
14205
14206
0
  cached_has_bits = _has_bits_[0];
14207
0
  if (cached_has_bits & 0x00000001u) {
14208
0
    GOOGLE_DCHECK(error_ != NULL);
14209
0
    error_->Clear();
14210
0
  }
14211
0
  _has_bits_.Clear();
14212
0
  _internal_metadata_.Clear();
14213
0
}
14214
14215
bool SetCDCCheckpointResponsePB::MergePartialFromCodedStream(
14216
0
    ::google::protobuf::io::CodedInputStream* input) {
14217
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14218
0
  ::google::protobuf::uint32 tag;
14219
  // @@protoc_insertion_point(parse_start:yb.cdc.SetCDCCheckpointResponsePB)
14220
0
  for (;;) {
14221
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14222
0
    tag = p.first;
14223
0
    if (!p.second) goto handle_unusual;
14224
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14225
      // optional .yb.cdc.CDCErrorPB error = 1;
14226
0
      case 1: {
14227
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14228
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
14229
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14230
0
               input, mutable_error()));
14231
0
        } else {
14232
0
          goto handle_unusual;
14233
0
        }
14234
0
        break;
14235
0
      }
14236
14237
0
      default: {
14238
0
      handle_unusual:
14239
0
        if (tag == 0) {
14240
0
          goto success;
14241
0
        }
14242
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
14243
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
14244
0
        break;
14245
0
      }
14246
0
    }
14247
0
  }
14248
0
success:
14249
  // @@protoc_insertion_point(parse_success:yb.cdc.SetCDCCheckpointResponsePB)
14250
0
  return true;
14251
0
failure:
14252
  // @@protoc_insertion_point(parse_failure:yb.cdc.SetCDCCheckpointResponsePB)
14253
0
  return false;
14254
0
#undef DO_
14255
0
}
14256
14257
void SetCDCCheckpointResponsePB::SerializeWithCachedSizes(
14258
0
    ::google::protobuf::io::CodedOutputStream* output) const {
14259
  // @@protoc_insertion_point(serialize_start:yb.cdc.SetCDCCheckpointResponsePB)
14260
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14261
0
  (void) cached_has_bits;
14262
14263
0
  cached_has_bits = _has_bits_[0];
14264
  // optional .yb.cdc.CDCErrorPB error = 1;
14265
0
  if (cached_has_bits & 0x00000001u) {
14266
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14267
0
      1, *this->error_, output);
14268
0
  }
14269
14270
0
  if (_internal_metadata_.have_unknown_fields()) {
14271
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14272
0
        _internal_metadata_.unknown_fields(), output);
14273
0
  }
14274
  // @@protoc_insertion_point(serialize_end:yb.cdc.SetCDCCheckpointResponsePB)
14275
0
}
14276
14277
::google::protobuf::uint8* SetCDCCheckpointResponsePB::InternalSerializeWithCachedSizesToArray(
14278
3
    bool deterministic, ::google::protobuf::uint8* target) const {
14279
3
  (void)deterministic; // Unused
14280
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.SetCDCCheckpointResponsePB)
14281
3
  ::google::protobuf::uint32 cached_has_bits = 0;
14282
3
  (void) cached_has_bits;
14283
14284
3
  cached_has_bits = _has_bits_[0];
14285
  // optional .yb.cdc.CDCErrorPB error = 1;
14286
3
  if (cached_has_bits & 0x00000001u) {
14287
0
    target = ::google::protobuf::internal::WireFormatLite::
14288
0
      InternalWriteMessageToArray(
14289
0
        1, *this->error_, deterministic, target);
14290
0
  }
14291
14292
3
  if (_internal_metadata_.have_unknown_fields()) {
14293
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14294
0
        _internal_metadata_.unknown_fields(), target);
14295
0
  }
14296
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.SetCDCCheckpointResponsePB)
14297
3
  return target;
14298
3
}
14299
14300
6
size_t SetCDCCheckpointResponsePB::ByteSizeLong() const {
14301
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.SetCDCCheckpointResponsePB)
14302
6
  size_t total_size = 0;
14303
14304
6
  if (_internal_metadata_.have_unknown_fields()) {
14305
0
    total_size +=
14306
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14307
0
        _internal_metadata_.unknown_fields());
14308
0
  }
14309
  // optional .yb.cdc.CDCErrorPB error = 1;
14310
6
  if (has_error()) {
14311
0
    total_size += 1 +
14312
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
14313
0
        *this->error_);
14314
0
  }
14315
14316
6
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14317
6
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14318
6
  _cached_size_ = cached_size;
14319
6
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14320
6
  return total_size;
14321
6
}
14322
14323
0
void SetCDCCheckpointResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
14324
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.SetCDCCheckpointResponsePB)
14325
0
  GOOGLE_DCHECK_NE(&from, this);
14326
0
  const SetCDCCheckpointResponsePB* source =
14327
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SetCDCCheckpointResponsePB>(
14328
0
          &from);
14329
0
  if (source == NULL) {
14330
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.SetCDCCheckpointResponsePB)
14331
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14332
0
  } else {
14333
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.SetCDCCheckpointResponsePB)
14334
0
    MergeFrom(*source);
14335
0
  }
14336
0
}
14337
14338
0
void SetCDCCheckpointResponsePB::MergeFrom(const SetCDCCheckpointResponsePB& from) {
14339
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.SetCDCCheckpointResponsePB)
14340
0
  GOOGLE_DCHECK_NE(&from, this);
14341
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14342
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14343
0
  (void) cached_has_bits;
14344
14345
0
  if (from.has_error()) {
14346
0
    mutable_error()->::yb::cdc::CDCErrorPB::MergeFrom(from.error());
14347
0
  }
14348
0
}
14349
14350
0
void SetCDCCheckpointResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
14351
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.SetCDCCheckpointResponsePB)
14352
0
  if (&from == this) return;
14353
0
  Clear();
14354
0
  MergeFrom(from);
14355
0
}
14356
14357
0
void SetCDCCheckpointResponsePB::CopyFrom(const SetCDCCheckpointResponsePB& from) {
14358
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.SetCDCCheckpointResponsePB)
14359
0
  if (&from == this) return;
14360
0
  Clear();
14361
0
  MergeFrom(from);
14362
0
}
14363
14364
3
bool SetCDCCheckpointResponsePB::IsInitialized() const {
14365
3
  if (has_error()) {
14366
0
    if (!this->error_->IsInitialized()) return false;
14367
3
  }
14368
3
  return true;
14369
3
}
14370
14371
3
void SetCDCCheckpointResponsePB::Swap(SetCDCCheckpointResponsePB* other) {
14372
3
  if (other == this) return;
14373
3
  InternalSwap(other);
14374
3
}
14375
6
void SetCDCCheckpointResponsePB::InternalSwap(SetCDCCheckpointResponsePB* other) {
14376
6
  using std::swap;
14377
6
  swap(error_, other->error_);
14378
6
  swap(_has_bits_[0], other->_has_bits_[0]);
14379
6
  _internal_metadata_.Swap(&other->_internal_metadata_);
14380
6
  swap(_cached_size_, other->_cached_size_);
14381
6
}
14382
14383
0
::google::protobuf::Metadata SetCDCCheckpointResponsePB::GetMetadata() const {
14384
0
  protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::protobuf_AssignDescriptorsOnce();
14385
0
  return ::protobuf_yb_2fcdc_2fcdc_5fservice_2eproto::file_level_metadata[kIndexInFileMessages];
14386
0
}
14387
14388
14389
// @@protoc_insertion_point(namespace_scope)
14390
}  // namespace cdc
14391
}  // namespace yb
14392
14393
// @@protoc_insertion_point(global_scope)