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_consumer.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_consumer.proto
3
4
#include "yb/cdc/cdc_consumer.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 ProducerTabletListPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<ProducerTabletListPB>
28
      _instance;
29
} _ProducerTabletListPB_default_instance_;
30
class StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUseDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse>
33
      _instance;
34
} _StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse_default_instance_;
35
class StreamEntryPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<StreamEntryPB>
38
      _instance;
39
} _StreamEntryPB_default_instance_;
40
class ProducerEntryPB_StreamMapEntry_DoNotUseDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<ProducerEntryPB_StreamMapEntry_DoNotUse>
43
      _instance;
44
} _ProducerEntryPB_StreamMapEntry_DoNotUse_default_instance_;
45
class ProducerEntryPBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<ProducerEntryPB>
48
      _instance;
49
} _ProducerEntryPB_default_instance_;
50
class ConsumerRegistryPB_ProducerMapEntry_DoNotUseDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<ConsumerRegistryPB_ProducerMapEntry_DoNotUse>
53
      _instance;
54
} _ConsumerRegistryPB_ProducerMapEntry_DoNotUse_default_instance_;
55
class ConsumerRegistryPBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<ConsumerRegistryPB>
58
      _instance;
59
} _ConsumerRegistryPB_default_instance_;
60
}  // namespace cdc
61
}  // namespace yb
62
namespace protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto {
63
15.8k
void InitDefaultsProducerTabletListPBImpl() {
64
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
65
66
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
67
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
68
#else
69
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
70
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
71
15.8k
  {
72
15.8k
    void* ptr = &::yb::cdc::_ProducerTabletListPB_default_instance_;
73
15.8k
    new (ptr) ::yb::cdc::ProducerTabletListPB();
74
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
75
15.8k
  }
76
15.8k
  ::yb::cdc::ProducerTabletListPB::InitAsDefaultInstance();
77
15.8k
}
78
79
31.6k
void InitDefaultsProducerTabletListPB() {
80
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
81
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProducerTabletListPBImpl);
82
31.6k
}
83
84
15.8k
void InitDefaultsStreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUseImpl() {
85
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
86
87
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
88
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
89
#else
90
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
91
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
92
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerTabletListPB();
93
15.8k
  {
94
15.8k
    void* ptr = &::yb::cdc::_StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse_default_instance_;
95
15.8k
    new (ptr) ::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse();
96
15.8k
  }
97
15.8k
  ::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::InitAsDefaultInstance();
98
15.8k
}
99
100
31.6k
void InitDefaultsStreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse() {
101
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
102
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUseImpl);
103
31.6k
}
104
105
15.8k
void InitDefaultsStreamEntryPBImpl() {
106
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
107
108
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
109
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
110
#else
111
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
112
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
113
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsStreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse();
114
15.8k
  {
115
15.8k
    void* ptr = &::yb::cdc::_StreamEntryPB_default_instance_;
116
15.8k
    new (ptr) ::yb::cdc::StreamEntryPB();
117
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
118
15.8k
  }
119
15.8k
  ::yb::cdc::StreamEntryPB::InitAsDefaultInstance();
120
15.8k
}
121
122
31.6k
void InitDefaultsStreamEntryPB() {
123
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
124
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStreamEntryPBImpl);
125
31.6k
}
126
127
15.8k
void InitDefaultsProducerEntryPB_StreamMapEntry_DoNotUseImpl() {
128
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
129
130
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
131
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
132
#else
133
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
134
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
135
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsStreamEntryPB();
136
15.8k
  {
137
15.8k
    void* ptr = &::yb::cdc::_ProducerEntryPB_StreamMapEntry_DoNotUse_default_instance_;
138
15.8k
    new (ptr) ::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse();
139
15.8k
  }
140
15.8k
  ::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse::InitAsDefaultInstance();
141
15.8k
}
142
143
31.6k
void InitDefaultsProducerEntryPB_StreamMapEntry_DoNotUse() {
144
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
145
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProducerEntryPB_StreamMapEntry_DoNotUseImpl);
146
31.6k
}
147
148
15.8k
void InitDefaultsProducerEntryPBImpl() {
149
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
150
151
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
152
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
153
#else
154
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
155
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
156
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerEntryPB_StreamMapEntry_DoNotUse();
157
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
158
15.8k
  {
159
15.8k
    void* ptr = &::yb::cdc::_ProducerEntryPB_default_instance_;
160
15.8k
    new (ptr) ::yb::cdc::ProducerEntryPB();
161
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
162
15.8k
  }
163
15.8k
  ::yb::cdc::ProducerEntryPB::InitAsDefaultInstance();
164
15.8k
}
165
166
31.6k
void InitDefaultsProducerEntryPB() {
167
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
168
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProducerEntryPBImpl);
169
31.6k
}
170
171
15.8k
void InitDefaultsConsumerRegistryPB_ProducerMapEntry_DoNotUseImpl() {
172
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
173
174
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
175
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
176
#else
177
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
178
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
179
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerEntryPB();
180
15.8k
  {
181
15.8k
    void* ptr = &::yb::cdc::_ConsumerRegistryPB_ProducerMapEntry_DoNotUse_default_instance_;
182
15.8k
    new (ptr) ::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse();
183
15.8k
  }
184
15.8k
  ::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse::InitAsDefaultInstance();
185
15.8k
}
186
187
31.6k
void InitDefaultsConsumerRegistryPB_ProducerMapEntry_DoNotUse() {
188
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
189
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConsumerRegistryPB_ProducerMapEntry_DoNotUseImpl);
190
31.6k
}
191
192
15.8k
void InitDefaultsConsumerRegistryPBImpl() {
193
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
194
195
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
196
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
197
#else
198
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
199
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
200
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB_ProducerMapEntry_DoNotUse();
201
15.8k
  {
202
15.8k
    void* ptr = &::yb::cdc::_ConsumerRegistryPB_default_instance_;
203
15.8k
    new (ptr) ::yb::cdc::ConsumerRegistryPB();
204
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
205
15.8k
  }
206
15.8k
  ::yb::cdc::ConsumerRegistryPB::InitAsDefaultInstance();
207
15.8k
}
208
209
47.5k
void InitDefaultsConsumerRegistryPB() {
210
47.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
211
47.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConsumerRegistryPBImpl);
212
47.5k
}
213
214
::google::protobuf::Metadata file_level_metadata[7];
215
216
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
217
  ~0u,  // no _has_bits_
218
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerTabletListPB, _internal_metadata_),
219
  ~0u,  // no _extensions_
220
  ~0u,  // no _oneof_case_
221
  ~0u,  // no _weak_field_map_
222
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerTabletListPB, tablets_),
223
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse, _has_bits_),
224
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse, _internal_metadata_),
225
  ~0u,  // no _extensions_
226
  ~0u,  // no _oneof_case_
227
  ~0u,  // no _weak_field_map_
228
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse, key_),
229
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse, value_),
230
  0,
231
  1,
232
  ~0u,  // no _has_bits_
233
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB, _internal_metadata_),
234
  ~0u,  // no _extensions_
235
  ~0u,  // no _oneof_case_
236
  ~0u,  // no _weak_field_map_
237
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB, consumer_producer_tablet_map_),
238
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB, consumer_table_id_),
239
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB, producer_table_id_),
240
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::StreamEntryPB, same_num_producer_consumer_tablets_),
241
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse, _has_bits_),
242
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse, _internal_metadata_),
243
  ~0u,  // no _extensions_
244
  ~0u,  // no _oneof_case_
245
  ~0u,  // no _weak_field_map_
246
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse, key_),
247
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse, value_),
248
  0,
249
  1,
250
  ~0u,  // no _has_bits_
251
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB, _internal_metadata_),
252
  ~0u,  // no _extensions_
253
  ~0u,  // no _oneof_case_
254
  ~0u,  // no _weak_field_map_
255
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB, stream_map_),
256
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB, master_addrs_),
257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB, tserver_addrs_),
258
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ProducerEntryPB, disable_stream_),
259
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse, _has_bits_),
260
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse, _internal_metadata_),
261
  ~0u,  // no _extensions_
262
  ~0u,  // no _oneof_case_
263
  ~0u,  // no _weak_field_map_
264
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse, key_),
265
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse, value_),
266
  0,
267
  1,
268
  ~0u,  // no _has_bits_
269
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB, _internal_metadata_),
270
  ~0u,  // no _extensions_
271
  ~0u,  // no _oneof_case_
272
  ~0u,  // no _weak_field_map_
273
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::cdc::ConsumerRegistryPB, producer_map_),
274
};
275
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
276
  { 0, -1, sizeof(::yb::cdc::ProducerTabletListPB)},
277
  { 6, 13, sizeof(::yb::cdc::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse)},
278
  { 15, -1, sizeof(::yb::cdc::StreamEntryPB)},
279
  { 24, 31, sizeof(::yb::cdc::ProducerEntryPB_StreamMapEntry_DoNotUse)},
280
  { 33, -1, sizeof(::yb::cdc::ProducerEntryPB)},
281
  { 42, 49, sizeof(::yb::cdc::ConsumerRegistryPB_ProducerMapEntry_DoNotUse)},
282
  { 51, -1, sizeof(::yb::cdc::ConsumerRegistryPB)},
283
};
284
285
static ::google::protobuf::Message const * const file_default_instances[] = {
286
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ProducerTabletListPB_default_instance_),
287
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse_default_instance_),
288
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_StreamEntryPB_default_instance_),
289
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ProducerEntryPB_StreamMapEntry_DoNotUse_default_instance_),
290
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ProducerEntryPB_default_instance_),
291
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ConsumerRegistryPB_ProducerMapEntry_DoNotUse_default_instance_),
292
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::cdc::_ConsumerRegistryPB_default_instance_),
293
};
294
295
0
void protobuf_AssignDescriptors() {
296
0
  AddDescriptors();
297
0
  ::google::protobuf::MessageFactory* factory = NULL;
298
0
  AssignDescriptors(
299
0
      "yb/cdc/cdc_consumer.proto", schemas, file_default_instances, TableStruct::offsets, factory,
300
0
      file_level_metadata, NULL, NULL);
301
0
}
302
303
0
void protobuf_AssignDescriptorsOnce() {
304
0
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
305
0
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
306
0
}
307
308
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
309
0
void protobuf_RegisterTypes(const ::std::string&) {
310
0
  protobuf_AssignDescriptorsOnce();
311
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
312
0
}
313
314
15.8k
void AddDescriptorsImpl() {
315
15.8k
  InitDefaults();
316
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
317
15.8k
      "\n\031yb/cdc/cdc_consumer.proto\022\006yb.cdc\032\032yb/"
318
15.8k
      "common/common_net.proto\"\'\n\024ProducerTable"
319
15.8k
      "tListPB\022\017\n\007tablets\030\001 \003(\t\"\255\002\n\rStreamEntry"
320
15.8k
      "PB\022Z\n\034consumer_producer_tablet_map\030\001 \003(\013"
321
15.8k
      "24.yb.cdc.StreamEntryPB.ConsumerProducer"
322
15.8k
      "TabletMapEntry\022\031\n\021consumer_table_id\030\002 \001("
323
15.8k
      "\t\022\031\n\021producer_table_id\030\003 \001(\t\022*\n\"same_num"
324
15.8k
      "_producer_consumer_tablets\030\004 \001(\010\032^\n\036Cons"
325
15.8k
      "umerProducerTabletMapEntry\022\013\n\003key\030\001 \001(\t\022"
326
15.8k
      "+\n\005value\030\002 \001(\0132\034.yb.cdc.ProducerTabletLi"
327
15.8k
      "stPB:\0028\001\"\373\001\n\017ProducerEntryPB\022:\n\nstream_m"
328
15.8k
      "ap\030\001 \003(\0132&.yb.cdc.ProducerEntryPB.Stream"
329
15.8k
      "MapEntry\022$\n\014master_addrs\030\002 \003(\0132\016.yb.Host"
330
15.8k
      "PortPB\022%\n\rtserver_addrs\030\003 \003(\0132\016.yb.HostP"
331
15.8k
      "ortPB\022\026\n\016disable_stream\030\004 \001(\010\032G\n\016StreamM"
332
15.8k
      "apEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.yb"
333
15.8k
      ".cdc.StreamEntryPB:\0028\001\"\244\001\n\022ConsumerRegis"
334
15.8k
      "tryPB\022A\n\014producer_map\030\001 \003(\0132+.yb.cdc.Con"
335
15.8k
      "sumerRegistryPB.ProducerMapEntry\032K\n\020Prod"
336
15.8k
      "ucerMapEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\013"
337
15.8k
      "2\027.yb.cdc.ProducerEntryPB:\0028\001B\014\n\norg.yb."
338
15.8k
      "cdcb\006proto3"
339
15.8k
  };
340
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
341
15.8k
      descriptor, 851);
342
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
343
15.8k
    "yb/cdc/cdc_consumer.proto", &protobuf_RegisterTypes);
344
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
345
15.8k
}
346
347
47.5k
void AddDescriptors() {
348
47.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
349
47.5k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
350
47.5k
}
351
// Force AddDescriptors() to be called at dynamic initialization time.
352
struct StaticDescriptorInitializer {
353
15.8k
  StaticDescriptorInitializer() {
354
15.8k
    AddDescriptors();
355
15.8k
  }
356
} static_descriptor_initializer;
357
}  // namespace protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto
358
namespace yb {
359
namespace cdc {
360
361
// ===================================================================
362
363
15.8k
void ProducerTabletListPB::InitAsDefaultInstance() {
364
15.8k
}
365
#if !defined(_MSC_VER) || _MSC_VER >= 1900
366
const int ProducerTabletListPB::kTabletsFieldNumber;
367
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
368
369
ProducerTabletListPB::ProducerTabletListPB()
370
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
371
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
372
0
    ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerTabletListPB();
373
0
  }
374
15.8k
  SharedCtor();
375
  // @@protoc_insertion_point(constructor:yb.cdc.ProducerTabletListPB)
376
15.8k
}
377
ProducerTabletListPB::ProducerTabletListPB(const ProducerTabletListPB& from)
378
  : ::google::protobuf::Message(),
379
      _internal_metadata_(NULL),
380
      tablets_(from.tablets_),
381
0
      _cached_size_(0) {
382
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
383
  // @@protoc_insertion_point(copy_constructor:yb.cdc.ProducerTabletListPB)
384
0
}
385
386
15.8k
void ProducerTabletListPB::SharedCtor() {
387
15.8k
  _cached_size_ = 0;
388
15.8k
}
389
390
0
ProducerTabletListPB::~ProducerTabletListPB() {
391
  // @@protoc_insertion_point(destructor:yb.cdc.ProducerTabletListPB)
392
0
  SharedDtor();
393
0
}
394
395
0
void ProducerTabletListPB::SharedDtor() {
396
0
}
397
398
0
void ProducerTabletListPB::SetCachedSize(int size) const {
399
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
400
0
  _cached_size_ = size;
401
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
402
0
}
403
0
const ::google::protobuf::Descriptor* ProducerTabletListPB::descriptor() {
404
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
405
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
406
0
}
407
408
0
const ProducerTabletListPB& ProducerTabletListPB::default_instance() {
409
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerTabletListPB();
410
0
  return *internal_default_instance();
411
0
}
412
413
0
ProducerTabletListPB* ProducerTabletListPB::New(::google::protobuf::Arena* arena) const {
414
0
  ProducerTabletListPB* n = new ProducerTabletListPB;
415
0
  if (arena != NULL) {
416
0
    arena->Own(n);
417
0
  }
418
0
  return n;
419
0
}
420
421
0
void ProducerTabletListPB::Clear() {
422
// @@protoc_insertion_point(message_clear_start:yb.cdc.ProducerTabletListPB)
423
0
  ::google::protobuf::uint32 cached_has_bits = 0;
424
  // Prevent compiler warnings about cached_has_bits being unused
425
0
  (void) cached_has_bits;
426
427
0
  tablets_.Clear();
428
0
  _internal_metadata_.Clear();
429
0
}
430
431
bool ProducerTabletListPB::MergePartialFromCodedStream(
432
0
    ::google::protobuf::io::CodedInputStream* input) {
433
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
434
0
  ::google::protobuf::uint32 tag;
435
  // @@protoc_insertion_point(parse_start:yb.cdc.ProducerTabletListPB)
436
0
  for (;;) {
437
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
438
0
    tag = p.first;
439
0
    if (!p.second) goto handle_unusual;
440
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
441
      // repeated string tablets = 1;
442
0
      case 1: {
443
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
444
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
445
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
446
0
                input, this->add_tablets()));
447
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
448
0
            this->tablets(this->tablets_size() - 1).data(),
449
0
            static_cast<int>(this->tablets(this->tablets_size() - 1).length()),
450
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
451
0
            "yb.cdc.ProducerTabletListPB.tablets"));
452
0
        } else {
453
0
          goto handle_unusual;
454
0
        }
455
0
        break;
456
0
      }
457
458
0
      default: {
459
0
      handle_unusual:
460
0
        if (tag == 0) {
461
0
          goto success;
462
0
        }
463
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
464
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
465
0
        break;
466
0
      }
467
0
    }
468
0
  }
469
0
success:
470
  // @@protoc_insertion_point(parse_success:yb.cdc.ProducerTabletListPB)
471
0
  return true;
472
0
failure:
473
  // @@protoc_insertion_point(parse_failure:yb.cdc.ProducerTabletListPB)
474
0
  return false;
475
0
#undef DO_
476
0
}
477
478
void ProducerTabletListPB::SerializeWithCachedSizes(
479
0
    ::google::protobuf::io::CodedOutputStream* output) const {
480
  // @@protoc_insertion_point(serialize_start:yb.cdc.ProducerTabletListPB)
481
0
  ::google::protobuf::uint32 cached_has_bits = 0;
482
0
  (void) cached_has_bits;
483
484
  // repeated string tablets = 1;
485
0
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
486
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
487
0
      this->tablets(i).data(), static_cast<int>(this->tablets(i).length()),
488
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
489
0
      "yb.cdc.ProducerTabletListPB.tablets");
490
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
491
0
      1, this->tablets(i), output);
492
0
  }
493
494
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
495
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
496
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
497
0
  }
498
  // @@protoc_insertion_point(serialize_end:yb.cdc.ProducerTabletListPB)
499
0
}
500
501
::google::protobuf::uint8* ProducerTabletListPB::InternalSerializeWithCachedSizesToArray(
502
0
    bool deterministic, ::google::protobuf::uint8* target) const {
503
0
  (void)deterministic; // Unused
504
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ProducerTabletListPB)
505
0
  ::google::protobuf::uint32 cached_has_bits = 0;
506
0
  (void) cached_has_bits;
507
508
  // repeated string tablets = 1;
509
0
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
510
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
511
0
      this->tablets(i).data(), static_cast<int>(this->tablets(i).length()),
512
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
513
0
      "yb.cdc.ProducerTabletListPB.tablets");
514
0
    target = ::google::protobuf::internal::WireFormatLite::
515
0
      WriteStringToArray(1, this->tablets(i), target);
516
0
  }
517
518
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
519
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
520
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
521
0
  }
522
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ProducerTabletListPB)
523
0
  return target;
524
0
}
525
526
0
size_t ProducerTabletListPB::ByteSizeLong() const {
527
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.ProducerTabletListPB)
528
0
  size_t total_size = 0;
529
530
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
531
0
    total_size +=
532
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
533
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
534
0
  }
535
  // repeated string tablets = 1;
536
0
  total_size += 1 *
537
0
      ::google::protobuf::internal::FromIntSize(this->tablets_size());
538
0
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
539
0
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
540
0
      this->tablets(i));
541
0
  }
542
543
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
544
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
545
0
  _cached_size_ = cached_size;
546
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
547
0
  return total_size;
548
0
}
549
550
0
void ProducerTabletListPB::MergeFrom(const ::google::protobuf::Message& from) {
551
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ProducerTabletListPB)
552
0
  GOOGLE_DCHECK_NE(&from, this);
553
0
  const ProducerTabletListPB* source =
554
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ProducerTabletListPB>(
555
0
          &from);
556
0
  if (source == NULL) {
557
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ProducerTabletListPB)
558
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
559
0
  } else {
560
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ProducerTabletListPB)
561
0
    MergeFrom(*source);
562
0
  }
563
0
}
564
565
0
void ProducerTabletListPB::MergeFrom(const ProducerTabletListPB& from) {
566
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ProducerTabletListPB)
567
0
  GOOGLE_DCHECK_NE(&from, this);
568
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
569
0
  ::google::protobuf::uint32 cached_has_bits = 0;
570
0
  (void) cached_has_bits;
571
572
0
  tablets_.MergeFrom(from.tablets_);
573
0
}
574
575
0
void ProducerTabletListPB::CopyFrom(const ::google::protobuf::Message& from) {
576
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ProducerTabletListPB)
577
0
  if (&from == this) return;
578
0
  Clear();
579
0
  MergeFrom(from);
580
0
}
581
582
0
void ProducerTabletListPB::CopyFrom(const ProducerTabletListPB& from) {
583
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ProducerTabletListPB)
584
0
  if (&from == this) return;
585
0
  Clear();
586
0
  MergeFrom(from);
587
0
}
588
589
0
bool ProducerTabletListPB::IsInitialized() const {
590
0
  return true;
591
0
}
592
593
0
void ProducerTabletListPB::Swap(ProducerTabletListPB* other) {
594
0
  if (other == this) return;
595
0
  InternalSwap(other);
596
0
}
597
0
void ProducerTabletListPB::InternalSwap(ProducerTabletListPB* other) {
598
0
  using std::swap;
599
0
  tablets_.InternalSwap(&other->tablets_);
600
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
601
0
  swap(_cached_size_, other->_cached_size_);
602
0
}
603
604
0
::google::protobuf::Metadata ProducerTabletListPB::GetMetadata() const {
605
0
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
606
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages];
607
0
}
608
609
610
// ===================================================================
611
612
15.8k
StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse() {}
613
0
StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
614
0
void StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::MergeFrom(const StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse& other) {
615
0
  MergeFromInternal(other);
616
0
}
617
0
::google::protobuf::Metadata StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::GetMetadata() const {
618
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
619
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[1];
620
0
}
621
void StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::MergeFrom(
622
0
    const ::google::protobuf::Message& other) {
623
0
  ::google::protobuf::Message::MergeFrom(other);
624
0
}
625
626
627
// ===================================================================
628
629
15.8k
void StreamEntryPB::InitAsDefaultInstance() {
630
15.8k
}
631
#if !defined(_MSC_VER) || _MSC_VER >= 1900
632
const int StreamEntryPB::kConsumerProducerTabletMapFieldNumber;
633
const int StreamEntryPB::kConsumerTableIdFieldNumber;
634
const int StreamEntryPB::kProducerTableIdFieldNumber;
635
const int StreamEntryPB::kSameNumProducerConsumerTabletsFieldNumber;
636
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
637
638
StreamEntryPB::StreamEntryPB()
639
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
640
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
641
0
    ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsStreamEntryPB();
642
0
  }
643
15.8k
  SharedCtor();
644
  // @@protoc_insertion_point(constructor:yb.cdc.StreamEntryPB)
645
15.8k
}
646
StreamEntryPB::StreamEntryPB(const StreamEntryPB& from)
647
  : ::google::protobuf::Message(),
648
      _internal_metadata_(NULL),
649
0
      _cached_size_(0) {
650
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
651
0
  consumer_producer_tablet_map_.MergeFrom(from.consumer_producer_tablet_map_);
652
0
  consumer_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
653
0
  if (from.consumer_table_id().size() > 0) {
654
0
    consumer_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consumer_table_id_);
655
0
  }
656
0
  producer_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
657
0
  if (from.producer_table_id().size() > 0) {
658
0
    producer_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_table_id_);
659
0
  }
660
0
  same_num_producer_consumer_tablets_ = from.same_num_producer_consumer_tablets_;
661
  // @@protoc_insertion_point(copy_constructor:yb.cdc.StreamEntryPB)
662
0
}
663
664
15.8k
void StreamEntryPB::SharedCtor() {
665
15.8k
  consumer_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
666
15.8k
  producer_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667
15.8k
  same_num_producer_consumer_tablets_ = false;
668
15.8k
  _cached_size_ = 0;
669
15.8k
}
670
671
0
StreamEntryPB::~StreamEntryPB() {
672
  // @@protoc_insertion_point(destructor:yb.cdc.StreamEntryPB)
673
0
  SharedDtor();
674
0
}
675
676
0
void StreamEntryPB::SharedDtor() {
677
0
  consumer_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
678
0
  producer_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
679
0
}
680
681
0
void StreamEntryPB::SetCachedSize(int size) const {
682
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
683
0
  _cached_size_ = size;
684
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
685
0
}
686
0
const ::google::protobuf::Descriptor* StreamEntryPB::descriptor() {
687
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
688
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
689
0
}
690
691
0
const StreamEntryPB& StreamEntryPB::default_instance() {
692
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsStreamEntryPB();
693
0
  return *internal_default_instance();
694
0
}
695
696
0
StreamEntryPB* StreamEntryPB::New(::google::protobuf::Arena* arena) const {
697
0
  StreamEntryPB* n = new StreamEntryPB;
698
0
  if (arena != NULL) {
699
0
    arena->Own(n);
700
0
  }
701
0
  return n;
702
0
}
703
704
0
void StreamEntryPB::Clear() {
705
// @@protoc_insertion_point(message_clear_start:yb.cdc.StreamEntryPB)
706
0
  ::google::protobuf::uint32 cached_has_bits = 0;
707
  // Prevent compiler warnings about cached_has_bits being unused
708
0
  (void) cached_has_bits;
709
710
0
  consumer_producer_tablet_map_.Clear();
711
0
  consumer_table_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712
0
  producer_table_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713
0
  same_num_producer_consumer_tablets_ = false;
714
0
  _internal_metadata_.Clear();
715
0
}
716
717
bool StreamEntryPB::MergePartialFromCodedStream(
718
0
    ::google::protobuf::io::CodedInputStream* input) {
719
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
720
0
  ::google::protobuf::uint32 tag;
721
  // @@protoc_insertion_point(parse_start:yb.cdc.StreamEntryPB)
722
0
  for (;;) {
723
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
724
0
    tag = p.first;
725
0
    if (!p.second) goto handle_unusual;
726
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
727
      // map<string, .yb.cdc.ProducerTabletListPB> consumer_producer_tablet_map = 1;
728
0
      case 1: {
729
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
730
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
731
0
          StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
732
0
              StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse,
733
0
              ::std::string, ::yb::cdc::ProducerTabletListPB,
734
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
735
0
              ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
736
0
              0 >,
737
0
            ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB > > parser(&consumer_producer_tablet_map_);
738
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
739
0
              input, &parser));
740
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
741
0
            parser.key().data(), static_cast<int>(parser.key().length()),
742
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
743
0
            "yb.cdc.StreamEntryPB.ConsumerProducerTabletMapEntry.key"));
744
0
        } else {
745
0
          goto handle_unusual;
746
0
        }
747
0
        break;
748
0
      }
749
750
      // string consumer_table_id = 2;
751
0
      case 2: {
752
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
753
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
754
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
755
0
                input, this->mutable_consumer_table_id()));
756
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
757
0
            this->consumer_table_id().data(), static_cast<int>(this->consumer_table_id().length()),
758
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
759
0
            "yb.cdc.StreamEntryPB.consumer_table_id"));
760
0
        } else {
761
0
          goto handle_unusual;
762
0
        }
763
0
        break;
764
0
      }
765
766
      // string producer_table_id = 3;
767
0
      case 3: {
768
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
769
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
770
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
771
0
                input, this->mutable_producer_table_id()));
772
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
773
0
            this->producer_table_id().data(), static_cast<int>(this->producer_table_id().length()),
774
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
775
0
            "yb.cdc.StreamEntryPB.producer_table_id"));
776
0
        } else {
777
0
          goto handle_unusual;
778
0
        }
779
0
        break;
780
0
      }
781
782
      // bool same_num_producer_consumer_tablets = 4;
783
0
      case 4: {
784
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
785
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
786
787
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
788
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
789
0
                 input, &same_num_producer_consumer_tablets_)));
790
0
        } else {
791
0
          goto handle_unusual;
792
0
        }
793
0
        break;
794
0
      }
795
796
0
      default: {
797
0
      handle_unusual:
798
0
        if (tag == 0) {
799
0
          goto success;
800
0
        }
801
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
802
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
803
0
        break;
804
0
      }
805
0
    }
806
0
  }
807
0
success:
808
  // @@protoc_insertion_point(parse_success:yb.cdc.StreamEntryPB)
809
0
  return true;
810
0
failure:
811
  // @@protoc_insertion_point(parse_failure:yb.cdc.StreamEntryPB)
812
0
  return false;
813
0
#undef DO_
814
0
}
815
816
void StreamEntryPB::SerializeWithCachedSizes(
817
0
    ::google::protobuf::io::CodedOutputStream* output) const {
818
  // @@protoc_insertion_point(serialize_start:yb.cdc.StreamEntryPB)
819
0
  ::google::protobuf::uint32 cached_has_bits = 0;
820
0
  (void) cached_has_bits;
821
822
  // map<string, .yb.cdc.ProducerTabletListPB> consumer_producer_tablet_map = 1;
823
0
  if (!this->consumer_producer_tablet_map().empty()) {
824
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_pointer
825
0
        ConstPtr;
826
0
    typedef ConstPtr SortItem;
827
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
828
0
    struct Utf8Check {
829
0
      static void Check(ConstPtr p) {
830
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
831
0
          p->first.data(), static_cast<int>(p->first.length()),
832
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
833
0
          "yb.cdc.StreamEntryPB.ConsumerProducerTabletMapEntry.key");
834
0
      }
835
0
    };
836
837
0
    if (output->IsSerializationDeterministic() &&
838
0
        this->consumer_producer_tablet_map().size() > 1) {
839
0
      ::google::protobuf::scoped_array<SortItem> items(
840
0
          new SortItem[this->consumer_producer_tablet_map().size()]);
841
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::size_type size_type;
842
0
      size_type n = 0;
843
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_iterator
844
0
          it = this->consumer_producer_tablet_map().begin();
845
0
          it != this->consumer_producer_tablet_map().end(); ++it, ++n) {
846
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
847
0
      }
848
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
849
0
      ::google::protobuf::scoped_ptr<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse> entry;
850
0
      for (size_type i = 0; i < n; i++) {
851
0
        entry.reset(consumer_producer_tablet_map_.NewEntryWrapper(
852
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
853
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
854
0
            1, *entry, output);
855
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
856
0
      }
857
0
    } else {
858
0
      ::google::protobuf::scoped_ptr<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse> entry;
859
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_iterator
860
0
          it = this->consumer_producer_tablet_map().begin();
861
0
          it != this->consumer_producer_tablet_map().end(); ++it) {
862
0
        entry.reset(consumer_producer_tablet_map_.NewEntryWrapper(
863
0
            it->first, it->second));
864
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
865
0
            1, *entry, output);
866
0
        Utf8Check::Check(&*it);
867
0
      }
868
0
    }
869
0
  }
870
871
  // string consumer_table_id = 2;
872
0
  if (this->consumer_table_id().size() > 0) {
873
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
874
0
      this->consumer_table_id().data(), static_cast<int>(this->consumer_table_id().length()),
875
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
876
0
      "yb.cdc.StreamEntryPB.consumer_table_id");
877
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
878
0
      2, this->consumer_table_id(), output);
879
0
  }
880
881
  // string producer_table_id = 3;
882
0
  if (this->producer_table_id().size() > 0) {
883
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
884
0
      this->producer_table_id().data(), static_cast<int>(this->producer_table_id().length()),
885
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
886
0
      "yb.cdc.StreamEntryPB.producer_table_id");
887
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
888
0
      3, this->producer_table_id(), output);
889
0
  }
890
891
  // bool same_num_producer_consumer_tablets = 4;
892
0
  if (this->same_num_producer_consumer_tablets() != 0) {
893
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->same_num_producer_consumer_tablets(), output);
894
0
  }
895
896
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
897
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
898
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
899
0
  }
900
  // @@protoc_insertion_point(serialize_end:yb.cdc.StreamEntryPB)
901
0
}
902
903
::google::protobuf::uint8* StreamEntryPB::InternalSerializeWithCachedSizesToArray(
904
0
    bool deterministic, ::google::protobuf::uint8* target) const {
905
0
  (void)deterministic; // Unused
906
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.StreamEntryPB)
907
0
  ::google::protobuf::uint32 cached_has_bits = 0;
908
0
  (void) cached_has_bits;
909
910
  // map<string, .yb.cdc.ProducerTabletListPB> consumer_producer_tablet_map = 1;
911
0
  if (!this->consumer_producer_tablet_map().empty()) {
912
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_pointer
913
0
        ConstPtr;
914
0
    typedef ConstPtr SortItem;
915
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
916
0
    struct Utf8Check {
917
0
      static void Check(ConstPtr p) {
918
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
919
0
          p->first.data(), static_cast<int>(p->first.length()),
920
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
921
0
          "yb.cdc.StreamEntryPB.ConsumerProducerTabletMapEntry.key");
922
0
      }
923
0
    };
924
925
0
    if (deterministic &&
926
0
        this->consumer_producer_tablet_map().size() > 1) {
927
0
      ::google::protobuf::scoped_array<SortItem> items(
928
0
          new SortItem[this->consumer_producer_tablet_map().size()]);
929
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::size_type size_type;
930
0
      size_type n = 0;
931
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_iterator
932
0
          it = this->consumer_producer_tablet_map().begin();
933
0
          it != this->consumer_producer_tablet_map().end(); ++it, ++n) {
934
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
935
0
      }
936
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
937
0
      ::google::protobuf::scoped_ptr<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse> entry;
938
0
      for (size_type i = 0; i < n; i++) {
939
0
        entry.reset(consumer_producer_tablet_map_.NewEntryWrapper(
940
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
941
0
        target = ::google::protobuf::internal::WireFormatLite::
942
0
                   InternalWriteMessageNoVirtualToArray(
943
0
                       1, *entry, deterministic, target);
944
0
;
945
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
946
0
      }
947
0
    } else {
948
0
      ::google::protobuf::scoped_ptr<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse> entry;
949
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_iterator
950
0
          it = this->consumer_producer_tablet_map().begin();
951
0
          it != this->consumer_producer_tablet_map().end(); ++it) {
952
0
        entry.reset(consumer_producer_tablet_map_.NewEntryWrapper(
953
0
            it->first, it->second));
954
0
        target = ::google::protobuf::internal::WireFormatLite::
955
0
                   InternalWriteMessageNoVirtualToArray(
956
0
                       1, *entry, deterministic, target);
957
0
;
958
0
        Utf8Check::Check(&*it);
959
0
      }
960
0
    }
961
0
  }
962
963
  // string consumer_table_id = 2;
964
0
  if (this->consumer_table_id().size() > 0) {
965
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
966
0
      this->consumer_table_id().data(), static_cast<int>(this->consumer_table_id().length()),
967
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
968
0
      "yb.cdc.StreamEntryPB.consumer_table_id");
969
0
    target =
970
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
971
0
        2, this->consumer_table_id(), target);
972
0
  }
973
974
  // string producer_table_id = 3;
975
0
  if (this->producer_table_id().size() > 0) {
976
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
977
0
      this->producer_table_id().data(), static_cast<int>(this->producer_table_id().length()),
978
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
979
0
      "yb.cdc.StreamEntryPB.producer_table_id");
980
0
    target =
981
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
982
0
        3, this->producer_table_id(), target);
983
0
  }
984
985
  // bool same_num_producer_consumer_tablets = 4;
986
0
  if (this->same_num_producer_consumer_tablets() != 0) {
987
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->same_num_producer_consumer_tablets(), target);
988
0
  }
989
990
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
991
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
992
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
993
0
  }
994
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.StreamEntryPB)
995
0
  return target;
996
0
}
997
998
0
size_t StreamEntryPB::ByteSizeLong() const {
999
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.StreamEntryPB)
1000
0
  size_t total_size = 0;
1001
1002
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1003
0
    total_size +=
1004
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1005
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
1006
0
  }
1007
  // map<string, .yb.cdc.ProducerTabletListPB> consumer_producer_tablet_map = 1;
1008
0
  total_size += 1 *
1009
0
      ::google::protobuf::internal::FromIntSize(this->consumer_producer_tablet_map_size());
1010
0
  {
1011
0
    ::google::protobuf::scoped_ptr<StreamEntryPB_ConsumerProducerTabletMapEntry_DoNotUse> entry;
1012
0
    for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerTabletListPB >::const_iterator
1013
0
        it = this->consumer_producer_tablet_map().begin();
1014
0
        it != this->consumer_producer_tablet_map().end(); ++it) {
1015
0
      entry.reset(consumer_producer_tablet_map_.NewEntryWrapper(it->first, it->second));
1016
0
      total_size += ::google::protobuf::internal::WireFormatLite::
1017
0
          MessageSizeNoVirtual(*entry);
1018
0
    }
1019
0
  }
1020
1021
  // string consumer_table_id = 2;
1022
0
  if (this->consumer_table_id().size() > 0) {
1023
0
    total_size += 1 +
1024
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1025
0
        this->consumer_table_id());
1026
0
  }
1027
1028
  // string producer_table_id = 3;
1029
0
  if (this->producer_table_id().size() > 0) {
1030
0
    total_size += 1 +
1031
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1032
0
        this->producer_table_id());
1033
0
  }
1034
1035
  // bool same_num_producer_consumer_tablets = 4;
1036
0
  if (this->same_num_producer_consumer_tablets() != 0) {
1037
0
    total_size += 1 + 1;
1038
0
  }
1039
1040
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1041
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1042
0
  _cached_size_ = cached_size;
1043
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1044
0
  return total_size;
1045
0
}
1046
1047
0
void StreamEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
1048
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.StreamEntryPB)
1049
0
  GOOGLE_DCHECK_NE(&from, this);
1050
0
  const StreamEntryPB* source =
1051
0
      ::google::protobuf::internal::DynamicCastToGenerated<const StreamEntryPB>(
1052
0
          &from);
1053
0
  if (source == NULL) {
1054
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.StreamEntryPB)
1055
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1056
0
  } else {
1057
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.StreamEntryPB)
1058
0
    MergeFrom(*source);
1059
0
  }
1060
0
}
1061
1062
0
void StreamEntryPB::MergeFrom(const StreamEntryPB& from) {
1063
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.StreamEntryPB)
1064
0
  GOOGLE_DCHECK_NE(&from, this);
1065
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1066
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1067
0
  (void) cached_has_bits;
1068
1069
0
  consumer_producer_tablet_map_.MergeFrom(from.consumer_producer_tablet_map_);
1070
0
  if (from.consumer_table_id().size() > 0) {
1071
1072
0
    consumer_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.consumer_table_id_);
1073
0
  }
1074
0
  if (from.producer_table_id().size() > 0) {
1075
1076
0
    producer_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_table_id_);
1077
0
  }
1078
0
  if (from.same_num_producer_consumer_tablets() != 0) {
1079
0
    set_same_num_producer_consumer_tablets(from.same_num_producer_consumer_tablets());
1080
0
  }
1081
0
}
1082
1083
0
void StreamEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
1084
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.StreamEntryPB)
1085
0
  if (&from == this) return;
1086
0
  Clear();
1087
0
  MergeFrom(from);
1088
0
}
1089
1090
0
void StreamEntryPB::CopyFrom(const StreamEntryPB& from) {
1091
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.StreamEntryPB)
1092
0
  if (&from == this) return;
1093
0
  Clear();
1094
0
  MergeFrom(from);
1095
0
}
1096
1097
0
bool StreamEntryPB::IsInitialized() const {
1098
0
  return true;
1099
0
}
1100
1101
0
void StreamEntryPB::Swap(StreamEntryPB* other) {
1102
0
  if (other == this) return;
1103
0
  InternalSwap(other);
1104
0
}
1105
0
void StreamEntryPB::InternalSwap(StreamEntryPB* other) {
1106
0
  using std::swap;
1107
0
  consumer_producer_tablet_map_.Swap(&other->consumer_producer_tablet_map_);
1108
0
  consumer_table_id_.Swap(&other->consumer_table_id_);
1109
0
  producer_table_id_.Swap(&other->producer_table_id_);
1110
0
  swap(same_num_producer_consumer_tablets_, other->same_num_producer_consumer_tablets_);
1111
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1112
0
  swap(_cached_size_, other->_cached_size_);
1113
0
}
1114
1115
0
::google::protobuf::Metadata StreamEntryPB::GetMetadata() const {
1116
0
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1117
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages];
1118
0
}
1119
1120
1121
// ===================================================================
1122
1123
15.8k
ProducerEntryPB_StreamMapEntry_DoNotUse::ProducerEntryPB_StreamMapEntry_DoNotUse() {}
1124
0
ProducerEntryPB_StreamMapEntry_DoNotUse::ProducerEntryPB_StreamMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
1125
0
void ProducerEntryPB_StreamMapEntry_DoNotUse::MergeFrom(const ProducerEntryPB_StreamMapEntry_DoNotUse& other) {
1126
0
  MergeFromInternal(other);
1127
0
}
1128
0
::google::protobuf::Metadata ProducerEntryPB_StreamMapEntry_DoNotUse::GetMetadata() const {
1129
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1130
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[3];
1131
0
}
1132
void ProducerEntryPB_StreamMapEntry_DoNotUse::MergeFrom(
1133
0
    const ::google::protobuf::Message& other) {
1134
0
  ::google::protobuf::Message::MergeFrom(other);
1135
0
}
1136
1137
1138
// ===================================================================
1139
1140
15.8k
void ProducerEntryPB::InitAsDefaultInstance() {
1141
15.8k
}
1142
0
void ProducerEntryPB::clear_master_addrs() {
1143
0
  master_addrs_.Clear();
1144
0
}
1145
0
void ProducerEntryPB::clear_tserver_addrs() {
1146
0
  tserver_addrs_.Clear();
1147
0
}
1148
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1149
const int ProducerEntryPB::kStreamMapFieldNumber;
1150
const int ProducerEntryPB::kMasterAddrsFieldNumber;
1151
const int ProducerEntryPB::kTserverAddrsFieldNumber;
1152
const int ProducerEntryPB::kDisableStreamFieldNumber;
1153
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1154
1155
ProducerEntryPB::ProducerEntryPB()
1156
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1157
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1158
0
    ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerEntryPB();
1159
0
  }
1160
15.8k
  SharedCtor();
1161
  // @@protoc_insertion_point(constructor:yb.cdc.ProducerEntryPB)
1162
15.8k
}
1163
ProducerEntryPB::ProducerEntryPB(const ProducerEntryPB& from)
1164
  : ::google::protobuf::Message(),
1165
      _internal_metadata_(NULL),
1166
      master_addrs_(from.master_addrs_),
1167
      tserver_addrs_(from.tserver_addrs_),
1168
0
      _cached_size_(0) {
1169
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1170
0
  stream_map_.MergeFrom(from.stream_map_);
1171
0
  disable_stream_ = from.disable_stream_;
1172
  // @@protoc_insertion_point(copy_constructor:yb.cdc.ProducerEntryPB)
1173
0
}
1174
1175
15.8k
void ProducerEntryPB::SharedCtor() {
1176
15.8k
  disable_stream_ = false;
1177
15.8k
  _cached_size_ = 0;
1178
15.8k
}
1179
1180
0
ProducerEntryPB::~ProducerEntryPB() {
1181
  // @@protoc_insertion_point(destructor:yb.cdc.ProducerEntryPB)
1182
0
  SharedDtor();
1183
0
}
1184
1185
0
void ProducerEntryPB::SharedDtor() {
1186
0
}
1187
1188
0
void ProducerEntryPB::SetCachedSize(int size) const {
1189
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1190
0
  _cached_size_ = size;
1191
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1192
0
}
1193
0
const ::google::protobuf::Descriptor* ProducerEntryPB::descriptor() {
1194
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1195
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1196
0
}
1197
1198
0
const ProducerEntryPB& ProducerEntryPB::default_instance() {
1199
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsProducerEntryPB();
1200
0
  return *internal_default_instance();
1201
0
}
1202
1203
0
ProducerEntryPB* ProducerEntryPB::New(::google::protobuf::Arena* arena) const {
1204
0
  ProducerEntryPB* n = new ProducerEntryPB;
1205
0
  if (arena != NULL) {
1206
0
    arena->Own(n);
1207
0
  }
1208
0
  return n;
1209
0
}
1210
1211
0
void ProducerEntryPB::Clear() {
1212
// @@protoc_insertion_point(message_clear_start:yb.cdc.ProducerEntryPB)
1213
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1214
  // Prevent compiler warnings about cached_has_bits being unused
1215
0
  (void) cached_has_bits;
1216
1217
0
  stream_map_.Clear();
1218
0
  master_addrs_.Clear();
1219
0
  tserver_addrs_.Clear();
1220
0
  disable_stream_ = false;
1221
0
  _internal_metadata_.Clear();
1222
0
}
1223
1224
bool ProducerEntryPB::MergePartialFromCodedStream(
1225
0
    ::google::protobuf::io::CodedInputStream* input) {
1226
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1227
0
  ::google::protobuf::uint32 tag;
1228
  // @@protoc_insertion_point(parse_start:yb.cdc.ProducerEntryPB)
1229
0
  for (;;) {
1230
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1231
0
    tag = p.first;
1232
0
    if (!p.second) goto handle_unusual;
1233
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1234
      // map<string, .yb.cdc.StreamEntryPB> stream_map = 1;
1235
0
      case 1: {
1236
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1237
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1238
0
          ProducerEntryPB_StreamMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
1239
0
              ProducerEntryPB_StreamMapEntry_DoNotUse,
1240
0
              ::std::string, ::yb::cdc::StreamEntryPB,
1241
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
1242
0
              ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
1243
0
              0 >,
1244
0
            ::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB > > parser(&stream_map_);
1245
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1246
0
              input, &parser));
1247
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1248
0
            parser.key().data(), static_cast<int>(parser.key().length()),
1249
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
1250
0
            "yb.cdc.ProducerEntryPB.StreamMapEntry.key"));
1251
0
        } else {
1252
0
          goto handle_unusual;
1253
0
        }
1254
0
        break;
1255
0
      }
1256
1257
      // repeated .yb.HostPortPB master_addrs = 2;
1258
0
      case 2: {
1259
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1260
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1261
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_master_addrs()));
1262
0
        } else {
1263
0
          goto handle_unusual;
1264
0
        }
1265
0
        break;
1266
0
      }
1267
1268
      // repeated .yb.HostPortPB tserver_addrs = 3;
1269
0
      case 3: {
1270
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1271
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1272
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tserver_addrs()));
1273
0
        } else {
1274
0
          goto handle_unusual;
1275
0
        }
1276
0
        break;
1277
0
      }
1278
1279
      // bool disable_stream = 4;
1280
0
      case 4: {
1281
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1282
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1283
1284
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1285
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1286
0
                 input, &disable_stream_)));
1287
0
        } else {
1288
0
          goto handle_unusual;
1289
0
        }
1290
0
        break;
1291
0
      }
1292
1293
0
      default: {
1294
0
      handle_unusual:
1295
0
        if (tag == 0) {
1296
0
          goto success;
1297
0
        }
1298
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1299
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1300
0
        break;
1301
0
      }
1302
0
    }
1303
0
  }
1304
0
success:
1305
  // @@protoc_insertion_point(parse_success:yb.cdc.ProducerEntryPB)
1306
0
  return true;
1307
0
failure:
1308
  // @@protoc_insertion_point(parse_failure:yb.cdc.ProducerEntryPB)
1309
0
  return false;
1310
0
#undef DO_
1311
0
}
1312
1313
void ProducerEntryPB::SerializeWithCachedSizes(
1314
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1315
  // @@protoc_insertion_point(serialize_start:yb.cdc.ProducerEntryPB)
1316
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1317
0
  (void) cached_has_bits;
1318
1319
  // map<string, .yb.cdc.StreamEntryPB> stream_map = 1;
1320
0
  if (!this->stream_map().empty()) {
1321
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_pointer
1322
0
        ConstPtr;
1323
0
    typedef ConstPtr SortItem;
1324
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
1325
0
    struct Utf8Check {
1326
0
      static void Check(ConstPtr p) {
1327
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1328
0
          p->first.data(), static_cast<int>(p->first.length()),
1329
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1330
0
          "yb.cdc.ProducerEntryPB.StreamMapEntry.key");
1331
0
      }
1332
0
    };
1333
1334
0
    if (output->IsSerializationDeterministic() &&
1335
0
        this->stream_map().size() > 1) {
1336
0
      ::google::protobuf::scoped_array<SortItem> items(
1337
0
          new SortItem[this->stream_map().size()]);
1338
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::size_type size_type;
1339
0
      size_type n = 0;
1340
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_iterator
1341
0
          it = this->stream_map().begin();
1342
0
          it != this->stream_map().end(); ++it, ++n) {
1343
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1344
0
      }
1345
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1346
0
      ::google::protobuf::scoped_ptr<ProducerEntryPB_StreamMapEntry_DoNotUse> entry;
1347
0
      for (size_type i = 0; i < n; i++) {
1348
0
        entry.reset(stream_map_.NewEntryWrapper(
1349
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
1350
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1351
0
            1, *entry, output);
1352
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
1353
0
      }
1354
0
    } else {
1355
0
      ::google::protobuf::scoped_ptr<ProducerEntryPB_StreamMapEntry_DoNotUse> entry;
1356
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_iterator
1357
0
          it = this->stream_map().begin();
1358
0
          it != this->stream_map().end(); ++it) {
1359
0
        entry.reset(stream_map_.NewEntryWrapper(
1360
0
            it->first, it->second));
1361
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1362
0
            1, *entry, output);
1363
0
        Utf8Check::Check(&*it);
1364
0
      }
1365
0
    }
1366
0
  }
1367
1368
  // repeated .yb.HostPortPB master_addrs = 2;
1369
0
  for (unsigned int i = 0,
1370
0
      n = static_cast<unsigned int>(this->master_addrs_size()); i < n; i++) {
1371
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1372
0
      2, this->master_addrs(static_cast<int>(i)), output);
1373
0
  }
1374
1375
  // repeated .yb.HostPortPB tserver_addrs = 3;
1376
0
  for (unsigned int i = 0,
1377
0
      n = static_cast<unsigned int>(this->tserver_addrs_size()); i < n; i++) {
1378
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1379
0
      3, this->tserver_addrs(static_cast<int>(i)), output);
1380
0
  }
1381
1382
  // bool disable_stream = 4;
1383
0
  if (this->disable_stream() != 0) {
1384
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->disable_stream(), output);
1385
0
  }
1386
1387
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1388
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1389
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
1390
0
  }
1391
  // @@protoc_insertion_point(serialize_end:yb.cdc.ProducerEntryPB)
1392
0
}
1393
1394
::google::protobuf::uint8* ProducerEntryPB::InternalSerializeWithCachedSizesToArray(
1395
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1396
0
  (void)deterministic; // Unused
1397
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ProducerEntryPB)
1398
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1399
0
  (void) cached_has_bits;
1400
1401
  // map<string, .yb.cdc.StreamEntryPB> stream_map = 1;
1402
0
  if (!this->stream_map().empty()) {
1403
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_pointer
1404
0
        ConstPtr;
1405
0
    typedef ConstPtr SortItem;
1406
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
1407
0
    struct Utf8Check {
1408
0
      static void Check(ConstPtr p) {
1409
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1410
0
          p->first.data(), static_cast<int>(p->first.length()),
1411
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1412
0
          "yb.cdc.ProducerEntryPB.StreamMapEntry.key");
1413
0
      }
1414
0
    };
1415
1416
0
    if (deterministic &&
1417
0
        this->stream_map().size() > 1) {
1418
0
      ::google::protobuf::scoped_array<SortItem> items(
1419
0
          new SortItem[this->stream_map().size()]);
1420
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::size_type size_type;
1421
0
      size_type n = 0;
1422
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_iterator
1423
0
          it = this->stream_map().begin();
1424
0
          it != this->stream_map().end(); ++it, ++n) {
1425
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1426
0
      }
1427
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1428
0
      ::google::protobuf::scoped_ptr<ProducerEntryPB_StreamMapEntry_DoNotUse> entry;
1429
0
      for (size_type i = 0; i < n; i++) {
1430
0
        entry.reset(stream_map_.NewEntryWrapper(
1431
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
1432
0
        target = ::google::protobuf::internal::WireFormatLite::
1433
0
                   InternalWriteMessageNoVirtualToArray(
1434
0
                       1, *entry, deterministic, target);
1435
0
;
1436
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
1437
0
      }
1438
0
    } else {
1439
0
      ::google::protobuf::scoped_ptr<ProducerEntryPB_StreamMapEntry_DoNotUse> entry;
1440
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_iterator
1441
0
          it = this->stream_map().begin();
1442
0
          it != this->stream_map().end(); ++it) {
1443
0
        entry.reset(stream_map_.NewEntryWrapper(
1444
0
            it->first, it->second));
1445
0
        target = ::google::protobuf::internal::WireFormatLite::
1446
0
                   InternalWriteMessageNoVirtualToArray(
1447
0
                       1, *entry, deterministic, target);
1448
0
;
1449
0
        Utf8Check::Check(&*it);
1450
0
      }
1451
0
    }
1452
0
  }
1453
1454
  // repeated .yb.HostPortPB master_addrs = 2;
1455
0
  for (unsigned int i = 0,
1456
0
      n = static_cast<unsigned int>(this->master_addrs_size()); i < n; i++) {
1457
0
    target = ::google::protobuf::internal::WireFormatLite::
1458
0
      InternalWriteMessageToArray(
1459
0
        2, this->master_addrs(static_cast<int>(i)), deterministic, target);
1460
0
  }
1461
1462
  // repeated .yb.HostPortPB tserver_addrs = 3;
1463
0
  for (unsigned int i = 0,
1464
0
      n = static_cast<unsigned int>(this->tserver_addrs_size()); i < n; i++) {
1465
0
    target = ::google::protobuf::internal::WireFormatLite::
1466
0
      InternalWriteMessageToArray(
1467
0
        3, this->tserver_addrs(static_cast<int>(i)), deterministic, target);
1468
0
  }
1469
1470
  // bool disable_stream = 4;
1471
0
  if (this->disable_stream() != 0) {
1472
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->disable_stream(), target);
1473
0
  }
1474
1475
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1476
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1477
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
1478
0
  }
1479
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ProducerEntryPB)
1480
0
  return target;
1481
0
}
1482
1483
0
size_t ProducerEntryPB::ByteSizeLong() const {
1484
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.ProducerEntryPB)
1485
0
  size_t total_size = 0;
1486
1487
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1488
0
    total_size +=
1489
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1490
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
1491
0
  }
1492
  // map<string, .yb.cdc.StreamEntryPB> stream_map = 1;
1493
0
  total_size += 1 *
1494
0
      ::google::protobuf::internal::FromIntSize(this->stream_map_size());
1495
0
  {
1496
0
    ::google::protobuf::scoped_ptr<ProducerEntryPB_StreamMapEntry_DoNotUse> entry;
1497
0
    for (::google::protobuf::Map< ::std::string, ::yb::cdc::StreamEntryPB >::const_iterator
1498
0
        it = this->stream_map().begin();
1499
0
        it != this->stream_map().end(); ++it) {
1500
0
      entry.reset(stream_map_.NewEntryWrapper(it->first, it->second));
1501
0
      total_size += ::google::protobuf::internal::WireFormatLite::
1502
0
          MessageSizeNoVirtual(*entry);
1503
0
    }
1504
0
  }
1505
1506
  // repeated .yb.HostPortPB master_addrs = 2;
1507
0
  {
1508
0
    unsigned int count = static_cast<unsigned int>(this->master_addrs_size());
1509
0
    total_size += 1UL * count;
1510
0
    for (unsigned int i = 0; i < count; i++) {
1511
0
      total_size +=
1512
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1513
0
          this->master_addrs(static_cast<int>(i)));
1514
0
    }
1515
0
  }
1516
1517
  // repeated .yb.HostPortPB tserver_addrs = 3;
1518
0
  {
1519
0
    unsigned int count = static_cast<unsigned int>(this->tserver_addrs_size());
1520
0
    total_size += 1UL * count;
1521
0
    for (unsigned int i = 0; i < count; i++) {
1522
0
      total_size +=
1523
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1524
0
          this->tserver_addrs(static_cast<int>(i)));
1525
0
    }
1526
0
  }
1527
1528
  // bool disable_stream = 4;
1529
0
  if (this->disable_stream() != 0) {
1530
0
    total_size += 1 + 1;
1531
0
  }
1532
1533
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1534
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1535
0
  _cached_size_ = cached_size;
1536
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1537
0
  return total_size;
1538
0
}
1539
1540
0
void ProducerEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
1541
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ProducerEntryPB)
1542
0
  GOOGLE_DCHECK_NE(&from, this);
1543
0
  const ProducerEntryPB* source =
1544
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ProducerEntryPB>(
1545
0
          &from);
1546
0
  if (source == NULL) {
1547
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ProducerEntryPB)
1548
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1549
0
  } else {
1550
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ProducerEntryPB)
1551
0
    MergeFrom(*source);
1552
0
  }
1553
0
}
1554
1555
0
void ProducerEntryPB::MergeFrom(const ProducerEntryPB& from) {
1556
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ProducerEntryPB)
1557
0
  GOOGLE_DCHECK_NE(&from, this);
1558
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1559
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1560
0
  (void) cached_has_bits;
1561
1562
0
  stream_map_.MergeFrom(from.stream_map_);
1563
0
  master_addrs_.MergeFrom(from.master_addrs_);
1564
0
  tserver_addrs_.MergeFrom(from.tserver_addrs_);
1565
0
  if (from.disable_stream() != 0) {
1566
0
    set_disable_stream(from.disable_stream());
1567
0
  }
1568
0
}
1569
1570
0
void ProducerEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
1571
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ProducerEntryPB)
1572
0
  if (&from == this) return;
1573
0
  Clear();
1574
0
  MergeFrom(from);
1575
0
}
1576
1577
0
void ProducerEntryPB::CopyFrom(const ProducerEntryPB& from) {
1578
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ProducerEntryPB)
1579
0
  if (&from == this) return;
1580
0
  Clear();
1581
0
  MergeFrom(from);
1582
0
}
1583
1584
0
bool ProducerEntryPB::IsInitialized() const {
1585
0
  if (!::google::protobuf::internal::AllAreInitialized(this->master_addrs())) return false;
1586
0
  if (!::google::protobuf::internal::AllAreInitialized(this->tserver_addrs())) return false;
1587
0
  return true;
1588
0
}
1589
1590
0
void ProducerEntryPB::Swap(ProducerEntryPB* other) {
1591
0
  if (other == this) return;
1592
0
  InternalSwap(other);
1593
0
}
1594
0
void ProducerEntryPB::InternalSwap(ProducerEntryPB* other) {
1595
0
  using std::swap;
1596
0
  stream_map_.Swap(&other->stream_map_);
1597
0
  master_addrs_.InternalSwap(&other->master_addrs_);
1598
0
  tserver_addrs_.InternalSwap(&other->tserver_addrs_);
1599
0
  swap(disable_stream_, other->disable_stream_);
1600
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1601
0
  swap(_cached_size_, other->_cached_size_);
1602
0
}
1603
1604
0
::google::protobuf::Metadata ProducerEntryPB::GetMetadata() const {
1605
0
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1606
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages];
1607
0
}
1608
1609
1610
// ===================================================================
1611
1612
15.8k
ConsumerRegistryPB_ProducerMapEntry_DoNotUse::ConsumerRegistryPB_ProducerMapEntry_DoNotUse() {}
1613
0
ConsumerRegistryPB_ProducerMapEntry_DoNotUse::ConsumerRegistryPB_ProducerMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
1614
0
void ConsumerRegistryPB_ProducerMapEntry_DoNotUse::MergeFrom(const ConsumerRegistryPB_ProducerMapEntry_DoNotUse& other) {
1615
0
  MergeFromInternal(other);
1616
0
}
1617
0
::google::protobuf::Metadata ConsumerRegistryPB_ProducerMapEntry_DoNotUse::GetMetadata() const {
1618
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1619
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[5];
1620
0
}
1621
void ConsumerRegistryPB_ProducerMapEntry_DoNotUse::MergeFrom(
1622
0
    const ::google::protobuf::Message& other) {
1623
0
  ::google::protobuf::Message::MergeFrom(other);
1624
0
}
1625
1626
1627
// ===================================================================
1628
1629
15.8k
void ConsumerRegistryPB::InitAsDefaultInstance() {
1630
15.8k
}
1631
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1632
const int ConsumerRegistryPB::kProducerMapFieldNumber;
1633
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1634
1635
ConsumerRegistryPB::ConsumerRegistryPB()
1636
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1637
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1638
0
    ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB();
1639
0
  }
1640
15.8k
  SharedCtor();
1641
  // @@protoc_insertion_point(constructor:yb.cdc.ConsumerRegistryPB)
1642
15.8k
}
1643
ConsumerRegistryPB::ConsumerRegistryPB(const ConsumerRegistryPB& from)
1644
  : ::google::protobuf::Message(),
1645
      _internal_metadata_(NULL),
1646
0
      _cached_size_(0) {
1647
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1648
0
  producer_map_.MergeFrom(from.producer_map_);
1649
  // @@protoc_insertion_point(copy_constructor:yb.cdc.ConsumerRegistryPB)
1650
0
}
1651
1652
15.8k
void ConsumerRegistryPB::SharedCtor() {
1653
15.8k
  _cached_size_ = 0;
1654
15.8k
}
1655
1656
0
ConsumerRegistryPB::~ConsumerRegistryPB() {
1657
  // @@protoc_insertion_point(destructor:yb.cdc.ConsumerRegistryPB)
1658
0
  SharedDtor();
1659
0
}
1660
1661
0
void ConsumerRegistryPB::SharedDtor() {
1662
0
}
1663
1664
0
void ConsumerRegistryPB::SetCachedSize(int size) const {
1665
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1666
0
  _cached_size_ = size;
1667
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1668
0
}
1669
0
const ::google::protobuf::Descriptor* ConsumerRegistryPB::descriptor() {
1670
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1671
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1672
0
}
1673
1674
0
const ConsumerRegistryPB& ConsumerRegistryPB::default_instance() {
1675
0
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB();
1676
0
  return *internal_default_instance();
1677
0
}
1678
1679
0
ConsumerRegistryPB* ConsumerRegistryPB::New(::google::protobuf::Arena* arena) const {
1680
0
  ConsumerRegistryPB* n = new ConsumerRegistryPB;
1681
0
  if (arena != NULL) {
1682
0
    arena->Own(n);
1683
0
  }
1684
0
  return n;
1685
0
}
1686
1687
0
void ConsumerRegistryPB::Clear() {
1688
// @@protoc_insertion_point(message_clear_start:yb.cdc.ConsumerRegistryPB)
1689
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1690
  // Prevent compiler warnings about cached_has_bits being unused
1691
0
  (void) cached_has_bits;
1692
1693
0
  producer_map_.Clear();
1694
0
  _internal_metadata_.Clear();
1695
0
}
1696
1697
bool ConsumerRegistryPB::MergePartialFromCodedStream(
1698
0
    ::google::protobuf::io::CodedInputStream* input) {
1699
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1700
0
  ::google::protobuf::uint32 tag;
1701
  // @@protoc_insertion_point(parse_start:yb.cdc.ConsumerRegistryPB)
1702
0
  for (;;) {
1703
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1704
0
    tag = p.first;
1705
0
    if (!p.second) goto handle_unusual;
1706
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1707
      // map<string, .yb.cdc.ProducerEntryPB> producer_map = 1;
1708
0
      case 1: {
1709
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1710
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1711
0
          ConsumerRegistryPB_ProducerMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
1712
0
              ConsumerRegistryPB_ProducerMapEntry_DoNotUse,
1713
0
              ::std::string, ::yb::cdc::ProducerEntryPB,
1714
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
1715
0
              ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
1716
0
              0 >,
1717
0
            ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB > > parser(&producer_map_);
1718
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1719
0
              input, &parser));
1720
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1721
0
            parser.key().data(), static_cast<int>(parser.key().length()),
1722
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
1723
0
            "yb.cdc.ConsumerRegistryPB.ProducerMapEntry.key"));
1724
0
        } else {
1725
0
          goto handle_unusual;
1726
0
        }
1727
0
        break;
1728
0
      }
1729
1730
0
      default: {
1731
0
      handle_unusual:
1732
0
        if (tag == 0) {
1733
0
          goto success;
1734
0
        }
1735
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1736
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1737
0
        break;
1738
0
      }
1739
0
    }
1740
0
  }
1741
0
success:
1742
  // @@protoc_insertion_point(parse_success:yb.cdc.ConsumerRegistryPB)
1743
0
  return true;
1744
0
failure:
1745
  // @@protoc_insertion_point(parse_failure:yb.cdc.ConsumerRegistryPB)
1746
0
  return false;
1747
0
#undef DO_
1748
0
}
1749
1750
void ConsumerRegistryPB::SerializeWithCachedSizes(
1751
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1752
  // @@protoc_insertion_point(serialize_start:yb.cdc.ConsumerRegistryPB)
1753
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1754
0
  (void) cached_has_bits;
1755
1756
  // map<string, .yb.cdc.ProducerEntryPB> producer_map = 1;
1757
0
  if (!this->producer_map().empty()) {
1758
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_pointer
1759
0
        ConstPtr;
1760
0
    typedef ConstPtr SortItem;
1761
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
1762
0
    struct Utf8Check {
1763
0
      static void Check(ConstPtr p) {
1764
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1765
0
          p->first.data(), static_cast<int>(p->first.length()),
1766
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1767
0
          "yb.cdc.ConsumerRegistryPB.ProducerMapEntry.key");
1768
0
      }
1769
0
    };
1770
1771
0
    if (output->IsSerializationDeterministic() &&
1772
0
        this->producer_map().size() > 1) {
1773
0
      ::google::protobuf::scoped_array<SortItem> items(
1774
0
          new SortItem[this->producer_map().size()]);
1775
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::size_type size_type;
1776
0
      size_type n = 0;
1777
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_iterator
1778
0
          it = this->producer_map().begin();
1779
0
          it != this->producer_map().end(); ++it, ++n) {
1780
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1781
0
      }
1782
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1783
0
      ::google::protobuf::scoped_ptr<ConsumerRegistryPB_ProducerMapEntry_DoNotUse> entry;
1784
0
      for (size_type i = 0; i < n; i++) {
1785
0
        entry.reset(producer_map_.NewEntryWrapper(
1786
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
1787
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1788
0
            1, *entry, output);
1789
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
1790
0
      }
1791
0
    } else {
1792
0
      ::google::protobuf::scoped_ptr<ConsumerRegistryPB_ProducerMapEntry_DoNotUse> entry;
1793
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_iterator
1794
0
          it = this->producer_map().begin();
1795
0
          it != this->producer_map().end(); ++it) {
1796
0
        entry.reset(producer_map_.NewEntryWrapper(
1797
0
            it->first, it->second));
1798
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1799
0
            1, *entry, output);
1800
0
        Utf8Check::Check(&*it);
1801
0
      }
1802
0
    }
1803
0
  }
1804
1805
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1806
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1807
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
1808
0
  }
1809
  // @@protoc_insertion_point(serialize_end:yb.cdc.ConsumerRegistryPB)
1810
0
}
1811
1812
::google::protobuf::uint8* ConsumerRegistryPB::InternalSerializeWithCachedSizesToArray(
1813
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1814
0
  (void)deterministic; // Unused
1815
  // @@protoc_insertion_point(serialize_to_array_start:yb.cdc.ConsumerRegistryPB)
1816
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1817
0
  (void) cached_has_bits;
1818
1819
  // map<string, .yb.cdc.ProducerEntryPB> producer_map = 1;
1820
0
  if (!this->producer_map().empty()) {
1821
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_pointer
1822
0
        ConstPtr;
1823
0
    typedef ConstPtr SortItem;
1824
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
1825
0
    struct Utf8Check {
1826
0
      static void Check(ConstPtr p) {
1827
0
        ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1828
0
          p->first.data(), static_cast<int>(p->first.length()),
1829
0
          ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1830
0
          "yb.cdc.ConsumerRegistryPB.ProducerMapEntry.key");
1831
0
      }
1832
0
    };
1833
1834
0
    if (deterministic &&
1835
0
        this->producer_map().size() > 1) {
1836
0
      ::google::protobuf::scoped_array<SortItem> items(
1837
0
          new SortItem[this->producer_map().size()]);
1838
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::size_type size_type;
1839
0
      size_type n = 0;
1840
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_iterator
1841
0
          it = this->producer_map().begin();
1842
0
          it != this->producer_map().end(); ++it, ++n) {
1843
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1844
0
      }
1845
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1846
0
      ::google::protobuf::scoped_ptr<ConsumerRegistryPB_ProducerMapEntry_DoNotUse> entry;
1847
0
      for (size_type i = 0; i < n; i++) {
1848
0
        entry.reset(producer_map_.NewEntryWrapper(
1849
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
1850
0
        target = ::google::protobuf::internal::WireFormatLite::
1851
0
                   InternalWriteMessageNoVirtualToArray(
1852
0
                       1, *entry, deterministic, target);
1853
0
;
1854
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
1855
0
      }
1856
0
    } else {
1857
0
      ::google::protobuf::scoped_ptr<ConsumerRegistryPB_ProducerMapEntry_DoNotUse> entry;
1858
0
      for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_iterator
1859
0
          it = this->producer_map().begin();
1860
0
          it != this->producer_map().end(); ++it) {
1861
0
        entry.reset(producer_map_.NewEntryWrapper(
1862
0
            it->first, it->second));
1863
0
        target = ::google::protobuf::internal::WireFormatLite::
1864
0
                   InternalWriteMessageNoVirtualToArray(
1865
0
                       1, *entry, deterministic, target);
1866
0
;
1867
0
        Utf8Check::Check(&*it);
1868
0
      }
1869
0
    }
1870
0
  }
1871
1872
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1873
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1874
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
1875
0
  }
1876
  // @@protoc_insertion_point(serialize_to_array_end:yb.cdc.ConsumerRegistryPB)
1877
0
  return target;
1878
0
}
1879
1880
0
size_t ConsumerRegistryPB::ByteSizeLong() const {
1881
// @@protoc_insertion_point(message_byte_size_start:yb.cdc.ConsumerRegistryPB)
1882
0
  size_t total_size = 0;
1883
1884
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1885
0
    total_size +=
1886
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1887
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
1888
0
  }
1889
  // map<string, .yb.cdc.ProducerEntryPB> producer_map = 1;
1890
0
  total_size += 1 *
1891
0
      ::google::protobuf::internal::FromIntSize(this->producer_map_size());
1892
0
  {
1893
0
    ::google::protobuf::scoped_ptr<ConsumerRegistryPB_ProducerMapEntry_DoNotUse> entry;
1894
0
    for (::google::protobuf::Map< ::std::string, ::yb::cdc::ProducerEntryPB >::const_iterator
1895
0
        it = this->producer_map().begin();
1896
0
        it != this->producer_map().end(); ++it) {
1897
0
      entry.reset(producer_map_.NewEntryWrapper(it->first, it->second));
1898
0
      total_size += ::google::protobuf::internal::WireFormatLite::
1899
0
          MessageSizeNoVirtual(*entry);
1900
0
    }
1901
0
  }
1902
1903
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1904
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1905
0
  _cached_size_ = cached_size;
1906
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1907
0
  return total_size;
1908
0
}
1909
1910
0
void ConsumerRegistryPB::MergeFrom(const ::google::protobuf::Message& from) {
1911
// @@protoc_insertion_point(generalized_merge_from_start:yb.cdc.ConsumerRegistryPB)
1912
0
  GOOGLE_DCHECK_NE(&from, this);
1913
0
  const ConsumerRegistryPB* source =
1914
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConsumerRegistryPB>(
1915
0
          &from);
1916
0
  if (source == NULL) {
1917
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.cdc.ConsumerRegistryPB)
1918
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1919
0
  } else {
1920
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.cdc.ConsumerRegistryPB)
1921
0
    MergeFrom(*source);
1922
0
  }
1923
0
}
1924
1925
0
void ConsumerRegistryPB::MergeFrom(const ConsumerRegistryPB& from) {
1926
// @@protoc_insertion_point(class_specific_merge_from_start:yb.cdc.ConsumerRegistryPB)
1927
0
  GOOGLE_DCHECK_NE(&from, this);
1928
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1929
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1930
0
  (void) cached_has_bits;
1931
1932
0
  producer_map_.MergeFrom(from.producer_map_);
1933
0
}
1934
1935
0
void ConsumerRegistryPB::CopyFrom(const ::google::protobuf::Message& from) {
1936
// @@protoc_insertion_point(generalized_copy_from_start:yb.cdc.ConsumerRegistryPB)
1937
0
  if (&from == this) return;
1938
0
  Clear();
1939
0
  MergeFrom(from);
1940
0
}
1941
1942
0
void ConsumerRegistryPB::CopyFrom(const ConsumerRegistryPB& from) {
1943
// @@protoc_insertion_point(class_specific_copy_from_start:yb.cdc.ConsumerRegistryPB)
1944
0
  if (&from == this) return;
1945
0
  Clear();
1946
0
  MergeFrom(from);
1947
0
}
1948
1949
0
bool ConsumerRegistryPB::IsInitialized() const {
1950
0
  if (!::google::protobuf::internal::AllAreInitialized(this->producer_map())) return false;
1951
0
  return true;
1952
0
}
1953
1954
0
void ConsumerRegistryPB::Swap(ConsumerRegistryPB* other) {
1955
0
  if (other == this) return;
1956
0
  InternalSwap(other);
1957
0
}
1958
0
void ConsumerRegistryPB::InternalSwap(ConsumerRegistryPB* other) {
1959
0
  using std::swap;
1960
0
  producer_map_.Swap(&other->producer_map_);
1961
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1962
0
  swap(_cached_size_, other->_cached_size_);
1963
0
}
1964
1965
0
::google::protobuf::Metadata ConsumerRegistryPB::GetMetadata() const {
1966
0
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::protobuf_AssignDescriptorsOnce();
1967
0
  return ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::file_level_metadata[kIndexInFileMessages];
1968
0
}
1969
1970
1971
// @@protoc_insertion_point(namespace_scope)
1972
}  // namespace cdc
1973
}  // namespace yb
1974
1975
// @@protoc_insertion_point(global_scope)