/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_replication.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/master/master_replication.proto |
3 | | |
4 | | #include "yb/master/master_replication.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/stubs/once.h> |
11 | | #include <google/protobuf/io/coded_stream.h> |
12 | | #include <google/protobuf/wire_format_lite_inl.h> |
13 | | #include <google/protobuf/descriptor.h> |
14 | | #include <google/protobuf/generated_message_reflection.h> |
15 | | #include <google/protobuf/reflection_ops.h> |
16 | | #include <google/protobuf/wire_format.h> |
17 | | // This is a temporary google only hack |
18 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
19 | | #include "third_party/protobuf/version.h" |
20 | | #endif |
21 | | #include "yb/util/protobuf-annotations.h" |
22 | | // @@protoc_insertion_point(includes) |
23 | | namespace yb { |
24 | | namespace master { |
25 | | class CDCStreamInfoPBDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<CDCStreamInfoPB> |
28 | | _instance; |
29 | | } _CDCStreamInfoPB_default_instance_; |
30 | | class ValidateReplicationInfoRequestPBDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<ValidateReplicationInfoRequestPB> |
33 | | _instance; |
34 | | } _ValidateReplicationInfoRequestPB_default_instance_; |
35 | | class ValidateReplicationInfoResponsePBDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<ValidateReplicationInfoResponsePB> |
38 | | _instance; |
39 | | } _ValidateReplicationInfoResponsePB_default_instance_; |
40 | | class CreateCDCStreamRequestPBDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateCDCStreamRequestPB> |
43 | | _instance; |
44 | | } _CreateCDCStreamRequestPB_default_instance_; |
45 | | class CreateCDCStreamResponsePBDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<CreateCDCStreamResponsePB> |
48 | | _instance; |
49 | | } _CreateCDCStreamResponsePB_default_instance_; |
50 | | class DeleteCDCStreamRequestPBDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteCDCStreamRequestPB> |
53 | | _instance; |
54 | | } _DeleteCDCStreamRequestPB_default_instance_; |
55 | | class DeleteCDCStreamResponsePBDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteCDCStreamResponsePB> |
58 | | _instance; |
59 | | } _DeleteCDCStreamResponsePB_default_instance_; |
60 | | class ListCDCStreamsRequestPBDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<ListCDCStreamsRequestPB> |
63 | | _instance; |
64 | | } _ListCDCStreamsRequestPB_default_instance_; |
65 | | class ListCDCStreamsResponsePBDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<ListCDCStreamsResponsePB> |
68 | | _instance; |
69 | | } _ListCDCStreamsResponsePB_default_instance_; |
70 | | class GetCDCStreamRequestPBDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCStreamRequestPB> |
73 | | _instance; |
74 | | } _GetCDCStreamRequestPB_default_instance_; |
75 | | class GetCDCStreamResponsePBDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCStreamResponsePB> |
78 | | _instance; |
79 | | } _GetCDCStreamResponsePB_default_instance_; |
80 | | class GetCDCDBStreamInfoRequestPBDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCDBStreamInfoRequestPB> |
83 | | _instance; |
84 | | } _GetCDCDBStreamInfoRequestPB_default_instance_; |
85 | | class GetCDCDBStreamInfoResponsePB_TableInfoDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCDBStreamInfoResponsePB_TableInfo> |
88 | | _instance; |
89 | | } _GetCDCDBStreamInfoResponsePB_TableInfo_default_instance_; |
90 | | class GetCDCDBStreamInfoResponsePBDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<GetCDCDBStreamInfoResponsePB> |
93 | | _instance; |
94 | | } _GetCDCDBStreamInfoResponsePB_default_instance_; |
95 | | class UpdateCDCStreamRequestPBDefaultTypeInternal { |
96 | | public: |
97 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateCDCStreamRequestPB> |
98 | | _instance; |
99 | | } _UpdateCDCStreamRequestPB_default_instance_; |
100 | | class UpdateCDCStreamResponsePBDefaultTypeInternal { |
101 | | public: |
102 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateCDCStreamResponsePB> |
103 | | _instance; |
104 | | } _UpdateCDCStreamResponsePB_default_instance_; |
105 | | class SetupUniverseReplicationRequestPBDefaultTypeInternal { |
106 | | public: |
107 | | ::google::protobuf::internal::ExplicitlyConstructed<SetupUniverseReplicationRequestPB> |
108 | | _instance; |
109 | | } _SetupUniverseReplicationRequestPB_default_instance_; |
110 | | class SetupUniverseReplicationResponsePBDefaultTypeInternal { |
111 | | public: |
112 | | ::google::protobuf::internal::ExplicitlyConstructed<SetupUniverseReplicationResponsePB> |
113 | | _instance; |
114 | | } _SetupUniverseReplicationResponsePB_default_instance_; |
115 | | class DeleteUniverseReplicationRequestPBDefaultTypeInternal { |
116 | | public: |
117 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteUniverseReplicationRequestPB> |
118 | | _instance; |
119 | | } _DeleteUniverseReplicationRequestPB_default_instance_; |
120 | | class DeleteUniverseReplicationResponsePBDefaultTypeInternal { |
121 | | public: |
122 | | ::google::protobuf::internal::ExplicitlyConstructed<DeleteUniverseReplicationResponsePB> |
123 | | _instance; |
124 | | } _DeleteUniverseReplicationResponsePB_default_instance_; |
125 | | class AlterUniverseReplicationRequestPBDefaultTypeInternal { |
126 | | public: |
127 | | ::google::protobuf::internal::ExplicitlyConstructed<AlterUniverseReplicationRequestPB> |
128 | | _instance; |
129 | | } _AlterUniverseReplicationRequestPB_default_instance_; |
130 | | class AlterUniverseReplicationResponsePBDefaultTypeInternal { |
131 | | public: |
132 | | ::google::protobuf::internal::ExplicitlyConstructed<AlterUniverseReplicationResponsePB> |
133 | | _instance; |
134 | | } _AlterUniverseReplicationResponsePB_default_instance_; |
135 | | class SetUniverseReplicationEnabledRequestPBDefaultTypeInternal { |
136 | | public: |
137 | | ::google::protobuf::internal::ExplicitlyConstructed<SetUniverseReplicationEnabledRequestPB> |
138 | | _instance; |
139 | | } _SetUniverseReplicationEnabledRequestPB_default_instance_; |
140 | | class SetUniverseReplicationEnabledResponsePBDefaultTypeInternal { |
141 | | public: |
142 | | ::google::protobuf::internal::ExplicitlyConstructed<SetUniverseReplicationEnabledResponsePB> |
143 | | _instance; |
144 | | } _SetUniverseReplicationEnabledResponsePB_default_instance_; |
145 | | class GetUniverseReplicationRequestPBDefaultTypeInternal { |
146 | | public: |
147 | | ::google::protobuf::internal::ExplicitlyConstructed<GetUniverseReplicationRequestPB> |
148 | | _instance; |
149 | | } _GetUniverseReplicationRequestPB_default_instance_; |
150 | | class GetUniverseReplicationResponsePBDefaultTypeInternal { |
151 | | public: |
152 | | ::google::protobuf::internal::ExplicitlyConstructed<GetUniverseReplicationResponsePB> |
153 | | _instance; |
154 | | } _GetUniverseReplicationResponsePB_default_instance_; |
155 | | class IsSetupUniverseReplicationDoneRequestPBDefaultTypeInternal { |
156 | | public: |
157 | | ::google::protobuf::internal::ExplicitlyConstructed<IsSetupUniverseReplicationDoneRequestPB> |
158 | | _instance; |
159 | | } _IsSetupUniverseReplicationDoneRequestPB_default_instance_; |
160 | | class IsSetupUniverseReplicationDoneResponsePBDefaultTypeInternal { |
161 | | public: |
162 | | ::google::protobuf::internal::ExplicitlyConstructed<IsSetupUniverseReplicationDoneResponsePB> |
163 | | _instance; |
164 | | } _IsSetupUniverseReplicationDoneResponsePB_default_instance_; |
165 | | class ProducerSplitTabletInfoPBDefaultTypeInternal { |
166 | | public: |
167 | | ::google::protobuf::internal::ExplicitlyConstructed<ProducerSplitTabletInfoPB> |
168 | | _instance; |
169 | | } _ProducerSplitTabletInfoPB_default_instance_; |
170 | | class UpdateConsumerOnProducerSplitRequestPBDefaultTypeInternal { |
171 | | public: |
172 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateConsumerOnProducerSplitRequestPB> |
173 | | _instance; |
174 | | } _UpdateConsumerOnProducerSplitRequestPB_default_instance_; |
175 | | class UpdateConsumerOnProducerSplitResponsePBDefaultTypeInternal { |
176 | | public: |
177 | | ::google::protobuf::internal::ExplicitlyConstructed<UpdateConsumerOnProducerSplitResponsePB> |
178 | | _instance; |
179 | | } _UpdateConsumerOnProducerSplitResponsePB_default_instance_; |
180 | | } // namespace master |
181 | | } // namespace yb |
182 | | namespace protobuf_yb_2fmaster_2fmaster_5freplication_2eproto { |
183 | 26.8k | void InitDefaultsCDCStreamInfoPBImpl() { |
184 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
185 | | |
186 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
187 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
188 | | #else |
189 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
190 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
191 | 26.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsCDCStreamOptionsPB(); |
192 | 26.8k | { |
193 | 26.8k | void* ptr = &::yb::master::_CDCStreamInfoPB_default_instance_; |
194 | 26.8k | new (ptr) ::yb::master::CDCStreamInfoPB(); |
195 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
196 | 26.8k | } |
197 | 26.8k | ::yb::master::CDCStreamInfoPB::InitAsDefaultInstance(); |
198 | 26.8k | } |
199 | | |
200 | 80.5k | void InitDefaultsCDCStreamInfoPB() { |
201 | 80.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
202 | 80.5k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCStreamInfoPBImpl); |
203 | 80.5k | } |
204 | | |
205 | 26.8k | void InitDefaultsValidateReplicationInfoRequestPBImpl() { |
206 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
207 | | |
208 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
209 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
210 | | #else |
211 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
212 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
213 | 26.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsReplicationInfoPB(); |
214 | 26.8k | { |
215 | 26.8k | void* ptr = &::yb::master::_ValidateReplicationInfoRequestPB_default_instance_; |
216 | 26.8k | new (ptr) ::yb::master::ValidateReplicationInfoRequestPB(); |
217 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
218 | 26.8k | } |
219 | 26.8k | ::yb::master::ValidateReplicationInfoRequestPB::InitAsDefaultInstance(); |
220 | 26.8k | } |
221 | | |
222 | 83.7k | void InitDefaultsValidateReplicationInfoRequestPB() { |
223 | 83.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
224 | 83.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsValidateReplicationInfoRequestPBImpl); |
225 | 83.7k | } |
226 | | |
227 | 26.8k | void InitDefaultsValidateReplicationInfoResponsePBImpl() { |
228 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
229 | | |
230 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
231 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
232 | | #else |
233 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
234 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
235 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
236 | 26.8k | { |
237 | 26.8k | void* ptr = &::yb::master::_ValidateReplicationInfoResponsePB_default_instance_; |
238 | 26.8k | new (ptr) ::yb::master::ValidateReplicationInfoResponsePB(); |
239 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
240 | 26.8k | } |
241 | 26.8k | ::yb::master::ValidateReplicationInfoResponsePB::InitAsDefaultInstance(); |
242 | 26.8k | } |
243 | | |
244 | 83.7k | void InitDefaultsValidateReplicationInfoResponsePB() { |
245 | 83.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
246 | 83.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsValidateReplicationInfoResponsePBImpl); |
247 | 83.7k | } |
248 | | |
249 | 26.8k | void InitDefaultsCreateCDCStreamRequestPBImpl() { |
250 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
251 | | |
252 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
253 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
254 | | #else |
255 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
256 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
257 | 26.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsCDCStreamOptionsPB(); |
258 | 26.8k | { |
259 | 26.8k | void* ptr = &::yb::master::_CreateCDCStreamRequestPB_default_instance_; |
260 | 26.8k | new (ptr) ::yb::master::CreateCDCStreamRequestPB(); |
261 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
262 | 26.8k | } |
263 | 26.8k | ::yb::master::CreateCDCStreamRequestPB::InitAsDefaultInstance(); |
264 | 26.8k | } |
265 | | |
266 | 37.8k | void InitDefaultsCreateCDCStreamRequestPB() { |
267 | 37.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
268 | 37.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamRequestPBImpl); |
269 | 37.8k | } |
270 | | |
271 | 26.8k | void InitDefaultsCreateCDCStreamResponsePBImpl() { |
272 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
273 | | |
274 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
275 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
276 | | #else |
277 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
278 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
279 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
280 | 26.8k | { |
281 | 26.8k | void* ptr = &::yb::master::_CreateCDCStreamResponsePB_default_instance_; |
282 | 26.8k | new (ptr) ::yb::master::CreateCDCStreamResponsePB(); |
283 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
284 | 26.8k | } |
285 | 26.8k | ::yb::master::CreateCDCStreamResponsePB::InitAsDefaultInstance(); |
286 | 26.8k | } |
287 | | |
288 | 37.8k | void InitDefaultsCreateCDCStreamResponsePB() { |
289 | 37.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
290 | 37.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateCDCStreamResponsePBImpl); |
291 | 37.8k | } |
292 | | |
293 | 26.8k | void InitDefaultsDeleteCDCStreamRequestPBImpl() { |
294 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
295 | | |
296 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
297 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
298 | | #else |
299 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
300 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
301 | 26.8k | { |
302 | 26.8k | void* ptr = &::yb::master::_DeleteCDCStreamRequestPB_default_instance_; |
303 | 26.8k | new (ptr) ::yb::master::DeleteCDCStreamRequestPB(); |
304 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
305 | 26.8k | } |
306 | 26.8k | ::yb::master::DeleteCDCStreamRequestPB::InitAsDefaultInstance(); |
307 | 26.8k | } |
308 | | |
309 | 26.8k | void InitDefaultsDeleteCDCStreamRequestPB() { |
310 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
311 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamRequestPBImpl); |
312 | 26.8k | } |
313 | | |
314 | 26.8k | void InitDefaultsDeleteCDCStreamResponsePBImpl() { |
315 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
316 | | |
317 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
318 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
319 | | #else |
320 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
321 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
322 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
323 | 26.8k | { |
324 | 26.8k | void* ptr = &::yb::master::_DeleteCDCStreamResponsePB_default_instance_; |
325 | 26.8k | new (ptr) ::yb::master::DeleteCDCStreamResponsePB(); |
326 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
327 | 26.8k | } |
328 | 26.8k | ::yb::master::DeleteCDCStreamResponsePB::InitAsDefaultInstance(); |
329 | 26.8k | } |
330 | | |
331 | 26.8k | void InitDefaultsDeleteCDCStreamResponsePB() { |
332 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
333 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteCDCStreamResponsePBImpl); |
334 | 26.8k | } |
335 | | |
336 | 26.8k | void InitDefaultsListCDCStreamsRequestPBImpl() { |
337 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
338 | | |
339 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
340 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
341 | | #else |
342 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
343 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
344 | 26.8k | { |
345 | 26.8k | void* ptr = &::yb::master::_ListCDCStreamsRequestPB_default_instance_; |
346 | 26.8k | new (ptr) ::yb::master::ListCDCStreamsRequestPB(); |
347 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
348 | 26.8k | } |
349 | 26.8k | ::yb::master::ListCDCStreamsRequestPB::InitAsDefaultInstance(); |
350 | 26.8k | } |
351 | | |
352 | 26.8k | void InitDefaultsListCDCStreamsRequestPB() { |
353 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
354 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListCDCStreamsRequestPBImpl); |
355 | 26.8k | } |
356 | | |
357 | 26.8k | void InitDefaultsListCDCStreamsResponsePBImpl() { |
358 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
359 | | |
360 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
361 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
362 | | #else |
363 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
364 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
365 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
366 | 26.8k | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCDCStreamInfoPB(); |
367 | 26.8k | { |
368 | 26.8k | void* ptr = &::yb::master::_ListCDCStreamsResponsePB_default_instance_; |
369 | 26.8k | new (ptr) ::yb::master::ListCDCStreamsResponsePB(); |
370 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
371 | 26.8k | } |
372 | 26.8k | ::yb::master::ListCDCStreamsResponsePB::InitAsDefaultInstance(); |
373 | 26.8k | } |
374 | | |
375 | 26.8k | void InitDefaultsListCDCStreamsResponsePB() { |
376 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
377 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListCDCStreamsResponsePBImpl); |
378 | 26.8k | } |
379 | | |
380 | 26.8k | void InitDefaultsGetCDCStreamRequestPBImpl() { |
381 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
382 | | |
383 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
384 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
385 | | #else |
386 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
387 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
388 | 26.8k | { |
389 | 26.8k | void* ptr = &::yb::master::_GetCDCStreamRequestPB_default_instance_; |
390 | 26.8k | new (ptr) ::yb::master::GetCDCStreamRequestPB(); |
391 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
392 | 26.8k | } |
393 | 26.8k | ::yb::master::GetCDCStreamRequestPB::InitAsDefaultInstance(); |
394 | 26.8k | } |
395 | | |
396 | 26.8k | void InitDefaultsGetCDCStreamRequestPB() { |
397 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
398 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCStreamRequestPBImpl); |
399 | 26.8k | } |
400 | | |
401 | 26.8k | void InitDefaultsGetCDCStreamResponsePBImpl() { |
402 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
403 | | |
404 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
405 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
406 | | #else |
407 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
408 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
409 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
410 | 26.8k | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCDCStreamInfoPB(); |
411 | 26.8k | { |
412 | 26.8k | void* ptr = &::yb::master::_GetCDCStreamResponsePB_default_instance_; |
413 | 26.8k | new (ptr) ::yb::master::GetCDCStreamResponsePB(); |
414 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
415 | 26.8k | } |
416 | 26.8k | ::yb::master::GetCDCStreamResponsePB::InitAsDefaultInstance(); |
417 | 26.8k | } |
418 | | |
419 | 26.8k | void InitDefaultsGetCDCStreamResponsePB() { |
420 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
421 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCStreamResponsePBImpl); |
422 | 26.8k | } |
423 | | |
424 | 26.8k | void InitDefaultsGetCDCDBStreamInfoRequestPBImpl() { |
425 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
426 | | |
427 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
428 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
429 | | #else |
430 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
431 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
432 | 26.8k | { |
433 | 26.8k | void* ptr = &::yb::master::_GetCDCDBStreamInfoRequestPB_default_instance_; |
434 | 26.8k | new (ptr) ::yb::master::GetCDCDBStreamInfoRequestPB(); |
435 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
436 | 26.8k | } |
437 | 26.8k | ::yb::master::GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance(); |
438 | 26.8k | } |
439 | | |
440 | 26.8k | void InitDefaultsGetCDCDBStreamInfoRequestPB() { |
441 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
442 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoRequestPBImpl); |
443 | 26.8k | } |
444 | | |
445 | 26.8k | void InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfoImpl() { |
446 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
447 | | |
448 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
449 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
450 | | #else |
451 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
452 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
453 | 26.8k | { |
454 | 26.8k | void* ptr = &::yb::master::_GetCDCDBStreamInfoResponsePB_TableInfo_default_instance_; |
455 | 26.8k | new (ptr) ::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo(); |
456 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
457 | 26.8k | } |
458 | 26.8k | ::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo::InitAsDefaultInstance(); |
459 | 26.8k | } |
460 | | |
461 | 53.7k | void InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfo() { |
462 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
463 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfoImpl); |
464 | 53.7k | } |
465 | | |
466 | 26.8k | void InitDefaultsGetCDCDBStreamInfoResponsePBImpl() { |
467 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
468 | | |
469 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
470 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
471 | | #else |
472 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
473 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
474 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
475 | 26.8k | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfo(); |
476 | 26.8k | { |
477 | 26.8k | void* ptr = &::yb::master::_GetCDCDBStreamInfoResponsePB_default_instance_; |
478 | 26.8k | new (ptr) ::yb::master::GetCDCDBStreamInfoResponsePB(); |
479 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
480 | 26.8k | } |
481 | 26.8k | ::yb::master::GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance(); |
482 | 26.8k | } |
483 | | |
484 | 26.8k | void InitDefaultsGetCDCDBStreamInfoResponsePB() { |
485 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
486 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetCDCDBStreamInfoResponsePBImpl); |
487 | 26.8k | } |
488 | | |
489 | 26.8k | void InitDefaultsUpdateCDCStreamRequestPBImpl() { |
490 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
491 | | |
492 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
493 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
494 | | #else |
495 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
496 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
497 | 26.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysCDCStreamEntryPB(); |
498 | 26.8k | { |
499 | 26.8k | void* ptr = &::yb::master::_UpdateCDCStreamRequestPB_default_instance_; |
500 | 26.8k | new (ptr) ::yb::master::UpdateCDCStreamRequestPB(); |
501 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
502 | 26.8k | } |
503 | 26.8k | ::yb::master::UpdateCDCStreamRequestPB::InitAsDefaultInstance(); |
504 | 26.8k | } |
505 | | |
506 | 26.8k | void InitDefaultsUpdateCDCStreamRequestPB() { |
507 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
508 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCDCStreamRequestPBImpl); |
509 | 26.8k | } |
510 | | |
511 | 26.8k | void InitDefaultsUpdateCDCStreamResponsePBImpl() { |
512 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
513 | | |
514 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
515 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
516 | | #else |
517 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
518 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
519 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
520 | 26.8k | { |
521 | 26.8k | void* ptr = &::yb::master::_UpdateCDCStreamResponsePB_default_instance_; |
522 | 26.8k | new (ptr) ::yb::master::UpdateCDCStreamResponsePB(); |
523 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
524 | 26.8k | } |
525 | 26.8k | ::yb::master::UpdateCDCStreamResponsePB::InitAsDefaultInstance(); |
526 | 26.8k | } |
527 | | |
528 | 26.8k | void InitDefaultsUpdateCDCStreamResponsePB() { |
529 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
530 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateCDCStreamResponsePBImpl); |
531 | 26.8k | } |
532 | | |
533 | 26.8k | void InitDefaultsSetupUniverseReplicationRequestPBImpl() { |
534 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
535 | | |
536 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
537 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
538 | | #else |
539 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
540 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
541 | 26.8k | protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB(); |
542 | 26.8k | { |
543 | 26.8k | void* ptr = &::yb::master::_SetupUniverseReplicationRequestPB_default_instance_; |
544 | 26.8k | new (ptr) ::yb::master::SetupUniverseReplicationRequestPB(); |
545 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
546 | 26.8k | } |
547 | 26.8k | ::yb::master::SetupUniverseReplicationRequestPB::InitAsDefaultInstance(); |
548 | 26.8k | } |
549 | | |
550 | 26.8k | void InitDefaultsSetupUniverseReplicationRequestPB() { |
551 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
552 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetupUniverseReplicationRequestPBImpl); |
553 | 26.8k | } |
554 | | |
555 | 26.8k | void InitDefaultsSetupUniverseReplicationResponsePBImpl() { |
556 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
557 | | |
558 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
559 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
560 | | #else |
561 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
562 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
563 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
564 | 26.8k | { |
565 | 26.8k | void* ptr = &::yb::master::_SetupUniverseReplicationResponsePB_default_instance_; |
566 | 26.8k | new (ptr) ::yb::master::SetupUniverseReplicationResponsePB(); |
567 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
568 | 26.8k | } |
569 | 26.8k | ::yb::master::SetupUniverseReplicationResponsePB::InitAsDefaultInstance(); |
570 | 26.8k | } |
571 | | |
572 | 26.8k | void InitDefaultsSetupUniverseReplicationResponsePB() { |
573 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
574 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetupUniverseReplicationResponsePBImpl); |
575 | 26.8k | } |
576 | | |
577 | 26.8k | void InitDefaultsDeleteUniverseReplicationRequestPBImpl() { |
578 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
579 | | |
580 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
581 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
582 | | #else |
583 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
584 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
585 | 26.8k | { |
586 | 26.8k | void* ptr = &::yb::master::_DeleteUniverseReplicationRequestPB_default_instance_; |
587 | 26.8k | new (ptr) ::yb::master::DeleteUniverseReplicationRequestPB(); |
588 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
589 | 26.8k | } |
590 | 26.8k | ::yb::master::DeleteUniverseReplicationRequestPB::InitAsDefaultInstance(); |
591 | 26.8k | } |
592 | | |
593 | 26.8k | void InitDefaultsDeleteUniverseReplicationRequestPB() { |
594 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
595 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteUniverseReplicationRequestPBImpl); |
596 | 26.8k | } |
597 | | |
598 | 26.8k | void InitDefaultsDeleteUniverseReplicationResponsePBImpl() { |
599 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
600 | | |
601 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
602 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
603 | | #else |
604 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
605 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
606 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
607 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
608 | 26.8k | { |
609 | 26.8k | void* ptr = &::yb::master::_DeleteUniverseReplicationResponsePB_default_instance_; |
610 | 26.8k | new (ptr) ::yb::master::DeleteUniverseReplicationResponsePB(); |
611 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
612 | 26.8k | } |
613 | 26.8k | ::yb::master::DeleteUniverseReplicationResponsePB::InitAsDefaultInstance(); |
614 | 26.8k | } |
615 | | |
616 | 26.8k | void InitDefaultsDeleteUniverseReplicationResponsePB() { |
617 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
618 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteUniverseReplicationResponsePBImpl); |
619 | 26.8k | } |
620 | | |
621 | 26.8k | void InitDefaultsAlterUniverseReplicationRequestPBImpl() { |
622 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
623 | | |
624 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
625 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
626 | | #else |
627 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
628 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
629 | 26.8k | protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB(); |
630 | 26.8k | { |
631 | 26.8k | void* ptr = &::yb::master::_AlterUniverseReplicationRequestPB_default_instance_; |
632 | 26.8k | new (ptr) ::yb::master::AlterUniverseReplicationRequestPB(); |
633 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
634 | 26.8k | } |
635 | 26.8k | ::yb::master::AlterUniverseReplicationRequestPB::InitAsDefaultInstance(); |
636 | 26.8k | } |
637 | | |
638 | 26.8k | void InitDefaultsAlterUniverseReplicationRequestPB() { |
639 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
640 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAlterUniverseReplicationRequestPBImpl); |
641 | 26.8k | } |
642 | | |
643 | 26.8k | void InitDefaultsAlterUniverseReplicationResponsePBImpl() { |
644 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
645 | | |
646 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
647 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
648 | | #else |
649 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
650 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
651 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
652 | 26.8k | { |
653 | 26.8k | void* ptr = &::yb::master::_AlterUniverseReplicationResponsePB_default_instance_; |
654 | 26.8k | new (ptr) ::yb::master::AlterUniverseReplicationResponsePB(); |
655 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
656 | 26.8k | } |
657 | 26.8k | ::yb::master::AlterUniverseReplicationResponsePB::InitAsDefaultInstance(); |
658 | 26.8k | } |
659 | | |
660 | 26.8k | void InitDefaultsAlterUniverseReplicationResponsePB() { |
661 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
662 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAlterUniverseReplicationResponsePBImpl); |
663 | 26.8k | } |
664 | | |
665 | 26.8k | void InitDefaultsSetUniverseReplicationEnabledRequestPBImpl() { |
666 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
667 | | |
668 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
669 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
670 | | #else |
671 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
672 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
673 | 26.8k | { |
674 | 26.8k | void* ptr = &::yb::master::_SetUniverseReplicationEnabledRequestPB_default_instance_; |
675 | 26.8k | new (ptr) ::yb::master::SetUniverseReplicationEnabledRequestPB(); |
676 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
677 | 26.8k | } |
678 | 26.8k | ::yb::master::SetUniverseReplicationEnabledRequestPB::InitAsDefaultInstance(); |
679 | 26.8k | } |
680 | | |
681 | 26.8k | void InitDefaultsSetUniverseReplicationEnabledRequestPB() { |
682 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
683 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetUniverseReplicationEnabledRequestPBImpl); |
684 | 26.8k | } |
685 | | |
686 | 26.8k | void InitDefaultsSetUniverseReplicationEnabledResponsePBImpl() { |
687 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
688 | | |
689 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
690 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
691 | | #else |
692 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
693 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
694 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
695 | 26.8k | { |
696 | 26.8k | void* ptr = &::yb::master::_SetUniverseReplicationEnabledResponsePB_default_instance_; |
697 | 26.8k | new (ptr) ::yb::master::SetUniverseReplicationEnabledResponsePB(); |
698 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
699 | 26.8k | } |
700 | 26.8k | ::yb::master::SetUniverseReplicationEnabledResponsePB::InitAsDefaultInstance(); |
701 | 26.8k | } |
702 | | |
703 | 26.8k | void InitDefaultsSetUniverseReplicationEnabledResponsePB() { |
704 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
705 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSetUniverseReplicationEnabledResponsePBImpl); |
706 | 26.8k | } |
707 | | |
708 | 26.8k | void InitDefaultsGetUniverseReplicationRequestPBImpl() { |
709 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
710 | | |
711 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
712 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
713 | | #else |
714 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
715 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
716 | 26.8k | { |
717 | 26.8k | void* ptr = &::yb::master::_GetUniverseReplicationRequestPB_default_instance_; |
718 | 26.8k | new (ptr) ::yb::master::GetUniverseReplicationRequestPB(); |
719 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
720 | 26.8k | } |
721 | 26.8k | ::yb::master::GetUniverseReplicationRequestPB::InitAsDefaultInstance(); |
722 | 26.8k | } |
723 | | |
724 | 26.8k | void InitDefaultsGetUniverseReplicationRequestPB() { |
725 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
726 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetUniverseReplicationRequestPBImpl); |
727 | 26.8k | } |
728 | | |
729 | 26.8k | void InitDefaultsGetUniverseReplicationResponsePBImpl() { |
730 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
731 | | |
732 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
733 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
734 | | #else |
735 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
736 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
737 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
738 | 26.8k | protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUniverseReplicationEntryPB(); |
739 | 26.8k | { |
740 | 26.8k | void* ptr = &::yb::master::_GetUniverseReplicationResponsePB_default_instance_; |
741 | 26.8k | new (ptr) ::yb::master::GetUniverseReplicationResponsePB(); |
742 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
743 | 26.8k | } |
744 | 26.8k | ::yb::master::GetUniverseReplicationResponsePB::InitAsDefaultInstance(); |
745 | 26.8k | } |
746 | | |
747 | 26.8k | void InitDefaultsGetUniverseReplicationResponsePB() { |
748 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
749 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetUniverseReplicationResponsePBImpl); |
750 | 26.8k | } |
751 | | |
752 | 26.8k | void InitDefaultsIsSetupUniverseReplicationDoneRequestPBImpl() { |
753 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
754 | | |
755 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
756 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
757 | | #else |
758 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
759 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
760 | 26.8k | { |
761 | 26.8k | void* ptr = &::yb::master::_IsSetupUniverseReplicationDoneRequestPB_default_instance_; |
762 | 26.8k | new (ptr) ::yb::master::IsSetupUniverseReplicationDoneRequestPB(); |
763 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
764 | 26.8k | } |
765 | 26.8k | ::yb::master::IsSetupUniverseReplicationDoneRequestPB::InitAsDefaultInstance(); |
766 | 26.8k | } |
767 | | |
768 | 26.8k | void InitDefaultsIsSetupUniverseReplicationDoneRequestPB() { |
769 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
770 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsSetupUniverseReplicationDoneRequestPBImpl); |
771 | 26.8k | } |
772 | | |
773 | 26.8k | void InitDefaultsIsSetupUniverseReplicationDoneResponsePBImpl() { |
774 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
775 | | |
776 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
777 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
778 | | #else |
779 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
780 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
781 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
782 | 26.8k | protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB(); |
783 | 26.8k | { |
784 | 26.8k | void* ptr = &::yb::master::_IsSetupUniverseReplicationDoneResponsePB_default_instance_; |
785 | 26.8k | new (ptr) ::yb::master::IsSetupUniverseReplicationDoneResponsePB(); |
786 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
787 | 26.8k | } |
788 | 26.8k | ::yb::master::IsSetupUniverseReplicationDoneResponsePB::InitAsDefaultInstance(); |
789 | 26.8k | } |
790 | | |
791 | 26.8k | void InitDefaultsIsSetupUniverseReplicationDoneResponsePB() { |
792 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
793 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIsSetupUniverseReplicationDoneResponsePBImpl); |
794 | 26.8k | } |
795 | | |
796 | 26.8k | void InitDefaultsProducerSplitTabletInfoPBImpl() { |
797 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
798 | | |
799 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
800 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
801 | | #else |
802 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
803 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
804 | 26.8k | { |
805 | 26.8k | void* ptr = &::yb::master::_ProducerSplitTabletInfoPB_default_instance_; |
806 | 26.8k | new (ptr) ::yb::master::ProducerSplitTabletInfoPB(); |
807 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
808 | 26.8k | } |
809 | 26.8k | ::yb::master::ProducerSplitTabletInfoPB::InitAsDefaultInstance(); |
810 | 26.8k | } |
811 | | |
812 | 53.7k | void InitDefaultsProducerSplitTabletInfoPB() { |
813 | 53.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
814 | 53.7k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProducerSplitTabletInfoPBImpl); |
815 | 53.7k | } |
816 | | |
817 | 26.8k | void InitDefaultsUpdateConsumerOnProducerSplitRequestPBImpl() { |
818 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
819 | | |
820 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
821 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
822 | | #else |
823 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
824 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
825 | 26.8k | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsProducerSplitTabletInfoPB(); |
826 | 26.8k | { |
827 | 26.8k | void* ptr = &::yb::master::_UpdateConsumerOnProducerSplitRequestPB_default_instance_; |
828 | 26.8k | new (ptr) ::yb::master::UpdateConsumerOnProducerSplitRequestPB(); |
829 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
830 | 26.8k | } |
831 | 26.8k | ::yb::master::UpdateConsumerOnProducerSplitRequestPB::InitAsDefaultInstance(); |
832 | 26.8k | } |
833 | | |
834 | 26.8k | void InitDefaultsUpdateConsumerOnProducerSplitRequestPB() { |
835 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
836 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateConsumerOnProducerSplitRequestPBImpl); |
837 | 26.8k | } |
838 | | |
839 | 26.8k | void InitDefaultsUpdateConsumerOnProducerSplitResponsePBImpl() { |
840 | 26.8k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
841 | | |
842 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
843 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
844 | | #else |
845 | 26.8k | ::google::protobuf::internal::InitProtobufDefaults(); |
846 | 26.8k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
847 | 26.8k | protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB(); |
848 | 26.8k | { |
849 | 26.8k | void* ptr = &::yb::master::_UpdateConsumerOnProducerSplitResponsePB_default_instance_; |
850 | 26.8k | new (ptr) ::yb::master::UpdateConsumerOnProducerSplitResponsePB(); |
851 | 26.8k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
852 | 26.8k | } |
853 | 26.8k | ::yb::master::UpdateConsumerOnProducerSplitResponsePB::InitAsDefaultInstance(); |
854 | 26.8k | } |
855 | | |
856 | 26.8k | void InitDefaultsUpdateConsumerOnProducerSplitResponsePB() { |
857 | 26.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
858 | 26.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateConsumerOnProducerSplitResponsePBImpl); |
859 | 26.8k | } |
860 | | |
861 | | ::google::protobuf::Metadata file_level_metadata[31]; |
862 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; |
863 | | |
864 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
865 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, _has_bits_), |
866 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, _internal_metadata_), |
867 | | ~0u, // no _extensions_ |
868 | | ~0u, // no _oneof_case_ |
869 | | ~0u, // no _weak_field_map_ |
870 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, stream_id_), |
871 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, table_id_), |
872 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, options_), |
873 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamInfoPB, namespace_id_), |
874 | | 0, |
875 | | ~0u, |
876 | | ~0u, |
877 | | 1, |
878 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoRequestPB, _has_bits_), |
879 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoRequestPB, _internal_metadata_), |
880 | | ~0u, // no _extensions_ |
881 | | ~0u, // no _oneof_case_ |
882 | | ~0u, // no _weak_field_map_ |
883 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoRequestPB, replication_info_), |
884 | | 0, |
885 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoResponsePB, _has_bits_), |
886 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoResponsePB, _internal_metadata_), |
887 | | ~0u, // no _extensions_ |
888 | | ~0u, // no _oneof_case_ |
889 | | ~0u, // no _weak_field_map_ |
890 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ValidateReplicationInfoResponsePB, error_), |
891 | | 0, |
892 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, _has_bits_), |
893 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, _internal_metadata_), |
894 | | ~0u, // no _extensions_ |
895 | | ~0u, // no _oneof_case_ |
896 | | ~0u, // no _weak_field_map_ |
897 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, table_id_), |
898 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, options_), |
899 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, initial_state_), |
900 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamRequestPB, db_stream_id_), |
901 | | 0, |
902 | | ~0u, |
903 | | 2, |
904 | | 1, |
905 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamResponsePB, _has_bits_), |
906 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamResponsePB, _internal_metadata_), |
907 | | ~0u, // no _extensions_ |
908 | | ~0u, // no _oneof_case_ |
909 | | ~0u, // no _weak_field_map_ |
910 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamResponsePB, error_), |
911 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateCDCStreamResponsePB, stream_id_), |
912 | | 1, |
913 | | 0, |
914 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamRequestPB, _has_bits_), |
915 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamRequestPB, _internal_metadata_), |
916 | | ~0u, // no _extensions_ |
917 | | ~0u, // no _oneof_case_ |
918 | | ~0u, // no _weak_field_map_ |
919 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamRequestPB, stream_id_), |
920 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamRequestPB, ignore_errors_), |
921 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamRequestPB, force_delete_), |
922 | | ~0u, |
923 | | 0, |
924 | | 1, |
925 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamResponsePB, _has_bits_), |
926 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamResponsePB, _internal_metadata_), |
927 | | ~0u, // no _extensions_ |
928 | | ~0u, // no _oneof_case_ |
929 | | ~0u, // no _weak_field_map_ |
930 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamResponsePB, error_), |
931 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteCDCStreamResponsePB, not_found_stream_ids_), |
932 | | 0, |
933 | | ~0u, |
934 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsRequestPB, _has_bits_), |
935 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsRequestPB, _internal_metadata_), |
936 | | ~0u, // no _extensions_ |
937 | | ~0u, // no _oneof_case_ |
938 | | ~0u, // no _weak_field_map_ |
939 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsRequestPB, table_id_), |
940 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsRequestPB, namespace_id_), |
941 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsRequestPB, id_type_), |
942 | | 0, |
943 | | 1, |
944 | | 2, |
945 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsResponsePB, _has_bits_), |
946 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsResponsePB, _internal_metadata_), |
947 | | ~0u, // no _extensions_ |
948 | | ~0u, // no _oneof_case_ |
949 | | ~0u, // no _weak_field_map_ |
950 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsResponsePB, error_), |
951 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ListCDCStreamsResponsePB, streams_), |
952 | | 0, |
953 | | ~0u, |
954 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamRequestPB, _has_bits_), |
955 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamRequestPB, _internal_metadata_), |
956 | | ~0u, // no _extensions_ |
957 | | ~0u, // no _oneof_case_ |
958 | | ~0u, // no _weak_field_map_ |
959 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamRequestPB, stream_id_), |
960 | | 0, |
961 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamResponsePB, _has_bits_), |
962 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamResponsePB, _internal_metadata_), |
963 | | ~0u, // no _extensions_ |
964 | | ~0u, // no _oneof_case_ |
965 | | ~0u, // no _weak_field_map_ |
966 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamResponsePB, error_), |
967 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCStreamResponsePB, stream_), |
968 | | 0, |
969 | | 1, |
970 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoRequestPB, _has_bits_), |
971 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoRequestPB, _internal_metadata_), |
972 | | ~0u, // no _extensions_ |
973 | | ~0u, // no _oneof_case_ |
974 | | ~0u, // no _weak_field_map_ |
975 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoRequestPB, db_stream_id_), |
976 | | 0, |
977 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo, _has_bits_), |
978 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo, _internal_metadata_), |
979 | | ~0u, // no _extensions_ |
980 | | ~0u, // no _oneof_case_ |
981 | | ~0u, // no _weak_field_map_ |
982 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo, stream_id_), |
983 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo, table_id_), |
984 | | 0, |
985 | | 1, |
986 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB, _has_bits_), |
987 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB, _internal_metadata_), |
988 | | ~0u, // no _extensions_ |
989 | | ~0u, // no _oneof_case_ |
990 | | ~0u, // no _weak_field_map_ |
991 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB, error_), |
992 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB, table_info_), |
993 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetCDCDBStreamInfoResponsePB, namespace_id_), |
994 | | 1, |
995 | | ~0u, |
996 | | 0, |
997 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamRequestPB, _has_bits_), |
998 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamRequestPB, _internal_metadata_), |
999 | | ~0u, // no _extensions_ |
1000 | | ~0u, // no _oneof_case_ |
1001 | | ~0u, // no _weak_field_map_ |
1002 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamRequestPB, stream_id_), |
1003 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamRequestPB, entry_), |
1004 | | 0, |
1005 | | 1, |
1006 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamResponsePB, _has_bits_), |
1007 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamResponsePB, _internal_metadata_), |
1008 | | ~0u, // no _extensions_ |
1009 | | ~0u, // no _oneof_case_ |
1010 | | ~0u, // no _weak_field_map_ |
1011 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateCDCStreamResponsePB, error_), |
1012 | | 0, |
1013 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, _has_bits_), |
1014 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, _internal_metadata_), |
1015 | | ~0u, // no _extensions_ |
1016 | | ~0u, // no _oneof_case_ |
1017 | | ~0u, // no _weak_field_map_ |
1018 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, producer_id_), |
1019 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, producer_master_addresses_), |
1020 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, producer_table_ids_), |
1021 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationRequestPB, producer_bootstrap_ids_), |
1022 | | 0, |
1023 | | ~0u, |
1024 | | ~0u, |
1025 | | ~0u, |
1026 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationResponsePB, _has_bits_), |
1027 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationResponsePB, _internal_metadata_), |
1028 | | ~0u, // no _extensions_ |
1029 | | ~0u, // no _oneof_case_ |
1030 | | ~0u, // no _weak_field_map_ |
1031 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetupUniverseReplicationResponsePB, error_), |
1032 | | 0, |
1033 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationRequestPB, _has_bits_), |
1034 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationRequestPB, _internal_metadata_), |
1035 | | ~0u, // no _extensions_ |
1036 | | ~0u, // no _oneof_case_ |
1037 | | ~0u, // no _weak_field_map_ |
1038 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationRequestPB, producer_id_), |
1039 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationRequestPB, ignore_errors_), |
1040 | | 0, |
1041 | | 1, |
1042 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationResponsePB, _has_bits_), |
1043 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationResponsePB, _internal_metadata_), |
1044 | | ~0u, // no _extensions_ |
1045 | | ~0u, // no _oneof_case_ |
1046 | | ~0u, // no _weak_field_map_ |
1047 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationResponsePB, error_), |
1048 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteUniverseReplicationResponsePB, warnings_), |
1049 | | 0, |
1050 | | ~0u, |
1051 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, _has_bits_), |
1052 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, _internal_metadata_), |
1053 | | ~0u, // no _extensions_ |
1054 | | ~0u, // no _oneof_case_ |
1055 | | ~0u, // no _weak_field_map_ |
1056 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, producer_id_), |
1057 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, producer_master_addresses_), |
1058 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, producer_table_ids_to_add_), |
1059 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, producer_table_ids_to_remove_), |
1060 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, new_producer_universe_id_), |
1061 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationRequestPB, producer_bootstrap_ids_to_add_), |
1062 | | 0, |
1063 | | ~0u, |
1064 | | ~0u, |
1065 | | ~0u, |
1066 | | 1, |
1067 | | ~0u, |
1068 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationResponsePB, _has_bits_), |
1069 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationResponsePB, _internal_metadata_), |
1070 | | ~0u, // no _extensions_ |
1071 | | ~0u, // no _oneof_case_ |
1072 | | ~0u, // no _weak_field_map_ |
1073 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterUniverseReplicationResponsePB, error_), |
1074 | | 0, |
1075 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledRequestPB, _has_bits_), |
1076 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledRequestPB, _internal_metadata_), |
1077 | | ~0u, // no _extensions_ |
1078 | | ~0u, // no _oneof_case_ |
1079 | | ~0u, // no _weak_field_map_ |
1080 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledRequestPB, producer_id_), |
1081 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledRequestPB, is_enabled_), |
1082 | | 0, |
1083 | | 1, |
1084 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledResponsePB, _has_bits_), |
1085 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledResponsePB, _internal_metadata_), |
1086 | | ~0u, // no _extensions_ |
1087 | | ~0u, // no _oneof_case_ |
1088 | | ~0u, // no _weak_field_map_ |
1089 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SetUniverseReplicationEnabledResponsePB, error_), |
1090 | | 0, |
1091 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationRequestPB, _has_bits_), |
1092 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationRequestPB, _internal_metadata_), |
1093 | | ~0u, // no _extensions_ |
1094 | | ~0u, // no _oneof_case_ |
1095 | | ~0u, // no _weak_field_map_ |
1096 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationRequestPB, producer_id_), |
1097 | | 0, |
1098 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationResponsePB, _has_bits_), |
1099 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationResponsePB, _internal_metadata_), |
1100 | | ~0u, // no _extensions_ |
1101 | | ~0u, // no _oneof_case_ |
1102 | | ~0u, // no _weak_field_map_ |
1103 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationResponsePB, error_), |
1104 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetUniverseReplicationResponsePB, entry_), |
1105 | | 0, |
1106 | | 1, |
1107 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneRequestPB, _has_bits_), |
1108 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneRequestPB, _internal_metadata_), |
1109 | | ~0u, // no _extensions_ |
1110 | | ~0u, // no _oneof_case_ |
1111 | | ~0u, // no _weak_field_map_ |
1112 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneRequestPB, producer_id_), |
1113 | | 0, |
1114 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneResponsePB, _has_bits_), |
1115 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneResponsePB, _internal_metadata_), |
1116 | | ~0u, // no _extensions_ |
1117 | | ~0u, // no _oneof_case_ |
1118 | | ~0u, // no _weak_field_map_ |
1119 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneResponsePB, error_), |
1120 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneResponsePB, done_), |
1121 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::IsSetupUniverseReplicationDoneResponsePB, replication_error_), |
1122 | | 0, |
1123 | | 2, |
1124 | | 1, |
1125 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, _has_bits_), |
1126 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, _internal_metadata_), |
1127 | | ~0u, // no _extensions_ |
1128 | | ~0u, // no _oneof_case_ |
1129 | | ~0u, // no _weak_field_map_ |
1130 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, tablet_id_), |
1131 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, new_tablet1_id_), |
1132 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, new_tablet2_id_), |
1133 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, split_partition_key_), |
1134 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ProducerSplitTabletInfoPB, split_encoded_key_), |
1135 | | 0, |
1136 | | 1, |
1137 | | 2, |
1138 | | 3, |
1139 | | 4, |
1140 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitRequestPB, _has_bits_), |
1141 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitRequestPB, _internal_metadata_), |
1142 | | ~0u, // no _extensions_ |
1143 | | ~0u, // no _oneof_case_ |
1144 | | ~0u, // no _weak_field_map_ |
1145 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitRequestPB, producer_id_), |
1146 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitRequestPB, stream_id_), |
1147 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitRequestPB, producer_split_tablet_info_), |
1148 | | 0, |
1149 | | 1, |
1150 | | 2, |
1151 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitResponsePB, _has_bits_), |
1152 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitResponsePB, _internal_metadata_), |
1153 | | ~0u, // no _extensions_ |
1154 | | ~0u, // no _oneof_case_ |
1155 | | ~0u, // no _weak_field_map_ |
1156 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::UpdateConsumerOnProducerSplitResponsePB, error_), |
1157 | | 0, |
1158 | | }; |
1159 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1160 | | { 0, 9, sizeof(::yb::master::CDCStreamInfoPB)}, |
1161 | | { 13, 19, sizeof(::yb::master::ValidateReplicationInfoRequestPB)}, |
1162 | | { 20, 26, sizeof(::yb::master::ValidateReplicationInfoResponsePB)}, |
1163 | | { 27, 36, sizeof(::yb::master::CreateCDCStreamRequestPB)}, |
1164 | | { 40, 47, sizeof(::yb::master::CreateCDCStreamResponsePB)}, |
1165 | | { 49, 57, sizeof(::yb::master::DeleteCDCStreamRequestPB)}, |
1166 | | { 60, 67, sizeof(::yb::master::DeleteCDCStreamResponsePB)}, |
1167 | | { 69, 77, sizeof(::yb::master::ListCDCStreamsRequestPB)}, |
1168 | | { 80, 87, sizeof(::yb::master::ListCDCStreamsResponsePB)}, |
1169 | | { 89, 95, sizeof(::yb::master::GetCDCStreamRequestPB)}, |
1170 | | { 96, 103, sizeof(::yb::master::GetCDCStreamResponsePB)}, |
1171 | | { 105, 111, sizeof(::yb::master::GetCDCDBStreamInfoRequestPB)}, |
1172 | | { 112, 119, sizeof(::yb::master::GetCDCDBStreamInfoResponsePB_TableInfo)}, |
1173 | | { 121, 129, sizeof(::yb::master::GetCDCDBStreamInfoResponsePB)}, |
1174 | | { 132, 139, sizeof(::yb::master::UpdateCDCStreamRequestPB)}, |
1175 | | { 141, 147, sizeof(::yb::master::UpdateCDCStreamResponsePB)}, |
1176 | | { 148, 157, sizeof(::yb::master::SetupUniverseReplicationRequestPB)}, |
1177 | | { 161, 167, sizeof(::yb::master::SetupUniverseReplicationResponsePB)}, |
1178 | | { 168, 175, sizeof(::yb::master::DeleteUniverseReplicationRequestPB)}, |
1179 | | { 177, 184, sizeof(::yb::master::DeleteUniverseReplicationResponsePB)}, |
1180 | | { 186, 197, sizeof(::yb::master::AlterUniverseReplicationRequestPB)}, |
1181 | | { 203, 209, sizeof(::yb::master::AlterUniverseReplicationResponsePB)}, |
1182 | | { 210, 217, sizeof(::yb::master::SetUniverseReplicationEnabledRequestPB)}, |
1183 | | { 219, 225, sizeof(::yb::master::SetUniverseReplicationEnabledResponsePB)}, |
1184 | | { 226, 232, sizeof(::yb::master::GetUniverseReplicationRequestPB)}, |
1185 | | { 233, 240, sizeof(::yb::master::GetUniverseReplicationResponsePB)}, |
1186 | | { 242, 248, sizeof(::yb::master::IsSetupUniverseReplicationDoneRequestPB)}, |
1187 | | { 249, 257, sizeof(::yb::master::IsSetupUniverseReplicationDoneResponsePB)}, |
1188 | | { 260, 270, sizeof(::yb::master::ProducerSplitTabletInfoPB)}, |
1189 | | { 275, 283, sizeof(::yb::master::UpdateConsumerOnProducerSplitRequestPB)}, |
1190 | | { 286, 292, sizeof(::yb::master::UpdateConsumerOnProducerSplitResponsePB)}, |
1191 | | }; |
1192 | | |
1193 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
1194 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CDCStreamInfoPB_default_instance_), |
1195 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ValidateReplicationInfoRequestPB_default_instance_), |
1196 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ValidateReplicationInfoResponsePB_default_instance_), |
1197 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateCDCStreamRequestPB_default_instance_), |
1198 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateCDCStreamResponsePB_default_instance_), |
1199 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteCDCStreamRequestPB_default_instance_), |
1200 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteCDCStreamResponsePB_default_instance_), |
1201 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ListCDCStreamsRequestPB_default_instance_), |
1202 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ListCDCStreamsResponsePB_default_instance_), |
1203 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetCDCStreamRequestPB_default_instance_), |
1204 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetCDCStreamResponsePB_default_instance_), |
1205 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetCDCDBStreamInfoRequestPB_default_instance_), |
1206 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetCDCDBStreamInfoResponsePB_TableInfo_default_instance_), |
1207 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetCDCDBStreamInfoResponsePB_default_instance_), |
1208 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_UpdateCDCStreamRequestPB_default_instance_), |
1209 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_UpdateCDCStreamResponsePB_default_instance_), |
1210 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SetupUniverseReplicationRequestPB_default_instance_), |
1211 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SetupUniverseReplicationResponsePB_default_instance_), |
1212 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteUniverseReplicationRequestPB_default_instance_), |
1213 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteUniverseReplicationResponsePB_default_instance_), |
1214 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_AlterUniverseReplicationRequestPB_default_instance_), |
1215 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_AlterUniverseReplicationResponsePB_default_instance_), |
1216 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SetUniverseReplicationEnabledRequestPB_default_instance_), |
1217 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SetUniverseReplicationEnabledResponsePB_default_instance_), |
1218 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetUniverseReplicationRequestPB_default_instance_), |
1219 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetUniverseReplicationResponsePB_default_instance_), |
1220 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsSetupUniverseReplicationDoneRequestPB_default_instance_), |
1221 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_IsSetupUniverseReplicationDoneResponsePB_default_instance_), |
1222 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ProducerSplitTabletInfoPB_default_instance_), |
1223 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_UpdateConsumerOnProducerSplitRequestPB_default_instance_), |
1224 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_UpdateConsumerOnProducerSplitResponsePB_default_instance_), |
1225 | | }; |
1226 | | |
1227 | 106 | void protobuf_AssignDescriptors() { |
1228 | 106 | AddDescriptors(); |
1229 | 106 | ::google::protobuf::MessageFactory* factory = NULL; |
1230 | 106 | AssignDescriptors( |
1231 | 106 | "yb/master/master_replication.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
1232 | 106 | file_level_metadata, file_level_enum_descriptors, NULL); |
1233 | 106 | } |
1234 | | |
1235 | 16.5k | void protobuf_AssignDescriptorsOnce() { |
1236 | 16.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1237 | 16.5k | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
1238 | 16.5k | } |
1239 | | |
1240 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
1241 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
1242 | 0 | protobuf_AssignDescriptorsOnce(); |
1243 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 31); |
1244 | 0 | } |
1245 | | |
1246 | 26.8k | void AddDescriptorsImpl() { |
1247 | 26.8k | InitDefaults(); |
1248 | 26.8k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1249 | 26.8k | "\n\"yb/master/master_replication.proto\022\tyb" |
1250 | 26.8k | ".master\032\032yb/common/common_net.proto\032\035yb/" |
1251 | 26.8k | "common/wire_protocol.proto\032#yb/master/ca" |
1252 | 26.8k | "talog_entity_info.proto\032\034yb/master/maste" |
1253 | 26.8k | "r_types.proto\032\024yb/rpc/service.proto\"|\n\017C" |
1254 | 26.8k | "DCStreamInfoPB\022\021\n\tstream_id\030\001 \001(\014\022\020\n\010tab" |
1255 | 26.8k | "le_id\030\002 \003(\014\022.\n\007options\030\003 \003(\0132\035.yb.master" |
1256 | 26.8k | ".CDCStreamOptionsPB\022\024\n\014namespace_id\030\004 \001(" |
1257 | 26.8k | "\014\"Z\n ValidateReplicationInfoRequestPB\0226\n" |
1258 | 26.8k | "\020replication_info\030\001 \001(\0132\034.yb.master.Repl" |
1259 | 26.8k | "icationInfoPB\"L\n!ValidateReplicationInfo" |
1260 | 26.8k | "ResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.Ma" |
1261 | 26.8k | "sterErrorPB\"\257\001\n\030CreateCDCStreamRequestPB" |
1262 | 26.8k | "\022\020\n\010table_id\030\001 \001(\t\022.\n\007options\030\003 \003(\0132\035.yb" |
1263 | 26.8k | ".master.CDCStreamOptionsPB\022;\n\rinitial_st" |
1264 | 26.8k | "ate\030\004 \001(\0162$.yb.master.SysCDCStreamEntryP" |
1265 | 26.8k | "B.State\022\024\n\014db_stream_id\030\005 \001(\t\"W\n\031CreateC" |
1266 | 26.8k | "DCStreamResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.m" |
1267 | 26.8k | "aster.MasterErrorPB\022\021\n\tstream_id\030\002 \001(\014\"h" |
1268 | 26.8k | "\n\030DeleteCDCStreamRequestPB\022\021\n\tstream_id\030" |
1269 | 26.8k | "\001 \003(\014\022\034\n\rignore_errors\030\002 \001(\010:\005false\022\033\n\014f" |
1270 | 26.8k | "orce_delete\030\003 \001(\010:\005false\"b\n\031DeleteCDCStr" |
1271 | 26.8k | "eamResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master" |
1272 | 26.8k | ".MasterErrorPB\022\034\n\024not_found_stream_ids\030\002" |
1273 | 26.8k | " \003(\014\"q\n\027ListCDCStreamsRequestPB\022\020\n\010table" |
1274 | 26.8k | "_id\030\001 \001(\t\022\024\n\014namespace_id\030\002 \001(\t\022.\n\007id_ty" |
1275 | 26.8k | "pe\030\003 \001(\0162\023.yb.master.IdTypePB:\010TABLE_ID\"" |
1276 | 26.8k | "p\n\030ListCDCStreamsResponsePB\022\'\n\005error\030\001 \001" |
1277 | 26.8k | "(\0132\030.yb.master.MasterErrorPB\022+\n\007streams\030" |
1278 | 26.8k | "\002 \003(\0132\032.yb.master.CDCStreamInfoPB\"*\n\025Get" |
1279 | 26.8k | "CDCStreamRequestPB\022\021\n\tstream_id\030\001 \001(\014\"m\n" |
1280 | 26.8k | "\026GetCDCStreamResponsePB\022\'\n\005error\030\001 \001(\0132\030" |
1281 | 26.8k | ".yb.master.MasterErrorPB\022*\n\006stream\030\002 \001(\013" |
1282 | 26.8k | "2\032.yb.master.CDCStreamInfoPB\"3\n\033GetCDCDB" |
1283 | 26.8k | "StreamInfoRequestPB\022\024\n\014db_stream_id\030\001 \001(" |
1284 | 26.8k | "\014\"\326\001\n\034GetCDCDBStreamInfoResponsePB\022\'\n\005er" |
1285 | 26.8k | "ror\030\001 \001(\0132\030.yb.master.MasterErrorPB\022E\n\nt" |
1286 | 26.8k | "able_info\030\002 \003(\01321.yb.master.GetCDCDBStre" |
1287 | 26.8k | "amInfoResponsePB.TableInfo\022\024\n\014namespace_" |
1288 | 26.8k | "id\030\003 \001(\014\0320\n\tTableInfo\022\021\n\tstream_id\030\001 \001(\014" |
1289 | 26.8k | "\022\020\n\010table_id\030\002 \001(\014\"\\\n\030UpdateCDCStreamReq" |
1290 | 26.8k | "uestPB\022\021\n\tstream_id\030\001 \001(\014\022-\n\005entry\030\002 \001(\013" |
1291 | 26.8k | "2\036.yb.master.SysCDCStreamEntryPB\"D\n\031Upda" |
1292 | 26.8k | "teCDCStreamResponsePB\022\'\n\005error\030\001 \001(\0132\030.y" |
1293 | 26.8k | "b.master.MasterErrorPB\"\247\001\n!SetupUniverse" |
1294 | 26.8k | "ReplicationRequestPB\022\023\n\013producer_id\030\001 \001(" |
1295 | 26.8k | "\t\0221\n\031producer_master_addresses\030\002 \003(\0132\016.y" |
1296 | 26.8k | "b.HostPortPB\022\032\n\022producer_table_ids\030\003 \003(\t" |
1297 | 26.8k | "\022\036\n\026producer_bootstrap_ids\030\004 \003(\t\"M\n\"Setu" |
1298 | 26.8k | "pUniverseReplicationResponsePB\022\'\n\005error\030" |
1299 | 26.8k | "\001 \001(\0132\030.yb.master.MasterErrorPB\"W\n\"Delet" |
1300 | 26.8k | "eUniverseReplicationRequestPB\022\023\n\013produce" |
1301 | 26.8k | "r_id\030\001 \001(\t\022\034\n\rignore_errors\030\002 \001(\010:\005false" |
1302 | 26.8k | "\"q\n#DeleteUniverseReplicationResponsePB\022" |
1303 | 26.8k | "\'\n\005error\030\001 \001(\0132\030.yb.master.MasterErrorPB" |
1304 | 26.8k | "\022!\n\010warnings\030\002 \003(\0132\017.yb.AppStatusPB\"\375\001\n!" |
1305 | 26.8k | "AlterUniverseReplicationRequestPB\022\023\n\013pro" |
1306 | 26.8k | "ducer_id\030\001 \001(\t\0221\n\031producer_master_addres" |
1307 | 26.8k | "ses\030\002 \003(\0132\016.yb.HostPortPB\022!\n\031producer_ta" |
1308 | 26.8k | "ble_ids_to_add\030\004 \003(\t\022$\n\034producer_table_i" |
1309 | 26.8k | "ds_to_remove\030\005 \003(\t\022 \n\030new_producer_unive" |
1310 | 26.8k | "rse_id\030\007 \001(\t\022%\n\035producer_bootstrap_ids_t" |
1311 | 26.8k | "o_add\030\006 \003(\t\"M\n\"AlterUniverseReplicationR" |
1312 | 26.8k | "esponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.Mas" |
1313 | 26.8k | "terErrorPB\"Q\n&SetUniverseReplicationEnab" |
1314 | 26.8k | "ledRequestPB\022\023\n\013producer_id\030\001 \001(\t\022\022\n\nis_" |
1315 | 26.8k | "enabled\030\002 \001(\010\"R\n\'SetUniverseReplicationE" |
1316 | 26.8k | "nabledResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.mas" |
1317 | 26.8k | "ter.MasterErrorPB\"6\n\037GetUniverseReplicat" |
1318 | 26.8k | "ionRequestPB\022\023\n\013producer_id\030\001 \001(\t\"\204\001\n Ge" |
1319 | 26.8k | "tUniverseReplicationResponsePB\022\'\n\005error\030" |
1320 | 26.8k | "\001 \001(\0132\030.yb.master.MasterErrorPB\0227\n\005entry" |
1321 | 26.8k | "\030\002 \001(\0132(.yb.master.SysUniverseReplicatio" |
1322 | 26.8k | "nEntryPB\">\n\'IsSetupUniverseReplicationDo" |
1323 | 26.8k | "neRequestPB\022\023\n\013producer_id\030\001 \001(\t\"\215\001\n(IsS" |
1324 | 26.8k | "etupUniverseReplicationDoneResponsePB\022\'\n" |
1325 | 26.8k | "\005error\030\001 \001(\0132\030.yb.master.MasterErrorPB\022\014" |
1326 | 26.8k | "\n\004done\030\002 \001(\010\022*\n\021replication_error\030\003 \001(\0132" |
1327 | 26.8k | "\017.yb.AppStatusPB\"\226\001\n\031ProducerSplitTablet" |
1328 | 26.8k | "InfoPB\022\021\n\ttablet_id\030\001 \002(\014\022\026\n\016new_tablet1" |
1329 | 26.8k | "_id\030\002 \002(\014\022\026\n\016new_tablet2_id\030\003 \002(\014\022\033\n\023spl" |
1330 | 26.8k | "it_partition_key\030\004 \002(\014\022\031\n\021split_encoded_" |
1331 | 26.8k | "key\030\005 \002(\014\"\232\001\n&UpdateConsumerOnProducerSp" |
1332 | 26.8k | "litRequestPB\022\023\n\013producer_id\030\001 \001(\t\022\021\n\tstr" |
1333 | 26.8k | "eam_id\030\002 \001(\t\022H\n\032producer_split_tablet_in" |
1334 | 26.8k | "fo\030\003 \001(\0132$.yb.master.ProducerSplitTablet" |
1335 | 26.8k | "InfoPB\"R\n\'UpdateConsumerOnProducerSplitR" |
1336 | 26.8k | "esponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.Mas" |
1337 | 26.8k | "terErrorPB**\n\010IdTypePB\022\014\n\010TABLE_ID\020\001\022\020\n\014" |
1338 | 26.8k | "NAMESPACE_ID\020\0022\326\014\n\021MasterReplication\022t\n\027" |
1339 | 26.8k | "ValidateReplicationInfo\022+.yb.master.Vali" |
1340 | 26.8k | "dateReplicationInfoRequestPB\032,.yb.master" |
1341 | 26.8k | ".ValidateReplicationInfoResponsePB\022\\\n\017Cr" |
1342 | 26.8k | "eateCDCStream\022#.yb.master.CreateCDCStrea" |
1343 | 26.8k | "mRequestPB\032$.yb.master.CreateCDCStreamRe" |
1344 | 26.8k | "sponsePB\022\\\n\017DeleteCDCStream\022#.yb.master." |
1345 | 26.8k | "DeleteCDCStreamRequestPB\032$.yb.master.Del" |
1346 | 26.8k | "eteCDCStreamResponsePB\022Y\n\016ListCDCStreams" |
1347 | 26.8k | "\022\".yb.master.ListCDCStreamsRequestPB\032#.y" |
1348 | 26.8k | "b.master.ListCDCStreamsResponsePB\022S\n\014Get" |
1349 | 26.8k | "CDCStream\022 .yb.master.GetCDCStreamReques" |
1350 | 26.8k | "tPB\032!.yb.master.GetCDCStreamResponsePB\022e" |
1351 | 26.8k | "\n\022GetCDCDBStreamInfo\022&.yb.master.GetCDCD" |
1352 | 26.8k | "BStreamInfoRequestPB\032\'.yb.master.GetCDCD" |
1353 | 26.8k | "BStreamInfoResponsePB\022\\\n\017UpdateCDCStream" |
1354 | 26.8k | "\022#.yb.master.UpdateCDCStreamRequestPB\032$." |
1355 | 26.8k | "yb.master.UpdateCDCStreamResponsePB\022w\n\030S" |
1356 | 26.8k | "etupUniverseReplication\022,.yb.master.Setu" |
1357 | 26.8k | "pUniverseReplicationRequestPB\032-.yb.maste" |
1358 | 26.8k | "r.SetupUniverseReplicationResponsePB\022z\n\031" |
1359 | 26.8k | "DeleteUniverseReplication\022-.yb.master.De" |
1360 | 26.8k | "leteUniverseReplicationRequestPB\032..yb.ma" |
1361 | 26.8k | "ster.DeleteUniverseReplicationResponsePB" |
1362 | 26.8k | "\022w\n\030AlterUniverseReplication\022,.yb.master" |
1363 | 26.8k | ".AlterUniverseReplicationRequestPB\032-.yb." |
1364 | 26.8k | "master.AlterUniverseReplicationResponseP" |
1365 | 26.8k | "B\022\206\001\n\035SetUniverseReplicationEnabled\0221.yb" |
1366 | 26.8k | ".master.SetUniverseReplicationEnabledReq" |
1367 | 26.8k | "uestPB\0322.yb.master.SetUniverseReplicatio" |
1368 | 26.8k | "nEnabledResponsePB\022q\n\026GetUniverseReplica" |
1369 | 26.8k | "tion\022*.yb.master.GetUniverseReplicationR" |
1370 | 26.8k | "equestPB\032+.yb.master.GetUniverseReplicat" |
1371 | 26.8k | "ionResponsePB\022\211\001\n\036IsSetupUniverseReplica" |
1372 | 26.8k | "tionDone\0222.yb.master.IsSetupUniverseRepl" |
1373 | 26.8k | "icationDoneRequestPB\0323.yb.master.IsSetup" |
1374 | 26.8k | "UniverseReplicationDoneResponsePB\022\206\001\n\035Up" |
1375 | 26.8k | "dateConsumerOnProducerSplit\0221.yb.master." |
1376 | 26.8k | "UpdateConsumerOnProducerSplitRequestPB\0322" |
1377 | 26.8k | ".yb.master.UpdateConsumerOnProducerSplit" |
1378 | 26.8k | "ResponsePB\032\033\332\265\030\027yb.master.MasterServiceB" |
1379 | 26.8k | "\017\n\rorg.yb.master" |
1380 | 26.8k | }; |
1381 | 26.8k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
1382 | 26.8k | descriptor, 5216); |
1383 | 26.8k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
1384 | 26.8k | "yb/master/master_replication.proto", &protobuf_RegisterTypes); |
1385 | 26.8k | ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors(); |
1386 | 26.8k | ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors(); |
1387 | 26.8k | ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::AddDescriptors(); |
1388 | 26.8k | ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors(); |
1389 | 26.8k | ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors(); |
1390 | 26.8k | } |
1391 | | |
1392 | 26.9k | void AddDescriptors() { |
1393 | 26.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1394 | 26.9k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
1395 | 26.9k | } |
1396 | | // Force AddDescriptors() to be called at dynamic initialization time. |
1397 | | struct StaticDescriptorInitializer { |
1398 | 26.8k | StaticDescriptorInitializer() { |
1399 | 26.8k | AddDescriptors(); |
1400 | 26.8k | } |
1401 | | } static_descriptor_initializer; |
1402 | | } // namespace protobuf_yb_2fmaster_2fmaster_5freplication_2eproto |
1403 | | namespace yb { |
1404 | | namespace master { |
1405 | 0 | const ::google::protobuf::EnumDescriptor* IdTypePB_descriptor() { |
1406 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
1407 | 0 | return protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_enum_descriptors[0]; |
1408 | 0 | } |
1409 | 0 | bool IdTypePB_IsValid(int value) { |
1410 | 0 | switch (value) { |
1411 | 0 | case 1: |
1412 | 0 | case 2: |
1413 | 0 | return true; |
1414 | 0 | default: |
1415 | 0 | return false; |
1416 | 0 | } |
1417 | 0 | } |
1418 | | |
1419 | | |
1420 | | // =================================================================== |
1421 | | |
1422 | 26.8k | void CDCStreamInfoPB::InitAsDefaultInstance() { |
1423 | 26.8k | } |
1424 | 0 | void CDCStreamInfoPB::clear_options() { |
1425 | 0 | options_.Clear(); |
1426 | 0 | } |
1427 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1428 | | const int CDCStreamInfoPB::kStreamIdFieldNumber; |
1429 | | const int CDCStreamInfoPB::kTableIdFieldNumber; |
1430 | | const int CDCStreamInfoPB::kOptionsFieldNumber; |
1431 | | const int CDCStreamInfoPB::kNamespaceIdFieldNumber; |
1432 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1433 | | |
1434 | | CDCStreamInfoPB::CDCStreamInfoPB() |
1435 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1436 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1437 | 9 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCDCStreamInfoPB(); |
1438 | 9 | } |
1439 | 26.8k | SharedCtor(); |
1440 | | // @@protoc_insertion_point(constructor:yb.master.CDCStreamInfoPB) |
1441 | 26.8k | } |
1442 | | CDCStreamInfoPB::CDCStreamInfoPB(const CDCStreamInfoPB& from) |
1443 | | : ::google::protobuf::Message(), |
1444 | | _internal_metadata_(NULL), |
1445 | | _has_bits_(from._has_bits_), |
1446 | | _cached_size_(0), |
1447 | | table_id_(from.table_id_), |
1448 | 0 | options_(from.options_) { |
1449 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1450 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1451 | 0 | if (from.has_stream_id()) { |
1452 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
1453 | 0 | } |
1454 | 0 | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1455 | 0 | if (from.has_namespace_id()) { |
1456 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
1457 | 0 | } |
1458 | | // @@protoc_insertion_point(copy_constructor:yb.master.CDCStreamInfoPB) |
1459 | 0 | } |
1460 | | |
1461 | 26.8k | void CDCStreamInfoPB::SharedCtor() { |
1462 | 26.8k | _cached_size_ = 0; |
1463 | 26.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1464 | 26.8k | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1465 | 26.8k | } |
1466 | | |
1467 | 9 | CDCStreamInfoPB::~CDCStreamInfoPB() { |
1468 | | // @@protoc_insertion_point(destructor:yb.master.CDCStreamInfoPB) |
1469 | 9 | SharedDtor(); |
1470 | 9 | } |
1471 | | |
1472 | 9 | void CDCStreamInfoPB::SharedDtor() { |
1473 | 9 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1474 | 9 | namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1475 | 9 | } |
1476 | | |
1477 | 0 | void CDCStreamInfoPB::SetCachedSize(int size) const { |
1478 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1479 | 0 | _cached_size_ = size; |
1480 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1481 | 0 | } |
1482 | 0 | const ::google::protobuf::Descriptor* CDCStreamInfoPB::descriptor() { |
1483 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
1484 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1485 | 0 | } |
1486 | | |
1487 | 0 | const CDCStreamInfoPB& CDCStreamInfoPB::default_instance() { |
1488 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCDCStreamInfoPB(); |
1489 | 0 | return *internal_default_instance(); |
1490 | 0 | } |
1491 | | |
1492 | 0 | CDCStreamInfoPB* CDCStreamInfoPB::New(::google::protobuf::Arena* arena) const { |
1493 | 0 | CDCStreamInfoPB* n = new CDCStreamInfoPB; |
1494 | 0 | if (arena != NULL) { |
1495 | 0 | arena->Own(n); |
1496 | 0 | } |
1497 | 0 | return n; |
1498 | 0 | } |
1499 | | |
1500 | 2 | void CDCStreamInfoPB::Clear() { |
1501 | | // @@protoc_insertion_point(message_clear_start:yb.master.CDCStreamInfoPB) |
1502 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
1503 | | // Prevent compiler warnings about cached_has_bits being unused |
1504 | 2 | (void) cached_has_bits; |
1505 | | |
1506 | 2 | table_id_.Clear(); |
1507 | 2 | options_.Clear(); |
1508 | 2 | cached_has_bits = _has_bits_[0]; |
1509 | 2 | if (cached_has_bits & 3u) { |
1510 | 2 | if (cached_has_bits & 0x00000001u) { |
1511 | 2 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1512 | 2 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
1513 | 2 | } |
1514 | 2 | if (cached_has_bits & 0x00000002u) { |
1515 | 0 | GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1516 | 0 | (*namespace_id_.UnsafeRawStringPointer())->clear(); |
1517 | 0 | } |
1518 | 2 | } |
1519 | 2 | _has_bits_.Clear(); |
1520 | 2 | _internal_metadata_.Clear(); |
1521 | 2 | } |
1522 | | |
1523 | | bool CDCStreamInfoPB::MergePartialFromCodedStream( |
1524 | 5 | ::google::protobuf::io::CodedInputStream* input) { |
1525 | 11 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1526 | 5 | ::google::protobuf::uint32 tag; |
1527 | | // @@protoc_insertion_point(parse_start:yb.master.CDCStreamInfoPB) |
1528 | 16 | for (;;) { |
1529 | 16 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1530 | 16 | tag = p.first; |
1531 | 16 | if (!p.second) goto handle_unusual5 ; |
1532 | 11 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1533 | | // optional bytes stream_id = 1; |
1534 | 5 | case 1: { |
1535 | 5 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1536 | 5 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1537 | 5 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1538 | 5 | input, this->mutable_stream_id())); |
1539 | 5 | } else { |
1540 | 0 | goto handle_unusual; |
1541 | 0 | } |
1542 | 5 | break; |
1543 | 5 | } |
1544 | | |
1545 | | // repeated bytes table_id = 2; |
1546 | 5 | case 2: { |
1547 | 5 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1548 | 5 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1549 | 5 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1550 | 5 | input, this->add_table_id())); |
1551 | 5 | } else { |
1552 | 0 | goto handle_unusual; |
1553 | 0 | } |
1554 | 5 | break; |
1555 | 5 | } |
1556 | | |
1557 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
1558 | 5 | case 3: { |
1559 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1560 | 1 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1561 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_options())); |
1562 | 1 | } else { |
1563 | 0 | goto handle_unusual; |
1564 | 0 | } |
1565 | 1 | break; |
1566 | 1 | } |
1567 | | |
1568 | | // optional bytes namespace_id = 4; |
1569 | 1 | case 4: { |
1570 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1571 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
1572 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1573 | 0 | input, this->mutable_namespace_id())); |
1574 | 0 | } else { |
1575 | 0 | goto handle_unusual; |
1576 | 0 | } |
1577 | 0 | break; |
1578 | 0 | } |
1579 | | |
1580 | 0 | default: { |
1581 | 5 | handle_unusual: |
1582 | 5 | if (tag == 0) { |
1583 | 5 | goto success; |
1584 | 5 | } |
1585 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1586 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1587 | 0 | break; |
1588 | 0 | } |
1589 | 11 | } |
1590 | 11 | } |
1591 | 5 | success: |
1592 | | // @@protoc_insertion_point(parse_success:yb.master.CDCStreamInfoPB) |
1593 | 5 | return true; |
1594 | 0 | failure: |
1595 | | // @@protoc_insertion_point(parse_failure:yb.master.CDCStreamInfoPB) |
1596 | 0 | return false; |
1597 | 5 | #undef DO_ |
1598 | 5 | } |
1599 | | |
1600 | | void CDCStreamInfoPB::SerializeWithCachedSizes( |
1601 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1602 | | // @@protoc_insertion_point(serialize_start:yb.master.CDCStreamInfoPB) |
1603 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1604 | 0 | (void) cached_has_bits; |
1605 | |
|
1606 | 0 | cached_has_bits = _has_bits_[0]; |
1607 | | // optional bytes stream_id = 1; |
1608 | 0 | if (cached_has_bits & 0x00000001u) { |
1609 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1610 | 0 | 1, this->stream_id(), output); |
1611 | 0 | } |
1612 | | |
1613 | | // repeated bytes table_id = 2; |
1614 | 0 | for (int i = 0, n = this->table_id_size(); i < n; i++) { |
1615 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
1616 | 0 | 2, this->table_id(i), output); |
1617 | 0 | } |
1618 | | |
1619 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
1620 | 0 | for (unsigned int i = 0, |
1621 | 0 | n = static_cast<unsigned int>(this->options_size()); i < n; i++) { |
1622 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1623 | 0 | 3, this->options(static_cast<int>(i)), output); |
1624 | 0 | } |
1625 | | |
1626 | | // optional bytes namespace_id = 4; |
1627 | 0 | if (cached_has_bits & 0x00000002u) { |
1628 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1629 | 0 | 4, this->namespace_id(), output); |
1630 | 0 | } |
1631 | |
|
1632 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1633 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1634 | 0 | _internal_metadata_.unknown_fields(), output); |
1635 | 0 | } |
1636 | | // @@protoc_insertion_point(serialize_end:yb.master.CDCStreamInfoPB) |
1637 | 0 | } |
1638 | | |
1639 | | ::google::protobuf::uint8* CDCStreamInfoPB::InternalSerializeWithCachedSizesToArray( |
1640 | 5 | bool deterministic, ::google::protobuf::uint8* target) const { |
1641 | 5 | (void)deterministic; // Unused |
1642 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CDCStreamInfoPB) |
1643 | 5 | ::google::protobuf::uint32 cached_has_bits = 0; |
1644 | 5 | (void) cached_has_bits; |
1645 | | |
1646 | 5 | cached_has_bits = _has_bits_[0]; |
1647 | | // optional bytes stream_id = 1; |
1648 | 5 | if (cached_has_bits & 0x00000001u) { |
1649 | 5 | target = |
1650 | 5 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1651 | 5 | 1, this->stream_id(), target); |
1652 | 5 | } |
1653 | | |
1654 | | // repeated bytes table_id = 2; |
1655 | 10 | for (int i = 0, n = this->table_id_size(); i < n; i++5 ) { |
1656 | 5 | target = ::google::protobuf::internal::WireFormatLite:: |
1657 | 5 | WriteBytesToArray(2, this->table_id(i), target); |
1658 | 5 | } |
1659 | | |
1660 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
1661 | 5 | for (unsigned int i = 0, |
1662 | 6 | n = static_cast<unsigned int>(this->options_size()); i < n; i++1 ) { |
1663 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
1664 | 1 | InternalWriteMessageToArray( |
1665 | 1 | 3, this->options(static_cast<int>(i)), deterministic, target); |
1666 | 1 | } |
1667 | | |
1668 | | // optional bytes namespace_id = 4; |
1669 | 5 | if (cached_has_bits & 0x00000002u) { |
1670 | 0 | target = |
1671 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1672 | 0 | 4, this->namespace_id(), target); |
1673 | 0 | } |
1674 | | |
1675 | 5 | if (_internal_metadata_.have_unknown_fields()) { |
1676 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1677 | 0 | _internal_metadata_.unknown_fields(), target); |
1678 | 0 | } |
1679 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CDCStreamInfoPB) |
1680 | 5 | return target; |
1681 | 5 | } |
1682 | | |
1683 | 10 | size_t CDCStreamInfoPB::ByteSizeLong() const { |
1684 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CDCStreamInfoPB) |
1685 | 10 | size_t total_size = 0; |
1686 | | |
1687 | 10 | if (_internal_metadata_.have_unknown_fields()) { |
1688 | 0 | total_size += |
1689 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1690 | 0 | _internal_metadata_.unknown_fields()); |
1691 | 0 | } |
1692 | | // repeated bytes table_id = 2; |
1693 | 10 | total_size += 1 * |
1694 | 10 | ::google::protobuf::internal::FromIntSize(this->table_id_size()); |
1695 | 20 | for (int i = 0, n = this->table_id_size(); i < n; i++10 ) { |
1696 | 10 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
1697 | 10 | this->table_id(i)); |
1698 | 10 | } |
1699 | | |
1700 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
1701 | 10 | { |
1702 | 10 | unsigned int count = static_cast<unsigned int>(this->options_size()); |
1703 | 10 | total_size += 1UL * count; |
1704 | 12 | for (unsigned int i = 0; i < count; i++2 ) { |
1705 | 2 | total_size += |
1706 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1707 | 2 | this->options(static_cast<int>(i))); |
1708 | 2 | } |
1709 | 10 | } |
1710 | | |
1711 | 10 | if (_has_bits_[0 / 32] & 3u) { |
1712 | | // optional bytes stream_id = 1; |
1713 | 10 | if (has_stream_id()) { |
1714 | 10 | total_size += 1 + |
1715 | 10 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1716 | 10 | this->stream_id()); |
1717 | 10 | } |
1718 | | |
1719 | | // optional bytes namespace_id = 4; |
1720 | 10 | if (has_namespace_id()) { |
1721 | 0 | total_size += 1 + |
1722 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1723 | 0 | this->namespace_id()); |
1724 | 0 | } |
1725 | | |
1726 | 10 | } |
1727 | 10 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1728 | 10 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1729 | 10 | _cached_size_ = cached_size; |
1730 | 10 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1731 | 10 | return total_size; |
1732 | 10 | } |
1733 | | |
1734 | 0 | void CDCStreamInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
1735 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CDCStreamInfoPB) |
1736 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1737 | 0 | const CDCStreamInfoPB* source = |
1738 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CDCStreamInfoPB>( |
1739 | 0 | &from); |
1740 | 0 | if (source == NULL) { |
1741 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CDCStreamInfoPB) |
1742 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1743 | 0 | } else { |
1744 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CDCStreamInfoPB) |
1745 | 0 | MergeFrom(*source); |
1746 | 0 | } |
1747 | 0 | } |
1748 | | |
1749 | 0 | void CDCStreamInfoPB::MergeFrom(const CDCStreamInfoPB& from) { |
1750 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CDCStreamInfoPB) |
1751 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1752 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1753 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1754 | 0 | (void) cached_has_bits; |
1755 | |
|
1756 | 0 | table_id_.MergeFrom(from.table_id_); |
1757 | 0 | options_.MergeFrom(from.options_); |
1758 | 0 | cached_has_bits = from._has_bits_[0]; |
1759 | 0 | if (cached_has_bits & 3u) { |
1760 | 0 | if (cached_has_bits & 0x00000001u) { |
1761 | 0 | set_has_stream_id(); |
1762 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
1763 | 0 | } |
1764 | 0 | if (cached_has_bits & 0x00000002u) { |
1765 | 0 | set_has_namespace_id(); |
1766 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
1767 | 0 | } |
1768 | 0 | } |
1769 | 0 | } |
1770 | | |
1771 | 0 | void CDCStreamInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
1772 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CDCStreamInfoPB) |
1773 | 0 | if (&from == this) return; |
1774 | 0 | Clear(); |
1775 | 0 | MergeFrom(from); |
1776 | 0 | } |
1777 | | |
1778 | 0 | void CDCStreamInfoPB::CopyFrom(const CDCStreamInfoPB& from) { |
1779 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CDCStreamInfoPB) |
1780 | 0 | if (&from == this) return; |
1781 | 0 | Clear(); |
1782 | 0 | MergeFrom(from); |
1783 | 0 | } |
1784 | | |
1785 | 0 | bool CDCStreamInfoPB::IsInitialized() const { |
1786 | 0 | return true; |
1787 | 0 | } |
1788 | | |
1789 | 0 | void CDCStreamInfoPB::Swap(CDCStreamInfoPB* other) { |
1790 | 0 | if (other == this) return; |
1791 | 0 | InternalSwap(other); |
1792 | 0 | } |
1793 | 0 | void CDCStreamInfoPB::InternalSwap(CDCStreamInfoPB* other) { |
1794 | 0 | using std::swap; |
1795 | 0 | table_id_.InternalSwap(&other->table_id_); |
1796 | 0 | options_.InternalSwap(&other->options_); |
1797 | 0 | stream_id_.Swap(&other->stream_id_); |
1798 | 0 | namespace_id_.Swap(&other->namespace_id_); |
1799 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1800 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1801 | 0 | swap(_cached_size_, other->_cached_size_); |
1802 | 0 | } |
1803 | | |
1804 | 0 | ::google::protobuf::Metadata CDCStreamInfoPB::GetMetadata() const { |
1805 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
1806 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
1807 | 0 | } |
1808 | | |
1809 | | |
1810 | | // =================================================================== |
1811 | | |
1812 | 26.8k | void ValidateReplicationInfoRequestPB::InitAsDefaultInstance() { |
1813 | 26.8k | ::yb::master::_ValidateReplicationInfoRequestPB_default_instance_._instance.get_mutable()->replication_info_ = const_cast< ::yb::master::ReplicationInfoPB*>( |
1814 | 26.8k | ::yb::master::ReplicationInfoPB::internal_default_instance()); |
1815 | 26.8k | } |
1816 | 0 | void ValidateReplicationInfoRequestPB::clear_replication_info() { |
1817 | 0 | if (replication_info_ != NULL) replication_info_->Clear(); |
1818 | 0 | clear_has_replication_info(); |
1819 | 0 | } |
1820 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1821 | | const int ValidateReplicationInfoRequestPB::kReplicationInfoFieldNumber; |
1822 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1823 | | |
1824 | | ValidateReplicationInfoRequestPB::ValidateReplicationInfoRequestPB() |
1825 | 83.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1826 | 83.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1827 | 56.8k | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsValidateReplicationInfoRequestPB(); |
1828 | 56.8k | } |
1829 | 83.7k | SharedCtor(); |
1830 | | // @@protoc_insertion_point(constructor:yb.master.ValidateReplicationInfoRequestPB) |
1831 | 83.7k | } |
1832 | | ValidateReplicationInfoRequestPB::ValidateReplicationInfoRequestPB(const ValidateReplicationInfoRequestPB& from) |
1833 | | : ::google::protobuf::Message(), |
1834 | | _internal_metadata_(NULL), |
1835 | | _has_bits_(from._has_bits_), |
1836 | 0 | _cached_size_(0) { |
1837 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1838 | 0 | if (from.has_replication_info()) { |
1839 | 0 | replication_info_ = new ::yb::master::ReplicationInfoPB(*from.replication_info_); |
1840 | 0 | } else { |
1841 | 0 | replication_info_ = NULL; |
1842 | 0 | } |
1843 | | // @@protoc_insertion_point(copy_constructor:yb.master.ValidateReplicationInfoRequestPB) |
1844 | 0 | } |
1845 | | |
1846 | 83.7k | void ValidateReplicationInfoRequestPB::SharedCtor() { |
1847 | 83.7k | _cached_size_ = 0; |
1848 | 83.7k | replication_info_ = NULL; |
1849 | 83.7k | } |
1850 | | |
1851 | 56.8k | ValidateReplicationInfoRequestPB::~ValidateReplicationInfoRequestPB() { |
1852 | | // @@protoc_insertion_point(destructor:yb.master.ValidateReplicationInfoRequestPB) |
1853 | 56.8k | SharedDtor(); |
1854 | 56.8k | } |
1855 | | |
1856 | 56.8k | void ValidateReplicationInfoRequestPB::SharedDtor() { |
1857 | 56.8k | if (this != internal_default_instance()) delete replication_info_; |
1858 | 56.8k | } |
1859 | | |
1860 | 0 | void ValidateReplicationInfoRequestPB::SetCachedSize(int size) const { |
1861 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1862 | 0 | _cached_size_ = size; |
1863 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1864 | 0 | } |
1865 | 0 | const ::google::protobuf::Descriptor* ValidateReplicationInfoRequestPB::descriptor() { |
1866 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
1867 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1868 | 0 | } |
1869 | | |
1870 | 0 | const ValidateReplicationInfoRequestPB& ValidateReplicationInfoRequestPB::default_instance() { |
1871 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsValidateReplicationInfoRequestPB(); |
1872 | 0 | return *internal_default_instance(); |
1873 | 0 | } |
1874 | | |
1875 | 0 | ValidateReplicationInfoRequestPB* ValidateReplicationInfoRequestPB::New(::google::protobuf::Arena* arena) const { |
1876 | 0 | ValidateReplicationInfoRequestPB* n = new ValidateReplicationInfoRequestPB; |
1877 | 0 | if (arena != NULL) { |
1878 | 0 | arena->Own(n); |
1879 | 0 | } |
1880 | 0 | return n; |
1881 | 0 | } |
1882 | | |
1883 | 1 | void ValidateReplicationInfoRequestPB::Clear() { |
1884 | | // @@protoc_insertion_point(message_clear_start:yb.master.ValidateReplicationInfoRequestPB) |
1885 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
1886 | | // Prevent compiler warnings about cached_has_bits being unused |
1887 | 1 | (void) cached_has_bits; |
1888 | | |
1889 | 1 | cached_has_bits = _has_bits_[0]; |
1890 | 1 | if (cached_has_bits & 0x00000001u) { |
1891 | 0 | GOOGLE_DCHECK(replication_info_ != NULL); |
1892 | 0 | replication_info_->Clear(); |
1893 | 0 | } |
1894 | 1 | _has_bits_.Clear(); |
1895 | 1 | _internal_metadata_.Clear(); |
1896 | 1 | } |
1897 | | |
1898 | | bool ValidateReplicationInfoRequestPB::MergePartialFromCodedStream( |
1899 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
1900 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
1901 | 1 | ::google::protobuf::uint32 tag; |
1902 | | // @@protoc_insertion_point(parse_start:yb.master.ValidateReplicationInfoRequestPB) |
1903 | 2 | for (;;) { |
1904 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1905 | 2 | tag = p.first; |
1906 | 2 | if (!p.second) goto handle_unusual1 ; |
1907 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1908 | | // optional .yb.master.ReplicationInfoPB replication_info = 1; |
1909 | 1 | case 1: { |
1910 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1911 | 1 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1912 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1913 | 1 | input, mutable_replication_info())); |
1914 | 1 | } else { |
1915 | 0 | goto handle_unusual; |
1916 | 0 | } |
1917 | 1 | break; |
1918 | 1 | } |
1919 | | |
1920 | 1 | default: { |
1921 | 1 | handle_unusual: |
1922 | 1 | if (tag == 0) { |
1923 | 1 | goto success; |
1924 | 1 | } |
1925 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1926 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1927 | 0 | break; |
1928 | 0 | } |
1929 | 1 | } |
1930 | 1 | } |
1931 | 1 | success: |
1932 | | // @@protoc_insertion_point(parse_success:yb.master.ValidateReplicationInfoRequestPB) |
1933 | 1 | return true; |
1934 | 0 | failure: |
1935 | | // @@protoc_insertion_point(parse_failure:yb.master.ValidateReplicationInfoRequestPB) |
1936 | 0 | return false; |
1937 | 1 | #undef DO_ |
1938 | 1 | } |
1939 | | |
1940 | | void ValidateReplicationInfoRequestPB::SerializeWithCachedSizes( |
1941 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1942 | | // @@protoc_insertion_point(serialize_start:yb.master.ValidateReplicationInfoRequestPB) |
1943 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1944 | 0 | (void) cached_has_bits; |
1945 | |
|
1946 | 0 | cached_has_bits = _has_bits_[0]; |
1947 | | // optional .yb.master.ReplicationInfoPB replication_info = 1; |
1948 | 0 | if (cached_has_bits & 0x00000001u) { |
1949 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1950 | 0 | 1, *this->replication_info_, output); |
1951 | 0 | } |
1952 | |
|
1953 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1954 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1955 | 0 | _internal_metadata_.unknown_fields(), output); |
1956 | 0 | } |
1957 | | // @@protoc_insertion_point(serialize_end:yb.master.ValidateReplicationInfoRequestPB) |
1958 | 0 | } |
1959 | | |
1960 | | ::google::protobuf::uint8* ValidateReplicationInfoRequestPB::InternalSerializeWithCachedSizesToArray( |
1961 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
1962 | 1 | (void)deterministic; // Unused |
1963 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ValidateReplicationInfoRequestPB) |
1964 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
1965 | 1 | (void) cached_has_bits; |
1966 | | |
1967 | 1 | cached_has_bits = _has_bits_[0]; |
1968 | | // optional .yb.master.ReplicationInfoPB replication_info = 1; |
1969 | 1 | if (cached_has_bits & 0x00000001u) { |
1970 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
1971 | 1 | InternalWriteMessageToArray( |
1972 | 1 | 1, *this->replication_info_, deterministic, target); |
1973 | 1 | } |
1974 | | |
1975 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
1976 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1977 | 0 | _internal_metadata_.unknown_fields(), target); |
1978 | 0 | } |
1979 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ValidateReplicationInfoRequestPB) |
1980 | 1 | return target; |
1981 | 1 | } |
1982 | | |
1983 | 2 | size_t ValidateReplicationInfoRequestPB::ByteSizeLong() const { |
1984 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ValidateReplicationInfoRequestPB) |
1985 | 2 | size_t total_size = 0; |
1986 | | |
1987 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
1988 | 0 | total_size += |
1989 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1990 | 0 | _internal_metadata_.unknown_fields()); |
1991 | 0 | } |
1992 | | // optional .yb.master.ReplicationInfoPB replication_info = 1; |
1993 | 2 | if (has_replication_info()) { |
1994 | 2 | total_size += 1 + |
1995 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1996 | 2 | *this->replication_info_); |
1997 | 2 | } |
1998 | | |
1999 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2000 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2001 | 2 | _cached_size_ = cached_size; |
2002 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2003 | 2 | return total_size; |
2004 | 2 | } |
2005 | | |
2006 | 0 | void ValidateReplicationInfoRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2007 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ValidateReplicationInfoRequestPB) |
2008 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2009 | 0 | const ValidateReplicationInfoRequestPB* source = |
2010 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ValidateReplicationInfoRequestPB>( |
2011 | 0 | &from); |
2012 | 0 | if (source == NULL) { |
2013 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ValidateReplicationInfoRequestPB) |
2014 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2015 | 0 | } else { |
2016 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ValidateReplicationInfoRequestPB) |
2017 | 0 | MergeFrom(*source); |
2018 | 0 | } |
2019 | 0 | } |
2020 | | |
2021 | 0 | void ValidateReplicationInfoRequestPB::MergeFrom(const ValidateReplicationInfoRequestPB& from) { |
2022 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ValidateReplicationInfoRequestPB) |
2023 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2024 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2025 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2026 | 0 | (void) cached_has_bits; |
2027 | |
|
2028 | 0 | if (from.has_replication_info()) { |
2029 | 0 | mutable_replication_info()->::yb::master::ReplicationInfoPB::MergeFrom(from.replication_info()); |
2030 | 0 | } |
2031 | 0 | } |
2032 | | |
2033 | 0 | void ValidateReplicationInfoRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2034 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ValidateReplicationInfoRequestPB) |
2035 | 0 | if (&from == this) return; |
2036 | 0 | Clear(); |
2037 | 0 | MergeFrom(from); |
2038 | 0 | } |
2039 | | |
2040 | 0 | void ValidateReplicationInfoRequestPB::CopyFrom(const ValidateReplicationInfoRequestPB& from) { |
2041 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ValidateReplicationInfoRequestPB) |
2042 | 0 | if (&from == this) return; |
2043 | 0 | Clear(); |
2044 | 0 | MergeFrom(from); |
2045 | 0 | } |
2046 | | |
2047 | 2 | bool ValidateReplicationInfoRequestPB::IsInitialized() const { |
2048 | 2 | return true; |
2049 | 2 | } |
2050 | | |
2051 | 0 | void ValidateReplicationInfoRequestPB::Swap(ValidateReplicationInfoRequestPB* other) { |
2052 | 0 | if (other == this) return; |
2053 | 0 | InternalSwap(other); |
2054 | 0 | } |
2055 | 0 | void ValidateReplicationInfoRequestPB::InternalSwap(ValidateReplicationInfoRequestPB* other) { |
2056 | 0 | using std::swap; |
2057 | 0 | swap(replication_info_, other->replication_info_); |
2058 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2059 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2060 | 0 | swap(_cached_size_, other->_cached_size_); |
2061 | 0 | } |
2062 | | |
2063 | 1 | ::google::protobuf::Metadata ValidateReplicationInfoRequestPB::GetMetadata() const { |
2064 | 1 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2065 | 1 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
2066 | 1 | } |
2067 | | |
2068 | | |
2069 | | // =================================================================== |
2070 | | |
2071 | 26.8k | void ValidateReplicationInfoResponsePB::InitAsDefaultInstance() { |
2072 | 26.8k | ::yb::master::_ValidateReplicationInfoResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
2073 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
2074 | 26.8k | } |
2075 | 0 | void ValidateReplicationInfoResponsePB::clear_error() { |
2076 | 0 | if (error_ != NULL) error_->Clear(); |
2077 | 0 | clear_has_error(); |
2078 | 0 | } |
2079 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2080 | | const int ValidateReplicationInfoResponsePB::kErrorFieldNumber; |
2081 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2082 | | |
2083 | | ValidateReplicationInfoResponsePB::ValidateReplicationInfoResponsePB() |
2084 | 83.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2085 | 83.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2086 | 56.8k | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsValidateReplicationInfoResponsePB(); |
2087 | 56.8k | } |
2088 | 83.7k | SharedCtor(); |
2089 | | // @@protoc_insertion_point(constructor:yb.master.ValidateReplicationInfoResponsePB) |
2090 | 83.7k | } |
2091 | | ValidateReplicationInfoResponsePB::ValidateReplicationInfoResponsePB(const ValidateReplicationInfoResponsePB& from) |
2092 | | : ::google::protobuf::Message(), |
2093 | | _internal_metadata_(NULL), |
2094 | | _has_bits_(from._has_bits_), |
2095 | 0 | _cached_size_(0) { |
2096 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2097 | 0 | if (from.has_error()) { |
2098 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
2099 | 0 | } else { |
2100 | 0 | error_ = NULL; |
2101 | 0 | } |
2102 | | // @@protoc_insertion_point(copy_constructor:yb.master.ValidateReplicationInfoResponsePB) |
2103 | 0 | } |
2104 | | |
2105 | 83.7k | void ValidateReplicationInfoResponsePB::SharedCtor() { |
2106 | 83.7k | _cached_size_ = 0; |
2107 | 83.7k | error_ = NULL; |
2108 | 83.7k | } |
2109 | | |
2110 | 56.8k | ValidateReplicationInfoResponsePB::~ValidateReplicationInfoResponsePB() { |
2111 | | // @@protoc_insertion_point(destructor:yb.master.ValidateReplicationInfoResponsePB) |
2112 | 56.8k | SharedDtor(); |
2113 | 56.8k | } |
2114 | | |
2115 | 56.8k | void ValidateReplicationInfoResponsePB::SharedDtor() { |
2116 | 56.8k | if (this != internal_default_instance()) delete error_; |
2117 | 56.8k | } |
2118 | | |
2119 | 0 | void ValidateReplicationInfoResponsePB::SetCachedSize(int size) const { |
2120 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2121 | 0 | _cached_size_ = size; |
2122 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2123 | 0 | } |
2124 | 0 | const ::google::protobuf::Descriptor* ValidateReplicationInfoResponsePB::descriptor() { |
2125 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2126 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2127 | 0 | } |
2128 | | |
2129 | 0 | const ValidateReplicationInfoResponsePB& ValidateReplicationInfoResponsePB::default_instance() { |
2130 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsValidateReplicationInfoResponsePB(); |
2131 | 0 | return *internal_default_instance(); |
2132 | 0 | } |
2133 | | |
2134 | 0 | ValidateReplicationInfoResponsePB* ValidateReplicationInfoResponsePB::New(::google::protobuf::Arena* arena) const { |
2135 | 0 | ValidateReplicationInfoResponsePB* n = new ValidateReplicationInfoResponsePB; |
2136 | 0 | if (arena != NULL) { |
2137 | 0 | arena->Own(n); |
2138 | 0 | } |
2139 | 0 | return n; |
2140 | 0 | } |
2141 | | |
2142 | 1 | void ValidateReplicationInfoResponsePB::Clear() { |
2143 | | // @@protoc_insertion_point(message_clear_start:yb.master.ValidateReplicationInfoResponsePB) |
2144 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
2145 | | // Prevent compiler warnings about cached_has_bits being unused |
2146 | 1 | (void) cached_has_bits; |
2147 | | |
2148 | 1 | cached_has_bits = _has_bits_[0]; |
2149 | 1 | if (cached_has_bits & 0x00000001u) { |
2150 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2151 | 0 | error_->Clear(); |
2152 | 0 | } |
2153 | 1 | _has_bits_.Clear(); |
2154 | 1 | _internal_metadata_.Clear(); |
2155 | 1 | } |
2156 | | |
2157 | | bool ValidateReplicationInfoResponsePB::MergePartialFromCodedStream( |
2158 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
2159 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2160 | 1 | ::google::protobuf::uint32 tag; |
2161 | | // @@protoc_insertion_point(parse_start:yb.master.ValidateReplicationInfoResponsePB) |
2162 | 2 | for (;;) { |
2163 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2164 | 2 | tag = p.first; |
2165 | 2 | if (!p.second) goto handle_unusual1 ; |
2166 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2167 | | // optional .yb.master.MasterErrorPB error = 1; |
2168 | 1 | case 1: { |
2169 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2170 | 1 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2171 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2172 | 1 | input, mutable_error())); |
2173 | 1 | } else { |
2174 | 0 | goto handle_unusual; |
2175 | 0 | } |
2176 | 1 | break; |
2177 | 1 | } |
2178 | | |
2179 | 1 | default: { |
2180 | 1 | handle_unusual: |
2181 | 1 | if (tag == 0) { |
2182 | 1 | goto success; |
2183 | 1 | } |
2184 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2185 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2186 | 0 | break; |
2187 | 0 | } |
2188 | 1 | } |
2189 | 1 | } |
2190 | 1 | success: |
2191 | | // @@protoc_insertion_point(parse_success:yb.master.ValidateReplicationInfoResponsePB) |
2192 | 1 | return true; |
2193 | 0 | failure: |
2194 | | // @@protoc_insertion_point(parse_failure:yb.master.ValidateReplicationInfoResponsePB) |
2195 | 0 | return false; |
2196 | 1 | #undef DO_ |
2197 | 1 | } |
2198 | | |
2199 | | void ValidateReplicationInfoResponsePB::SerializeWithCachedSizes( |
2200 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2201 | | // @@protoc_insertion_point(serialize_start:yb.master.ValidateReplicationInfoResponsePB) |
2202 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2203 | 0 | (void) cached_has_bits; |
2204 | |
|
2205 | 0 | cached_has_bits = _has_bits_[0]; |
2206 | | // optional .yb.master.MasterErrorPB error = 1; |
2207 | 0 | if (cached_has_bits & 0x00000001u) { |
2208 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2209 | 0 | 1, *this->error_, output); |
2210 | 0 | } |
2211 | |
|
2212 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2213 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2214 | 0 | _internal_metadata_.unknown_fields(), output); |
2215 | 0 | } |
2216 | | // @@protoc_insertion_point(serialize_end:yb.master.ValidateReplicationInfoResponsePB) |
2217 | 0 | } |
2218 | | |
2219 | | ::google::protobuf::uint8* ValidateReplicationInfoResponsePB::InternalSerializeWithCachedSizesToArray( |
2220 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
2221 | 1 | (void)deterministic; // Unused |
2222 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ValidateReplicationInfoResponsePB) |
2223 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
2224 | 1 | (void) cached_has_bits; |
2225 | | |
2226 | 1 | cached_has_bits = _has_bits_[0]; |
2227 | | // optional .yb.master.MasterErrorPB error = 1; |
2228 | 1 | if (cached_has_bits & 0x00000001u) { |
2229 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
2230 | 1 | InternalWriteMessageToArray( |
2231 | 1 | 1, *this->error_, deterministic, target); |
2232 | 1 | } |
2233 | | |
2234 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
2235 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2236 | 0 | _internal_metadata_.unknown_fields(), target); |
2237 | 0 | } |
2238 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ValidateReplicationInfoResponsePB) |
2239 | 1 | return target; |
2240 | 1 | } |
2241 | | |
2242 | 2 | size_t ValidateReplicationInfoResponsePB::ByteSizeLong() const { |
2243 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ValidateReplicationInfoResponsePB) |
2244 | 2 | size_t total_size = 0; |
2245 | | |
2246 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
2247 | 0 | total_size += |
2248 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2249 | 0 | _internal_metadata_.unknown_fields()); |
2250 | 0 | } |
2251 | | // optional .yb.master.MasterErrorPB error = 1; |
2252 | 2 | if (has_error()) { |
2253 | 2 | total_size += 1 + |
2254 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2255 | 2 | *this->error_); |
2256 | 2 | } |
2257 | | |
2258 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2259 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2260 | 2 | _cached_size_ = cached_size; |
2261 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2262 | 2 | return total_size; |
2263 | 2 | } |
2264 | | |
2265 | 0 | void ValidateReplicationInfoResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2266 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ValidateReplicationInfoResponsePB) |
2267 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2268 | 0 | const ValidateReplicationInfoResponsePB* source = |
2269 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ValidateReplicationInfoResponsePB>( |
2270 | 0 | &from); |
2271 | 0 | if (source == NULL) { |
2272 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ValidateReplicationInfoResponsePB) |
2273 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2274 | 0 | } else { |
2275 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ValidateReplicationInfoResponsePB) |
2276 | 0 | MergeFrom(*source); |
2277 | 0 | } |
2278 | 0 | } |
2279 | | |
2280 | 0 | void ValidateReplicationInfoResponsePB::MergeFrom(const ValidateReplicationInfoResponsePB& from) { |
2281 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ValidateReplicationInfoResponsePB) |
2282 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2283 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2284 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2285 | 0 | (void) cached_has_bits; |
2286 | |
|
2287 | 0 | if (from.has_error()) { |
2288 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
2289 | 0 | } |
2290 | 0 | } |
2291 | | |
2292 | 0 | void ValidateReplicationInfoResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
2293 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ValidateReplicationInfoResponsePB) |
2294 | 0 | if (&from == this) return; |
2295 | 0 | Clear(); |
2296 | 0 | MergeFrom(from); |
2297 | 0 | } |
2298 | | |
2299 | 0 | void ValidateReplicationInfoResponsePB::CopyFrom(const ValidateReplicationInfoResponsePB& from) { |
2300 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ValidateReplicationInfoResponsePB) |
2301 | 0 | if (&from == this) return; |
2302 | 0 | Clear(); |
2303 | 0 | MergeFrom(from); |
2304 | 0 | } |
2305 | | |
2306 | 2 | bool ValidateReplicationInfoResponsePB::IsInitialized() const { |
2307 | 2 | if (has_error()) { |
2308 | 2 | if (!this->error_->IsInitialized()) return false0 ; |
2309 | 2 | } |
2310 | 2 | return true; |
2311 | 2 | } |
2312 | | |
2313 | 0 | void ValidateReplicationInfoResponsePB::Swap(ValidateReplicationInfoResponsePB* other) { |
2314 | 0 | if (other == this) return; |
2315 | 0 | InternalSwap(other); |
2316 | 0 | } |
2317 | 0 | void ValidateReplicationInfoResponsePB::InternalSwap(ValidateReplicationInfoResponsePB* other) { |
2318 | 0 | using std::swap; |
2319 | 0 | swap(error_, other->error_); |
2320 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2321 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2322 | 0 | swap(_cached_size_, other->_cached_size_); |
2323 | 0 | } |
2324 | | |
2325 | 0 | ::google::protobuf::Metadata ValidateReplicationInfoResponsePB::GetMetadata() const { |
2326 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2327 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
2328 | 0 | } |
2329 | | |
2330 | | |
2331 | | // =================================================================== |
2332 | | |
2333 | 26.8k | void CreateCDCStreamRequestPB::InitAsDefaultInstance() { |
2334 | 26.8k | } |
2335 | 0 | void CreateCDCStreamRequestPB::clear_options() { |
2336 | 0 | options_.Clear(); |
2337 | 0 | } |
2338 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2339 | | const int CreateCDCStreamRequestPB::kTableIdFieldNumber; |
2340 | | const int CreateCDCStreamRequestPB::kOptionsFieldNumber; |
2341 | | const int CreateCDCStreamRequestPB::kInitialStateFieldNumber; |
2342 | | const int CreateCDCStreamRequestPB::kDbStreamIdFieldNumber; |
2343 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2344 | | |
2345 | | CreateCDCStreamRequestPB::CreateCDCStreamRequestPB() |
2346 | 37.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2347 | 37.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2348 | 11.0k | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCreateCDCStreamRequestPB(); |
2349 | 11.0k | } |
2350 | 37.8k | SharedCtor(); |
2351 | | // @@protoc_insertion_point(constructor:yb.master.CreateCDCStreamRequestPB) |
2352 | 37.8k | } |
2353 | | CreateCDCStreamRequestPB::CreateCDCStreamRequestPB(const CreateCDCStreamRequestPB& from) |
2354 | | : ::google::protobuf::Message(), |
2355 | | _internal_metadata_(NULL), |
2356 | | _has_bits_(from._has_bits_), |
2357 | | _cached_size_(0), |
2358 | 0 | options_(from.options_) { |
2359 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2360 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2361 | 0 | if (from.has_table_id()) { |
2362 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
2363 | 0 | } |
2364 | 0 | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2365 | 0 | if (from.has_db_stream_id()) { |
2366 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
2367 | 0 | } |
2368 | 0 | initial_state_ = from.initial_state_; |
2369 | | // @@protoc_insertion_point(copy_constructor:yb.master.CreateCDCStreamRequestPB) |
2370 | 0 | } |
2371 | | |
2372 | 37.8k | void CreateCDCStreamRequestPB::SharedCtor() { |
2373 | 37.8k | _cached_size_ = 0; |
2374 | 37.8k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2375 | 37.8k | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2376 | 37.8k | initial_state_ = 3; |
2377 | 37.8k | } |
2378 | | |
2379 | 11.0k | CreateCDCStreamRequestPB::~CreateCDCStreamRequestPB() { |
2380 | | // @@protoc_insertion_point(destructor:yb.master.CreateCDCStreamRequestPB) |
2381 | 11.0k | SharedDtor(); |
2382 | 11.0k | } |
2383 | | |
2384 | 11.0k | void CreateCDCStreamRequestPB::SharedDtor() { |
2385 | 11.0k | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2386 | 11.0k | db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2387 | 11.0k | } |
2388 | | |
2389 | 0 | void CreateCDCStreamRequestPB::SetCachedSize(int size) const { |
2390 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2391 | 0 | _cached_size_ = size; |
2392 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2393 | 0 | } |
2394 | 0 | const ::google::protobuf::Descriptor* CreateCDCStreamRequestPB::descriptor() { |
2395 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2396 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2397 | 0 | } |
2398 | | |
2399 | 0 | const CreateCDCStreamRequestPB& CreateCDCStreamRequestPB::default_instance() { |
2400 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCreateCDCStreamRequestPB(); |
2401 | 0 | return *internal_default_instance(); |
2402 | 0 | } |
2403 | | |
2404 | 0 | CreateCDCStreamRequestPB* CreateCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
2405 | 0 | CreateCDCStreamRequestPB* n = new CreateCDCStreamRequestPB; |
2406 | 0 | if (arena != NULL) { |
2407 | 0 | arena->Own(n); |
2408 | 0 | } |
2409 | 0 | return n; |
2410 | 0 | } |
2411 | | |
2412 | 5.50k | void CreateCDCStreamRequestPB::Clear() { |
2413 | | // @@protoc_insertion_point(message_clear_start:yb.master.CreateCDCStreamRequestPB) |
2414 | 5.50k | ::google::protobuf::uint32 cached_has_bits = 0; |
2415 | | // Prevent compiler warnings about cached_has_bits being unused |
2416 | 5.50k | (void) cached_has_bits; |
2417 | | |
2418 | 5.50k | options_.Clear(); |
2419 | 5.50k | cached_has_bits = _has_bits_[0]; |
2420 | 5.50k | if (cached_has_bits & 7u) { |
2421 | 0 | if (cached_has_bits & 0x00000001u) { |
2422 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2423 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
2424 | 0 | } |
2425 | 0 | if (cached_has_bits & 0x00000002u) { |
2426 | 0 | GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2427 | 0 | (*db_stream_id_.UnsafeRawStringPointer())->clear(); |
2428 | 0 | } |
2429 | 0 | initial_state_ = 3; |
2430 | 0 | } |
2431 | 5.50k | _has_bits_.Clear(); |
2432 | 5.50k | _internal_metadata_.Clear(); |
2433 | 5.50k | } |
2434 | | |
2435 | | bool CreateCDCStreamRequestPB::MergePartialFromCodedStream( |
2436 | 5.50k | ::google::protobuf::io::CodedInputStream* input) { |
2437 | 38.4k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2438 | 5.50k | ::google::protobuf::uint32 tag; |
2439 | | // @@protoc_insertion_point(parse_start:yb.master.CreateCDCStreamRequestPB) |
2440 | 43.9k | for (;;) { |
2441 | 43.9k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2442 | 43.9k | tag = p.first; |
2443 | 43.9k | if (!p.second) goto handle_unusual5.50k ; |
2444 | 38.4k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2445 | | // optional string table_id = 1; |
2446 | 5.50k | case 1: { |
2447 | 5.50k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2448 | 5.50k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2449 | 5.50k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2450 | 5.50k | input, this->mutable_table_id())); |
2451 | 5.50k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2452 | 5.50k | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2453 | 5.50k | ::google::protobuf::internal::WireFormat::PARSE, |
2454 | 5.50k | "yb.master.CreateCDCStreamRequestPB.table_id"); |
2455 | 5.50k | } else { |
2456 | 0 | goto handle_unusual; |
2457 | 0 | } |
2458 | 5.50k | break; |
2459 | 5.50k | } |
2460 | | |
2461 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
2462 | 22.2k | case 3: { |
2463 | 22.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2464 | 22.2k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2465 | 22.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_options())); |
2466 | 22.2k | } else { |
2467 | 0 | goto handle_unusual; |
2468 | 0 | } |
2469 | 22.2k | break; |
2470 | 22.2k | } |
2471 | | |
2472 | | // optional .yb.master.SysCDCStreamEntryPB.State initial_state = 4; |
2473 | 22.2k | case 4: { |
2474 | 5.49k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2475 | 5.49k | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2476 | 5.49k | int value; |
2477 | 5.49k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2478 | 5.49k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2479 | 5.49k | input, &value))); |
2480 | 5.49k | if (::yb::master::SysCDCStreamEntryPB_State_IsValid(value)) { |
2481 | 5.49k | set_initial_state(static_cast< ::yb::master::SysCDCStreamEntryPB_State >(value)); |
2482 | 5.49k | } else { |
2483 | 0 | mutable_unknown_fields()->AddVarint( |
2484 | 0 | 4, static_cast< ::google::protobuf::uint64>(value)); |
2485 | 0 | } |
2486 | 5.49k | } else { |
2487 | 0 | goto handle_unusual; |
2488 | 0 | } |
2489 | 5.49k | break; |
2490 | 5.49k | } |
2491 | | |
2492 | | // optional string db_stream_id = 5; |
2493 | 5.49k | case 5: { |
2494 | 5.18k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2495 | 5.18k | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
2496 | 5.18k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2497 | 5.18k | input, this->mutable_db_stream_id())); |
2498 | 5.18k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2499 | 5.18k | this->db_stream_id().data(), static_cast<int>(this->db_stream_id().length()), |
2500 | 5.18k | ::google::protobuf::internal::WireFormat::PARSE, |
2501 | 5.18k | "yb.master.CreateCDCStreamRequestPB.db_stream_id"); |
2502 | 5.18k | } else { |
2503 | 0 | goto handle_unusual; |
2504 | 0 | } |
2505 | 5.18k | break; |
2506 | 5.18k | } |
2507 | | |
2508 | 5.18k | default: { |
2509 | 5.50k | handle_unusual: |
2510 | 5.50k | if (tag == 0) { |
2511 | 5.50k | goto success; |
2512 | 5.50k | } |
2513 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2514 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2515 | 0 | break; |
2516 | 0 | } |
2517 | 38.4k | } |
2518 | 38.4k | } |
2519 | 5.50k | success: |
2520 | | // @@protoc_insertion_point(parse_success:yb.master.CreateCDCStreamRequestPB) |
2521 | 5.50k | return true; |
2522 | 0 | failure: |
2523 | | // @@protoc_insertion_point(parse_failure:yb.master.CreateCDCStreamRequestPB) |
2524 | 0 | return false; |
2525 | 5.50k | #undef DO_ |
2526 | 5.50k | } |
2527 | | |
2528 | | void CreateCDCStreamRequestPB::SerializeWithCachedSizes( |
2529 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2530 | | // @@protoc_insertion_point(serialize_start:yb.master.CreateCDCStreamRequestPB) |
2531 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2532 | 0 | (void) cached_has_bits; |
2533 | |
|
2534 | 0 | cached_has_bits = _has_bits_[0]; |
2535 | | // optional string table_id = 1; |
2536 | 0 | if (cached_has_bits & 0x00000001u) { |
2537 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2538 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2539 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2540 | 0 | "yb.master.CreateCDCStreamRequestPB.table_id"); |
2541 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2542 | 0 | 1, this->table_id(), output); |
2543 | 0 | } |
2544 | | |
2545 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
2546 | 0 | for (unsigned int i = 0, |
2547 | 0 | n = static_cast<unsigned int>(this->options_size()); i < n; i++) { |
2548 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2549 | 0 | 3, this->options(static_cast<int>(i)), output); |
2550 | 0 | } |
2551 | | |
2552 | | // optional .yb.master.SysCDCStreamEntryPB.State initial_state = 4; |
2553 | 0 | if (cached_has_bits & 0x00000004u) { |
2554 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2555 | 0 | 4, this->initial_state(), output); |
2556 | 0 | } |
2557 | | |
2558 | | // optional string db_stream_id = 5; |
2559 | 0 | if (cached_has_bits & 0x00000002u) { |
2560 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2561 | 0 | this->db_stream_id().data(), static_cast<int>(this->db_stream_id().length()), |
2562 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2563 | 0 | "yb.master.CreateCDCStreamRequestPB.db_stream_id"); |
2564 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2565 | 0 | 5, this->db_stream_id(), output); |
2566 | 0 | } |
2567 | |
|
2568 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2569 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2570 | 0 | _internal_metadata_.unknown_fields(), output); |
2571 | 0 | } |
2572 | | // @@protoc_insertion_point(serialize_end:yb.master.CreateCDCStreamRequestPB) |
2573 | 0 | } |
2574 | | |
2575 | | ::google::protobuf::uint8* CreateCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
2576 | 5.50k | bool deterministic, ::google::protobuf::uint8* target) const { |
2577 | 5.50k | (void)deterministic; // Unused |
2578 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateCDCStreamRequestPB) |
2579 | 5.50k | ::google::protobuf::uint32 cached_has_bits = 0; |
2580 | 5.50k | (void) cached_has_bits; |
2581 | | |
2582 | 5.50k | cached_has_bits = _has_bits_[0]; |
2583 | | // optional string table_id = 1; |
2584 | 5.50k | if (cached_has_bits & 0x00000001u) { |
2585 | 5.50k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2586 | 5.50k | this->table_id().data(), static_cast<int>(this->table_id().length()), |
2587 | 5.50k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2588 | 5.50k | "yb.master.CreateCDCStreamRequestPB.table_id"); |
2589 | 5.50k | target = |
2590 | 5.50k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2591 | 5.50k | 1, this->table_id(), target); |
2592 | 5.50k | } |
2593 | | |
2594 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
2595 | 5.50k | for (unsigned int i = 0, |
2596 | 27.7k | n = static_cast<unsigned int>(this->options_size()); i < n; i++22.2k ) { |
2597 | 22.2k | target = ::google::protobuf::internal::WireFormatLite:: |
2598 | 22.2k | InternalWriteMessageToArray( |
2599 | 22.2k | 3, this->options(static_cast<int>(i)), deterministic, target); |
2600 | 22.2k | } |
2601 | | |
2602 | | // optional .yb.master.SysCDCStreamEntryPB.State initial_state = 4; |
2603 | 5.50k | if (cached_has_bits & 0x00000004u) { |
2604 | 5.49k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2605 | 5.49k | 4, this->initial_state(), target); |
2606 | 5.49k | } |
2607 | | |
2608 | | // optional string db_stream_id = 5; |
2609 | 5.50k | if (cached_has_bits & 0x00000002u) { |
2610 | 5.18k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2611 | 5.18k | this->db_stream_id().data(), static_cast<int>(this->db_stream_id().length()), |
2612 | 5.18k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2613 | 5.18k | "yb.master.CreateCDCStreamRequestPB.db_stream_id"); |
2614 | 5.18k | target = |
2615 | 5.18k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2616 | 5.18k | 5, this->db_stream_id(), target); |
2617 | 5.18k | } |
2618 | | |
2619 | 5.50k | if (_internal_metadata_.have_unknown_fields()) { |
2620 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2621 | 0 | _internal_metadata_.unknown_fields(), target); |
2622 | 0 | } |
2623 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateCDCStreamRequestPB) |
2624 | 5.50k | return target; |
2625 | 5.50k | } |
2626 | | |
2627 | 11.0k | size_t CreateCDCStreamRequestPB::ByteSizeLong() const { |
2628 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CreateCDCStreamRequestPB) |
2629 | 11.0k | size_t total_size = 0; |
2630 | | |
2631 | 11.0k | if (_internal_metadata_.have_unknown_fields()) { |
2632 | 0 | total_size += |
2633 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2634 | 0 | _internal_metadata_.unknown_fields()); |
2635 | 0 | } |
2636 | | // repeated .yb.master.CDCStreamOptionsPB options = 3; |
2637 | 11.0k | { |
2638 | 11.0k | unsigned int count = static_cast<unsigned int>(this->options_size()); |
2639 | 11.0k | total_size += 1UL * count; |
2640 | 55.5k | for (unsigned int i = 0; i < count; i++44.5k ) { |
2641 | 44.5k | total_size += |
2642 | 44.5k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2643 | 44.5k | this->options(static_cast<int>(i))); |
2644 | 44.5k | } |
2645 | 11.0k | } |
2646 | | |
2647 | 11.0k | if (_has_bits_[0 / 32] & 7u) { |
2648 | | // optional string table_id = 1; |
2649 | 11.0k | if (has_table_id()) { |
2650 | 11.0k | total_size += 1 + |
2651 | 11.0k | ::google::protobuf::internal::WireFormatLite::StringSize( |
2652 | 11.0k | this->table_id()); |
2653 | 11.0k | } |
2654 | | |
2655 | | // optional string db_stream_id = 5; |
2656 | 11.0k | if (has_db_stream_id()) { |
2657 | 10.3k | total_size += 1 + |
2658 | 10.3k | ::google::protobuf::internal::WireFormatLite::StringSize( |
2659 | 10.3k | this->db_stream_id()); |
2660 | 10.3k | } |
2661 | | |
2662 | | // optional .yb.master.SysCDCStreamEntryPB.State initial_state = 4; |
2663 | 11.0k | if (has_initial_state()) { |
2664 | 10.9k | total_size += 1 + |
2665 | 10.9k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->initial_state()); |
2666 | 10.9k | } |
2667 | | |
2668 | 11.0k | } |
2669 | 11.0k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2670 | 11.0k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2671 | 11.0k | _cached_size_ = cached_size; |
2672 | 11.0k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2673 | 11.0k | return total_size; |
2674 | 11.0k | } |
2675 | | |
2676 | 0 | void CreateCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2677 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateCDCStreamRequestPB) |
2678 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2679 | 0 | const CreateCDCStreamRequestPB* source = |
2680 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamRequestPB>( |
2681 | 0 | &from); |
2682 | 0 | if (source == NULL) { |
2683 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateCDCStreamRequestPB) |
2684 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2685 | 0 | } else { |
2686 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateCDCStreamRequestPB) |
2687 | 0 | MergeFrom(*source); |
2688 | 0 | } |
2689 | 0 | } |
2690 | | |
2691 | 0 | void CreateCDCStreamRequestPB::MergeFrom(const CreateCDCStreamRequestPB& from) { |
2692 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateCDCStreamRequestPB) |
2693 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2694 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2695 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2696 | 0 | (void) cached_has_bits; |
2697 | |
|
2698 | 0 | options_.MergeFrom(from.options_); |
2699 | 0 | cached_has_bits = from._has_bits_[0]; |
2700 | 0 | if (cached_has_bits & 7u) { |
2701 | 0 | if (cached_has_bits & 0x00000001u) { |
2702 | 0 | set_has_table_id(); |
2703 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
2704 | 0 | } |
2705 | 0 | if (cached_has_bits & 0x00000002u) { |
2706 | 0 | set_has_db_stream_id(); |
2707 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
2708 | 0 | } |
2709 | 0 | if (cached_has_bits & 0x00000004u) { |
2710 | 0 | initial_state_ = from.initial_state_; |
2711 | 0 | } |
2712 | 0 | _has_bits_[0] |= cached_has_bits; |
2713 | 0 | } |
2714 | 0 | } |
2715 | | |
2716 | 0 | void CreateCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2717 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateCDCStreamRequestPB) |
2718 | 0 | if (&from == this) return; |
2719 | 0 | Clear(); |
2720 | 0 | MergeFrom(from); |
2721 | 0 | } |
2722 | | |
2723 | 0 | void CreateCDCStreamRequestPB::CopyFrom(const CreateCDCStreamRequestPB& from) { |
2724 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateCDCStreamRequestPB) |
2725 | 0 | if (&from == this) return; |
2726 | 0 | Clear(); |
2727 | 0 | MergeFrom(from); |
2728 | 0 | } |
2729 | | |
2730 | 11.0k | bool CreateCDCStreamRequestPB::IsInitialized() const { |
2731 | 11.0k | return true; |
2732 | 11.0k | } |
2733 | | |
2734 | 0 | void CreateCDCStreamRequestPB::Swap(CreateCDCStreamRequestPB* other) { |
2735 | 0 | if (other == this) return; |
2736 | 0 | InternalSwap(other); |
2737 | 0 | } |
2738 | 0 | void CreateCDCStreamRequestPB::InternalSwap(CreateCDCStreamRequestPB* other) { |
2739 | 0 | using std::swap; |
2740 | 0 | options_.InternalSwap(&other->options_); |
2741 | 0 | table_id_.Swap(&other->table_id_); |
2742 | 0 | db_stream_id_.Swap(&other->db_stream_id_); |
2743 | 0 | swap(initial_state_, other->initial_state_); |
2744 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2745 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2746 | 0 | swap(_cached_size_, other->_cached_size_); |
2747 | 0 | } |
2748 | | |
2749 | 16.5k | ::google::protobuf::Metadata CreateCDCStreamRequestPB::GetMetadata() const { |
2750 | 16.5k | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2751 | 16.5k | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
2752 | 16.5k | } |
2753 | | |
2754 | | |
2755 | | // =================================================================== |
2756 | | |
2757 | 26.8k | void CreateCDCStreamResponsePB::InitAsDefaultInstance() { |
2758 | 26.8k | ::yb::master::_CreateCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
2759 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
2760 | 26.8k | } |
2761 | 0 | void CreateCDCStreamResponsePB::clear_error() { |
2762 | 0 | if (error_ != NULL) error_->Clear(); |
2763 | 0 | clear_has_error(); |
2764 | 0 | } |
2765 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2766 | | const int CreateCDCStreamResponsePB::kErrorFieldNumber; |
2767 | | const int CreateCDCStreamResponsePB::kStreamIdFieldNumber; |
2768 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2769 | | |
2770 | | CreateCDCStreamResponsePB::CreateCDCStreamResponsePB() |
2771 | 37.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2772 | 37.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2773 | 11.0k | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCreateCDCStreamResponsePB(); |
2774 | 11.0k | } |
2775 | 37.8k | SharedCtor(); |
2776 | | // @@protoc_insertion_point(constructor:yb.master.CreateCDCStreamResponsePB) |
2777 | 37.8k | } |
2778 | | CreateCDCStreamResponsePB::CreateCDCStreamResponsePB(const CreateCDCStreamResponsePB& from) |
2779 | | : ::google::protobuf::Message(), |
2780 | | _internal_metadata_(NULL), |
2781 | | _has_bits_(from._has_bits_), |
2782 | 0 | _cached_size_(0) { |
2783 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2784 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2785 | 0 | if (from.has_stream_id()) { |
2786 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
2787 | 0 | } |
2788 | 0 | if (from.has_error()) { |
2789 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
2790 | 0 | } else { |
2791 | 0 | error_ = NULL; |
2792 | 0 | } |
2793 | | // @@protoc_insertion_point(copy_constructor:yb.master.CreateCDCStreamResponsePB) |
2794 | 0 | } |
2795 | | |
2796 | 37.8k | void CreateCDCStreamResponsePB::SharedCtor() { |
2797 | 37.8k | _cached_size_ = 0; |
2798 | 37.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2799 | 37.8k | error_ = NULL; |
2800 | 37.8k | } |
2801 | | |
2802 | 11.0k | CreateCDCStreamResponsePB::~CreateCDCStreamResponsePB() { |
2803 | | // @@protoc_insertion_point(destructor:yb.master.CreateCDCStreamResponsePB) |
2804 | 11.0k | SharedDtor(); |
2805 | 11.0k | } |
2806 | | |
2807 | 11.0k | void CreateCDCStreamResponsePB::SharedDtor() { |
2808 | 11.0k | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2809 | 11.0k | if (this != internal_default_instance()) delete error_; |
2810 | 11.0k | } |
2811 | | |
2812 | 0 | void CreateCDCStreamResponsePB::SetCachedSize(int size) const { |
2813 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2814 | 0 | _cached_size_ = size; |
2815 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2816 | 0 | } |
2817 | 0 | const ::google::protobuf::Descriptor* CreateCDCStreamResponsePB::descriptor() { |
2818 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
2819 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2820 | 0 | } |
2821 | | |
2822 | 0 | const CreateCDCStreamResponsePB& CreateCDCStreamResponsePB::default_instance() { |
2823 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsCreateCDCStreamResponsePB(); |
2824 | 0 | return *internal_default_instance(); |
2825 | 0 | } |
2826 | | |
2827 | 0 | CreateCDCStreamResponsePB* CreateCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
2828 | 0 | CreateCDCStreamResponsePB* n = new CreateCDCStreamResponsePB; |
2829 | 0 | if (arena != NULL) { |
2830 | 0 | arena->Own(n); |
2831 | 0 | } |
2832 | 0 | return n; |
2833 | 0 | } |
2834 | | |
2835 | 5.50k | void CreateCDCStreamResponsePB::Clear() { |
2836 | | // @@protoc_insertion_point(message_clear_start:yb.master.CreateCDCStreamResponsePB) |
2837 | 5.50k | ::google::protobuf::uint32 cached_has_bits = 0; |
2838 | | // Prevent compiler warnings about cached_has_bits being unused |
2839 | 5.50k | (void) cached_has_bits; |
2840 | | |
2841 | 5.50k | cached_has_bits = _has_bits_[0]; |
2842 | 5.50k | if (cached_has_bits & 3u) { |
2843 | 0 | if (cached_has_bits & 0x00000001u) { |
2844 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2845 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
2846 | 0 | } |
2847 | 0 | if (cached_has_bits & 0x00000002u) { |
2848 | 0 | GOOGLE_DCHECK(error_ != NULL); |
2849 | 0 | error_->Clear(); |
2850 | 0 | } |
2851 | 0 | } |
2852 | 5.50k | _has_bits_.Clear(); |
2853 | 5.50k | _internal_metadata_.Clear(); |
2854 | 5.50k | } |
2855 | | |
2856 | | bool CreateCDCStreamResponsePB::MergePartialFromCodedStream( |
2857 | 5.50k | ::google::protobuf::io::CodedInputStream* input) { |
2858 | 5.50k | #define DO_(EXPRESSION) if (311 !GOOGLE_PREDICT_TRUE311 (EXPRESSION)) goto failure0 |
2859 | 5.50k | ::google::protobuf::uint32 tag; |
2860 | | // @@protoc_insertion_point(parse_start:yb.master.CreateCDCStreamResponsePB) |
2861 | 5.81k | for (;;) { |
2862 | 5.81k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2863 | 5.81k | tag = p.first; |
2864 | 5.81k | if (!p.second) goto handle_unusual5.50k ; |
2865 | 311 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2866 | | // optional .yb.master.MasterErrorPB error = 1; |
2867 | 1 | case 1: { |
2868 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2869 | 1 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2870 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2871 | 1 | input, mutable_error())); |
2872 | 1 | } else { |
2873 | 0 | goto handle_unusual; |
2874 | 0 | } |
2875 | 1 | break; |
2876 | 1 | } |
2877 | | |
2878 | | // optional bytes stream_id = 2; |
2879 | 310 | case 2: { |
2880 | 310 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2881 | 310 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2882 | 310 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2883 | 310 | input, this->mutable_stream_id())); |
2884 | 310 | } else { |
2885 | 0 | goto handle_unusual; |
2886 | 0 | } |
2887 | 310 | break; |
2888 | 310 | } |
2889 | | |
2890 | 310 | default: { |
2891 | 5.50k | handle_unusual: |
2892 | 5.50k | if (tag == 0) { |
2893 | 5.50k | goto success; |
2894 | 5.50k | } |
2895 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2896 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2897 | 0 | break; |
2898 | 0 | } |
2899 | 311 | } |
2900 | 311 | } |
2901 | 5.50k | success: |
2902 | | // @@protoc_insertion_point(parse_success:yb.master.CreateCDCStreamResponsePB) |
2903 | 5.50k | return true; |
2904 | 0 | failure: |
2905 | | // @@protoc_insertion_point(parse_failure:yb.master.CreateCDCStreamResponsePB) |
2906 | 0 | return false; |
2907 | 5.50k | #undef DO_ |
2908 | 5.50k | } |
2909 | | |
2910 | | void CreateCDCStreamResponsePB::SerializeWithCachedSizes( |
2911 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2912 | | // @@protoc_insertion_point(serialize_start:yb.master.CreateCDCStreamResponsePB) |
2913 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2914 | 0 | (void) cached_has_bits; |
2915 | |
|
2916 | 0 | cached_has_bits = _has_bits_[0]; |
2917 | | // optional .yb.master.MasterErrorPB error = 1; |
2918 | 0 | if (cached_has_bits & 0x00000002u) { |
2919 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2920 | 0 | 1, *this->error_, output); |
2921 | 0 | } |
2922 | | |
2923 | | // optional bytes stream_id = 2; |
2924 | 0 | if (cached_has_bits & 0x00000001u) { |
2925 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2926 | 0 | 2, this->stream_id(), output); |
2927 | 0 | } |
2928 | |
|
2929 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2930 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2931 | 0 | _internal_metadata_.unknown_fields(), output); |
2932 | 0 | } |
2933 | | // @@protoc_insertion_point(serialize_end:yb.master.CreateCDCStreamResponsePB) |
2934 | 0 | } |
2935 | | |
2936 | | ::google::protobuf::uint8* CreateCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
2937 | 5.50k | bool deterministic, ::google::protobuf::uint8* target) const { |
2938 | 5.50k | (void)deterministic; // Unused |
2939 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateCDCStreamResponsePB) |
2940 | 5.50k | ::google::protobuf::uint32 cached_has_bits = 0; |
2941 | 5.50k | (void) cached_has_bits; |
2942 | | |
2943 | 5.50k | cached_has_bits = _has_bits_[0]; |
2944 | | // optional .yb.master.MasterErrorPB error = 1; |
2945 | 5.50k | if (cached_has_bits & 0x00000002u) { |
2946 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
2947 | 1 | InternalWriteMessageToArray( |
2948 | 1 | 1, *this->error_, deterministic, target); |
2949 | 1 | } |
2950 | | |
2951 | | // optional bytes stream_id = 2; |
2952 | 5.50k | if (cached_has_bits & 0x00000001u) { |
2953 | 310 | target = |
2954 | 310 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2955 | 310 | 2, this->stream_id(), target); |
2956 | 310 | } |
2957 | | |
2958 | 5.50k | if (_internal_metadata_.have_unknown_fields()) { |
2959 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2960 | 0 | _internal_metadata_.unknown_fields(), target); |
2961 | 0 | } |
2962 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateCDCStreamResponsePB) |
2963 | 5.50k | return target; |
2964 | 5.50k | } |
2965 | | |
2966 | 11.0k | size_t CreateCDCStreamResponsePB::ByteSizeLong() const { |
2967 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.CreateCDCStreamResponsePB) |
2968 | 11.0k | size_t total_size = 0; |
2969 | | |
2970 | 11.0k | if (_internal_metadata_.have_unknown_fields()) { |
2971 | 0 | total_size += |
2972 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2973 | 0 | _internal_metadata_.unknown_fields()); |
2974 | 0 | } |
2975 | 11.0k | if (_has_bits_[0 / 32] & 3u) { |
2976 | | // optional bytes stream_id = 2; |
2977 | 622 | if (has_stream_id()) { |
2978 | 620 | total_size += 1 + |
2979 | 620 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2980 | 620 | this->stream_id()); |
2981 | 620 | } |
2982 | | |
2983 | | // optional .yb.master.MasterErrorPB error = 1; |
2984 | 622 | if (has_error()) { |
2985 | 2 | total_size += 1 + |
2986 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2987 | 2 | *this->error_); |
2988 | 2 | } |
2989 | | |
2990 | 622 | } |
2991 | 11.0k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2992 | 11.0k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2993 | 11.0k | _cached_size_ = cached_size; |
2994 | 11.0k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2995 | 11.0k | return total_size; |
2996 | 11.0k | } |
2997 | | |
2998 | 0 | void CreateCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
2999 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateCDCStreamResponsePB) |
3000 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3001 | 0 | const CreateCDCStreamResponsePB* source = |
3002 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const CreateCDCStreamResponsePB>( |
3003 | 0 | &from); |
3004 | 0 | if (source == NULL) { |
3005 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateCDCStreamResponsePB) |
3006 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3007 | 0 | } else { |
3008 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateCDCStreamResponsePB) |
3009 | 0 | MergeFrom(*source); |
3010 | 0 | } |
3011 | 0 | } |
3012 | | |
3013 | 0 | void CreateCDCStreamResponsePB::MergeFrom(const CreateCDCStreamResponsePB& from) { |
3014 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateCDCStreamResponsePB) |
3015 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3016 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3017 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3018 | 0 | (void) cached_has_bits; |
3019 | |
|
3020 | 0 | cached_has_bits = from._has_bits_[0]; |
3021 | 0 | if (cached_has_bits & 3u) { |
3022 | 0 | if (cached_has_bits & 0x00000001u) { |
3023 | 0 | set_has_stream_id(); |
3024 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
3025 | 0 | } |
3026 | 0 | if (cached_has_bits & 0x00000002u) { |
3027 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
3028 | 0 | } |
3029 | 0 | } |
3030 | 0 | } |
3031 | | |
3032 | 0 | void CreateCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
3033 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateCDCStreamResponsePB) |
3034 | 0 | if (&from == this) return; |
3035 | 0 | Clear(); |
3036 | 0 | MergeFrom(from); |
3037 | 0 | } |
3038 | | |
3039 | 0 | void CreateCDCStreamResponsePB::CopyFrom(const CreateCDCStreamResponsePB& from) { |
3040 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateCDCStreamResponsePB) |
3041 | 0 | if (&from == this) return; |
3042 | 0 | Clear(); |
3043 | 0 | MergeFrom(from); |
3044 | 0 | } |
3045 | | |
3046 | 11.0k | bool CreateCDCStreamResponsePB::IsInitialized() const { |
3047 | 11.0k | if (has_error()) { |
3048 | 2 | if (!this->error_->IsInitialized()) return false0 ; |
3049 | 2 | } |
3050 | 11.0k | return true; |
3051 | 11.0k | } |
3052 | | |
3053 | 0 | void CreateCDCStreamResponsePB::Swap(CreateCDCStreamResponsePB* other) { |
3054 | 0 | if (other == this) return; |
3055 | 0 | InternalSwap(other); |
3056 | 0 | } |
3057 | 0 | void CreateCDCStreamResponsePB::InternalSwap(CreateCDCStreamResponsePB* other) { |
3058 | 0 | using std::swap; |
3059 | 0 | stream_id_.Swap(&other->stream_id_); |
3060 | 0 | swap(error_, other->error_); |
3061 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3062 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3063 | 0 | swap(_cached_size_, other->_cached_size_); |
3064 | 0 | } |
3065 | | |
3066 | 2 | ::google::protobuf::Metadata CreateCDCStreamResponsePB::GetMetadata() const { |
3067 | 2 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3068 | 2 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
3069 | 2 | } |
3070 | | |
3071 | | |
3072 | | // =================================================================== |
3073 | | |
3074 | 26.8k | void DeleteCDCStreamRequestPB::InitAsDefaultInstance() { |
3075 | 26.8k | } |
3076 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3077 | | const int DeleteCDCStreamRequestPB::kStreamIdFieldNumber; |
3078 | | const int DeleteCDCStreamRequestPB::kIgnoreErrorsFieldNumber; |
3079 | | const int DeleteCDCStreamRequestPB::kForceDeleteFieldNumber; |
3080 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3081 | | |
3082 | | DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB() |
3083 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3084 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3085 | 3 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteCDCStreamRequestPB(); |
3086 | 3 | } |
3087 | 26.8k | SharedCtor(); |
3088 | | // @@protoc_insertion_point(constructor:yb.master.DeleteCDCStreamRequestPB) |
3089 | 26.8k | } |
3090 | | DeleteCDCStreamRequestPB::DeleteCDCStreamRequestPB(const DeleteCDCStreamRequestPB& from) |
3091 | | : ::google::protobuf::Message(), |
3092 | | _internal_metadata_(NULL), |
3093 | | _has_bits_(from._has_bits_), |
3094 | | _cached_size_(0), |
3095 | 0 | stream_id_(from.stream_id_) { |
3096 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3097 | 0 | ::memcpy(&ignore_errors_, &from.ignore_errors_, |
3098 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&force_delete_) - |
3099 | 0 | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3100 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteCDCStreamRequestPB) |
3101 | 0 | } |
3102 | | |
3103 | 26.8k | void DeleteCDCStreamRequestPB::SharedCtor() { |
3104 | 26.8k | _cached_size_ = 0; |
3105 | 26.8k | ::memset(&ignore_errors_, 0, static_cast<size_t>( |
3106 | 26.8k | reinterpret_cast<char*>(&force_delete_) - |
3107 | 26.8k | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3108 | 26.8k | } |
3109 | | |
3110 | 3 | DeleteCDCStreamRequestPB::~DeleteCDCStreamRequestPB() { |
3111 | | // @@protoc_insertion_point(destructor:yb.master.DeleteCDCStreamRequestPB) |
3112 | 3 | SharedDtor(); |
3113 | 3 | } |
3114 | | |
3115 | 3 | void DeleteCDCStreamRequestPB::SharedDtor() { |
3116 | 3 | } |
3117 | | |
3118 | 0 | void DeleteCDCStreamRequestPB::SetCachedSize(int size) const { |
3119 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3120 | 0 | _cached_size_ = size; |
3121 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3122 | 0 | } |
3123 | 0 | const ::google::protobuf::Descriptor* DeleteCDCStreamRequestPB::descriptor() { |
3124 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3125 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3126 | 0 | } |
3127 | | |
3128 | 0 | const DeleteCDCStreamRequestPB& DeleteCDCStreamRequestPB::default_instance() { |
3129 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteCDCStreamRequestPB(); |
3130 | 0 | return *internal_default_instance(); |
3131 | 0 | } |
3132 | | |
3133 | 0 | DeleteCDCStreamRequestPB* DeleteCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
3134 | 0 | DeleteCDCStreamRequestPB* n = new DeleteCDCStreamRequestPB; |
3135 | 0 | if (arena != NULL) { |
3136 | 0 | arena->Own(n); |
3137 | 0 | } |
3138 | 0 | return n; |
3139 | 0 | } |
3140 | | |
3141 | 2 | void DeleteCDCStreamRequestPB::Clear() { |
3142 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteCDCStreamRequestPB) |
3143 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
3144 | | // Prevent compiler warnings about cached_has_bits being unused |
3145 | 2 | (void) cached_has_bits; |
3146 | | |
3147 | 2 | stream_id_.Clear(); |
3148 | 2 | ::memset(&ignore_errors_, 0, static_cast<size_t>( |
3149 | 2 | reinterpret_cast<char*>(&force_delete_) - |
3150 | 2 | reinterpret_cast<char*>(&ignore_errors_)) + sizeof(force_delete_)); |
3151 | 2 | _has_bits_.Clear(); |
3152 | 2 | _internal_metadata_.Clear(); |
3153 | 2 | } |
3154 | | |
3155 | | bool DeleteCDCStreamRequestPB::MergePartialFromCodedStream( |
3156 | 2 | ::google::protobuf::io::CodedInputStream* input) { |
3157 | 2 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3158 | 2 | ::google::protobuf::uint32 tag; |
3159 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteCDCStreamRequestPB) |
3160 | 4 | for (;;) { |
3161 | 4 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3162 | 4 | tag = p.first; |
3163 | 4 | if (!p.second) goto handle_unusual2 ; |
3164 | 2 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3165 | | // repeated bytes stream_id = 1; |
3166 | 2 | case 1: { |
3167 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3168 | 2 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3169 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3170 | 2 | input, this->add_stream_id())); |
3171 | 2 | } else { |
3172 | 0 | goto handle_unusual; |
3173 | 0 | } |
3174 | 2 | break; |
3175 | 2 | } |
3176 | | |
3177 | | // optional bool ignore_errors = 2 [default = false]; |
3178 | 2 | case 2: { |
3179 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3180 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3181 | 0 | set_has_ignore_errors(); |
3182 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3183 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3184 | 0 | input, &ignore_errors_))); |
3185 | 0 | } else { |
3186 | 0 | goto handle_unusual; |
3187 | 0 | } |
3188 | 0 | break; |
3189 | 0 | } |
3190 | | |
3191 | | // optional bool force_delete = 3 [default = false]; |
3192 | 0 | case 3: { |
3193 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3194 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
3195 | 0 | set_has_force_delete(); |
3196 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3197 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
3198 | 0 | input, &force_delete_))); |
3199 | 0 | } else { |
3200 | 0 | goto handle_unusual; |
3201 | 0 | } |
3202 | 0 | break; |
3203 | 0 | } |
3204 | | |
3205 | 0 | default: { |
3206 | 2 | handle_unusual: |
3207 | 2 | if (tag == 0) { |
3208 | 2 | goto success; |
3209 | 2 | } |
3210 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3211 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3212 | 0 | break; |
3213 | 0 | } |
3214 | 2 | } |
3215 | 2 | } |
3216 | 2 | success: |
3217 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteCDCStreamRequestPB) |
3218 | 2 | return true; |
3219 | 0 | failure: |
3220 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteCDCStreamRequestPB) |
3221 | 0 | return false; |
3222 | 2 | #undef DO_ |
3223 | 2 | } |
3224 | | |
3225 | | void DeleteCDCStreamRequestPB::SerializeWithCachedSizes( |
3226 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3227 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteCDCStreamRequestPB) |
3228 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3229 | 0 | (void) cached_has_bits; |
3230 | | |
3231 | | // repeated bytes stream_id = 1; |
3232 | 0 | for (int i = 0, n = this->stream_id_size(); i < n; i++) { |
3233 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
3234 | 0 | 1, this->stream_id(i), output); |
3235 | 0 | } |
3236 | |
|
3237 | 0 | cached_has_bits = _has_bits_[0]; |
3238 | | // optional bool ignore_errors = 2 [default = false]; |
3239 | 0 | if (cached_has_bits & 0x00000001u) { |
3240 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ignore_errors(), output); |
3241 | 0 | } |
3242 | | |
3243 | | // optional bool force_delete = 3 [default = false]; |
3244 | 0 | if (cached_has_bits & 0x00000002u) { |
3245 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->force_delete(), output); |
3246 | 0 | } |
3247 | |
|
3248 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3249 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3250 | 0 | _internal_metadata_.unknown_fields(), output); |
3251 | 0 | } |
3252 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteCDCStreamRequestPB) |
3253 | 0 | } |
3254 | | |
3255 | | ::google::protobuf::uint8* DeleteCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
3256 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
3257 | 1 | (void)deterministic; // Unused |
3258 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteCDCStreamRequestPB) |
3259 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
3260 | 1 | (void) cached_has_bits; |
3261 | | |
3262 | | // repeated bytes stream_id = 1; |
3263 | 2 | for (int i = 0, n = this->stream_id_size(); i < n; i++1 ) { |
3264 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
3265 | 1 | WriteBytesToArray(1, this->stream_id(i), target); |
3266 | 1 | } |
3267 | | |
3268 | 1 | cached_has_bits = _has_bits_[0]; |
3269 | | // optional bool ignore_errors = 2 [default = false]; |
3270 | 1 | if (cached_has_bits & 0x00000001u) { |
3271 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ignore_errors(), target); |
3272 | 0 | } |
3273 | | |
3274 | | // optional bool force_delete = 3 [default = false]; |
3275 | 1 | if (cached_has_bits & 0x00000002u) { |
3276 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->force_delete(), target); |
3277 | 0 | } |
3278 | | |
3279 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
3280 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3281 | 0 | _internal_metadata_.unknown_fields(), target); |
3282 | 0 | } |
3283 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteCDCStreamRequestPB) |
3284 | 1 | return target; |
3285 | 1 | } |
3286 | | |
3287 | 2 | size_t DeleteCDCStreamRequestPB::ByteSizeLong() const { |
3288 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteCDCStreamRequestPB) |
3289 | 2 | size_t total_size = 0; |
3290 | | |
3291 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
3292 | 0 | total_size += |
3293 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3294 | 0 | _internal_metadata_.unknown_fields()); |
3295 | 0 | } |
3296 | | // repeated bytes stream_id = 1; |
3297 | 2 | total_size += 1 * |
3298 | 2 | ::google::protobuf::internal::FromIntSize(this->stream_id_size()); |
3299 | 4 | for (int i = 0, n = this->stream_id_size(); i < n; i++2 ) { |
3300 | 2 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3301 | 2 | this->stream_id(i)); |
3302 | 2 | } |
3303 | | |
3304 | 2 | if (_has_bits_[0 / 32] & 3u) { |
3305 | | // optional bool ignore_errors = 2 [default = false]; |
3306 | 0 | if (has_ignore_errors()) { |
3307 | 0 | total_size += 1 + 1; |
3308 | 0 | } |
3309 | | |
3310 | | // optional bool force_delete = 3 [default = false]; |
3311 | 0 | if (has_force_delete()) { |
3312 | 0 | total_size += 1 + 1; |
3313 | 0 | } |
3314 | |
|
3315 | 0 | } |
3316 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3317 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3318 | 2 | _cached_size_ = cached_size; |
3319 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3320 | 2 | return total_size; |
3321 | 2 | } |
3322 | | |
3323 | 0 | void DeleteCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3324 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteCDCStreamRequestPB) |
3325 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3326 | 0 | const DeleteCDCStreamRequestPB* source = |
3327 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamRequestPB>( |
3328 | 0 | &from); |
3329 | 0 | if (source == NULL) { |
3330 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteCDCStreamRequestPB) |
3331 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3332 | 0 | } else { |
3333 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteCDCStreamRequestPB) |
3334 | 0 | MergeFrom(*source); |
3335 | 0 | } |
3336 | 0 | } |
3337 | | |
3338 | 0 | void DeleteCDCStreamRequestPB::MergeFrom(const DeleteCDCStreamRequestPB& from) { |
3339 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteCDCStreamRequestPB) |
3340 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3341 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3342 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3343 | 0 | (void) cached_has_bits; |
3344 | |
|
3345 | 0 | stream_id_.MergeFrom(from.stream_id_); |
3346 | 0 | cached_has_bits = from._has_bits_[0]; |
3347 | 0 | if (cached_has_bits & 3u) { |
3348 | 0 | if (cached_has_bits & 0x00000001u) { |
3349 | 0 | ignore_errors_ = from.ignore_errors_; |
3350 | 0 | } |
3351 | 0 | if (cached_has_bits & 0x00000002u) { |
3352 | 0 | force_delete_ = from.force_delete_; |
3353 | 0 | } |
3354 | 0 | _has_bits_[0] |= cached_has_bits; |
3355 | 0 | } |
3356 | 0 | } |
3357 | | |
3358 | 0 | void DeleteCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3359 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteCDCStreamRequestPB) |
3360 | 0 | if (&from == this) return; |
3361 | 0 | Clear(); |
3362 | 0 | MergeFrom(from); |
3363 | 0 | } |
3364 | | |
3365 | 0 | void DeleteCDCStreamRequestPB::CopyFrom(const DeleteCDCStreamRequestPB& from) { |
3366 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteCDCStreamRequestPB) |
3367 | 0 | if (&from == this) return; |
3368 | 0 | Clear(); |
3369 | 0 | MergeFrom(from); |
3370 | 0 | } |
3371 | | |
3372 | 3 | bool DeleteCDCStreamRequestPB::IsInitialized() const { |
3373 | 3 | return true; |
3374 | 3 | } |
3375 | | |
3376 | 0 | void DeleteCDCStreamRequestPB::Swap(DeleteCDCStreamRequestPB* other) { |
3377 | 0 | if (other == this) return; |
3378 | 0 | InternalSwap(other); |
3379 | 0 | } |
3380 | 0 | void DeleteCDCStreamRequestPB::InternalSwap(DeleteCDCStreamRequestPB* other) { |
3381 | 0 | using std::swap; |
3382 | 0 | stream_id_.InternalSwap(&other->stream_id_); |
3383 | 0 | swap(ignore_errors_, other->ignore_errors_); |
3384 | 0 | swap(force_delete_, other->force_delete_); |
3385 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3386 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3387 | 0 | swap(_cached_size_, other->_cached_size_); |
3388 | 0 | } |
3389 | | |
3390 | 6 | ::google::protobuf::Metadata DeleteCDCStreamRequestPB::GetMetadata() const { |
3391 | 6 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3392 | 6 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
3393 | 6 | } |
3394 | | |
3395 | | |
3396 | | // =================================================================== |
3397 | | |
3398 | 26.8k | void DeleteCDCStreamResponsePB::InitAsDefaultInstance() { |
3399 | 26.8k | ::yb::master::_DeleteCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
3400 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
3401 | 26.8k | } |
3402 | 0 | void DeleteCDCStreamResponsePB::clear_error() { |
3403 | 0 | if (error_ != NULL) error_->Clear(); |
3404 | 0 | clear_has_error(); |
3405 | 0 | } |
3406 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3407 | | const int DeleteCDCStreamResponsePB::kErrorFieldNumber; |
3408 | | const int DeleteCDCStreamResponsePB::kNotFoundStreamIdsFieldNumber; |
3409 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3410 | | |
3411 | | DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB() |
3412 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3413 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3414 | 3 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteCDCStreamResponsePB(); |
3415 | 3 | } |
3416 | 26.8k | SharedCtor(); |
3417 | | // @@protoc_insertion_point(constructor:yb.master.DeleteCDCStreamResponsePB) |
3418 | 26.8k | } |
3419 | | DeleteCDCStreamResponsePB::DeleteCDCStreamResponsePB(const DeleteCDCStreamResponsePB& from) |
3420 | | : ::google::protobuf::Message(), |
3421 | | _internal_metadata_(NULL), |
3422 | | _has_bits_(from._has_bits_), |
3423 | | _cached_size_(0), |
3424 | 0 | not_found_stream_ids_(from.not_found_stream_ids_) { |
3425 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3426 | 0 | if (from.has_error()) { |
3427 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
3428 | 0 | } else { |
3429 | 0 | error_ = NULL; |
3430 | 0 | } |
3431 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteCDCStreamResponsePB) |
3432 | 0 | } |
3433 | | |
3434 | 26.8k | void DeleteCDCStreamResponsePB::SharedCtor() { |
3435 | 26.8k | _cached_size_ = 0; |
3436 | 26.8k | error_ = NULL; |
3437 | 26.8k | } |
3438 | | |
3439 | 3 | DeleteCDCStreamResponsePB::~DeleteCDCStreamResponsePB() { |
3440 | | // @@protoc_insertion_point(destructor:yb.master.DeleteCDCStreamResponsePB) |
3441 | 3 | SharedDtor(); |
3442 | 3 | } |
3443 | | |
3444 | 3 | void DeleteCDCStreamResponsePB::SharedDtor() { |
3445 | 3 | if (this != internal_default_instance()) delete error_; |
3446 | 3 | } |
3447 | | |
3448 | 0 | void DeleteCDCStreamResponsePB::SetCachedSize(int size) const { |
3449 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3450 | 0 | _cached_size_ = size; |
3451 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3452 | 0 | } |
3453 | 0 | const ::google::protobuf::Descriptor* DeleteCDCStreamResponsePB::descriptor() { |
3454 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3455 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3456 | 0 | } |
3457 | | |
3458 | 0 | const DeleteCDCStreamResponsePB& DeleteCDCStreamResponsePB::default_instance() { |
3459 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteCDCStreamResponsePB(); |
3460 | 0 | return *internal_default_instance(); |
3461 | 0 | } |
3462 | | |
3463 | 0 | DeleteCDCStreamResponsePB* DeleteCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
3464 | 0 | DeleteCDCStreamResponsePB* n = new DeleteCDCStreamResponsePB; |
3465 | 0 | if (arena != NULL) { |
3466 | 0 | arena->Own(n); |
3467 | 0 | } |
3468 | 0 | return n; |
3469 | 0 | } |
3470 | | |
3471 | 1 | void DeleteCDCStreamResponsePB::Clear() { |
3472 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteCDCStreamResponsePB) |
3473 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
3474 | | // Prevent compiler warnings about cached_has_bits being unused |
3475 | 1 | (void) cached_has_bits; |
3476 | | |
3477 | 1 | not_found_stream_ids_.Clear(); |
3478 | 1 | cached_has_bits = _has_bits_[0]; |
3479 | 1 | if (cached_has_bits & 0x00000001u) { |
3480 | 0 | GOOGLE_DCHECK(error_ != NULL); |
3481 | 0 | error_->Clear(); |
3482 | 0 | } |
3483 | 1 | _has_bits_.Clear(); |
3484 | 1 | _internal_metadata_.Clear(); |
3485 | 1 | } |
3486 | | |
3487 | | bool DeleteCDCStreamResponsePB::MergePartialFromCodedStream( |
3488 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
3489 | 1 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
3490 | 1 | ::google::protobuf::uint32 tag; |
3491 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteCDCStreamResponsePB) |
3492 | 1 | for (;;) { |
3493 | 1 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3494 | 1 | tag = p.first; |
3495 | 1 | if (!p.second) goto handle_unusual; |
3496 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3497 | | // optional .yb.master.MasterErrorPB error = 1; |
3498 | 0 | case 1: { |
3499 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3500 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3501 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3502 | 0 | input, mutable_error())); |
3503 | 0 | } else { |
3504 | 0 | goto handle_unusual; |
3505 | 0 | } |
3506 | 0 | break; |
3507 | 0 | } |
3508 | | |
3509 | | // repeated bytes not_found_stream_ids = 2; |
3510 | 0 | case 2: { |
3511 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3512 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3513 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3514 | 0 | input, this->add_not_found_stream_ids())); |
3515 | 0 | } else { |
3516 | 0 | goto handle_unusual; |
3517 | 0 | } |
3518 | 0 | break; |
3519 | 0 | } |
3520 | | |
3521 | 0 | default: { |
3522 | 1 | handle_unusual: |
3523 | 1 | if (tag == 0) { |
3524 | 1 | goto success; |
3525 | 1 | } |
3526 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3527 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3528 | 0 | break; |
3529 | 0 | } |
3530 | 0 | } |
3531 | 0 | } |
3532 | 1 | success: |
3533 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteCDCStreamResponsePB) |
3534 | 1 | return true; |
3535 | 0 | failure: |
3536 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteCDCStreamResponsePB) |
3537 | 0 | return false; |
3538 | 1 | #undef DO_ |
3539 | 1 | } |
3540 | | |
3541 | | void DeleteCDCStreamResponsePB::SerializeWithCachedSizes( |
3542 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3543 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteCDCStreamResponsePB) |
3544 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3545 | 0 | (void) cached_has_bits; |
3546 | |
|
3547 | 0 | cached_has_bits = _has_bits_[0]; |
3548 | | // optional .yb.master.MasterErrorPB error = 1; |
3549 | 0 | if (cached_has_bits & 0x00000001u) { |
3550 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3551 | 0 | 1, *this->error_, output); |
3552 | 0 | } |
3553 | | |
3554 | | // repeated bytes not_found_stream_ids = 2; |
3555 | 0 | for (int i = 0, n = this->not_found_stream_ids_size(); i < n; i++) { |
3556 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
3557 | 0 | 2, this->not_found_stream_ids(i), output); |
3558 | 0 | } |
3559 | |
|
3560 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3561 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3562 | 0 | _internal_metadata_.unknown_fields(), output); |
3563 | 0 | } |
3564 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteCDCStreamResponsePB) |
3565 | 0 | } |
3566 | | |
3567 | | ::google::protobuf::uint8* DeleteCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
3568 | 2 | bool deterministic, ::google::protobuf::uint8* target) const { |
3569 | 2 | (void)deterministic; // Unused |
3570 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteCDCStreamResponsePB) |
3571 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
3572 | 2 | (void) cached_has_bits; |
3573 | | |
3574 | 2 | cached_has_bits = _has_bits_[0]; |
3575 | | // optional .yb.master.MasterErrorPB error = 1; |
3576 | 2 | if (cached_has_bits & 0x00000001u) { |
3577 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3578 | 0 | InternalWriteMessageToArray( |
3579 | 0 | 1, *this->error_, deterministic, target); |
3580 | 0 | } |
3581 | | |
3582 | | // repeated bytes not_found_stream_ids = 2; |
3583 | 2 | for (int i = 0, n = this->not_found_stream_ids_size(); i < n; i++0 ) { |
3584 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3585 | 0 | WriteBytesToArray(2, this->not_found_stream_ids(i), target); |
3586 | 0 | } |
3587 | | |
3588 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
3589 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3590 | 0 | _internal_metadata_.unknown_fields(), target); |
3591 | 0 | } |
3592 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteCDCStreamResponsePB) |
3593 | 2 | return target; |
3594 | 2 | } |
3595 | | |
3596 | 4 | size_t DeleteCDCStreamResponsePB::ByteSizeLong() const { |
3597 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteCDCStreamResponsePB) |
3598 | 4 | size_t total_size = 0; |
3599 | | |
3600 | 4 | if (_internal_metadata_.have_unknown_fields()) { |
3601 | 0 | total_size += |
3602 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3603 | 0 | _internal_metadata_.unknown_fields()); |
3604 | 0 | } |
3605 | | // repeated bytes not_found_stream_ids = 2; |
3606 | 4 | total_size += 1 * |
3607 | 4 | ::google::protobuf::internal::FromIntSize(this->not_found_stream_ids_size()); |
3608 | 4 | for (int i = 0, n = this->not_found_stream_ids_size(); i < n; i++0 ) { |
3609 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3610 | 0 | this->not_found_stream_ids(i)); |
3611 | 0 | } |
3612 | | |
3613 | | // optional .yb.master.MasterErrorPB error = 1; |
3614 | 4 | if (has_error()) { |
3615 | 0 | total_size += 1 + |
3616 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3617 | 0 | *this->error_); |
3618 | 0 | } |
3619 | | |
3620 | 4 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3621 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3622 | 4 | _cached_size_ = cached_size; |
3623 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3624 | 4 | return total_size; |
3625 | 4 | } |
3626 | | |
3627 | 0 | void DeleteCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
3628 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteCDCStreamResponsePB) |
3629 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3630 | 0 | const DeleteCDCStreamResponsePB* source = |
3631 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteCDCStreamResponsePB>( |
3632 | 0 | &from); |
3633 | 0 | if (source == NULL) { |
3634 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteCDCStreamResponsePB) |
3635 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3636 | 0 | } else { |
3637 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteCDCStreamResponsePB) |
3638 | 0 | MergeFrom(*source); |
3639 | 0 | } |
3640 | 0 | } |
3641 | | |
3642 | 0 | void DeleteCDCStreamResponsePB::MergeFrom(const DeleteCDCStreamResponsePB& from) { |
3643 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteCDCStreamResponsePB) |
3644 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3645 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3646 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3647 | 0 | (void) cached_has_bits; |
3648 | |
|
3649 | 0 | not_found_stream_ids_.MergeFrom(from.not_found_stream_ids_); |
3650 | 0 | if (from.has_error()) { |
3651 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
3652 | 0 | } |
3653 | 0 | } |
3654 | | |
3655 | 0 | void DeleteCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
3656 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteCDCStreamResponsePB) |
3657 | 0 | if (&from == this) return; |
3658 | 0 | Clear(); |
3659 | 0 | MergeFrom(from); |
3660 | 0 | } |
3661 | | |
3662 | 0 | void DeleteCDCStreamResponsePB::CopyFrom(const DeleteCDCStreamResponsePB& from) { |
3663 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteCDCStreamResponsePB) |
3664 | 0 | if (&from == this) return; |
3665 | 0 | Clear(); |
3666 | 0 | MergeFrom(from); |
3667 | 0 | } |
3668 | | |
3669 | 3 | bool DeleteCDCStreamResponsePB::IsInitialized() const { |
3670 | 3 | if (has_error()) { |
3671 | 0 | if (!this->error_->IsInitialized()) return false; |
3672 | 0 | } |
3673 | 3 | return true; |
3674 | 3 | } |
3675 | | |
3676 | 0 | void DeleteCDCStreamResponsePB::Swap(DeleteCDCStreamResponsePB* other) { |
3677 | 0 | if (other == this) return; |
3678 | 0 | InternalSwap(other); |
3679 | 0 | } |
3680 | 0 | void DeleteCDCStreamResponsePB::InternalSwap(DeleteCDCStreamResponsePB* other) { |
3681 | 0 | using std::swap; |
3682 | 0 | not_found_stream_ids_.InternalSwap(&other->not_found_stream_ids_); |
3683 | 0 | swap(error_, other->error_); |
3684 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3685 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3686 | 0 | swap(_cached_size_, other->_cached_size_); |
3687 | 0 | } |
3688 | | |
3689 | 0 | ::google::protobuf::Metadata DeleteCDCStreamResponsePB::GetMetadata() const { |
3690 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3691 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
3692 | 0 | } |
3693 | | |
3694 | | |
3695 | | // =================================================================== |
3696 | | |
3697 | 26.8k | void ListCDCStreamsRequestPB::InitAsDefaultInstance() { |
3698 | 26.8k | } |
3699 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3700 | | const int ListCDCStreamsRequestPB::kTableIdFieldNumber; |
3701 | | const int ListCDCStreamsRequestPB::kNamespaceIdFieldNumber; |
3702 | | const int ListCDCStreamsRequestPB::kIdTypeFieldNumber; |
3703 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3704 | | |
3705 | | ListCDCStreamsRequestPB::ListCDCStreamsRequestPB() |
3706 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3707 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3708 | 2 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsListCDCStreamsRequestPB(); |
3709 | 2 | } |
3710 | 26.8k | SharedCtor(); |
3711 | | // @@protoc_insertion_point(constructor:yb.master.ListCDCStreamsRequestPB) |
3712 | 26.8k | } |
3713 | | ListCDCStreamsRequestPB::ListCDCStreamsRequestPB(const ListCDCStreamsRequestPB& from) |
3714 | | : ::google::protobuf::Message(), |
3715 | | _internal_metadata_(NULL), |
3716 | | _has_bits_(from._has_bits_), |
3717 | 0 | _cached_size_(0) { |
3718 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3719 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3720 | 0 | if (from.has_table_id()) { |
3721 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
3722 | 0 | } |
3723 | 0 | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3724 | 0 | if (from.has_namespace_id()) { |
3725 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
3726 | 0 | } |
3727 | 0 | id_type_ = from.id_type_; |
3728 | | // @@protoc_insertion_point(copy_constructor:yb.master.ListCDCStreamsRequestPB) |
3729 | 0 | } |
3730 | | |
3731 | 26.8k | void ListCDCStreamsRequestPB::SharedCtor() { |
3732 | 26.8k | _cached_size_ = 0; |
3733 | 26.8k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3734 | 26.8k | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3735 | 26.8k | id_type_ = 1; |
3736 | 26.8k | } |
3737 | | |
3738 | 2 | ListCDCStreamsRequestPB::~ListCDCStreamsRequestPB() { |
3739 | | // @@protoc_insertion_point(destructor:yb.master.ListCDCStreamsRequestPB) |
3740 | 2 | SharedDtor(); |
3741 | 2 | } |
3742 | | |
3743 | 2 | void ListCDCStreamsRequestPB::SharedDtor() { |
3744 | 2 | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3745 | 2 | namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3746 | 2 | } |
3747 | | |
3748 | 0 | void ListCDCStreamsRequestPB::SetCachedSize(int size) const { |
3749 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3750 | 0 | _cached_size_ = size; |
3751 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3752 | 0 | } |
3753 | 0 | const ::google::protobuf::Descriptor* ListCDCStreamsRequestPB::descriptor() { |
3754 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
3755 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3756 | 0 | } |
3757 | | |
3758 | 0 | const ListCDCStreamsRequestPB& ListCDCStreamsRequestPB::default_instance() { |
3759 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsListCDCStreamsRequestPB(); |
3760 | 0 | return *internal_default_instance(); |
3761 | 0 | } |
3762 | | |
3763 | 0 | ListCDCStreamsRequestPB* ListCDCStreamsRequestPB::New(::google::protobuf::Arena* arena) const { |
3764 | 0 | ListCDCStreamsRequestPB* n = new ListCDCStreamsRequestPB; |
3765 | 0 | if (arena != NULL) { |
3766 | 0 | arena->Own(n); |
3767 | 0 | } |
3768 | 0 | return n; |
3769 | 0 | } |
3770 | | |
3771 | 1 | void ListCDCStreamsRequestPB::Clear() { |
3772 | | // @@protoc_insertion_point(message_clear_start:yb.master.ListCDCStreamsRequestPB) |
3773 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
3774 | | // Prevent compiler warnings about cached_has_bits being unused |
3775 | 1 | (void) cached_has_bits; |
3776 | | |
3777 | 1 | cached_has_bits = _has_bits_[0]; |
3778 | 1 | if (cached_has_bits & 7u) { |
3779 | 0 | if (cached_has_bits & 0x00000001u) { |
3780 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3781 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
3782 | 0 | } |
3783 | 0 | if (cached_has_bits & 0x00000002u) { |
3784 | 0 | GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3785 | 0 | (*namespace_id_.UnsafeRawStringPointer())->clear(); |
3786 | 0 | } |
3787 | 0 | id_type_ = 1; |
3788 | 0 | } |
3789 | 1 | _has_bits_.Clear(); |
3790 | 1 | _internal_metadata_.Clear(); |
3791 | 1 | } |
3792 | | |
3793 | | bool ListCDCStreamsRequestPB::MergePartialFromCodedStream( |
3794 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
3795 | 1 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
3796 | 1 | ::google::protobuf::uint32 tag; |
3797 | | // @@protoc_insertion_point(parse_start:yb.master.ListCDCStreamsRequestPB) |
3798 | 1 | for (;;) { |
3799 | 1 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3800 | 1 | tag = p.first; |
3801 | 1 | if (!p.second) goto handle_unusual; |
3802 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3803 | | // optional string table_id = 1; |
3804 | 0 | case 1: { |
3805 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3806 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3807 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3808 | 0 | input, this->mutable_table_id())); |
3809 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3810 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
3811 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3812 | 0 | "yb.master.ListCDCStreamsRequestPB.table_id"); |
3813 | 0 | } else { |
3814 | 0 | goto handle_unusual; |
3815 | 0 | } |
3816 | 0 | break; |
3817 | 0 | } |
3818 | | |
3819 | | // optional string namespace_id = 2; |
3820 | 0 | case 2: { |
3821 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3822 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3823 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3824 | 0 | input, this->mutable_namespace_id())); |
3825 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3826 | 0 | this->namespace_id().data(), static_cast<int>(this->namespace_id().length()), |
3827 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3828 | 0 | "yb.master.ListCDCStreamsRequestPB.namespace_id"); |
3829 | 0 | } else { |
3830 | 0 | goto handle_unusual; |
3831 | 0 | } |
3832 | 0 | break; |
3833 | 0 | } |
3834 | | |
3835 | | // optional .yb.master.IdTypePB id_type = 3 [default = TABLE_ID]; |
3836 | 0 | case 3: { |
3837 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3838 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
3839 | 0 | int value; |
3840 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3841 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
3842 | 0 | input, &value))); |
3843 | 0 | if (::yb::master::IdTypePB_IsValid(value)) { |
3844 | 0 | set_id_type(static_cast< ::yb::master::IdTypePB >(value)); |
3845 | 0 | } else { |
3846 | 0 | mutable_unknown_fields()->AddVarint( |
3847 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
3848 | 0 | } |
3849 | 0 | } else { |
3850 | 0 | goto handle_unusual; |
3851 | 0 | } |
3852 | 0 | break; |
3853 | 0 | } |
3854 | | |
3855 | 0 | default: { |
3856 | 1 | handle_unusual: |
3857 | 1 | if (tag == 0) { |
3858 | 1 | goto success; |
3859 | 1 | } |
3860 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3861 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3862 | 0 | break; |
3863 | 0 | } |
3864 | 0 | } |
3865 | 0 | } |
3866 | 1 | success: |
3867 | | // @@protoc_insertion_point(parse_success:yb.master.ListCDCStreamsRequestPB) |
3868 | 1 | return true; |
3869 | 0 | failure: |
3870 | | // @@protoc_insertion_point(parse_failure:yb.master.ListCDCStreamsRequestPB) |
3871 | 0 | return false; |
3872 | 1 | #undef DO_ |
3873 | 1 | } |
3874 | | |
3875 | | void ListCDCStreamsRequestPB::SerializeWithCachedSizes( |
3876 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3877 | | // @@protoc_insertion_point(serialize_start:yb.master.ListCDCStreamsRequestPB) |
3878 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3879 | 0 | (void) cached_has_bits; |
3880 | |
|
3881 | 0 | cached_has_bits = _has_bits_[0]; |
3882 | | // optional string table_id = 1; |
3883 | 0 | if (cached_has_bits & 0x00000001u) { |
3884 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3885 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
3886 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3887 | 0 | "yb.master.ListCDCStreamsRequestPB.table_id"); |
3888 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3889 | 0 | 1, this->table_id(), output); |
3890 | 0 | } |
3891 | | |
3892 | | // optional string namespace_id = 2; |
3893 | 0 | if (cached_has_bits & 0x00000002u) { |
3894 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3895 | 0 | this->namespace_id().data(), static_cast<int>(this->namespace_id().length()), |
3896 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3897 | 0 | "yb.master.ListCDCStreamsRequestPB.namespace_id"); |
3898 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3899 | 0 | 2, this->namespace_id(), output); |
3900 | 0 | } |
3901 | | |
3902 | | // optional .yb.master.IdTypePB id_type = 3 [default = TABLE_ID]; |
3903 | 0 | if (cached_has_bits & 0x00000004u) { |
3904 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
3905 | 0 | 3, this->id_type(), output); |
3906 | 0 | } |
3907 | |
|
3908 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3909 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3910 | 0 | _internal_metadata_.unknown_fields(), output); |
3911 | 0 | } |
3912 | | // @@protoc_insertion_point(serialize_end:yb.master.ListCDCStreamsRequestPB) |
3913 | 0 | } |
3914 | | |
3915 | | ::google::protobuf::uint8* ListCDCStreamsRequestPB::InternalSerializeWithCachedSizesToArray( |
3916 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
3917 | 1 | (void)deterministic; // Unused |
3918 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ListCDCStreamsRequestPB) |
3919 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
3920 | 1 | (void) cached_has_bits; |
3921 | | |
3922 | 1 | cached_has_bits = _has_bits_[0]; |
3923 | | // optional string table_id = 1; |
3924 | 1 | if (cached_has_bits & 0x00000001u) { |
3925 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3926 | 0 | this->table_id().data(), static_cast<int>(this->table_id().length()), |
3927 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3928 | 0 | "yb.master.ListCDCStreamsRequestPB.table_id"); |
3929 | 0 | target = |
3930 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3931 | 0 | 1, this->table_id(), target); |
3932 | 0 | } |
3933 | | |
3934 | | // optional string namespace_id = 2; |
3935 | 1 | if (cached_has_bits & 0x00000002u) { |
3936 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3937 | 0 | this->namespace_id().data(), static_cast<int>(this->namespace_id().length()), |
3938 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3939 | 0 | "yb.master.ListCDCStreamsRequestPB.namespace_id"); |
3940 | 0 | target = |
3941 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3942 | 0 | 2, this->namespace_id(), target); |
3943 | 0 | } |
3944 | | |
3945 | | // optional .yb.master.IdTypePB id_type = 3 [default = TABLE_ID]; |
3946 | 1 | if (cached_has_bits & 0x00000004u) { |
3947 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
3948 | 0 | 3, this->id_type(), target); |
3949 | 0 | } |
3950 | | |
3951 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
3952 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3953 | 0 | _internal_metadata_.unknown_fields(), target); |
3954 | 0 | } |
3955 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ListCDCStreamsRequestPB) |
3956 | 1 | return target; |
3957 | 1 | } |
3958 | | |
3959 | 2 | size_t ListCDCStreamsRequestPB::ByteSizeLong() const { |
3960 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ListCDCStreamsRequestPB) |
3961 | 2 | size_t total_size = 0; |
3962 | | |
3963 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
3964 | 0 | total_size += |
3965 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3966 | 0 | _internal_metadata_.unknown_fields()); |
3967 | 0 | } |
3968 | 2 | if (_has_bits_[0 / 32] & 7u) { |
3969 | | // optional string table_id = 1; |
3970 | 0 | if (has_table_id()) { |
3971 | 0 | total_size += 1 + |
3972 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3973 | 0 | this->table_id()); |
3974 | 0 | } |
3975 | | |
3976 | | // optional string namespace_id = 2; |
3977 | 0 | if (has_namespace_id()) { |
3978 | 0 | total_size += 1 + |
3979 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3980 | 0 | this->namespace_id()); |
3981 | 0 | } |
3982 | | |
3983 | | // optional .yb.master.IdTypePB id_type = 3 [default = TABLE_ID]; |
3984 | 0 | if (has_id_type()) { |
3985 | 0 | total_size += 1 + |
3986 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->id_type()); |
3987 | 0 | } |
3988 | |
|
3989 | 0 | } |
3990 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3991 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3992 | 2 | _cached_size_ = cached_size; |
3993 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3994 | 2 | return total_size; |
3995 | 2 | } |
3996 | | |
3997 | 0 | void ListCDCStreamsRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3998 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ListCDCStreamsRequestPB) |
3999 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4000 | 0 | const ListCDCStreamsRequestPB* source = |
4001 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListCDCStreamsRequestPB>( |
4002 | 0 | &from); |
4003 | 0 | if (source == NULL) { |
4004 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ListCDCStreamsRequestPB) |
4005 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4006 | 0 | } else { |
4007 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ListCDCStreamsRequestPB) |
4008 | 0 | MergeFrom(*source); |
4009 | 0 | } |
4010 | 0 | } |
4011 | | |
4012 | 0 | void ListCDCStreamsRequestPB::MergeFrom(const ListCDCStreamsRequestPB& from) { |
4013 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ListCDCStreamsRequestPB) |
4014 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4015 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4016 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4017 | 0 | (void) cached_has_bits; |
4018 | |
|
4019 | 0 | cached_has_bits = from._has_bits_[0]; |
4020 | 0 | if (cached_has_bits & 7u) { |
4021 | 0 | if (cached_has_bits & 0x00000001u) { |
4022 | 0 | set_has_table_id(); |
4023 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
4024 | 0 | } |
4025 | 0 | if (cached_has_bits & 0x00000002u) { |
4026 | 0 | set_has_namespace_id(); |
4027 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
4028 | 0 | } |
4029 | 0 | if (cached_has_bits & 0x00000004u) { |
4030 | 0 | id_type_ = from.id_type_; |
4031 | 0 | } |
4032 | 0 | _has_bits_[0] |= cached_has_bits; |
4033 | 0 | } |
4034 | 0 | } |
4035 | | |
4036 | 0 | void ListCDCStreamsRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4037 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ListCDCStreamsRequestPB) |
4038 | 0 | if (&from == this) return; |
4039 | 0 | Clear(); |
4040 | 0 | MergeFrom(from); |
4041 | 0 | } |
4042 | | |
4043 | 0 | void ListCDCStreamsRequestPB::CopyFrom(const ListCDCStreamsRequestPB& from) { |
4044 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ListCDCStreamsRequestPB) |
4045 | 0 | if (&from == this) return; |
4046 | 0 | Clear(); |
4047 | 0 | MergeFrom(from); |
4048 | 0 | } |
4049 | | |
4050 | 2 | bool ListCDCStreamsRequestPB::IsInitialized() const { |
4051 | 2 | return true; |
4052 | 2 | } |
4053 | | |
4054 | 0 | void ListCDCStreamsRequestPB::Swap(ListCDCStreamsRequestPB* other) { |
4055 | 0 | if (other == this) return; |
4056 | 0 | InternalSwap(other); |
4057 | 0 | } |
4058 | 0 | void ListCDCStreamsRequestPB::InternalSwap(ListCDCStreamsRequestPB* other) { |
4059 | 0 | using std::swap; |
4060 | 0 | table_id_.Swap(&other->table_id_); |
4061 | 0 | namespace_id_.Swap(&other->namespace_id_); |
4062 | 0 | swap(id_type_, other->id_type_); |
4063 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4064 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4065 | 0 | swap(_cached_size_, other->_cached_size_); |
4066 | 0 | } |
4067 | | |
4068 | 1 | ::google::protobuf::Metadata ListCDCStreamsRequestPB::GetMetadata() const { |
4069 | 1 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4070 | 1 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
4071 | 1 | } |
4072 | | |
4073 | | |
4074 | | // =================================================================== |
4075 | | |
4076 | 26.8k | void ListCDCStreamsResponsePB::InitAsDefaultInstance() { |
4077 | 26.8k | ::yb::master::_ListCDCStreamsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
4078 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
4079 | 26.8k | } |
4080 | 0 | void ListCDCStreamsResponsePB::clear_error() { |
4081 | 0 | if (error_ != NULL) error_->Clear(); |
4082 | 0 | clear_has_error(); |
4083 | 0 | } |
4084 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4085 | | const int ListCDCStreamsResponsePB::kErrorFieldNumber; |
4086 | | const int ListCDCStreamsResponsePB::kStreamsFieldNumber; |
4087 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4088 | | |
4089 | | ListCDCStreamsResponsePB::ListCDCStreamsResponsePB() |
4090 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4091 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4092 | 2 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsListCDCStreamsResponsePB(); |
4093 | 2 | } |
4094 | 26.8k | SharedCtor(); |
4095 | | // @@protoc_insertion_point(constructor:yb.master.ListCDCStreamsResponsePB) |
4096 | 26.8k | } |
4097 | | ListCDCStreamsResponsePB::ListCDCStreamsResponsePB(const ListCDCStreamsResponsePB& from) |
4098 | | : ::google::protobuf::Message(), |
4099 | | _internal_metadata_(NULL), |
4100 | | _has_bits_(from._has_bits_), |
4101 | | _cached_size_(0), |
4102 | 0 | streams_(from.streams_) { |
4103 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4104 | 0 | if (from.has_error()) { |
4105 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
4106 | 0 | } else { |
4107 | 0 | error_ = NULL; |
4108 | 0 | } |
4109 | | // @@protoc_insertion_point(copy_constructor:yb.master.ListCDCStreamsResponsePB) |
4110 | 0 | } |
4111 | | |
4112 | 26.8k | void ListCDCStreamsResponsePB::SharedCtor() { |
4113 | 26.8k | _cached_size_ = 0; |
4114 | 26.8k | error_ = NULL; |
4115 | 26.8k | } |
4116 | | |
4117 | 2 | ListCDCStreamsResponsePB::~ListCDCStreamsResponsePB() { |
4118 | | // @@protoc_insertion_point(destructor:yb.master.ListCDCStreamsResponsePB) |
4119 | 2 | SharedDtor(); |
4120 | 2 | } |
4121 | | |
4122 | 2 | void ListCDCStreamsResponsePB::SharedDtor() { |
4123 | 2 | if (this != internal_default_instance()) delete error_; |
4124 | 2 | } |
4125 | | |
4126 | 0 | void ListCDCStreamsResponsePB::SetCachedSize(int size) const { |
4127 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4128 | 0 | _cached_size_ = size; |
4129 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4130 | 0 | } |
4131 | 0 | const ::google::protobuf::Descriptor* ListCDCStreamsResponsePB::descriptor() { |
4132 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4133 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4134 | 0 | } |
4135 | | |
4136 | 0 | const ListCDCStreamsResponsePB& ListCDCStreamsResponsePB::default_instance() { |
4137 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsListCDCStreamsResponsePB(); |
4138 | 0 | return *internal_default_instance(); |
4139 | 0 | } |
4140 | | |
4141 | 0 | ListCDCStreamsResponsePB* ListCDCStreamsResponsePB::New(::google::protobuf::Arena* arena) const { |
4142 | 0 | ListCDCStreamsResponsePB* n = new ListCDCStreamsResponsePB; |
4143 | 0 | if (arena != NULL) { |
4144 | 0 | arena->Own(n); |
4145 | 0 | } |
4146 | 0 | return n; |
4147 | 0 | } |
4148 | | |
4149 | 1 | void ListCDCStreamsResponsePB::Clear() { |
4150 | | // @@protoc_insertion_point(message_clear_start:yb.master.ListCDCStreamsResponsePB) |
4151 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
4152 | | // Prevent compiler warnings about cached_has_bits being unused |
4153 | 1 | (void) cached_has_bits; |
4154 | | |
4155 | 1 | streams_.Clear(); |
4156 | 1 | cached_has_bits = _has_bits_[0]; |
4157 | 1 | if (cached_has_bits & 0x00000001u) { |
4158 | 0 | GOOGLE_DCHECK(error_ != NULL); |
4159 | 0 | error_->Clear(); |
4160 | 0 | } |
4161 | 1 | _has_bits_.Clear(); |
4162 | 1 | _internal_metadata_.Clear(); |
4163 | 1 | } |
4164 | | |
4165 | | bool ListCDCStreamsResponsePB::MergePartialFromCodedStream( |
4166 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
4167 | 1 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4168 | 1 | ::google::protobuf::uint32 tag; |
4169 | | // @@protoc_insertion_point(parse_start:yb.master.ListCDCStreamsResponsePB) |
4170 | 2 | for (;;) { |
4171 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4172 | 2 | tag = p.first; |
4173 | 2 | if (!p.second) goto handle_unusual1 ; |
4174 | 1 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4175 | | // optional .yb.master.MasterErrorPB error = 1; |
4176 | 0 | case 1: { |
4177 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4178 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4179 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4180 | 0 | input, mutable_error())); |
4181 | 0 | } else { |
4182 | 0 | goto handle_unusual; |
4183 | 0 | } |
4184 | 0 | break; |
4185 | 0 | } |
4186 | | |
4187 | | // repeated .yb.master.CDCStreamInfoPB streams = 2; |
4188 | 1 | case 2: { |
4189 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4190 | 1 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4191 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_streams())); |
4192 | 1 | } else { |
4193 | 0 | goto handle_unusual; |
4194 | 0 | } |
4195 | 1 | break; |
4196 | 1 | } |
4197 | | |
4198 | 1 | default: { |
4199 | 1 | handle_unusual: |
4200 | 1 | if (tag == 0) { |
4201 | 1 | goto success; |
4202 | 1 | } |
4203 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4204 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4205 | 0 | break; |
4206 | 0 | } |
4207 | 1 | } |
4208 | 1 | } |
4209 | 1 | success: |
4210 | | // @@protoc_insertion_point(parse_success:yb.master.ListCDCStreamsResponsePB) |
4211 | 1 | return true; |
4212 | 0 | failure: |
4213 | | // @@protoc_insertion_point(parse_failure:yb.master.ListCDCStreamsResponsePB) |
4214 | 0 | return false; |
4215 | 1 | #undef DO_ |
4216 | 1 | } |
4217 | | |
4218 | | void ListCDCStreamsResponsePB::SerializeWithCachedSizes( |
4219 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4220 | | // @@protoc_insertion_point(serialize_start:yb.master.ListCDCStreamsResponsePB) |
4221 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4222 | 0 | (void) cached_has_bits; |
4223 | |
|
4224 | 0 | cached_has_bits = _has_bits_[0]; |
4225 | | // optional .yb.master.MasterErrorPB error = 1; |
4226 | 0 | if (cached_has_bits & 0x00000001u) { |
4227 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4228 | 0 | 1, *this->error_, output); |
4229 | 0 | } |
4230 | | |
4231 | | // repeated .yb.master.CDCStreamInfoPB streams = 2; |
4232 | 0 | for (unsigned int i = 0, |
4233 | 0 | n = static_cast<unsigned int>(this->streams_size()); i < n; i++) { |
4234 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4235 | 0 | 2, this->streams(static_cast<int>(i)), output); |
4236 | 0 | } |
4237 | |
|
4238 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4239 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4240 | 0 | _internal_metadata_.unknown_fields(), output); |
4241 | 0 | } |
4242 | | // @@protoc_insertion_point(serialize_end:yb.master.ListCDCStreamsResponsePB) |
4243 | 0 | } |
4244 | | |
4245 | | ::google::protobuf::uint8* ListCDCStreamsResponsePB::InternalSerializeWithCachedSizesToArray( |
4246 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
4247 | 1 | (void)deterministic; // Unused |
4248 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ListCDCStreamsResponsePB) |
4249 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
4250 | 1 | (void) cached_has_bits; |
4251 | | |
4252 | 1 | cached_has_bits = _has_bits_[0]; |
4253 | | // optional .yb.master.MasterErrorPB error = 1; |
4254 | 1 | if (cached_has_bits & 0x00000001u) { |
4255 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4256 | 0 | InternalWriteMessageToArray( |
4257 | 0 | 1, *this->error_, deterministic, target); |
4258 | 0 | } |
4259 | | |
4260 | | // repeated .yb.master.CDCStreamInfoPB streams = 2; |
4261 | 1 | for (unsigned int i = 0, |
4262 | 2 | n = static_cast<unsigned int>(this->streams_size()); i < n; i++1 ) { |
4263 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
4264 | 1 | InternalWriteMessageToArray( |
4265 | 1 | 2, this->streams(static_cast<int>(i)), deterministic, target); |
4266 | 1 | } |
4267 | | |
4268 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
4269 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4270 | 0 | _internal_metadata_.unknown_fields(), target); |
4271 | 0 | } |
4272 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ListCDCStreamsResponsePB) |
4273 | 1 | return target; |
4274 | 1 | } |
4275 | | |
4276 | 2 | size_t ListCDCStreamsResponsePB::ByteSizeLong() const { |
4277 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ListCDCStreamsResponsePB) |
4278 | 2 | size_t total_size = 0; |
4279 | | |
4280 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
4281 | 0 | total_size += |
4282 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4283 | 0 | _internal_metadata_.unknown_fields()); |
4284 | 0 | } |
4285 | | // repeated .yb.master.CDCStreamInfoPB streams = 2; |
4286 | 2 | { |
4287 | 2 | unsigned int count = static_cast<unsigned int>(this->streams_size()); |
4288 | 2 | total_size += 1UL * count; |
4289 | 4 | for (unsigned int i = 0; i < count; i++2 ) { |
4290 | 2 | total_size += |
4291 | 2 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4292 | 2 | this->streams(static_cast<int>(i))); |
4293 | 2 | } |
4294 | 2 | } |
4295 | | |
4296 | | // optional .yb.master.MasterErrorPB error = 1; |
4297 | 2 | if (has_error()) { |
4298 | 0 | total_size += 1 + |
4299 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4300 | 0 | *this->error_); |
4301 | 0 | } |
4302 | | |
4303 | 2 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4304 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4305 | 2 | _cached_size_ = cached_size; |
4306 | 2 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4307 | 2 | return total_size; |
4308 | 2 | } |
4309 | | |
4310 | 0 | void ListCDCStreamsResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4311 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ListCDCStreamsResponsePB) |
4312 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4313 | 0 | const ListCDCStreamsResponsePB* source = |
4314 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ListCDCStreamsResponsePB>( |
4315 | 0 | &from); |
4316 | 0 | if (source == NULL) { |
4317 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ListCDCStreamsResponsePB) |
4318 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4319 | 0 | } else { |
4320 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ListCDCStreamsResponsePB) |
4321 | 0 | MergeFrom(*source); |
4322 | 0 | } |
4323 | 0 | } |
4324 | | |
4325 | 0 | void ListCDCStreamsResponsePB::MergeFrom(const ListCDCStreamsResponsePB& from) { |
4326 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ListCDCStreamsResponsePB) |
4327 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4328 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4329 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4330 | 0 | (void) cached_has_bits; |
4331 | |
|
4332 | 0 | streams_.MergeFrom(from.streams_); |
4333 | 0 | if (from.has_error()) { |
4334 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
4335 | 0 | } |
4336 | 0 | } |
4337 | | |
4338 | 0 | void ListCDCStreamsResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4339 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ListCDCStreamsResponsePB) |
4340 | 0 | if (&from == this) return; |
4341 | 0 | Clear(); |
4342 | 0 | MergeFrom(from); |
4343 | 0 | } |
4344 | | |
4345 | 0 | void ListCDCStreamsResponsePB::CopyFrom(const ListCDCStreamsResponsePB& from) { |
4346 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ListCDCStreamsResponsePB) |
4347 | 0 | if (&from == this) return; |
4348 | 0 | Clear(); |
4349 | 0 | MergeFrom(from); |
4350 | 0 | } |
4351 | | |
4352 | 2 | bool ListCDCStreamsResponsePB::IsInitialized() const { |
4353 | 2 | if (has_error()) { |
4354 | 0 | if (!this->error_->IsInitialized()) return false; |
4355 | 0 | } |
4356 | 2 | return true; |
4357 | 2 | } |
4358 | | |
4359 | 0 | void ListCDCStreamsResponsePB::Swap(ListCDCStreamsResponsePB* other) { |
4360 | 0 | if (other == this) return; |
4361 | 0 | InternalSwap(other); |
4362 | 0 | } |
4363 | 0 | void ListCDCStreamsResponsePB::InternalSwap(ListCDCStreamsResponsePB* other) { |
4364 | 0 | using std::swap; |
4365 | 0 | streams_.InternalSwap(&other->streams_); |
4366 | 0 | swap(error_, other->error_); |
4367 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4368 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4369 | 0 | swap(_cached_size_, other->_cached_size_); |
4370 | 0 | } |
4371 | | |
4372 | 0 | ::google::protobuf::Metadata ListCDCStreamsResponsePB::GetMetadata() const { |
4373 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4374 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
4375 | 0 | } |
4376 | | |
4377 | | |
4378 | | // =================================================================== |
4379 | | |
4380 | 26.8k | void GetCDCStreamRequestPB::InitAsDefaultInstance() { |
4381 | 26.8k | } |
4382 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4383 | | const int GetCDCStreamRequestPB::kStreamIdFieldNumber; |
4384 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4385 | | |
4386 | | GetCDCStreamRequestPB::GetCDCStreamRequestPB() |
4387 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4388 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4389 | 12 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCStreamRequestPB(); |
4390 | 12 | } |
4391 | 26.8k | SharedCtor(); |
4392 | | // @@protoc_insertion_point(constructor:yb.master.GetCDCStreamRequestPB) |
4393 | 26.8k | } |
4394 | | GetCDCStreamRequestPB::GetCDCStreamRequestPB(const GetCDCStreamRequestPB& from) |
4395 | | : ::google::protobuf::Message(), |
4396 | | _internal_metadata_(NULL), |
4397 | | _has_bits_(from._has_bits_), |
4398 | 0 | _cached_size_(0) { |
4399 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4400 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4401 | 0 | if (from.has_stream_id()) { |
4402 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
4403 | 0 | } |
4404 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetCDCStreamRequestPB) |
4405 | 0 | } |
4406 | | |
4407 | 26.8k | void GetCDCStreamRequestPB::SharedCtor() { |
4408 | 26.8k | _cached_size_ = 0; |
4409 | 26.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4410 | 26.8k | } |
4411 | | |
4412 | 12 | GetCDCStreamRequestPB::~GetCDCStreamRequestPB() { |
4413 | | // @@protoc_insertion_point(destructor:yb.master.GetCDCStreamRequestPB) |
4414 | 12 | SharedDtor(); |
4415 | 12 | } |
4416 | | |
4417 | 12 | void GetCDCStreamRequestPB::SharedDtor() { |
4418 | 12 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4419 | 12 | } |
4420 | | |
4421 | 0 | void GetCDCStreamRequestPB::SetCachedSize(int size) const { |
4422 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4423 | 0 | _cached_size_ = size; |
4424 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4425 | 0 | } |
4426 | 0 | const ::google::protobuf::Descriptor* GetCDCStreamRequestPB::descriptor() { |
4427 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4428 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4429 | 0 | } |
4430 | | |
4431 | 0 | const GetCDCStreamRequestPB& GetCDCStreamRequestPB::default_instance() { |
4432 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCStreamRequestPB(); |
4433 | 0 | return *internal_default_instance(); |
4434 | 0 | } |
4435 | | |
4436 | 0 | GetCDCStreamRequestPB* GetCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
4437 | 0 | GetCDCStreamRequestPB* n = new GetCDCStreamRequestPB; |
4438 | 0 | if (arena != NULL) { |
4439 | 0 | arena->Own(n); |
4440 | 0 | } |
4441 | 0 | return n; |
4442 | 0 | } |
4443 | | |
4444 | 6 | void GetCDCStreamRequestPB::Clear() { |
4445 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetCDCStreamRequestPB) |
4446 | 6 | ::google::protobuf::uint32 cached_has_bits = 0; |
4447 | | // Prevent compiler warnings about cached_has_bits being unused |
4448 | 6 | (void) cached_has_bits; |
4449 | | |
4450 | 6 | cached_has_bits = _has_bits_[0]; |
4451 | 6 | if (cached_has_bits & 0x00000001u) { |
4452 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4453 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
4454 | 0 | } |
4455 | 6 | _has_bits_.Clear(); |
4456 | 6 | _internal_metadata_.Clear(); |
4457 | 6 | } |
4458 | | |
4459 | | bool GetCDCStreamRequestPB::MergePartialFromCodedStream( |
4460 | 6 | ::google::protobuf::io::CodedInputStream* input) { |
4461 | 6 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4462 | 6 | ::google::protobuf::uint32 tag; |
4463 | | // @@protoc_insertion_point(parse_start:yb.master.GetCDCStreamRequestPB) |
4464 | 12 | for (;;) { |
4465 | 12 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4466 | 12 | tag = p.first; |
4467 | 12 | if (!p.second) goto handle_unusual6 ; |
4468 | 6 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4469 | | // optional bytes stream_id = 1; |
4470 | 6 | case 1: { |
4471 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4472 | 6 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4473 | 6 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4474 | 6 | input, this->mutable_stream_id())); |
4475 | 6 | } else { |
4476 | 0 | goto handle_unusual; |
4477 | 0 | } |
4478 | 6 | break; |
4479 | 6 | } |
4480 | | |
4481 | 6 | default: { |
4482 | 6 | handle_unusual: |
4483 | 6 | if (tag == 0) { |
4484 | 6 | goto success; |
4485 | 6 | } |
4486 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4487 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4488 | 0 | break; |
4489 | 0 | } |
4490 | 6 | } |
4491 | 6 | } |
4492 | 6 | success: |
4493 | | // @@protoc_insertion_point(parse_success:yb.master.GetCDCStreamRequestPB) |
4494 | 6 | return true; |
4495 | 0 | failure: |
4496 | | // @@protoc_insertion_point(parse_failure:yb.master.GetCDCStreamRequestPB) |
4497 | 0 | return false; |
4498 | 6 | #undef DO_ |
4499 | 6 | } |
4500 | | |
4501 | | void GetCDCStreamRequestPB::SerializeWithCachedSizes( |
4502 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4503 | | // @@protoc_insertion_point(serialize_start:yb.master.GetCDCStreamRequestPB) |
4504 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4505 | 0 | (void) cached_has_bits; |
4506 | |
|
4507 | 0 | cached_has_bits = _has_bits_[0]; |
4508 | | // optional bytes stream_id = 1; |
4509 | 0 | if (cached_has_bits & 0x00000001u) { |
4510 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4511 | 0 | 1, this->stream_id(), output); |
4512 | 0 | } |
4513 | |
|
4514 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4515 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4516 | 0 | _internal_metadata_.unknown_fields(), output); |
4517 | 0 | } |
4518 | | // @@protoc_insertion_point(serialize_end:yb.master.GetCDCStreamRequestPB) |
4519 | 0 | } |
4520 | | |
4521 | | ::google::protobuf::uint8* GetCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
4522 | 6 | bool deterministic, ::google::protobuf::uint8* target) const { |
4523 | 6 | (void)deterministic; // Unused |
4524 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetCDCStreamRequestPB) |
4525 | 6 | ::google::protobuf::uint32 cached_has_bits = 0; |
4526 | 6 | (void) cached_has_bits; |
4527 | | |
4528 | 6 | cached_has_bits = _has_bits_[0]; |
4529 | | // optional bytes stream_id = 1; |
4530 | 6 | if (cached_has_bits & 0x00000001u) { |
4531 | 6 | target = |
4532 | 6 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4533 | 6 | 1, this->stream_id(), target); |
4534 | 6 | } |
4535 | | |
4536 | 6 | if (_internal_metadata_.have_unknown_fields()) { |
4537 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4538 | 0 | _internal_metadata_.unknown_fields(), target); |
4539 | 0 | } |
4540 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetCDCStreamRequestPB) |
4541 | 6 | return target; |
4542 | 6 | } |
4543 | | |
4544 | 12 | size_t GetCDCStreamRequestPB::ByteSizeLong() const { |
4545 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetCDCStreamRequestPB) |
4546 | 12 | size_t total_size = 0; |
4547 | | |
4548 | 12 | if (_internal_metadata_.have_unknown_fields()) { |
4549 | 0 | total_size += |
4550 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4551 | 0 | _internal_metadata_.unknown_fields()); |
4552 | 0 | } |
4553 | | // optional bytes stream_id = 1; |
4554 | 12 | if (has_stream_id()) { |
4555 | 12 | total_size += 1 + |
4556 | 12 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4557 | 12 | this->stream_id()); |
4558 | 12 | } |
4559 | | |
4560 | 12 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4561 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4562 | 12 | _cached_size_ = cached_size; |
4563 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4564 | 12 | return total_size; |
4565 | 12 | } |
4566 | | |
4567 | 0 | void GetCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4568 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetCDCStreamRequestPB) |
4569 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4570 | 0 | const GetCDCStreamRequestPB* source = |
4571 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCStreamRequestPB>( |
4572 | 0 | &from); |
4573 | 0 | if (source == NULL) { |
4574 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetCDCStreamRequestPB) |
4575 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4576 | 0 | } else { |
4577 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetCDCStreamRequestPB) |
4578 | 0 | MergeFrom(*source); |
4579 | 0 | } |
4580 | 0 | } |
4581 | | |
4582 | 0 | void GetCDCStreamRequestPB::MergeFrom(const GetCDCStreamRequestPB& from) { |
4583 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetCDCStreamRequestPB) |
4584 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4585 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4586 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4587 | 0 | (void) cached_has_bits; |
4588 | |
|
4589 | 0 | if (from.has_stream_id()) { |
4590 | 0 | set_has_stream_id(); |
4591 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
4592 | 0 | } |
4593 | 0 | } |
4594 | | |
4595 | 0 | void GetCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
4596 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetCDCStreamRequestPB) |
4597 | 0 | if (&from == this) return; |
4598 | 0 | Clear(); |
4599 | 0 | MergeFrom(from); |
4600 | 0 | } |
4601 | | |
4602 | 0 | void GetCDCStreamRequestPB::CopyFrom(const GetCDCStreamRequestPB& from) { |
4603 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetCDCStreamRequestPB) |
4604 | 0 | if (&from == this) return; |
4605 | 0 | Clear(); |
4606 | 0 | MergeFrom(from); |
4607 | 0 | } |
4608 | | |
4609 | 12 | bool GetCDCStreamRequestPB::IsInitialized() const { |
4610 | 12 | return true; |
4611 | 12 | } |
4612 | | |
4613 | 0 | void GetCDCStreamRequestPB::Swap(GetCDCStreamRequestPB* other) { |
4614 | 0 | if (other == this) return; |
4615 | 0 | InternalSwap(other); |
4616 | 0 | } |
4617 | 0 | void GetCDCStreamRequestPB::InternalSwap(GetCDCStreamRequestPB* other) { |
4618 | 0 | using std::swap; |
4619 | 0 | stream_id_.Swap(&other->stream_id_); |
4620 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4621 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4622 | 0 | swap(_cached_size_, other->_cached_size_); |
4623 | 0 | } |
4624 | | |
4625 | 22 | ::google::protobuf::Metadata GetCDCStreamRequestPB::GetMetadata() const { |
4626 | 22 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4627 | 22 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
4628 | 22 | } |
4629 | | |
4630 | | |
4631 | | // =================================================================== |
4632 | | |
4633 | 26.8k | void GetCDCStreamResponsePB::InitAsDefaultInstance() { |
4634 | 26.8k | ::yb::master::_GetCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
4635 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
4636 | 26.8k | ::yb::master::_GetCDCStreamResponsePB_default_instance_._instance.get_mutable()->stream_ = const_cast< ::yb::master::CDCStreamInfoPB*>( |
4637 | 26.8k | ::yb::master::CDCStreamInfoPB::internal_default_instance()); |
4638 | 26.8k | } |
4639 | 0 | void GetCDCStreamResponsePB::clear_error() { |
4640 | 0 | if (error_ != NULL) error_->Clear(); |
4641 | 0 | clear_has_error(); |
4642 | 0 | } |
4643 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4644 | | const int GetCDCStreamResponsePB::kErrorFieldNumber; |
4645 | | const int GetCDCStreamResponsePB::kStreamFieldNumber; |
4646 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4647 | | |
4648 | | GetCDCStreamResponsePB::GetCDCStreamResponsePB() |
4649 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4650 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4651 | 10 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCStreamResponsePB(); |
4652 | 10 | } |
4653 | 26.8k | SharedCtor(); |
4654 | | // @@protoc_insertion_point(constructor:yb.master.GetCDCStreamResponsePB) |
4655 | 26.8k | } |
4656 | | GetCDCStreamResponsePB::GetCDCStreamResponsePB(const GetCDCStreamResponsePB& from) |
4657 | | : ::google::protobuf::Message(), |
4658 | | _internal_metadata_(NULL), |
4659 | | _has_bits_(from._has_bits_), |
4660 | 0 | _cached_size_(0) { |
4661 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4662 | 0 | if (from.has_error()) { |
4663 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
4664 | 0 | } else { |
4665 | 0 | error_ = NULL; |
4666 | 0 | } |
4667 | 0 | if (from.has_stream()) { |
4668 | 0 | stream_ = new ::yb::master::CDCStreamInfoPB(*from.stream_); |
4669 | 0 | } else { |
4670 | 0 | stream_ = NULL; |
4671 | 0 | } |
4672 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetCDCStreamResponsePB) |
4673 | 0 | } |
4674 | | |
4675 | 26.8k | void GetCDCStreamResponsePB::SharedCtor() { |
4676 | 26.8k | _cached_size_ = 0; |
4677 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
4678 | 26.8k | reinterpret_cast<char*>(&stream_) - |
4679 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(stream_)); |
4680 | 26.8k | } |
4681 | | |
4682 | 10 | GetCDCStreamResponsePB::~GetCDCStreamResponsePB() { |
4683 | | // @@protoc_insertion_point(destructor:yb.master.GetCDCStreamResponsePB) |
4684 | 10 | SharedDtor(); |
4685 | 10 | } |
4686 | | |
4687 | 10 | void GetCDCStreamResponsePB::SharedDtor() { |
4688 | 10 | if (this != internal_default_instance()) delete error_; |
4689 | 10 | if (this != internal_default_instance()) delete stream_; |
4690 | 10 | } |
4691 | | |
4692 | 0 | void GetCDCStreamResponsePB::SetCachedSize(int size) const { |
4693 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4694 | 0 | _cached_size_ = size; |
4695 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4696 | 0 | } |
4697 | 0 | const ::google::protobuf::Descriptor* GetCDCStreamResponsePB::descriptor() { |
4698 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4699 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4700 | 0 | } |
4701 | | |
4702 | 0 | const GetCDCStreamResponsePB& GetCDCStreamResponsePB::default_instance() { |
4703 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCStreamResponsePB(); |
4704 | 0 | return *internal_default_instance(); |
4705 | 0 | } |
4706 | | |
4707 | 0 | GetCDCStreamResponsePB* GetCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
4708 | 0 | GetCDCStreamResponsePB* n = new GetCDCStreamResponsePB; |
4709 | 0 | if (arena != NULL) { |
4710 | 0 | arena->Own(n); |
4711 | 0 | } |
4712 | 0 | return n; |
4713 | 0 | } |
4714 | | |
4715 | 7 | void GetCDCStreamResponsePB::Clear() { |
4716 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetCDCStreamResponsePB) |
4717 | 7 | ::google::protobuf::uint32 cached_has_bits = 0; |
4718 | | // Prevent compiler warnings about cached_has_bits being unused |
4719 | 7 | (void) cached_has_bits; |
4720 | | |
4721 | 7 | cached_has_bits = _has_bits_[0]; |
4722 | 7 | if (cached_has_bits & 3u) { |
4723 | 2 | if (cached_has_bits & 0x00000001u) { |
4724 | 0 | GOOGLE_DCHECK(error_ != NULL); |
4725 | 0 | error_->Clear(); |
4726 | 0 | } |
4727 | 2 | if (cached_has_bits & 0x00000002u) { |
4728 | 2 | GOOGLE_DCHECK(stream_ != NULL); |
4729 | 2 | stream_->Clear(); |
4730 | 2 | } |
4731 | 2 | } |
4732 | 7 | _has_bits_.Clear(); |
4733 | 7 | _internal_metadata_.Clear(); |
4734 | 7 | } |
4735 | | |
4736 | | bool GetCDCStreamResponsePB::MergePartialFromCodedStream( |
4737 | 6 | ::google::protobuf::io::CodedInputStream* input) { |
4738 | 6 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4739 | 6 | ::google::protobuf::uint32 tag; |
4740 | | // @@protoc_insertion_point(parse_start:yb.master.GetCDCStreamResponsePB) |
4741 | 12 | for (;;) { |
4742 | 12 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4743 | 12 | tag = p.first; |
4744 | 12 | if (!p.second) goto handle_unusual6 ; |
4745 | 6 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4746 | | // optional .yb.master.MasterErrorPB error = 1; |
4747 | 2 | case 1: { |
4748 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4749 | 2 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4750 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4751 | 2 | input, mutable_error())); |
4752 | 2 | } else { |
4753 | 0 | goto handle_unusual; |
4754 | 0 | } |
4755 | 2 | break; |
4756 | 2 | } |
4757 | | |
4758 | | // optional .yb.master.CDCStreamInfoPB stream = 2; |
4759 | 4 | case 2: { |
4760 | 4 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4761 | 4 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4762 | 4 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4763 | 4 | input, mutable_stream())); |
4764 | 4 | } else { |
4765 | 0 | goto handle_unusual; |
4766 | 0 | } |
4767 | 4 | break; |
4768 | 4 | } |
4769 | | |
4770 | 4 | default: { |
4771 | 6 | handle_unusual: |
4772 | 6 | if (tag == 0) { |
4773 | 6 | goto success; |
4774 | 6 | } |
4775 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4776 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4777 | 0 | break; |
4778 | 0 | } |
4779 | 6 | } |
4780 | 6 | } |
4781 | 6 | success: |
4782 | | // @@protoc_insertion_point(parse_success:yb.master.GetCDCStreamResponsePB) |
4783 | 6 | return true; |
4784 | 0 | failure: |
4785 | | // @@protoc_insertion_point(parse_failure:yb.master.GetCDCStreamResponsePB) |
4786 | 0 | return false; |
4787 | 6 | #undef DO_ |
4788 | 6 | } |
4789 | | |
4790 | | void GetCDCStreamResponsePB::SerializeWithCachedSizes( |
4791 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4792 | | // @@protoc_insertion_point(serialize_start:yb.master.GetCDCStreamResponsePB) |
4793 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4794 | 0 | (void) cached_has_bits; |
4795 | |
|
4796 | 0 | cached_has_bits = _has_bits_[0]; |
4797 | | // optional .yb.master.MasterErrorPB error = 1; |
4798 | 0 | if (cached_has_bits & 0x00000001u) { |
4799 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4800 | 0 | 1, *this->error_, output); |
4801 | 0 | } |
4802 | | |
4803 | | // optional .yb.master.CDCStreamInfoPB stream = 2; |
4804 | 0 | if (cached_has_bits & 0x00000002u) { |
4805 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4806 | 0 | 2, *this->stream_, output); |
4807 | 0 | } |
4808 | |
|
4809 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4810 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4811 | 0 | _internal_metadata_.unknown_fields(), output); |
4812 | 0 | } |
4813 | | // @@protoc_insertion_point(serialize_end:yb.master.GetCDCStreamResponsePB) |
4814 | 0 | } |
4815 | | |
4816 | | ::google::protobuf::uint8* GetCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
4817 | 6 | bool deterministic, ::google::protobuf::uint8* target) const { |
4818 | 6 | (void)deterministic; // Unused |
4819 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetCDCStreamResponsePB) |
4820 | 6 | ::google::protobuf::uint32 cached_has_bits = 0; |
4821 | 6 | (void) cached_has_bits; |
4822 | | |
4823 | 6 | cached_has_bits = _has_bits_[0]; |
4824 | | // optional .yb.master.MasterErrorPB error = 1; |
4825 | 6 | if (cached_has_bits & 0x00000001u) { |
4826 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
4827 | 2 | InternalWriteMessageToArray( |
4828 | 2 | 1, *this->error_, deterministic, target); |
4829 | 2 | } |
4830 | | |
4831 | | // optional .yb.master.CDCStreamInfoPB stream = 2; |
4832 | 6 | if (cached_has_bits & 0x00000002u) { |
4833 | 4 | target = ::google::protobuf::internal::WireFormatLite:: |
4834 | 4 | InternalWriteMessageToArray( |
4835 | 4 | 2, *this->stream_, deterministic, target); |
4836 | 4 | } |
4837 | | |
4838 | 6 | if (_internal_metadata_.have_unknown_fields()) { |
4839 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4840 | 0 | _internal_metadata_.unknown_fields(), target); |
4841 | 0 | } |
4842 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetCDCStreamResponsePB) |
4843 | 6 | return target; |
4844 | 6 | } |
4845 | | |
4846 | 12 | size_t GetCDCStreamResponsePB::ByteSizeLong() const { |
4847 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetCDCStreamResponsePB) |
4848 | 12 | size_t total_size = 0; |
4849 | | |
4850 | 12 | if (_internal_metadata_.have_unknown_fields()) { |
4851 | 0 | total_size += |
4852 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4853 | 0 | _internal_metadata_.unknown_fields()); |
4854 | 0 | } |
4855 | 12 | if (_has_bits_[0 / 32] & 3u) { |
4856 | | // optional .yb.master.MasterErrorPB error = 1; |
4857 | 12 | if (has_error()) { |
4858 | 4 | total_size += 1 + |
4859 | 4 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4860 | 4 | *this->error_); |
4861 | 4 | } |
4862 | | |
4863 | | // optional .yb.master.CDCStreamInfoPB stream = 2; |
4864 | 12 | if (has_stream()) { |
4865 | 8 | total_size += 1 + |
4866 | 8 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4867 | 8 | *this->stream_); |
4868 | 8 | } |
4869 | | |
4870 | 12 | } |
4871 | 12 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4872 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4873 | 12 | _cached_size_ = cached_size; |
4874 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4875 | 12 | return total_size; |
4876 | 12 | } |
4877 | | |
4878 | 0 | void GetCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
4879 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetCDCStreamResponsePB) |
4880 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4881 | 0 | const GetCDCStreamResponsePB* source = |
4882 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCStreamResponsePB>( |
4883 | 0 | &from); |
4884 | 0 | if (source == NULL) { |
4885 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetCDCStreamResponsePB) |
4886 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4887 | 0 | } else { |
4888 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetCDCStreamResponsePB) |
4889 | 0 | MergeFrom(*source); |
4890 | 0 | } |
4891 | 0 | } |
4892 | | |
4893 | 0 | void GetCDCStreamResponsePB::MergeFrom(const GetCDCStreamResponsePB& from) { |
4894 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetCDCStreamResponsePB) |
4895 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4896 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4897 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4898 | 0 | (void) cached_has_bits; |
4899 | |
|
4900 | 0 | cached_has_bits = from._has_bits_[0]; |
4901 | 0 | if (cached_has_bits & 3u) { |
4902 | 0 | if (cached_has_bits & 0x00000001u) { |
4903 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
4904 | 0 | } |
4905 | 0 | if (cached_has_bits & 0x00000002u) { |
4906 | 0 | mutable_stream()->::yb::master::CDCStreamInfoPB::MergeFrom(from.stream()); |
4907 | 0 | } |
4908 | 0 | } |
4909 | 0 | } |
4910 | | |
4911 | 0 | void GetCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
4912 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetCDCStreamResponsePB) |
4913 | 0 | if (&from == this) return; |
4914 | 0 | Clear(); |
4915 | 0 | MergeFrom(from); |
4916 | 0 | } |
4917 | | |
4918 | 0 | void GetCDCStreamResponsePB::CopyFrom(const GetCDCStreamResponsePB& from) { |
4919 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetCDCStreamResponsePB) |
4920 | 0 | if (&from == this) return; |
4921 | 0 | Clear(); |
4922 | 0 | MergeFrom(from); |
4923 | 0 | } |
4924 | | |
4925 | 12 | bool GetCDCStreamResponsePB::IsInitialized() const { |
4926 | 12 | if (has_error()) { |
4927 | 4 | if (!this->error_->IsInitialized()) return false0 ; |
4928 | 4 | } |
4929 | 12 | return true; |
4930 | 12 | } |
4931 | | |
4932 | 0 | void GetCDCStreamResponsePB::Swap(GetCDCStreamResponsePB* other) { |
4933 | 0 | if (other == this) return; |
4934 | 0 | InternalSwap(other); |
4935 | 0 | } |
4936 | 0 | void GetCDCStreamResponsePB::InternalSwap(GetCDCStreamResponsePB* other) { |
4937 | 0 | using std::swap; |
4938 | 0 | swap(error_, other->error_); |
4939 | 0 | swap(stream_, other->stream_); |
4940 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4941 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4942 | 0 | swap(_cached_size_, other->_cached_size_); |
4943 | 0 | } |
4944 | | |
4945 | 0 | ::google::protobuf::Metadata GetCDCStreamResponsePB::GetMetadata() const { |
4946 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
4947 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
4948 | 0 | } |
4949 | | |
4950 | | |
4951 | | // =================================================================== |
4952 | | |
4953 | 26.8k | void GetCDCDBStreamInfoRequestPB::InitAsDefaultInstance() { |
4954 | 26.8k | } |
4955 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4956 | | const int GetCDCDBStreamInfoRequestPB::kDbStreamIdFieldNumber; |
4957 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4958 | | |
4959 | | GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB() |
4960 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4961 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4962 | 22 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB(); |
4963 | 22 | } |
4964 | 26.8k | SharedCtor(); |
4965 | | // @@protoc_insertion_point(constructor:yb.master.GetCDCDBStreamInfoRequestPB) |
4966 | 26.8k | } |
4967 | | GetCDCDBStreamInfoRequestPB::GetCDCDBStreamInfoRequestPB(const GetCDCDBStreamInfoRequestPB& from) |
4968 | | : ::google::protobuf::Message(), |
4969 | | _internal_metadata_(NULL), |
4970 | | _has_bits_(from._has_bits_), |
4971 | 0 | _cached_size_(0) { |
4972 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4973 | 0 | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4974 | 0 | if (from.has_db_stream_id()) { |
4975 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
4976 | 0 | } |
4977 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetCDCDBStreamInfoRequestPB) |
4978 | 0 | } |
4979 | | |
4980 | 26.8k | void GetCDCDBStreamInfoRequestPB::SharedCtor() { |
4981 | 26.8k | _cached_size_ = 0; |
4982 | 26.8k | db_stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4983 | 26.8k | } |
4984 | | |
4985 | 22 | GetCDCDBStreamInfoRequestPB::~GetCDCDBStreamInfoRequestPB() { |
4986 | | // @@protoc_insertion_point(destructor:yb.master.GetCDCDBStreamInfoRequestPB) |
4987 | 22 | SharedDtor(); |
4988 | 22 | } |
4989 | | |
4990 | 22 | void GetCDCDBStreamInfoRequestPB::SharedDtor() { |
4991 | 22 | db_stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4992 | 22 | } |
4993 | | |
4994 | 0 | void GetCDCDBStreamInfoRequestPB::SetCachedSize(int size) const { |
4995 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4996 | 0 | _cached_size_ = size; |
4997 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4998 | 0 | } |
4999 | 0 | const ::google::protobuf::Descriptor* GetCDCDBStreamInfoRequestPB::descriptor() { |
5000 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5001 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5002 | 0 | } |
5003 | | |
5004 | 0 | const GetCDCDBStreamInfoRequestPB& GetCDCDBStreamInfoRequestPB::default_instance() { |
5005 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoRequestPB(); |
5006 | 0 | return *internal_default_instance(); |
5007 | 0 | } |
5008 | | |
5009 | 0 | GetCDCDBStreamInfoRequestPB* GetCDCDBStreamInfoRequestPB::New(::google::protobuf::Arena* arena) const { |
5010 | 0 | GetCDCDBStreamInfoRequestPB* n = new GetCDCDBStreamInfoRequestPB; |
5011 | 0 | if (arena != NULL) { |
5012 | 0 | arena->Own(n); |
5013 | 0 | } |
5014 | 0 | return n; |
5015 | 0 | } |
5016 | | |
5017 | 22 | void GetCDCDBStreamInfoRequestPB::Clear() { |
5018 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5019 | 22 | ::google::protobuf::uint32 cached_has_bits = 0; |
5020 | | // Prevent compiler warnings about cached_has_bits being unused |
5021 | 22 | (void) cached_has_bits; |
5022 | | |
5023 | 22 | cached_has_bits = _has_bits_[0]; |
5024 | 22 | if (cached_has_bits & 0x00000001u) { |
5025 | 0 | GOOGLE_DCHECK(!db_stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5026 | 0 | (*db_stream_id_.UnsafeRawStringPointer())->clear(); |
5027 | 0 | } |
5028 | 22 | _has_bits_.Clear(); |
5029 | 22 | _internal_metadata_.Clear(); |
5030 | 22 | } |
5031 | | |
5032 | | bool GetCDCDBStreamInfoRequestPB::MergePartialFromCodedStream( |
5033 | 22 | ::google::protobuf::io::CodedInputStream* input) { |
5034 | 22 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5035 | 22 | ::google::protobuf::uint32 tag; |
5036 | | // @@protoc_insertion_point(parse_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5037 | 44 | for (;;) { |
5038 | 44 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5039 | 44 | tag = p.first; |
5040 | 44 | if (!p.second) goto handle_unusual22 ; |
5041 | 22 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5042 | | // optional bytes db_stream_id = 1; |
5043 | 22 | case 1: { |
5044 | 22 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5045 | 22 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5046 | 22 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5047 | 22 | input, this->mutable_db_stream_id())); |
5048 | 22 | } else { |
5049 | 0 | goto handle_unusual; |
5050 | 0 | } |
5051 | 22 | break; |
5052 | 22 | } |
5053 | | |
5054 | 22 | default: { |
5055 | 22 | handle_unusual: |
5056 | 22 | if (tag == 0) { |
5057 | 22 | goto success; |
5058 | 22 | } |
5059 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5060 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5061 | 0 | break; |
5062 | 0 | } |
5063 | 22 | } |
5064 | 22 | } |
5065 | 22 | success: |
5066 | | // @@protoc_insertion_point(parse_success:yb.master.GetCDCDBStreamInfoRequestPB) |
5067 | 22 | return true; |
5068 | 0 | failure: |
5069 | | // @@protoc_insertion_point(parse_failure:yb.master.GetCDCDBStreamInfoRequestPB) |
5070 | 0 | return false; |
5071 | 22 | #undef DO_ |
5072 | 22 | } |
5073 | | |
5074 | | void GetCDCDBStreamInfoRequestPB::SerializeWithCachedSizes( |
5075 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5076 | | // @@protoc_insertion_point(serialize_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5077 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5078 | 0 | (void) cached_has_bits; |
5079 | |
|
5080 | 0 | cached_has_bits = _has_bits_[0]; |
5081 | | // optional bytes db_stream_id = 1; |
5082 | 0 | if (cached_has_bits & 0x00000001u) { |
5083 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5084 | 0 | 1, this->db_stream_id(), output); |
5085 | 0 | } |
5086 | |
|
5087 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5088 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5089 | 0 | _internal_metadata_.unknown_fields(), output); |
5090 | 0 | } |
5091 | | // @@protoc_insertion_point(serialize_end:yb.master.GetCDCDBStreamInfoRequestPB) |
5092 | 0 | } |
5093 | | |
5094 | | ::google::protobuf::uint8* GetCDCDBStreamInfoRequestPB::InternalSerializeWithCachedSizesToArray( |
5095 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
5096 | 0 | (void)deterministic; // Unused |
5097 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5098 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5099 | 0 | (void) cached_has_bits; |
5100 | |
|
5101 | 0 | cached_has_bits = _has_bits_[0]; |
5102 | | // optional bytes db_stream_id = 1; |
5103 | 0 | if (cached_has_bits & 0x00000001u) { |
5104 | 0 | target = |
5105 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5106 | 0 | 1, this->db_stream_id(), target); |
5107 | 0 | } |
5108 | |
|
5109 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5110 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5111 | 0 | _internal_metadata_.unknown_fields(), target); |
5112 | 0 | } |
5113 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetCDCDBStreamInfoRequestPB) |
5114 | 0 | return target; |
5115 | 0 | } |
5116 | | |
5117 | 0 | size_t GetCDCDBStreamInfoRequestPB::ByteSizeLong() const { |
5118 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5119 | 0 | size_t total_size = 0; |
5120 | |
|
5121 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5122 | 0 | total_size += |
5123 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5124 | 0 | _internal_metadata_.unknown_fields()); |
5125 | 0 | } |
5126 | | // optional bytes db_stream_id = 1; |
5127 | 0 | if (has_db_stream_id()) { |
5128 | 0 | total_size += 1 + |
5129 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5130 | 0 | this->db_stream_id()); |
5131 | 0 | } |
5132 | |
|
5133 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5134 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5135 | 0 | _cached_size_ = cached_size; |
5136 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5137 | 0 | return total_size; |
5138 | 0 | } |
5139 | | |
5140 | 0 | void GetCDCDBStreamInfoRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
5141 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5142 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5143 | 0 | const GetCDCDBStreamInfoRequestPB* source = |
5144 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoRequestPB>( |
5145 | 0 | &from); |
5146 | 0 | if (source == NULL) { |
5147 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetCDCDBStreamInfoRequestPB) |
5148 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5149 | 0 | } else { |
5150 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetCDCDBStreamInfoRequestPB) |
5151 | 0 | MergeFrom(*source); |
5152 | 0 | } |
5153 | 0 | } |
5154 | | |
5155 | 0 | void GetCDCDBStreamInfoRequestPB::MergeFrom(const GetCDCDBStreamInfoRequestPB& from) { |
5156 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5157 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5158 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5159 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5160 | 0 | (void) cached_has_bits; |
5161 | |
|
5162 | 0 | if (from.has_db_stream_id()) { |
5163 | 0 | set_has_db_stream_id(); |
5164 | 0 | db_stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_stream_id_); |
5165 | 0 | } |
5166 | 0 | } |
5167 | | |
5168 | 0 | void GetCDCDBStreamInfoRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
5169 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5170 | 0 | if (&from == this) return; |
5171 | 0 | Clear(); |
5172 | 0 | MergeFrom(from); |
5173 | 0 | } |
5174 | | |
5175 | 0 | void GetCDCDBStreamInfoRequestPB::CopyFrom(const GetCDCDBStreamInfoRequestPB& from) { |
5176 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetCDCDBStreamInfoRequestPB) |
5177 | 0 | if (&from == this) return; |
5178 | 0 | Clear(); |
5179 | 0 | MergeFrom(from); |
5180 | 0 | } |
5181 | | |
5182 | 22 | bool GetCDCDBStreamInfoRequestPB::IsInitialized() const { |
5183 | 22 | return true; |
5184 | 22 | } |
5185 | | |
5186 | 0 | void GetCDCDBStreamInfoRequestPB::Swap(GetCDCDBStreamInfoRequestPB* other) { |
5187 | 0 | if (other == this) return; |
5188 | 0 | InternalSwap(other); |
5189 | 0 | } |
5190 | 0 | void GetCDCDBStreamInfoRequestPB::InternalSwap(GetCDCDBStreamInfoRequestPB* other) { |
5191 | 0 | using std::swap; |
5192 | 0 | db_stream_id_.Swap(&other->db_stream_id_); |
5193 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5194 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5195 | 0 | swap(_cached_size_, other->_cached_size_); |
5196 | 0 | } |
5197 | | |
5198 | 22 | ::google::protobuf::Metadata GetCDCDBStreamInfoRequestPB::GetMetadata() const { |
5199 | 22 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5200 | 22 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
5201 | 22 | } |
5202 | | |
5203 | | |
5204 | | // =================================================================== |
5205 | | |
5206 | 26.8k | void GetCDCDBStreamInfoResponsePB_TableInfo::InitAsDefaultInstance() { |
5207 | 26.8k | } |
5208 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5209 | | const int GetCDCDBStreamInfoResponsePB_TableInfo::kStreamIdFieldNumber; |
5210 | | const int GetCDCDBStreamInfoResponsePB_TableInfo::kTableIdFieldNumber; |
5211 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5212 | | |
5213 | | GetCDCDBStreamInfoResponsePB_TableInfo::GetCDCDBStreamInfoResponsePB_TableInfo() |
5214 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5215 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5216 | 22 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfo(); |
5217 | 22 | } |
5218 | 26.8k | SharedCtor(); |
5219 | | // @@protoc_insertion_point(constructor:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5220 | 26.8k | } |
5221 | | GetCDCDBStreamInfoResponsePB_TableInfo::GetCDCDBStreamInfoResponsePB_TableInfo(const GetCDCDBStreamInfoResponsePB_TableInfo& from) |
5222 | | : ::google::protobuf::Message(), |
5223 | | _internal_metadata_(NULL), |
5224 | | _has_bits_(from._has_bits_), |
5225 | 0 | _cached_size_(0) { |
5226 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5227 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5228 | 0 | if (from.has_stream_id()) { |
5229 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
5230 | 0 | } |
5231 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5232 | 0 | if (from.has_table_id()) { |
5233 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
5234 | 0 | } |
5235 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5236 | 0 | } |
5237 | | |
5238 | 26.8k | void GetCDCDBStreamInfoResponsePB_TableInfo::SharedCtor() { |
5239 | 26.8k | _cached_size_ = 0; |
5240 | 26.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5241 | 26.8k | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5242 | 26.8k | } |
5243 | | |
5244 | 22 | GetCDCDBStreamInfoResponsePB_TableInfo::~GetCDCDBStreamInfoResponsePB_TableInfo() { |
5245 | | // @@protoc_insertion_point(destructor:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5246 | 22 | SharedDtor(); |
5247 | 22 | } |
5248 | | |
5249 | 22 | void GetCDCDBStreamInfoResponsePB_TableInfo::SharedDtor() { |
5250 | 22 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5251 | 22 | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5252 | 22 | } |
5253 | | |
5254 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::SetCachedSize(int size) const { |
5255 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5256 | 0 | _cached_size_ = size; |
5257 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5258 | 0 | } |
5259 | 0 | const ::google::protobuf::Descriptor* GetCDCDBStreamInfoResponsePB_TableInfo::descriptor() { |
5260 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5261 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5262 | 0 | } |
5263 | | |
5264 | 0 | const GetCDCDBStreamInfoResponsePB_TableInfo& GetCDCDBStreamInfoResponsePB_TableInfo::default_instance() { |
5265 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB_TableInfo(); |
5266 | 0 | return *internal_default_instance(); |
5267 | 0 | } |
5268 | | |
5269 | 0 | GetCDCDBStreamInfoResponsePB_TableInfo* GetCDCDBStreamInfoResponsePB_TableInfo::New(::google::protobuf::Arena* arena) const { |
5270 | 0 | GetCDCDBStreamInfoResponsePB_TableInfo* n = new GetCDCDBStreamInfoResponsePB_TableInfo; |
5271 | 0 | if (arena != NULL) { |
5272 | 0 | arena->Own(n); |
5273 | 0 | } |
5274 | 0 | return n; |
5275 | 0 | } |
5276 | | |
5277 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::Clear() { |
5278 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5279 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5280 | | // Prevent compiler warnings about cached_has_bits being unused |
5281 | 0 | (void) cached_has_bits; |
5282 | |
|
5283 | 0 | cached_has_bits = _has_bits_[0]; |
5284 | 0 | if (cached_has_bits & 3u) { |
5285 | 0 | if (cached_has_bits & 0x00000001u) { |
5286 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5287 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
5288 | 0 | } |
5289 | 0 | if (cached_has_bits & 0x00000002u) { |
5290 | 0 | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5291 | 0 | (*table_id_.UnsafeRawStringPointer())->clear(); |
5292 | 0 | } |
5293 | 0 | } |
5294 | 0 | _has_bits_.Clear(); |
5295 | 0 | _internal_metadata_.Clear(); |
5296 | 0 | } |
5297 | | |
5298 | | bool GetCDCDBStreamInfoResponsePB_TableInfo::MergePartialFromCodedStream( |
5299 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5300 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5301 | 0 | ::google::protobuf::uint32 tag; |
5302 | | // @@protoc_insertion_point(parse_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5303 | 0 | for (;;) { |
5304 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5305 | 0 | tag = p.first; |
5306 | 0 | if (!p.second) goto handle_unusual; |
5307 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5308 | | // optional bytes stream_id = 1; |
5309 | 0 | case 1: { |
5310 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5311 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5312 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5313 | 0 | input, this->mutable_stream_id())); |
5314 | 0 | } else { |
5315 | 0 | goto handle_unusual; |
5316 | 0 | } |
5317 | 0 | break; |
5318 | 0 | } |
5319 | | |
5320 | | // optional bytes table_id = 2; |
5321 | 0 | case 2: { |
5322 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5323 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5324 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5325 | 0 | input, this->mutable_table_id())); |
5326 | 0 | } else { |
5327 | 0 | goto handle_unusual; |
5328 | 0 | } |
5329 | 0 | break; |
5330 | 0 | } |
5331 | | |
5332 | 0 | default: { |
5333 | 0 | handle_unusual: |
5334 | 0 | if (tag == 0) { |
5335 | 0 | goto success; |
5336 | 0 | } |
5337 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5338 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5339 | 0 | break; |
5340 | 0 | } |
5341 | 0 | } |
5342 | 0 | } |
5343 | 0 | success: |
5344 | | // @@protoc_insertion_point(parse_success:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5345 | 0 | return true; |
5346 | 0 | failure: |
5347 | | // @@protoc_insertion_point(parse_failure:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5348 | 0 | return false; |
5349 | 0 | #undef DO_ |
5350 | 0 | } |
5351 | | |
5352 | | void GetCDCDBStreamInfoResponsePB_TableInfo::SerializeWithCachedSizes( |
5353 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5354 | | // @@protoc_insertion_point(serialize_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5355 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5356 | 0 | (void) cached_has_bits; |
5357 | |
|
5358 | 0 | cached_has_bits = _has_bits_[0]; |
5359 | | // optional bytes stream_id = 1; |
5360 | 0 | if (cached_has_bits & 0x00000001u) { |
5361 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5362 | 0 | 1, this->stream_id(), output); |
5363 | 0 | } |
5364 | | |
5365 | | // optional bytes table_id = 2; |
5366 | 0 | if (cached_has_bits & 0x00000002u) { |
5367 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5368 | 0 | 2, this->table_id(), output); |
5369 | 0 | } |
5370 | |
|
5371 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5372 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5373 | 0 | _internal_metadata_.unknown_fields(), output); |
5374 | 0 | } |
5375 | | // @@protoc_insertion_point(serialize_end:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5376 | 0 | } |
5377 | | |
5378 | | ::google::protobuf::uint8* GetCDCDBStreamInfoResponsePB_TableInfo::InternalSerializeWithCachedSizesToArray( |
5379 | 22 | bool deterministic, ::google::protobuf::uint8* target) const { |
5380 | 22 | (void)deterministic; // Unused |
5381 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5382 | 22 | ::google::protobuf::uint32 cached_has_bits = 0; |
5383 | 22 | (void) cached_has_bits; |
5384 | | |
5385 | 22 | cached_has_bits = _has_bits_[0]; |
5386 | | // optional bytes stream_id = 1; |
5387 | 22 | if (cached_has_bits & 0x00000001u) { |
5388 | 22 | target = |
5389 | 22 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5390 | 22 | 1, this->stream_id(), target); |
5391 | 22 | } |
5392 | | |
5393 | | // optional bytes table_id = 2; |
5394 | 22 | if (cached_has_bits & 0x00000002u) { |
5395 | 22 | target = |
5396 | 22 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5397 | 22 | 2, this->table_id(), target); |
5398 | 22 | } |
5399 | | |
5400 | 22 | if (_internal_metadata_.have_unknown_fields()) { |
5401 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5402 | 0 | _internal_metadata_.unknown_fields(), target); |
5403 | 0 | } |
5404 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5405 | 22 | return target; |
5406 | 22 | } |
5407 | | |
5408 | 44 | size_t GetCDCDBStreamInfoResponsePB_TableInfo::ByteSizeLong() const { |
5409 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5410 | 44 | size_t total_size = 0; |
5411 | | |
5412 | 44 | if (_internal_metadata_.have_unknown_fields()) { |
5413 | 0 | total_size += |
5414 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5415 | 0 | _internal_metadata_.unknown_fields()); |
5416 | 0 | } |
5417 | 44 | if (_has_bits_[0 / 32] & 3u) { |
5418 | | // optional bytes stream_id = 1; |
5419 | 44 | if (has_stream_id()) { |
5420 | 44 | total_size += 1 + |
5421 | 44 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5422 | 44 | this->stream_id()); |
5423 | 44 | } |
5424 | | |
5425 | | // optional bytes table_id = 2; |
5426 | 44 | if (has_table_id()) { |
5427 | 44 | total_size += 1 + |
5428 | 44 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5429 | 44 | this->table_id()); |
5430 | 44 | } |
5431 | | |
5432 | 44 | } |
5433 | 44 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5434 | 44 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5435 | 44 | _cached_size_ = cached_size; |
5436 | 44 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5437 | 44 | return total_size; |
5438 | 44 | } |
5439 | | |
5440 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::MergeFrom(const ::google::protobuf::Message& from) { |
5441 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5442 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5443 | 0 | const GetCDCDBStreamInfoResponsePB_TableInfo* source = |
5444 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoResponsePB_TableInfo>( |
5445 | 0 | &from); |
5446 | 0 | if (source == NULL) { |
5447 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5448 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5449 | 0 | } else { |
5450 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5451 | 0 | MergeFrom(*source); |
5452 | 0 | } |
5453 | 0 | } |
5454 | | |
5455 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::MergeFrom(const GetCDCDBStreamInfoResponsePB_TableInfo& from) { |
5456 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5457 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5458 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5459 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5460 | 0 | (void) cached_has_bits; |
5461 | |
|
5462 | 0 | cached_has_bits = from._has_bits_[0]; |
5463 | 0 | if (cached_has_bits & 3u) { |
5464 | 0 | if (cached_has_bits & 0x00000001u) { |
5465 | 0 | set_has_stream_id(); |
5466 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
5467 | 0 | } |
5468 | 0 | if (cached_has_bits & 0x00000002u) { |
5469 | 0 | set_has_table_id(); |
5470 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
5471 | 0 | } |
5472 | 0 | } |
5473 | 0 | } |
5474 | | |
5475 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::CopyFrom(const ::google::protobuf::Message& from) { |
5476 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5477 | 0 | if (&from == this) return; |
5478 | 0 | Clear(); |
5479 | 0 | MergeFrom(from); |
5480 | 0 | } |
5481 | | |
5482 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::CopyFrom(const GetCDCDBStreamInfoResponsePB_TableInfo& from) { |
5483 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetCDCDBStreamInfoResponsePB.TableInfo) |
5484 | 0 | if (&from == this) return; |
5485 | 0 | Clear(); |
5486 | 0 | MergeFrom(from); |
5487 | 0 | } |
5488 | | |
5489 | 0 | bool GetCDCDBStreamInfoResponsePB_TableInfo::IsInitialized() const { |
5490 | 0 | return true; |
5491 | 0 | } |
5492 | | |
5493 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::Swap(GetCDCDBStreamInfoResponsePB_TableInfo* other) { |
5494 | 0 | if (other == this) return; |
5495 | 0 | InternalSwap(other); |
5496 | 0 | } |
5497 | 0 | void GetCDCDBStreamInfoResponsePB_TableInfo::InternalSwap(GetCDCDBStreamInfoResponsePB_TableInfo* other) { |
5498 | 0 | using std::swap; |
5499 | 0 | stream_id_.Swap(&other->stream_id_); |
5500 | 0 | table_id_.Swap(&other->table_id_); |
5501 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5502 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5503 | 0 | swap(_cached_size_, other->_cached_size_); |
5504 | 0 | } |
5505 | | |
5506 | 0 | ::google::protobuf::Metadata GetCDCDBStreamInfoResponsePB_TableInfo::GetMetadata() const { |
5507 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5508 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
5509 | 0 | } |
5510 | | |
5511 | | |
5512 | | // =================================================================== |
5513 | | |
5514 | 26.8k | void GetCDCDBStreamInfoResponsePB::InitAsDefaultInstance() { |
5515 | 26.8k | ::yb::master::_GetCDCDBStreamInfoResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
5516 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
5517 | 26.8k | } |
5518 | 0 | void GetCDCDBStreamInfoResponsePB::clear_error() { |
5519 | 0 | if (error_ != NULL) error_->Clear(); |
5520 | 0 | clear_has_error(); |
5521 | 0 | } |
5522 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5523 | | const int GetCDCDBStreamInfoResponsePB::kErrorFieldNumber; |
5524 | | const int GetCDCDBStreamInfoResponsePB::kTableInfoFieldNumber; |
5525 | | const int GetCDCDBStreamInfoResponsePB::kNamespaceIdFieldNumber; |
5526 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5527 | | |
5528 | | GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB() |
5529 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5530 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5531 | 22 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB(); |
5532 | 22 | } |
5533 | 26.8k | SharedCtor(); |
5534 | | // @@protoc_insertion_point(constructor:yb.master.GetCDCDBStreamInfoResponsePB) |
5535 | 26.8k | } |
5536 | | GetCDCDBStreamInfoResponsePB::GetCDCDBStreamInfoResponsePB(const GetCDCDBStreamInfoResponsePB& from) |
5537 | | : ::google::protobuf::Message(), |
5538 | | _internal_metadata_(NULL), |
5539 | | _has_bits_(from._has_bits_), |
5540 | | _cached_size_(0), |
5541 | 0 | table_info_(from.table_info_) { |
5542 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5543 | 0 | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5544 | 0 | if (from.has_namespace_id()) { |
5545 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
5546 | 0 | } |
5547 | 0 | if (from.has_error()) { |
5548 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
5549 | 0 | } else { |
5550 | 0 | error_ = NULL; |
5551 | 0 | } |
5552 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetCDCDBStreamInfoResponsePB) |
5553 | 0 | } |
5554 | | |
5555 | 26.8k | void GetCDCDBStreamInfoResponsePB::SharedCtor() { |
5556 | 26.8k | _cached_size_ = 0; |
5557 | 26.8k | namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5558 | 26.8k | error_ = NULL; |
5559 | 26.8k | } |
5560 | | |
5561 | 22 | GetCDCDBStreamInfoResponsePB::~GetCDCDBStreamInfoResponsePB() { |
5562 | | // @@protoc_insertion_point(destructor:yb.master.GetCDCDBStreamInfoResponsePB) |
5563 | 22 | SharedDtor(); |
5564 | 22 | } |
5565 | | |
5566 | 22 | void GetCDCDBStreamInfoResponsePB::SharedDtor() { |
5567 | 22 | namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5568 | 22 | if (this != internal_default_instance()) delete error_; |
5569 | 22 | } |
5570 | | |
5571 | 0 | void GetCDCDBStreamInfoResponsePB::SetCachedSize(int size) const { |
5572 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5573 | 0 | _cached_size_ = size; |
5574 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5575 | 0 | } |
5576 | 0 | const ::google::protobuf::Descriptor* GetCDCDBStreamInfoResponsePB::descriptor() { |
5577 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5578 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5579 | 0 | } |
5580 | | |
5581 | 0 | const GetCDCDBStreamInfoResponsePB& GetCDCDBStreamInfoResponsePB::default_instance() { |
5582 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetCDCDBStreamInfoResponsePB(); |
5583 | 0 | return *internal_default_instance(); |
5584 | 0 | } |
5585 | | |
5586 | 0 | GetCDCDBStreamInfoResponsePB* GetCDCDBStreamInfoResponsePB::New(::google::protobuf::Arena* arena) const { |
5587 | 0 | GetCDCDBStreamInfoResponsePB* n = new GetCDCDBStreamInfoResponsePB; |
5588 | 0 | if (arena != NULL) { |
5589 | 0 | arena->Own(n); |
5590 | 0 | } |
5591 | 0 | return n; |
5592 | 0 | } |
5593 | | |
5594 | 0 | void GetCDCDBStreamInfoResponsePB::Clear() { |
5595 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5596 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5597 | | // Prevent compiler warnings about cached_has_bits being unused |
5598 | 0 | (void) cached_has_bits; |
5599 | |
|
5600 | 0 | table_info_.Clear(); |
5601 | 0 | cached_has_bits = _has_bits_[0]; |
5602 | 0 | if (cached_has_bits & 3u) { |
5603 | 0 | if (cached_has_bits & 0x00000001u) { |
5604 | 0 | GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5605 | 0 | (*namespace_id_.UnsafeRawStringPointer())->clear(); |
5606 | 0 | } |
5607 | 0 | if (cached_has_bits & 0x00000002u) { |
5608 | 0 | GOOGLE_DCHECK(error_ != NULL); |
5609 | 0 | error_->Clear(); |
5610 | 0 | } |
5611 | 0 | } |
5612 | 0 | _has_bits_.Clear(); |
5613 | 0 | _internal_metadata_.Clear(); |
5614 | 0 | } |
5615 | | |
5616 | | bool GetCDCDBStreamInfoResponsePB::MergePartialFromCodedStream( |
5617 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5618 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5619 | 0 | ::google::protobuf::uint32 tag; |
5620 | | // @@protoc_insertion_point(parse_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5621 | 0 | for (;;) { |
5622 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5623 | 0 | tag = p.first; |
5624 | 0 | if (!p.second) goto handle_unusual; |
5625 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5626 | | // optional .yb.master.MasterErrorPB error = 1; |
5627 | 0 | case 1: { |
5628 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5629 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5630 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5631 | 0 | input, mutable_error())); |
5632 | 0 | } else { |
5633 | 0 | goto handle_unusual; |
5634 | 0 | } |
5635 | 0 | break; |
5636 | 0 | } |
5637 | | |
5638 | | // repeated .yb.master.GetCDCDBStreamInfoResponsePB.TableInfo table_info = 2; |
5639 | 0 | case 2: { |
5640 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5641 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5642 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_table_info())); |
5643 | 0 | } else { |
5644 | 0 | goto handle_unusual; |
5645 | 0 | } |
5646 | 0 | break; |
5647 | 0 | } |
5648 | | |
5649 | | // optional bytes namespace_id = 3; |
5650 | 0 | case 3: { |
5651 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5652 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5653 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5654 | 0 | input, this->mutable_namespace_id())); |
5655 | 0 | } else { |
5656 | 0 | goto handle_unusual; |
5657 | 0 | } |
5658 | 0 | break; |
5659 | 0 | } |
5660 | | |
5661 | 0 | default: { |
5662 | 0 | handle_unusual: |
5663 | 0 | if (tag == 0) { |
5664 | 0 | goto success; |
5665 | 0 | } |
5666 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5667 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5668 | 0 | break; |
5669 | 0 | } |
5670 | 0 | } |
5671 | 0 | } |
5672 | 0 | success: |
5673 | | // @@protoc_insertion_point(parse_success:yb.master.GetCDCDBStreamInfoResponsePB) |
5674 | 0 | return true; |
5675 | 0 | failure: |
5676 | | // @@protoc_insertion_point(parse_failure:yb.master.GetCDCDBStreamInfoResponsePB) |
5677 | 0 | return false; |
5678 | 0 | #undef DO_ |
5679 | 0 | } |
5680 | | |
5681 | | void GetCDCDBStreamInfoResponsePB::SerializeWithCachedSizes( |
5682 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5683 | | // @@protoc_insertion_point(serialize_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5684 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5685 | 0 | (void) cached_has_bits; |
5686 | |
|
5687 | 0 | cached_has_bits = _has_bits_[0]; |
5688 | | // optional .yb.master.MasterErrorPB error = 1; |
5689 | 0 | if (cached_has_bits & 0x00000002u) { |
5690 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5691 | 0 | 1, *this->error_, output); |
5692 | 0 | } |
5693 | | |
5694 | | // repeated .yb.master.GetCDCDBStreamInfoResponsePB.TableInfo table_info = 2; |
5695 | 0 | for (unsigned int i = 0, |
5696 | 0 | n = static_cast<unsigned int>(this->table_info_size()); i < n; i++) { |
5697 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5698 | 0 | 2, this->table_info(static_cast<int>(i)), output); |
5699 | 0 | } |
5700 | | |
5701 | | // optional bytes namespace_id = 3; |
5702 | 0 | if (cached_has_bits & 0x00000001u) { |
5703 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5704 | 0 | 3, this->namespace_id(), output); |
5705 | 0 | } |
5706 | |
|
5707 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5708 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5709 | 0 | _internal_metadata_.unknown_fields(), output); |
5710 | 0 | } |
5711 | | // @@protoc_insertion_point(serialize_end:yb.master.GetCDCDBStreamInfoResponsePB) |
5712 | 0 | } |
5713 | | |
5714 | | ::google::protobuf::uint8* GetCDCDBStreamInfoResponsePB::InternalSerializeWithCachedSizesToArray( |
5715 | 22 | bool deterministic, ::google::protobuf::uint8* target) const { |
5716 | 22 | (void)deterministic; // Unused |
5717 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5718 | 22 | ::google::protobuf::uint32 cached_has_bits = 0; |
5719 | 22 | (void) cached_has_bits; |
5720 | | |
5721 | 22 | cached_has_bits = _has_bits_[0]; |
5722 | | // optional .yb.master.MasterErrorPB error = 1; |
5723 | 22 | if (cached_has_bits & 0x00000002u) { |
5724 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
5725 | 0 | InternalWriteMessageToArray( |
5726 | 0 | 1, *this->error_, deterministic, target); |
5727 | 0 | } |
5728 | | |
5729 | | // repeated .yb.master.GetCDCDBStreamInfoResponsePB.TableInfo table_info = 2; |
5730 | 22 | for (unsigned int i = 0, |
5731 | 44 | n = static_cast<unsigned int>(this->table_info_size()); i < n; i++22 ) { |
5732 | 22 | target = ::google::protobuf::internal::WireFormatLite:: |
5733 | 22 | InternalWriteMessageToArray( |
5734 | 22 | 2, this->table_info(static_cast<int>(i)), deterministic, target); |
5735 | 22 | } |
5736 | | |
5737 | | // optional bytes namespace_id = 3; |
5738 | 22 | if (cached_has_bits & 0x00000001u) { |
5739 | 22 | target = |
5740 | 22 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5741 | 22 | 3, this->namespace_id(), target); |
5742 | 22 | } |
5743 | | |
5744 | 22 | if (_internal_metadata_.have_unknown_fields()) { |
5745 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5746 | 0 | _internal_metadata_.unknown_fields(), target); |
5747 | 0 | } |
5748 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetCDCDBStreamInfoResponsePB) |
5749 | 22 | return target; |
5750 | 22 | } |
5751 | | |
5752 | 44 | size_t GetCDCDBStreamInfoResponsePB::ByteSizeLong() const { |
5753 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5754 | 44 | size_t total_size = 0; |
5755 | | |
5756 | 44 | if (_internal_metadata_.have_unknown_fields()) { |
5757 | 0 | total_size += |
5758 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5759 | 0 | _internal_metadata_.unknown_fields()); |
5760 | 0 | } |
5761 | | // repeated .yb.master.GetCDCDBStreamInfoResponsePB.TableInfo table_info = 2; |
5762 | 44 | { |
5763 | 44 | unsigned int count = static_cast<unsigned int>(this->table_info_size()); |
5764 | 44 | total_size += 1UL * count; |
5765 | 88 | for (unsigned int i = 0; i < count; i++44 ) { |
5766 | 44 | total_size += |
5767 | 44 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5768 | 44 | this->table_info(static_cast<int>(i))); |
5769 | 44 | } |
5770 | 44 | } |
5771 | | |
5772 | 44 | if (_has_bits_[0 / 32] & 3u) { |
5773 | | // optional bytes namespace_id = 3; |
5774 | 44 | if (has_namespace_id()) { |
5775 | 44 | total_size += 1 + |
5776 | 44 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5777 | 44 | this->namespace_id()); |
5778 | 44 | } |
5779 | | |
5780 | | // optional .yb.master.MasterErrorPB error = 1; |
5781 | 44 | if (has_error()) { |
5782 | 0 | total_size += 1 + |
5783 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5784 | 0 | *this->error_); |
5785 | 0 | } |
5786 | | |
5787 | 44 | } |
5788 | 44 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5789 | 44 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5790 | 44 | _cached_size_ = cached_size; |
5791 | 44 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5792 | 44 | return total_size; |
5793 | 44 | } |
5794 | | |
5795 | 0 | void GetCDCDBStreamInfoResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
5796 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5797 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5798 | 0 | const GetCDCDBStreamInfoResponsePB* source = |
5799 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetCDCDBStreamInfoResponsePB>( |
5800 | 0 | &from); |
5801 | 0 | if (source == NULL) { |
5802 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetCDCDBStreamInfoResponsePB) |
5803 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5804 | 0 | } else { |
5805 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetCDCDBStreamInfoResponsePB) |
5806 | 0 | MergeFrom(*source); |
5807 | 0 | } |
5808 | 0 | } |
5809 | | |
5810 | 0 | void GetCDCDBStreamInfoResponsePB::MergeFrom(const GetCDCDBStreamInfoResponsePB& from) { |
5811 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5812 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5813 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5814 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5815 | 0 | (void) cached_has_bits; |
5816 | |
|
5817 | 0 | table_info_.MergeFrom(from.table_info_); |
5818 | 0 | cached_has_bits = from._has_bits_[0]; |
5819 | 0 | if (cached_has_bits & 3u) { |
5820 | 0 | if (cached_has_bits & 0x00000001u) { |
5821 | 0 | set_has_namespace_id(); |
5822 | 0 | namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_); |
5823 | 0 | } |
5824 | 0 | if (cached_has_bits & 0x00000002u) { |
5825 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
5826 | 0 | } |
5827 | 0 | } |
5828 | 0 | } |
5829 | | |
5830 | 0 | void GetCDCDBStreamInfoResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
5831 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5832 | 0 | if (&from == this) return; |
5833 | 0 | Clear(); |
5834 | 0 | MergeFrom(from); |
5835 | 0 | } |
5836 | | |
5837 | 0 | void GetCDCDBStreamInfoResponsePB::CopyFrom(const GetCDCDBStreamInfoResponsePB& from) { |
5838 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetCDCDBStreamInfoResponsePB) |
5839 | 0 | if (&from == this) return; |
5840 | 0 | Clear(); |
5841 | 0 | MergeFrom(from); |
5842 | 0 | } |
5843 | | |
5844 | 22 | bool GetCDCDBStreamInfoResponsePB::IsInitialized() const { |
5845 | 22 | if (has_error()) { |
5846 | 0 | if (!this->error_->IsInitialized()) return false; |
5847 | 0 | } |
5848 | 22 | return true; |
5849 | 22 | } |
5850 | | |
5851 | 0 | void GetCDCDBStreamInfoResponsePB::Swap(GetCDCDBStreamInfoResponsePB* other) { |
5852 | 0 | if (other == this) return; |
5853 | 0 | InternalSwap(other); |
5854 | 0 | } |
5855 | 0 | void GetCDCDBStreamInfoResponsePB::InternalSwap(GetCDCDBStreamInfoResponsePB* other) { |
5856 | 0 | using std::swap; |
5857 | 0 | table_info_.InternalSwap(&other->table_info_); |
5858 | 0 | namespace_id_.Swap(&other->namespace_id_); |
5859 | 0 | swap(error_, other->error_); |
5860 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5861 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5862 | 0 | swap(_cached_size_, other->_cached_size_); |
5863 | 0 | } |
5864 | | |
5865 | 0 | ::google::protobuf::Metadata GetCDCDBStreamInfoResponsePB::GetMetadata() const { |
5866 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5867 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
5868 | 0 | } |
5869 | | |
5870 | | |
5871 | | // =================================================================== |
5872 | | |
5873 | 26.8k | void UpdateCDCStreamRequestPB::InitAsDefaultInstance() { |
5874 | 26.8k | ::yb::master::_UpdateCDCStreamRequestPB_default_instance_._instance.get_mutable()->entry_ = const_cast< ::yb::master::SysCDCStreamEntryPB*>( |
5875 | 26.8k | ::yb::master::SysCDCStreamEntryPB::internal_default_instance()); |
5876 | 26.8k | } |
5877 | 0 | void UpdateCDCStreamRequestPB::clear_entry() { |
5878 | 0 | if (entry_ != NULL) entry_->Clear(); |
5879 | 0 | clear_has_entry(); |
5880 | 0 | } |
5881 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5882 | | const int UpdateCDCStreamRequestPB::kStreamIdFieldNumber; |
5883 | | const int UpdateCDCStreamRequestPB::kEntryFieldNumber; |
5884 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5885 | | |
5886 | | UpdateCDCStreamRequestPB::UpdateCDCStreamRequestPB() |
5887 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5888 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5889 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateCDCStreamRequestPB(); |
5890 | 0 | } |
5891 | 26.8k | SharedCtor(); |
5892 | | // @@protoc_insertion_point(constructor:yb.master.UpdateCDCStreamRequestPB) |
5893 | 26.8k | } |
5894 | | UpdateCDCStreamRequestPB::UpdateCDCStreamRequestPB(const UpdateCDCStreamRequestPB& from) |
5895 | | : ::google::protobuf::Message(), |
5896 | | _internal_metadata_(NULL), |
5897 | | _has_bits_(from._has_bits_), |
5898 | 0 | _cached_size_(0) { |
5899 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5900 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5901 | 0 | if (from.has_stream_id()) { |
5902 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
5903 | 0 | } |
5904 | 0 | if (from.has_entry()) { |
5905 | 0 | entry_ = new ::yb::master::SysCDCStreamEntryPB(*from.entry_); |
5906 | 0 | } else { |
5907 | 0 | entry_ = NULL; |
5908 | 0 | } |
5909 | | // @@protoc_insertion_point(copy_constructor:yb.master.UpdateCDCStreamRequestPB) |
5910 | 0 | } |
5911 | | |
5912 | 26.8k | void UpdateCDCStreamRequestPB::SharedCtor() { |
5913 | 26.8k | _cached_size_ = 0; |
5914 | 26.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5915 | 26.8k | entry_ = NULL; |
5916 | 26.8k | } |
5917 | | |
5918 | 0 | UpdateCDCStreamRequestPB::~UpdateCDCStreamRequestPB() { |
5919 | | // @@protoc_insertion_point(destructor:yb.master.UpdateCDCStreamRequestPB) |
5920 | 0 | SharedDtor(); |
5921 | 0 | } |
5922 | | |
5923 | 0 | void UpdateCDCStreamRequestPB::SharedDtor() { |
5924 | 0 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5925 | 0 | if (this != internal_default_instance()) delete entry_; |
5926 | 0 | } |
5927 | | |
5928 | 0 | void UpdateCDCStreamRequestPB::SetCachedSize(int size) const { |
5929 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5930 | 0 | _cached_size_ = size; |
5931 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5932 | 0 | } |
5933 | 0 | const ::google::protobuf::Descriptor* UpdateCDCStreamRequestPB::descriptor() { |
5934 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
5935 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5936 | 0 | } |
5937 | | |
5938 | 0 | const UpdateCDCStreamRequestPB& UpdateCDCStreamRequestPB::default_instance() { |
5939 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateCDCStreamRequestPB(); |
5940 | 0 | return *internal_default_instance(); |
5941 | 0 | } |
5942 | | |
5943 | 0 | UpdateCDCStreamRequestPB* UpdateCDCStreamRequestPB::New(::google::protobuf::Arena* arena) const { |
5944 | 0 | UpdateCDCStreamRequestPB* n = new UpdateCDCStreamRequestPB; |
5945 | 0 | if (arena != NULL) { |
5946 | 0 | arena->Own(n); |
5947 | 0 | } |
5948 | 0 | return n; |
5949 | 0 | } |
5950 | | |
5951 | 0 | void UpdateCDCStreamRequestPB::Clear() { |
5952 | | // @@protoc_insertion_point(message_clear_start:yb.master.UpdateCDCStreamRequestPB) |
5953 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5954 | | // Prevent compiler warnings about cached_has_bits being unused |
5955 | 0 | (void) cached_has_bits; |
5956 | |
|
5957 | 0 | cached_has_bits = _has_bits_[0]; |
5958 | 0 | if (cached_has_bits & 3u) { |
5959 | 0 | if (cached_has_bits & 0x00000001u) { |
5960 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5961 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
5962 | 0 | } |
5963 | 0 | if (cached_has_bits & 0x00000002u) { |
5964 | 0 | GOOGLE_DCHECK(entry_ != NULL); |
5965 | 0 | entry_->Clear(); |
5966 | 0 | } |
5967 | 0 | } |
5968 | 0 | _has_bits_.Clear(); |
5969 | 0 | _internal_metadata_.Clear(); |
5970 | 0 | } |
5971 | | |
5972 | | bool UpdateCDCStreamRequestPB::MergePartialFromCodedStream( |
5973 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5974 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5975 | 0 | ::google::protobuf::uint32 tag; |
5976 | | // @@protoc_insertion_point(parse_start:yb.master.UpdateCDCStreamRequestPB) |
5977 | 0 | for (;;) { |
5978 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5979 | 0 | tag = p.first; |
5980 | 0 | if (!p.second) goto handle_unusual; |
5981 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5982 | | // optional bytes stream_id = 1; |
5983 | 0 | case 1: { |
5984 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5985 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5986 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5987 | 0 | input, this->mutable_stream_id())); |
5988 | 0 | } else { |
5989 | 0 | goto handle_unusual; |
5990 | 0 | } |
5991 | 0 | break; |
5992 | 0 | } |
5993 | | |
5994 | | // optional .yb.master.SysCDCStreamEntryPB entry = 2; |
5995 | 0 | case 2: { |
5996 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5997 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5998 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5999 | 0 | input, mutable_entry())); |
6000 | 0 | } else { |
6001 | 0 | goto handle_unusual; |
6002 | 0 | } |
6003 | 0 | break; |
6004 | 0 | } |
6005 | | |
6006 | 0 | default: { |
6007 | 0 | handle_unusual: |
6008 | 0 | if (tag == 0) { |
6009 | 0 | goto success; |
6010 | 0 | } |
6011 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6012 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6013 | 0 | break; |
6014 | 0 | } |
6015 | 0 | } |
6016 | 0 | } |
6017 | 0 | success: |
6018 | | // @@protoc_insertion_point(parse_success:yb.master.UpdateCDCStreamRequestPB) |
6019 | 0 | return true; |
6020 | 0 | failure: |
6021 | | // @@protoc_insertion_point(parse_failure:yb.master.UpdateCDCStreamRequestPB) |
6022 | 0 | return false; |
6023 | 0 | #undef DO_ |
6024 | 0 | } |
6025 | | |
6026 | | void UpdateCDCStreamRequestPB::SerializeWithCachedSizes( |
6027 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6028 | | // @@protoc_insertion_point(serialize_start:yb.master.UpdateCDCStreamRequestPB) |
6029 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6030 | 0 | (void) cached_has_bits; |
6031 | |
|
6032 | 0 | cached_has_bits = _has_bits_[0]; |
6033 | | // optional bytes stream_id = 1; |
6034 | 0 | if (cached_has_bits & 0x00000001u) { |
6035 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
6036 | 0 | 1, this->stream_id(), output); |
6037 | 0 | } |
6038 | | |
6039 | | // optional .yb.master.SysCDCStreamEntryPB entry = 2; |
6040 | 0 | if (cached_has_bits & 0x00000002u) { |
6041 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6042 | 0 | 2, *this->entry_, output); |
6043 | 0 | } |
6044 | |
|
6045 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6046 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6047 | 0 | _internal_metadata_.unknown_fields(), output); |
6048 | 0 | } |
6049 | | // @@protoc_insertion_point(serialize_end:yb.master.UpdateCDCStreamRequestPB) |
6050 | 0 | } |
6051 | | |
6052 | | ::google::protobuf::uint8* UpdateCDCStreamRequestPB::InternalSerializeWithCachedSizesToArray( |
6053 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
6054 | 0 | (void)deterministic; // Unused |
6055 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.UpdateCDCStreamRequestPB) |
6056 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6057 | 0 | (void) cached_has_bits; |
6058 | |
|
6059 | 0 | cached_has_bits = _has_bits_[0]; |
6060 | | // optional bytes stream_id = 1; |
6061 | 0 | if (cached_has_bits & 0x00000001u) { |
6062 | 0 | target = |
6063 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
6064 | 0 | 1, this->stream_id(), target); |
6065 | 0 | } |
6066 | | |
6067 | | // optional .yb.master.SysCDCStreamEntryPB entry = 2; |
6068 | 0 | if (cached_has_bits & 0x00000002u) { |
6069 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6070 | 0 | InternalWriteMessageToArray( |
6071 | 0 | 2, *this->entry_, deterministic, target); |
6072 | 0 | } |
6073 | |
|
6074 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6075 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6076 | 0 | _internal_metadata_.unknown_fields(), target); |
6077 | 0 | } |
6078 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.UpdateCDCStreamRequestPB) |
6079 | 0 | return target; |
6080 | 0 | } |
6081 | | |
6082 | 0 | size_t UpdateCDCStreamRequestPB::ByteSizeLong() const { |
6083 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.UpdateCDCStreamRequestPB) |
6084 | 0 | size_t total_size = 0; |
6085 | |
|
6086 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6087 | 0 | total_size += |
6088 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6089 | 0 | _internal_metadata_.unknown_fields()); |
6090 | 0 | } |
6091 | 0 | if (_has_bits_[0 / 32] & 3u) { |
6092 | | // optional bytes stream_id = 1; |
6093 | 0 | if (has_stream_id()) { |
6094 | 0 | total_size += 1 + |
6095 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6096 | 0 | this->stream_id()); |
6097 | 0 | } |
6098 | | |
6099 | | // optional .yb.master.SysCDCStreamEntryPB entry = 2; |
6100 | 0 | if (has_entry()) { |
6101 | 0 | total_size += 1 + |
6102 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6103 | 0 | *this->entry_); |
6104 | 0 | } |
6105 | |
|
6106 | 0 | } |
6107 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6108 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6109 | 0 | _cached_size_ = cached_size; |
6110 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6111 | 0 | return total_size; |
6112 | 0 | } |
6113 | | |
6114 | 0 | void UpdateCDCStreamRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6115 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.UpdateCDCStreamRequestPB) |
6116 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6117 | 0 | const UpdateCDCStreamRequestPB* source = |
6118 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCDCStreamRequestPB>( |
6119 | 0 | &from); |
6120 | 0 | if (source == NULL) { |
6121 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.UpdateCDCStreamRequestPB) |
6122 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6123 | 0 | } else { |
6124 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.UpdateCDCStreamRequestPB) |
6125 | 0 | MergeFrom(*source); |
6126 | 0 | } |
6127 | 0 | } |
6128 | | |
6129 | 0 | void UpdateCDCStreamRequestPB::MergeFrom(const UpdateCDCStreamRequestPB& from) { |
6130 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.UpdateCDCStreamRequestPB) |
6131 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6132 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6133 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6134 | 0 | (void) cached_has_bits; |
6135 | |
|
6136 | 0 | cached_has_bits = from._has_bits_[0]; |
6137 | 0 | if (cached_has_bits & 3u) { |
6138 | 0 | if (cached_has_bits & 0x00000001u) { |
6139 | 0 | set_has_stream_id(); |
6140 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
6141 | 0 | } |
6142 | 0 | if (cached_has_bits & 0x00000002u) { |
6143 | 0 | mutable_entry()->::yb::master::SysCDCStreamEntryPB::MergeFrom(from.entry()); |
6144 | 0 | } |
6145 | 0 | } |
6146 | 0 | } |
6147 | | |
6148 | 0 | void UpdateCDCStreamRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6149 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.UpdateCDCStreamRequestPB) |
6150 | 0 | if (&from == this) return; |
6151 | 0 | Clear(); |
6152 | 0 | MergeFrom(from); |
6153 | 0 | } |
6154 | | |
6155 | 0 | void UpdateCDCStreamRequestPB::CopyFrom(const UpdateCDCStreamRequestPB& from) { |
6156 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.UpdateCDCStreamRequestPB) |
6157 | 0 | if (&from == this) return; |
6158 | 0 | Clear(); |
6159 | 0 | MergeFrom(from); |
6160 | 0 | } |
6161 | | |
6162 | 0 | bool UpdateCDCStreamRequestPB::IsInitialized() const { |
6163 | 0 | return true; |
6164 | 0 | } |
6165 | | |
6166 | 0 | void UpdateCDCStreamRequestPB::Swap(UpdateCDCStreamRequestPB* other) { |
6167 | 0 | if (other == this) return; |
6168 | 0 | InternalSwap(other); |
6169 | 0 | } |
6170 | 0 | void UpdateCDCStreamRequestPB::InternalSwap(UpdateCDCStreamRequestPB* other) { |
6171 | 0 | using std::swap; |
6172 | 0 | stream_id_.Swap(&other->stream_id_); |
6173 | 0 | swap(entry_, other->entry_); |
6174 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6175 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6176 | 0 | swap(_cached_size_, other->_cached_size_); |
6177 | 0 | } |
6178 | | |
6179 | 0 | ::google::protobuf::Metadata UpdateCDCStreamRequestPB::GetMetadata() const { |
6180 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6181 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
6182 | 0 | } |
6183 | | |
6184 | | |
6185 | | // =================================================================== |
6186 | | |
6187 | 26.8k | void UpdateCDCStreamResponsePB::InitAsDefaultInstance() { |
6188 | 26.8k | ::yb::master::_UpdateCDCStreamResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
6189 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
6190 | 26.8k | } |
6191 | 0 | void UpdateCDCStreamResponsePB::clear_error() { |
6192 | 0 | if (error_ != NULL) error_->Clear(); |
6193 | 0 | clear_has_error(); |
6194 | 0 | } |
6195 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6196 | | const int UpdateCDCStreamResponsePB::kErrorFieldNumber; |
6197 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6198 | | |
6199 | | UpdateCDCStreamResponsePB::UpdateCDCStreamResponsePB() |
6200 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6201 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6202 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateCDCStreamResponsePB(); |
6203 | 0 | } |
6204 | 26.8k | SharedCtor(); |
6205 | | // @@protoc_insertion_point(constructor:yb.master.UpdateCDCStreamResponsePB) |
6206 | 26.8k | } |
6207 | | UpdateCDCStreamResponsePB::UpdateCDCStreamResponsePB(const UpdateCDCStreamResponsePB& from) |
6208 | | : ::google::protobuf::Message(), |
6209 | | _internal_metadata_(NULL), |
6210 | | _has_bits_(from._has_bits_), |
6211 | 0 | _cached_size_(0) { |
6212 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6213 | 0 | if (from.has_error()) { |
6214 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
6215 | 0 | } else { |
6216 | 0 | error_ = NULL; |
6217 | 0 | } |
6218 | | // @@protoc_insertion_point(copy_constructor:yb.master.UpdateCDCStreamResponsePB) |
6219 | 0 | } |
6220 | | |
6221 | 26.8k | void UpdateCDCStreamResponsePB::SharedCtor() { |
6222 | 26.8k | _cached_size_ = 0; |
6223 | 26.8k | error_ = NULL; |
6224 | 26.8k | } |
6225 | | |
6226 | 0 | UpdateCDCStreamResponsePB::~UpdateCDCStreamResponsePB() { |
6227 | | // @@protoc_insertion_point(destructor:yb.master.UpdateCDCStreamResponsePB) |
6228 | 0 | SharedDtor(); |
6229 | 0 | } |
6230 | | |
6231 | 0 | void UpdateCDCStreamResponsePB::SharedDtor() { |
6232 | 0 | if (this != internal_default_instance()) delete error_; |
6233 | 0 | } |
6234 | | |
6235 | 0 | void UpdateCDCStreamResponsePB::SetCachedSize(int size) const { |
6236 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6237 | 0 | _cached_size_ = size; |
6238 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6239 | 0 | } |
6240 | 0 | const ::google::protobuf::Descriptor* UpdateCDCStreamResponsePB::descriptor() { |
6241 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6242 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6243 | 0 | } |
6244 | | |
6245 | 0 | const UpdateCDCStreamResponsePB& UpdateCDCStreamResponsePB::default_instance() { |
6246 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateCDCStreamResponsePB(); |
6247 | 0 | return *internal_default_instance(); |
6248 | 0 | } |
6249 | | |
6250 | 0 | UpdateCDCStreamResponsePB* UpdateCDCStreamResponsePB::New(::google::protobuf::Arena* arena) const { |
6251 | 0 | UpdateCDCStreamResponsePB* n = new UpdateCDCStreamResponsePB; |
6252 | 0 | if (arena != NULL) { |
6253 | 0 | arena->Own(n); |
6254 | 0 | } |
6255 | 0 | return n; |
6256 | 0 | } |
6257 | | |
6258 | 0 | void UpdateCDCStreamResponsePB::Clear() { |
6259 | | // @@protoc_insertion_point(message_clear_start:yb.master.UpdateCDCStreamResponsePB) |
6260 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6261 | | // Prevent compiler warnings about cached_has_bits being unused |
6262 | 0 | (void) cached_has_bits; |
6263 | |
|
6264 | 0 | cached_has_bits = _has_bits_[0]; |
6265 | 0 | if (cached_has_bits & 0x00000001u) { |
6266 | 0 | GOOGLE_DCHECK(error_ != NULL); |
6267 | 0 | error_->Clear(); |
6268 | 0 | } |
6269 | 0 | _has_bits_.Clear(); |
6270 | 0 | _internal_metadata_.Clear(); |
6271 | 0 | } |
6272 | | |
6273 | | bool UpdateCDCStreamResponsePB::MergePartialFromCodedStream( |
6274 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
6275 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6276 | 0 | ::google::protobuf::uint32 tag; |
6277 | | // @@protoc_insertion_point(parse_start:yb.master.UpdateCDCStreamResponsePB) |
6278 | 0 | for (;;) { |
6279 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6280 | 0 | tag = p.first; |
6281 | 0 | if (!p.second) goto handle_unusual; |
6282 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6283 | | // optional .yb.master.MasterErrorPB error = 1; |
6284 | 0 | case 1: { |
6285 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6286 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
6287 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6288 | 0 | input, mutable_error())); |
6289 | 0 | } else { |
6290 | 0 | goto handle_unusual; |
6291 | 0 | } |
6292 | 0 | break; |
6293 | 0 | } |
6294 | | |
6295 | 0 | default: { |
6296 | 0 | handle_unusual: |
6297 | 0 | if (tag == 0) { |
6298 | 0 | goto success; |
6299 | 0 | } |
6300 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6301 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6302 | 0 | break; |
6303 | 0 | } |
6304 | 0 | } |
6305 | 0 | } |
6306 | 0 | success: |
6307 | | // @@protoc_insertion_point(parse_success:yb.master.UpdateCDCStreamResponsePB) |
6308 | 0 | return true; |
6309 | 0 | failure: |
6310 | | // @@protoc_insertion_point(parse_failure:yb.master.UpdateCDCStreamResponsePB) |
6311 | 0 | return false; |
6312 | 0 | #undef DO_ |
6313 | 0 | } |
6314 | | |
6315 | | void UpdateCDCStreamResponsePB::SerializeWithCachedSizes( |
6316 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6317 | | // @@protoc_insertion_point(serialize_start:yb.master.UpdateCDCStreamResponsePB) |
6318 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6319 | 0 | (void) cached_has_bits; |
6320 | |
|
6321 | 0 | cached_has_bits = _has_bits_[0]; |
6322 | | // optional .yb.master.MasterErrorPB error = 1; |
6323 | 0 | if (cached_has_bits & 0x00000001u) { |
6324 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6325 | 0 | 1, *this->error_, output); |
6326 | 0 | } |
6327 | |
|
6328 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6329 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6330 | 0 | _internal_metadata_.unknown_fields(), output); |
6331 | 0 | } |
6332 | | // @@protoc_insertion_point(serialize_end:yb.master.UpdateCDCStreamResponsePB) |
6333 | 0 | } |
6334 | | |
6335 | | ::google::protobuf::uint8* UpdateCDCStreamResponsePB::InternalSerializeWithCachedSizesToArray( |
6336 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
6337 | 0 | (void)deterministic; // Unused |
6338 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.UpdateCDCStreamResponsePB) |
6339 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6340 | 0 | (void) cached_has_bits; |
6341 | |
|
6342 | 0 | cached_has_bits = _has_bits_[0]; |
6343 | | // optional .yb.master.MasterErrorPB error = 1; |
6344 | 0 | if (cached_has_bits & 0x00000001u) { |
6345 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6346 | 0 | InternalWriteMessageToArray( |
6347 | 0 | 1, *this->error_, deterministic, target); |
6348 | 0 | } |
6349 | |
|
6350 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6351 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6352 | 0 | _internal_metadata_.unknown_fields(), target); |
6353 | 0 | } |
6354 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.UpdateCDCStreamResponsePB) |
6355 | 0 | return target; |
6356 | 0 | } |
6357 | | |
6358 | 0 | size_t UpdateCDCStreamResponsePB::ByteSizeLong() const { |
6359 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.UpdateCDCStreamResponsePB) |
6360 | 0 | size_t total_size = 0; |
6361 | |
|
6362 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6363 | 0 | total_size += |
6364 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6365 | 0 | _internal_metadata_.unknown_fields()); |
6366 | 0 | } |
6367 | | // optional .yb.master.MasterErrorPB error = 1; |
6368 | 0 | if (has_error()) { |
6369 | 0 | total_size += 1 + |
6370 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6371 | 0 | *this->error_); |
6372 | 0 | } |
6373 | |
|
6374 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6375 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6376 | 0 | _cached_size_ = cached_size; |
6377 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6378 | 0 | return total_size; |
6379 | 0 | } |
6380 | | |
6381 | 0 | void UpdateCDCStreamResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
6382 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.UpdateCDCStreamResponsePB) |
6383 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6384 | 0 | const UpdateCDCStreamResponsePB* source = |
6385 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateCDCStreamResponsePB>( |
6386 | 0 | &from); |
6387 | 0 | if (source == NULL) { |
6388 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.UpdateCDCStreamResponsePB) |
6389 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6390 | 0 | } else { |
6391 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.UpdateCDCStreamResponsePB) |
6392 | 0 | MergeFrom(*source); |
6393 | 0 | } |
6394 | 0 | } |
6395 | | |
6396 | 0 | void UpdateCDCStreamResponsePB::MergeFrom(const UpdateCDCStreamResponsePB& from) { |
6397 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.UpdateCDCStreamResponsePB) |
6398 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6399 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6400 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6401 | 0 | (void) cached_has_bits; |
6402 | |
|
6403 | 0 | if (from.has_error()) { |
6404 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
6405 | 0 | } |
6406 | 0 | } |
6407 | | |
6408 | 0 | void UpdateCDCStreamResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
6409 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.UpdateCDCStreamResponsePB) |
6410 | 0 | if (&from == this) return; |
6411 | 0 | Clear(); |
6412 | 0 | MergeFrom(from); |
6413 | 0 | } |
6414 | | |
6415 | 0 | void UpdateCDCStreamResponsePB::CopyFrom(const UpdateCDCStreamResponsePB& from) { |
6416 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.UpdateCDCStreamResponsePB) |
6417 | 0 | if (&from == this) return; |
6418 | 0 | Clear(); |
6419 | 0 | MergeFrom(from); |
6420 | 0 | } |
6421 | | |
6422 | 0 | bool UpdateCDCStreamResponsePB::IsInitialized() const { |
6423 | 0 | if (has_error()) { |
6424 | 0 | if (!this->error_->IsInitialized()) return false; |
6425 | 0 | } |
6426 | 0 | return true; |
6427 | 0 | } |
6428 | | |
6429 | 0 | void UpdateCDCStreamResponsePB::Swap(UpdateCDCStreamResponsePB* other) { |
6430 | 0 | if (other == this) return; |
6431 | 0 | InternalSwap(other); |
6432 | 0 | } |
6433 | 0 | void UpdateCDCStreamResponsePB::InternalSwap(UpdateCDCStreamResponsePB* other) { |
6434 | 0 | using std::swap; |
6435 | 0 | swap(error_, other->error_); |
6436 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6437 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6438 | 0 | swap(_cached_size_, other->_cached_size_); |
6439 | 0 | } |
6440 | | |
6441 | 0 | ::google::protobuf::Metadata UpdateCDCStreamResponsePB::GetMetadata() const { |
6442 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6443 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
6444 | 0 | } |
6445 | | |
6446 | | |
6447 | | // =================================================================== |
6448 | | |
6449 | 26.8k | void SetupUniverseReplicationRequestPB::InitAsDefaultInstance() { |
6450 | 26.8k | } |
6451 | 0 | void SetupUniverseReplicationRequestPB::clear_producer_master_addresses() { |
6452 | 0 | producer_master_addresses_.Clear(); |
6453 | 0 | } |
6454 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6455 | | const int SetupUniverseReplicationRequestPB::kProducerIdFieldNumber; |
6456 | | const int SetupUniverseReplicationRequestPB::kProducerMasterAddressesFieldNumber; |
6457 | | const int SetupUniverseReplicationRequestPB::kProducerTableIdsFieldNumber; |
6458 | | const int SetupUniverseReplicationRequestPB::kProducerBootstrapIdsFieldNumber; |
6459 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6460 | | |
6461 | | SetupUniverseReplicationRequestPB::SetupUniverseReplicationRequestPB() |
6462 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6463 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6464 | 4 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetupUniverseReplicationRequestPB(); |
6465 | 4 | } |
6466 | 26.8k | SharedCtor(); |
6467 | | // @@protoc_insertion_point(constructor:yb.master.SetupUniverseReplicationRequestPB) |
6468 | 26.8k | } |
6469 | | SetupUniverseReplicationRequestPB::SetupUniverseReplicationRequestPB(const SetupUniverseReplicationRequestPB& from) |
6470 | | : ::google::protobuf::Message(), |
6471 | | _internal_metadata_(NULL), |
6472 | | _has_bits_(from._has_bits_), |
6473 | | _cached_size_(0), |
6474 | | producer_master_addresses_(from.producer_master_addresses_), |
6475 | | producer_table_ids_(from.producer_table_ids_), |
6476 | 0 | producer_bootstrap_ids_(from.producer_bootstrap_ids_) { |
6477 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6478 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6479 | 0 | if (from.has_producer_id()) { |
6480 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
6481 | 0 | } |
6482 | | // @@protoc_insertion_point(copy_constructor:yb.master.SetupUniverseReplicationRequestPB) |
6483 | 0 | } |
6484 | | |
6485 | 26.8k | void SetupUniverseReplicationRequestPB::SharedCtor() { |
6486 | 26.8k | _cached_size_ = 0; |
6487 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6488 | 26.8k | } |
6489 | | |
6490 | 0 | SetupUniverseReplicationRequestPB::~SetupUniverseReplicationRequestPB() { |
6491 | | // @@protoc_insertion_point(destructor:yb.master.SetupUniverseReplicationRequestPB) |
6492 | 0 | SharedDtor(); |
6493 | 0 | } |
6494 | | |
6495 | 0 | void SetupUniverseReplicationRequestPB::SharedDtor() { |
6496 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6497 | 0 | } |
6498 | | |
6499 | 0 | void SetupUniverseReplicationRequestPB::SetCachedSize(int size) const { |
6500 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6501 | 0 | _cached_size_ = size; |
6502 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6503 | 0 | } |
6504 | 0 | const ::google::protobuf::Descriptor* SetupUniverseReplicationRequestPB::descriptor() { |
6505 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6506 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6507 | 0 | } |
6508 | | |
6509 | 0 | const SetupUniverseReplicationRequestPB& SetupUniverseReplicationRequestPB::default_instance() { |
6510 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetupUniverseReplicationRequestPB(); |
6511 | 0 | return *internal_default_instance(); |
6512 | 0 | } |
6513 | | |
6514 | 0 | SetupUniverseReplicationRequestPB* SetupUniverseReplicationRequestPB::New(::google::protobuf::Arena* arena) const { |
6515 | 0 | SetupUniverseReplicationRequestPB* n = new SetupUniverseReplicationRequestPB; |
6516 | 0 | if (arena != NULL) { |
6517 | 0 | arena->Own(n); |
6518 | 0 | } |
6519 | 0 | return n; |
6520 | 0 | } |
6521 | | |
6522 | 2 | void SetupUniverseReplicationRequestPB::Clear() { |
6523 | | // @@protoc_insertion_point(message_clear_start:yb.master.SetupUniverseReplicationRequestPB) |
6524 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
6525 | | // Prevent compiler warnings about cached_has_bits being unused |
6526 | 2 | (void) cached_has_bits; |
6527 | | |
6528 | 2 | producer_master_addresses_.Clear(); |
6529 | 2 | producer_table_ids_.Clear(); |
6530 | 2 | producer_bootstrap_ids_.Clear(); |
6531 | 2 | cached_has_bits = _has_bits_[0]; |
6532 | 2 | if (cached_has_bits & 0x00000001u) { |
6533 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
6534 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
6535 | 0 | } |
6536 | 2 | _has_bits_.Clear(); |
6537 | 2 | _internal_metadata_.Clear(); |
6538 | 2 | } |
6539 | | |
6540 | | bool SetupUniverseReplicationRequestPB::MergePartialFromCodedStream( |
6541 | 2 | ::google::protobuf::io::CodedInputStream* input) { |
6542 | 6 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
6543 | 2 | ::google::protobuf::uint32 tag; |
6544 | | // @@protoc_insertion_point(parse_start:yb.master.SetupUniverseReplicationRequestPB) |
6545 | 8 | for (;;) { |
6546 | 8 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6547 | 8 | tag = p.first; |
6548 | 8 | if (!p.second) goto handle_unusual2 ; |
6549 | 6 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6550 | | // optional string producer_id = 1; |
6551 | 2 | case 1: { |
6552 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6553 | 2 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
6554 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6555 | 2 | input, this->mutable_producer_id())); |
6556 | 2 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6557 | 2 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
6558 | 2 | ::google::protobuf::internal::WireFormat::PARSE, |
6559 | 2 | "yb.master.SetupUniverseReplicationRequestPB.producer_id"); |
6560 | 2 | } else { |
6561 | 0 | goto handle_unusual; |
6562 | 0 | } |
6563 | 2 | break; |
6564 | 2 | } |
6565 | | |
6566 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
6567 | 2 | case 2: { |
6568 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6569 | 2 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
6570 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_producer_master_addresses())); |
6571 | 2 | } else { |
6572 | 0 | goto handle_unusual; |
6573 | 0 | } |
6574 | 2 | break; |
6575 | 2 | } |
6576 | | |
6577 | | // repeated string producer_table_ids = 3; |
6578 | 2 | case 3: { |
6579 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6580 | 2 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
6581 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6582 | 2 | input, this->add_producer_table_ids())); |
6583 | 2 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6584 | 2 | this->producer_table_ids(this->producer_table_ids_size() - 1).data(), |
6585 | 2 | static_cast<int>(this->producer_table_ids(this->producer_table_ids_size() - 1).length()), |
6586 | 2 | ::google::protobuf::internal::WireFormat::PARSE, |
6587 | 2 | "yb.master.SetupUniverseReplicationRequestPB.producer_table_ids"); |
6588 | 2 | } else { |
6589 | 0 | goto handle_unusual; |
6590 | 0 | } |
6591 | 2 | break; |
6592 | 2 | } |
6593 | | |
6594 | | // repeated string producer_bootstrap_ids = 4; |
6595 | 2 | case 4: { |
6596 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6597 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
6598 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6599 | 0 | input, this->add_producer_bootstrap_ids())); |
6600 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6601 | 0 | this->producer_bootstrap_ids(this->producer_bootstrap_ids_size() - 1).data(), |
6602 | 0 | static_cast<int>(this->producer_bootstrap_ids(this->producer_bootstrap_ids_size() - 1).length()), |
6603 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
6604 | 0 | "yb.master.SetupUniverseReplicationRequestPB.producer_bootstrap_ids"); |
6605 | 0 | } else { |
6606 | 0 | goto handle_unusual; |
6607 | 0 | } |
6608 | 0 | break; |
6609 | 0 | } |
6610 | | |
6611 | 0 | default: { |
6612 | 2 | handle_unusual: |
6613 | 2 | if (tag == 0) { |
6614 | 2 | goto success; |
6615 | 2 | } |
6616 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6617 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6618 | 0 | break; |
6619 | 0 | } |
6620 | 6 | } |
6621 | 6 | } |
6622 | 2 | success: |
6623 | | // @@protoc_insertion_point(parse_success:yb.master.SetupUniverseReplicationRequestPB) |
6624 | 2 | return true; |
6625 | 0 | failure: |
6626 | | // @@protoc_insertion_point(parse_failure:yb.master.SetupUniverseReplicationRequestPB) |
6627 | 0 | return false; |
6628 | 2 | #undef DO_ |
6629 | 2 | } |
6630 | | |
6631 | | void SetupUniverseReplicationRequestPB::SerializeWithCachedSizes( |
6632 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6633 | | // @@protoc_insertion_point(serialize_start:yb.master.SetupUniverseReplicationRequestPB) |
6634 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6635 | 0 | (void) cached_has_bits; |
6636 | |
|
6637 | 0 | cached_has_bits = _has_bits_[0]; |
6638 | | // optional string producer_id = 1; |
6639 | 0 | if (cached_has_bits & 0x00000001u) { |
6640 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6641 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
6642 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6643 | 0 | "yb.master.SetupUniverseReplicationRequestPB.producer_id"); |
6644 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6645 | 0 | 1, this->producer_id(), output); |
6646 | 0 | } |
6647 | | |
6648 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
6649 | 0 | for (unsigned int i = 0, |
6650 | 0 | n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++) { |
6651 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6652 | 0 | 2, this->producer_master_addresses(static_cast<int>(i)), output); |
6653 | 0 | } |
6654 | | |
6655 | | // repeated string producer_table_ids = 3; |
6656 | 0 | for (int i = 0, n = this->producer_table_ids_size(); i < n; i++) { |
6657 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6658 | 0 | this->producer_table_ids(i).data(), static_cast<int>(this->producer_table_ids(i).length()), |
6659 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6660 | 0 | "yb.master.SetupUniverseReplicationRequestPB.producer_table_ids"); |
6661 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
6662 | 0 | 3, this->producer_table_ids(i), output); |
6663 | 0 | } |
6664 | | |
6665 | | // repeated string producer_bootstrap_ids = 4; |
6666 | 0 | for (int i = 0, n = this->producer_bootstrap_ids_size(); i < n; i++) { |
6667 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6668 | 0 | this->producer_bootstrap_ids(i).data(), static_cast<int>(this->producer_bootstrap_ids(i).length()), |
6669 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6670 | 0 | "yb.master.SetupUniverseReplicationRequestPB.producer_bootstrap_ids"); |
6671 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
6672 | 0 | 4, this->producer_bootstrap_ids(i), output); |
6673 | 0 | } |
6674 | |
|
6675 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6676 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6677 | 0 | _internal_metadata_.unknown_fields(), output); |
6678 | 0 | } |
6679 | | // @@protoc_insertion_point(serialize_end:yb.master.SetupUniverseReplicationRequestPB) |
6680 | 0 | } |
6681 | | |
6682 | | ::google::protobuf::uint8* SetupUniverseReplicationRequestPB::InternalSerializeWithCachedSizesToArray( |
6683 | 2 | bool deterministic, ::google::protobuf::uint8* target) const { |
6684 | 2 | (void)deterministic; // Unused |
6685 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SetupUniverseReplicationRequestPB) |
6686 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
6687 | 2 | (void) cached_has_bits; |
6688 | | |
6689 | 2 | cached_has_bits = _has_bits_[0]; |
6690 | | // optional string producer_id = 1; |
6691 | 2 | if (cached_has_bits & 0x00000001u) { |
6692 | 2 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6693 | 2 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
6694 | 2 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6695 | 2 | "yb.master.SetupUniverseReplicationRequestPB.producer_id"); |
6696 | 2 | target = |
6697 | 2 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6698 | 2 | 1, this->producer_id(), target); |
6699 | 2 | } |
6700 | | |
6701 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
6702 | 2 | for (unsigned int i = 0, |
6703 | 4 | n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++2 ) { |
6704 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
6705 | 2 | InternalWriteMessageToArray( |
6706 | 2 | 2, this->producer_master_addresses(static_cast<int>(i)), deterministic, target); |
6707 | 2 | } |
6708 | | |
6709 | | // repeated string producer_table_ids = 3; |
6710 | 4 | for (int i = 0, n = this->producer_table_ids_size(); i < n; i++2 ) { |
6711 | 2 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6712 | 2 | this->producer_table_ids(i).data(), static_cast<int>(this->producer_table_ids(i).length()), |
6713 | 2 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6714 | 2 | "yb.master.SetupUniverseReplicationRequestPB.producer_table_ids"); |
6715 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
6716 | 2 | WriteStringToArray(3, this->producer_table_ids(i), target); |
6717 | 2 | } |
6718 | | |
6719 | | // repeated string producer_bootstrap_ids = 4; |
6720 | 2 | for (int i = 0, n = this->producer_bootstrap_ids_size(); i < n; i++0 ) { |
6721 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6722 | 0 | this->producer_bootstrap_ids(i).data(), static_cast<int>(this->producer_bootstrap_ids(i).length()), |
6723 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6724 | 0 | "yb.master.SetupUniverseReplicationRequestPB.producer_bootstrap_ids"); |
6725 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
6726 | 0 | WriteStringToArray(4, this->producer_bootstrap_ids(i), target); |
6727 | 0 | } |
6728 | | |
6729 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
6730 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6731 | 0 | _internal_metadata_.unknown_fields(), target); |
6732 | 0 | } |
6733 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SetupUniverseReplicationRequestPB) |
6734 | 2 | return target; |
6735 | 2 | } |
6736 | | |
6737 | 4 | size_t SetupUniverseReplicationRequestPB::ByteSizeLong() const { |
6738 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SetupUniverseReplicationRequestPB) |
6739 | 4 | size_t total_size = 0; |
6740 | | |
6741 | 4 | if (_internal_metadata_.have_unknown_fields()) { |
6742 | 0 | total_size += |
6743 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6744 | 0 | _internal_metadata_.unknown_fields()); |
6745 | 0 | } |
6746 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
6747 | 4 | { |
6748 | 4 | unsigned int count = static_cast<unsigned int>(this->producer_master_addresses_size()); |
6749 | 4 | total_size += 1UL * count; |
6750 | 8 | for (unsigned int i = 0; i < count; i++4 ) { |
6751 | 4 | total_size += |
6752 | 4 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6753 | 4 | this->producer_master_addresses(static_cast<int>(i))); |
6754 | 4 | } |
6755 | 4 | } |
6756 | | |
6757 | | // repeated string producer_table_ids = 3; |
6758 | 4 | total_size += 1 * |
6759 | 4 | ::google::protobuf::internal::FromIntSize(this->producer_table_ids_size()); |
6760 | 8 | for (int i = 0, n = this->producer_table_ids_size(); i < n; i++4 ) { |
6761 | 4 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
6762 | 4 | this->producer_table_ids(i)); |
6763 | 4 | } |
6764 | | |
6765 | | // repeated string producer_bootstrap_ids = 4; |
6766 | 4 | total_size += 1 * |
6767 | 4 | ::google::protobuf::internal::FromIntSize(this->producer_bootstrap_ids_size()); |
6768 | 4 | for (int i = 0, n = this->producer_bootstrap_ids_size(); i < n; i++0 ) { |
6769 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
6770 | 0 | this->producer_bootstrap_ids(i)); |
6771 | 0 | } |
6772 | | |
6773 | | // optional string producer_id = 1; |
6774 | 4 | if (has_producer_id()) { |
6775 | 4 | total_size += 1 + |
6776 | 4 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6777 | 4 | this->producer_id()); |
6778 | 4 | } |
6779 | | |
6780 | 4 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6781 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6782 | 4 | _cached_size_ = cached_size; |
6783 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6784 | 4 | return total_size; |
6785 | 4 | } |
6786 | | |
6787 | 0 | void SetupUniverseReplicationRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6788 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SetupUniverseReplicationRequestPB) |
6789 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6790 | 0 | const SetupUniverseReplicationRequestPB* source = |
6791 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetupUniverseReplicationRequestPB>( |
6792 | 0 | &from); |
6793 | 0 | if (source == NULL) { |
6794 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SetupUniverseReplicationRequestPB) |
6795 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6796 | 0 | } else { |
6797 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SetupUniverseReplicationRequestPB) |
6798 | 0 | MergeFrom(*source); |
6799 | 0 | } |
6800 | 0 | } |
6801 | | |
6802 | 0 | void SetupUniverseReplicationRequestPB::MergeFrom(const SetupUniverseReplicationRequestPB& from) { |
6803 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SetupUniverseReplicationRequestPB) |
6804 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6805 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6806 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6807 | 0 | (void) cached_has_bits; |
6808 | |
|
6809 | 0 | producer_master_addresses_.MergeFrom(from.producer_master_addresses_); |
6810 | 0 | producer_table_ids_.MergeFrom(from.producer_table_ids_); |
6811 | 0 | producer_bootstrap_ids_.MergeFrom(from.producer_bootstrap_ids_); |
6812 | 0 | if (from.has_producer_id()) { |
6813 | 0 | set_has_producer_id(); |
6814 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
6815 | 0 | } |
6816 | 0 | } |
6817 | | |
6818 | 0 | void SetupUniverseReplicationRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6819 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SetupUniverseReplicationRequestPB) |
6820 | 0 | if (&from == this) return; |
6821 | 0 | Clear(); |
6822 | 0 | MergeFrom(from); |
6823 | 0 | } |
6824 | | |
6825 | 0 | void SetupUniverseReplicationRequestPB::CopyFrom(const SetupUniverseReplicationRequestPB& from) { |
6826 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SetupUniverseReplicationRequestPB) |
6827 | 0 | if (&from == this) return; |
6828 | 0 | Clear(); |
6829 | 0 | MergeFrom(from); |
6830 | 0 | } |
6831 | | |
6832 | 4 | bool SetupUniverseReplicationRequestPB::IsInitialized() const { |
6833 | 4 | if (!::google::protobuf::internal::AllAreInitialized(this->producer_master_addresses())) return false0 ; |
6834 | 4 | return true; |
6835 | 4 | } |
6836 | | |
6837 | 0 | void SetupUniverseReplicationRequestPB::Swap(SetupUniverseReplicationRequestPB* other) { |
6838 | 0 | if (other == this) return; |
6839 | 0 | InternalSwap(other); |
6840 | 0 | } |
6841 | 0 | void SetupUniverseReplicationRequestPB::InternalSwap(SetupUniverseReplicationRequestPB* other) { |
6842 | 0 | using std::swap; |
6843 | 0 | producer_master_addresses_.InternalSwap(&other->producer_master_addresses_); |
6844 | 0 | producer_table_ids_.InternalSwap(&other->producer_table_ids_); |
6845 | 0 | producer_bootstrap_ids_.InternalSwap(&other->producer_bootstrap_ids_); |
6846 | 0 | producer_id_.Swap(&other->producer_id_); |
6847 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6848 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6849 | 0 | swap(_cached_size_, other->_cached_size_); |
6850 | 0 | } |
6851 | | |
6852 | 6 | ::google::protobuf::Metadata SetupUniverseReplicationRequestPB::GetMetadata() const { |
6853 | 6 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6854 | 6 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
6855 | 6 | } |
6856 | | |
6857 | | |
6858 | | // =================================================================== |
6859 | | |
6860 | 26.8k | void SetupUniverseReplicationResponsePB::InitAsDefaultInstance() { |
6861 | 26.8k | ::yb::master::_SetupUniverseReplicationResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
6862 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
6863 | 26.8k | } |
6864 | 0 | void SetupUniverseReplicationResponsePB::clear_error() { |
6865 | 0 | if (error_ != NULL) error_->Clear(); |
6866 | 0 | clear_has_error(); |
6867 | 0 | } |
6868 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6869 | | const int SetupUniverseReplicationResponsePB::kErrorFieldNumber; |
6870 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6871 | | |
6872 | | SetupUniverseReplicationResponsePB::SetupUniverseReplicationResponsePB() |
6873 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6874 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6875 | 4 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetupUniverseReplicationResponsePB(); |
6876 | 4 | } |
6877 | 26.8k | SharedCtor(); |
6878 | | // @@protoc_insertion_point(constructor:yb.master.SetupUniverseReplicationResponsePB) |
6879 | 26.8k | } |
6880 | | SetupUniverseReplicationResponsePB::SetupUniverseReplicationResponsePB(const SetupUniverseReplicationResponsePB& from) |
6881 | | : ::google::protobuf::Message(), |
6882 | | _internal_metadata_(NULL), |
6883 | | _has_bits_(from._has_bits_), |
6884 | 0 | _cached_size_(0) { |
6885 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6886 | 0 | if (from.has_error()) { |
6887 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
6888 | 0 | } else { |
6889 | 0 | error_ = NULL; |
6890 | 0 | } |
6891 | | // @@protoc_insertion_point(copy_constructor:yb.master.SetupUniverseReplicationResponsePB) |
6892 | 0 | } |
6893 | | |
6894 | 26.8k | void SetupUniverseReplicationResponsePB::SharedCtor() { |
6895 | 26.8k | _cached_size_ = 0; |
6896 | 26.8k | error_ = NULL; |
6897 | 26.8k | } |
6898 | | |
6899 | 0 | SetupUniverseReplicationResponsePB::~SetupUniverseReplicationResponsePB() { |
6900 | | // @@protoc_insertion_point(destructor:yb.master.SetupUniverseReplicationResponsePB) |
6901 | 0 | SharedDtor(); |
6902 | 0 | } |
6903 | | |
6904 | 0 | void SetupUniverseReplicationResponsePB::SharedDtor() { |
6905 | 0 | if (this != internal_default_instance()) delete error_; |
6906 | 0 | } |
6907 | | |
6908 | 0 | void SetupUniverseReplicationResponsePB::SetCachedSize(int size) const { |
6909 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6910 | 0 | _cached_size_ = size; |
6911 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6912 | 0 | } |
6913 | 0 | const ::google::protobuf::Descriptor* SetupUniverseReplicationResponsePB::descriptor() { |
6914 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
6915 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6916 | 0 | } |
6917 | | |
6918 | 0 | const SetupUniverseReplicationResponsePB& SetupUniverseReplicationResponsePB::default_instance() { |
6919 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetupUniverseReplicationResponsePB(); |
6920 | 0 | return *internal_default_instance(); |
6921 | 0 | } |
6922 | | |
6923 | 0 | SetupUniverseReplicationResponsePB* SetupUniverseReplicationResponsePB::New(::google::protobuf::Arena* arena) const { |
6924 | 0 | SetupUniverseReplicationResponsePB* n = new SetupUniverseReplicationResponsePB; |
6925 | 0 | if (arena != NULL) { |
6926 | 0 | arena->Own(n); |
6927 | 0 | } |
6928 | 0 | return n; |
6929 | 0 | } |
6930 | | |
6931 | 0 | void SetupUniverseReplicationResponsePB::Clear() { |
6932 | | // @@protoc_insertion_point(message_clear_start:yb.master.SetupUniverseReplicationResponsePB) |
6933 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6934 | | // Prevent compiler warnings about cached_has_bits being unused |
6935 | 0 | (void) cached_has_bits; |
6936 | |
|
6937 | 0 | cached_has_bits = _has_bits_[0]; |
6938 | 0 | if (cached_has_bits & 0x00000001u) { |
6939 | 0 | GOOGLE_DCHECK(error_ != NULL); |
6940 | 0 | error_->Clear(); |
6941 | 0 | } |
6942 | 0 | _has_bits_.Clear(); |
6943 | 0 | _internal_metadata_.Clear(); |
6944 | 0 | } |
6945 | | |
6946 | | bool SetupUniverseReplicationResponsePB::MergePartialFromCodedStream( |
6947 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
6948 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6949 | 0 | ::google::protobuf::uint32 tag; |
6950 | | // @@protoc_insertion_point(parse_start:yb.master.SetupUniverseReplicationResponsePB) |
6951 | 0 | for (;;) { |
6952 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6953 | 0 | tag = p.first; |
6954 | 0 | if (!p.second) goto handle_unusual; |
6955 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6956 | | // optional .yb.master.MasterErrorPB error = 1; |
6957 | 0 | case 1: { |
6958 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6959 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
6960 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6961 | 0 | input, mutable_error())); |
6962 | 0 | } else { |
6963 | 0 | goto handle_unusual; |
6964 | 0 | } |
6965 | 0 | break; |
6966 | 0 | } |
6967 | | |
6968 | 0 | default: { |
6969 | 0 | handle_unusual: |
6970 | 0 | if (tag == 0) { |
6971 | 0 | goto success; |
6972 | 0 | } |
6973 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6974 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6975 | 0 | break; |
6976 | 0 | } |
6977 | 0 | } |
6978 | 0 | } |
6979 | 0 | success: |
6980 | | // @@protoc_insertion_point(parse_success:yb.master.SetupUniverseReplicationResponsePB) |
6981 | 0 | return true; |
6982 | 0 | failure: |
6983 | | // @@protoc_insertion_point(parse_failure:yb.master.SetupUniverseReplicationResponsePB) |
6984 | 0 | return false; |
6985 | 0 | #undef DO_ |
6986 | 0 | } |
6987 | | |
6988 | | void SetupUniverseReplicationResponsePB::SerializeWithCachedSizes( |
6989 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6990 | | // @@protoc_insertion_point(serialize_start:yb.master.SetupUniverseReplicationResponsePB) |
6991 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6992 | 0 | (void) cached_has_bits; |
6993 | |
|
6994 | 0 | cached_has_bits = _has_bits_[0]; |
6995 | | // optional .yb.master.MasterErrorPB error = 1; |
6996 | 0 | if (cached_has_bits & 0x00000001u) { |
6997 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6998 | 0 | 1, *this->error_, output); |
6999 | 0 | } |
7000 | |
|
7001 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7002 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7003 | 0 | _internal_metadata_.unknown_fields(), output); |
7004 | 0 | } |
7005 | | // @@protoc_insertion_point(serialize_end:yb.master.SetupUniverseReplicationResponsePB) |
7006 | 0 | } |
7007 | | |
7008 | | ::google::protobuf::uint8* SetupUniverseReplicationResponsePB::InternalSerializeWithCachedSizesToArray( |
7009 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
7010 | 0 | (void)deterministic; // Unused |
7011 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SetupUniverseReplicationResponsePB) |
7012 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7013 | 0 | (void) cached_has_bits; |
7014 | |
|
7015 | 0 | cached_has_bits = _has_bits_[0]; |
7016 | | // optional .yb.master.MasterErrorPB error = 1; |
7017 | 0 | if (cached_has_bits & 0x00000001u) { |
7018 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
7019 | 0 | InternalWriteMessageToArray( |
7020 | 0 | 1, *this->error_, deterministic, target); |
7021 | 0 | } |
7022 | |
|
7023 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7024 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7025 | 0 | _internal_metadata_.unknown_fields(), target); |
7026 | 0 | } |
7027 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SetupUniverseReplicationResponsePB) |
7028 | 0 | return target; |
7029 | 0 | } |
7030 | | |
7031 | 0 | size_t SetupUniverseReplicationResponsePB::ByteSizeLong() const { |
7032 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SetupUniverseReplicationResponsePB) |
7033 | 0 | size_t total_size = 0; |
7034 | |
|
7035 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7036 | 0 | total_size += |
7037 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7038 | 0 | _internal_metadata_.unknown_fields()); |
7039 | 0 | } |
7040 | | // optional .yb.master.MasterErrorPB error = 1; |
7041 | 0 | if (has_error()) { |
7042 | 0 | total_size += 1 + |
7043 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7044 | 0 | *this->error_); |
7045 | 0 | } |
7046 | |
|
7047 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7048 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7049 | 0 | _cached_size_ = cached_size; |
7050 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7051 | 0 | return total_size; |
7052 | 0 | } |
7053 | | |
7054 | 0 | void SetupUniverseReplicationResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
7055 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SetupUniverseReplicationResponsePB) |
7056 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7057 | 0 | const SetupUniverseReplicationResponsePB* source = |
7058 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetupUniverseReplicationResponsePB>( |
7059 | 0 | &from); |
7060 | 0 | if (source == NULL) { |
7061 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SetupUniverseReplicationResponsePB) |
7062 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7063 | 0 | } else { |
7064 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SetupUniverseReplicationResponsePB) |
7065 | 0 | MergeFrom(*source); |
7066 | 0 | } |
7067 | 0 | } |
7068 | | |
7069 | 0 | void SetupUniverseReplicationResponsePB::MergeFrom(const SetupUniverseReplicationResponsePB& from) { |
7070 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SetupUniverseReplicationResponsePB) |
7071 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7072 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7073 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7074 | 0 | (void) cached_has_bits; |
7075 | |
|
7076 | 0 | if (from.has_error()) { |
7077 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
7078 | 0 | } |
7079 | 0 | } |
7080 | | |
7081 | 0 | void SetupUniverseReplicationResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
7082 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SetupUniverseReplicationResponsePB) |
7083 | 0 | if (&from == this) return; |
7084 | 0 | Clear(); |
7085 | 0 | MergeFrom(from); |
7086 | 0 | } |
7087 | | |
7088 | 0 | void SetupUniverseReplicationResponsePB::CopyFrom(const SetupUniverseReplicationResponsePB& from) { |
7089 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SetupUniverseReplicationResponsePB) |
7090 | 0 | if (&from == this) return; |
7091 | 0 | Clear(); |
7092 | 0 | MergeFrom(from); |
7093 | 0 | } |
7094 | | |
7095 | 0 | bool SetupUniverseReplicationResponsePB::IsInitialized() const { |
7096 | 0 | if (has_error()) { |
7097 | 0 | if (!this->error_->IsInitialized()) return false; |
7098 | 0 | } |
7099 | 0 | return true; |
7100 | 0 | } |
7101 | | |
7102 | 0 | void SetupUniverseReplicationResponsePB::Swap(SetupUniverseReplicationResponsePB* other) { |
7103 | 0 | if (other == this) return; |
7104 | 0 | InternalSwap(other); |
7105 | 0 | } |
7106 | 0 | void SetupUniverseReplicationResponsePB::InternalSwap(SetupUniverseReplicationResponsePB* other) { |
7107 | 0 | using std::swap; |
7108 | 0 | swap(error_, other->error_); |
7109 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7110 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7111 | 0 | swap(_cached_size_, other->_cached_size_); |
7112 | 0 | } |
7113 | | |
7114 | 0 | ::google::protobuf::Metadata SetupUniverseReplicationResponsePB::GetMetadata() const { |
7115 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7116 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
7117 | 0 | } |
7118 | | |
7119 | | |
7120 | | // =================================================================== |
7121 | | |
7122 | 26.8k | void DeleteUniverseReplicationRequestPB::InitAsDefaultInstance() { |
7123 | 26.8k | } |
7124 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7125 | | const int DeleteUniverseReplicationRequestPB::kProducerIdFieldNumber; |
7126 | | const int DeleteUniverseReplicationRequestPB::kIgnoreErrorsFieldNumber; |
7127 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7128 | | |
7129 | | DeleteUniverseReplicationRequestPB::DeleteUniverseReplicationRequestPB() |
7130 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7131 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7132 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteUniverseReplicationRequestPB(); |
7133 | 0 | } |
7134 | 26.8k | SharedCtor(); |
7135 | | // @@protoc_insertion_point(constructor:yb.master.DeleteUniverseReplicationRequestPB) |
7136 | 26.8k | } |
7137 | | DeleteUniverseReplicationRequestPB::DeleteUniverseReplicationRequestPB(const DeleteUniverseReplicationRequestPB& from) |
7138 | | : ::google::protobuf::Message(), |
7139 | | _internal_metadata_(NULL), |
7140 | | _has_bits_(from._has_bits_), |
7141 | 0 | _cached_size_(0) { |
7142 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7143 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7144 | 0 | if (from.has_producer_id()) { |
7145 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
7146 | 0 | } |
7147 | 0 | ignore_errors_ = from.ignore_errors_; |
7148 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteUniverseReplicationRequestPB) |
7149 | 0 | } |
7150 | | |
7151 | 26.8k | void DeleteUniverseReplicationRequestPB::SharedCtor() { |
7152 | 26.8k | _cached_size_ = 0; |
7153 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7154 | 26.8k | ignore_errors_ = false; |
7155 | 26.8k | } |
7156 | | |
7157 | 0 | DeleteUniverseReplicationRequestPB::~DeleteUniverseReplicationRequestPB() { |
7158 | | // @@protoc_insertion_point(destructor:yb.master.DeleteUniverseReplicationRequestPB) |
7159 | 0 | SharedDtor(); |
7160 | 0 | } |
7161 | | |
7162 | 0 | void DeleteUniverseReplicationRequestPB::SharedDtor() { |
7163 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7164 | 0 | } |
7165 | | |
7166 | 0 | void DeleteUniverseReplicationRequestPB::SetCachedSize(int size) const { |
7167 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7168 | 0 | _cached_size_ = size; |
7169 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7170 | 0 | } |
7171 | 0 | const ::google::protobuf::Descriptor* DeleteUniverseReplicationRequestPB::descriptor() { |
7172 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7173 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7174 | 0 | } |
7175 | | |
7176 | 0 | const DeleteUniverseReplicationRequestPB& DeleteUniverseReplicationRequestPB::default_instance() { |
7177 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteUniverseReplicationRequestPB(); |
7178 | 0 | return *internal_default_instance(); |
7179 | 0 | } |
7180 | | |
7181 | 0 | DeleteUniverseReplicationRequestPB* DeleteUniverseReplicationRequestPB::New(::google::protobuf::Arena* arena) const { |
7182 | 0 | DeleteUniverseReplicationRequestPB* n = new DeleteUniverseReplicationRequestPB; |
7183 | 0 | if (arena != NULL) { |
7184 | 0 | arena->Own(n); |
7185 | 0 | } |
7186 | 0 | return n; |
7187 | 0 | } |
7188 | | |
7189 | 0 | void DeleteUniverseReplicationRequestPB::Clear() { |
7190 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteUniverseReplicationRequestPB) |
7191 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7192 | | // Prevent compiler warnings about cached_has_bits being unused |
7193 | 0 | (void) cached_has_bits; |
7194 | |
|
7195 | 0 | cached_has_bits = _has_bits_[0]; |
7196 | 0 | if (cached_has_bits & 0x00000001u) { |
7197 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7198 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
7199 | 0 | } |
7200 | 0 | ignore_errors_ = false; |
7201 | 0 | _has_bits_.Clear(); |
7202 | 0 | _internal_metadata_.Clear(); |
7203 | 0 | } |
7204 | | |
7205 | | bool DeleteUniverseReplicationRequestPB::MergePartialFromCodedStream( |
7206 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7207 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7208 | 0 | ::google::protobuf::uint32 tag; |
7209 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteUniverseReplicationRequestPB) |
7210 | 0 | for (;;) { |
7211 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7212 | 0 | tag = p.first; |
7213 | 0 | if (!p.second) goto handle_unusual; |
7214 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7215 | | // optional string producer_id = 1; |
7216 | 0 | case 1: { |
7217 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7218 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7219 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7220 | 0 | input, this->mutable_producer_id())); |
7221 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7222 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
7223 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7224 | 0 | "yb.master.DeleteUniverseReplicationRequestPB.producer_id"); |
7225 | 0 | } else { |
7226 | 0 | goto handle_unusual; |
7227 | 0 | } |
7228 | 0 | break; |
7229 | 0 | } |
7230 | | |
7231 | | // optional bool ignore_errors = 2 [default = false]; |
7232 | 0 | case 2: { |
7233 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7234 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7235 | 0 | set_has_ignore_errors(); |
7236 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7237 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7238 | 0 | input, &ignore_errors_))); |
7239 | 0 | } else { |
7240 | 0 | goto handle_unusual; |
7241 | 0 | } |
7242 | 0 | break; |
7243 | 0 | } |
7244 | | |
7245 | 0 | default: { |
7246 | 0 | handle_unusual: |
7247 | 0 | if (tag == 0) { |
7248 | 0 | goto success; |
7249 | 0 | } |
7250 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7251 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7252 | 0 | break; |
7253 | 0 | } |
7254 | 0 | } |
7255 | 0 | } |
7256 | 0 | success: |
7257 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteUniverseReplicationRequestPB) |
7258 | 0 | return true; |
7259 | 0 | failure: |
7260 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteUniverseReplicationRequestPB) |
7261 | 0 | return false; |
7262 | 0 | #undef DO_ |
7263 | 0 | } |
7264 | | |
7265 | | void DeleteUniverseReplicationRequestPB::SerializeWithCachedSizes( |
7266 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7267 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteUniverseReplicationRequestPB) |
7268 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7269 | 0 | (void) cached_has_bits; |
7270 | |
|
7271 | 0 | cached_has_bits = _has_bits_[0]; |
7272 | | // optional string producer_id = 1; |
7273 | 0 | if (cached_has_bits & 0x00000001u) { |
7274 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7275 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
7276 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7277 | 0 | "yb.master.DeleteUniverseReplicationRequestPB.producer_id"); |
7278 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
7279 | 0 | 1, this->producer_id(), output); |
7280 | 0 | } |
7281 | | |
7282 | | // optional bool ignore_errors = 2 [default = false]; |
7283 | 0 | if (cached_has_bits & 0x00000002u) { |
7284 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ignore_errors(), output); |
7285 | 0 | } |
7286 | |
|
7287 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7288 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7289 | 0 | _internal_metadata_.unknown_fields(), output); |
7290 | 0 | } |
7291 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteUniverseReplicationRequestPB) |
7292 | 0 | } |
7293 | | |
7294 | | ::google::protobuf::uint8* DeleteUniverseReplicationRequestPB::InternalSerializeWithCachedSizesToArray( |
7295 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
7296 | 0 | (void)deterministic; // Unused |
7297 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteUniverseReplicationRequestPB) |
7298 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7299 | 0 | (void) cached_has_bits; |
7300 | |
|
7301 | 0 | cached_has_bits = _has_bits_[0]; |
7302 | | // optional string producer_id = 1; |
7303 | 0 | if (cached_has_bits & 0x00000001u) { |
7304 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7305 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
7306 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7307 | 0 | "yb.master.DeleteUniverseReplicationRequestPB.producer_id"); |
7308 | 0 | target = |
7309 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7310 | 0 | 1, this->producer_id(), target); |
7311 | 0 | } |
7312 | | |
7313 | | // optional bool ignore_errors = 2 [default = false]; |
7314 | 0 | if (cached_has_bits & 0x00000002u) { |
7315 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ignore_errors(), target); |
7316 | 0 | } |
7317 | |
|
7318 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7319 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7320 | 0 | _internal_metadata_.unknown_fields(), target); |
7321 | 0 | } |
7322 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteUniverseReplicationRequestPB) |
7323 | 0 | return target; |
7324 | 0 | } |
7325 | | |
7326 | 0 | size_t DeleteUniverseReplicationRequestPB::ByteSizeLong() const { |
7327 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteUniverseReplicationRequestPB) |
7328 | 0 | size_t total_size = 0; |
7329 | |
|
7330 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7331 | 0 | total_size += |
7332 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7333 | 0 | _internal_metadata_.unknown_fields()); |
7334 | 0 | } |
7335 | 0 | if (_has_bits_[0 / 32] & 3u) { |
7336 | | // optional string producer_id = 1; |
7337 | 0 | if (has_producer_id()) { |
7338 | 0 | total_size += 1 + |
7339 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
7340 | 0 | this->producer_id()); |
7341 | 0 | } |
7342 | | |
7343 | | // optional bool ignore_errors = 2 [default = false]; |
7344 | 0 | if (has_ignore_errors()) { |
7345 | 0 | total_size += 1 + 1; |
7346 | 0 | } |
7347 | |
|
7348 | 0 | } |
7349 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7350 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7351 | 0 | _cached_size_ = cached_size; |
7352 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7353 | 0 | return total_size; |
7354 | 0 | } |
7355 | | |
7356 | 0 | void DeleteUniverseReplicationRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7357 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteUniverseReplicationRequestPB) |
7358 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7359 | 0 | const DeleteUniverseReplicationRequestPB* source = |
7360 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteUniverseReplicationRequestPB>( |
7361 | 0 | &from); |
7362 | 0 | if (source == NULL) { |
7363 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteUniverseReplicationRequestPB) |
7364 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7365 | 0 | } else { |
7366 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteUniverseReplicationRequestPB) |
7367 | 0 | MergeFrom(*source); |
7368 | 0 | } |
7369 | 0 | } |
7370 | | |
7371 | 0 | void DeleteUniverseReplicationRequestPB::MergeFrom(const DeleteUniverseReplicationRequestPB& from) { |
7372 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteUniverseReplicationRequestPB) |
7373 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7374 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7375 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7376 | 0 | (void) cached_has_bits; |
7377 | |
|
7378 | 0 | cached_has_bits = from._has_bits_[0]; |
7379 | 0 | if (cached_has_bits & 3u) { |
7380 | 0 | if (cached_has_bits & 0x00000001u) { |
7381 | 0 | set_has_producer_id(); |
7382 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
7383 | 0 | } |
7384 | 0 | if (cached_has_bits & 0x00000002u) { |
7385 | 0 | ignore_errors_ = from.ignore_errors_; |
7386 | 0 | } |
7387 | 0 | _has_bits_[0] |= cached_has_bits; |
7388 | 0 | } |
7389 | 0 | } |
7390 | | |
7391 | 0 | void DeleteUniverseReplicationRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7392 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteUniverseReplicationRequestPB) |
7393 | 0 | if (&from == this) return; |
7394 | 0 | Clear(); |
7395 | 0 | MergeFrom(from); |
7396 | 0 | } |
7397 | | |
7398 | 0 | void DeleteUniverseReplicationRequestPB::CopyFrom(const DeleteUniverseReplicationRequestPB& from) { |
7399 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteUniverseReplicationRequestPB) |
7400 | 0 | if (&from == this) return; |
7401 | 0 | Clear(); |
7402 | 0 | MergeFrom(from); |
7403 | 0 | } |
7404 | | |
7405 | 0 | bool DeleteUniverseReplicationRequestPB::IsInitialized() const { |
7406 | 0 | return true; |
7407 | 0 | } |
7408 | | |
7409 | 0 | void DeleteUniverseReplicationRequestPB::Swap(DeleteUniverseReplicationRequestPB* other) { |
7410 | 0 | if (other == this) return; |
7411 | 0 | InternalSwap(other); |
7412 | 0 | } |
7413 | 0 | void DeleteUniverseReplicationRequestPB::InternalSwap(DeleteUniverseReplicationRequestPB* other) { |
7414 | 0 | using std::swap; |
7415 | 0 | producer_id_.Swap(&other->producer_id_); |
7416 | 0 | swap(ignore_errors_, other->ignore_errors_); |
7417 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7418 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7419 | 0 | swap(_cached_size_, other->_cached_size_); |
7420 | 0 | } |
7421 | | |
7422 | 0 | ::google::protobuf::Metadata DeleteUniverseReplicationRequestPB::GetMetadata() const { |
7423 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7424 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
7425 | 0 | } |
7426 | | |
7427 | | |
7428 | | // =================================================================== |
7429 | | |
7430 | 26.8k | void DeleteUniverseReplicationResponsePB::InitAsDefaultInstance() { |
7431 | 26.8k | ::yb::master::_DeleteUniverseReplicationResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
7432 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
7433 | 26.8k | } |
7434 | 0 | void DeleteUniverseReplicationResponsePB::clear_error() { |
7435 | 0 | if (error_ != NULL) error_->Clear(); |
7436 | 0 | clear_has_error(); |
7437 | 0 | } |
7438 | 0 | void DeleteUniverseReplicationResponsePB::clear_warnings() { |
7439 | 0 | warnings_.Clear(); |
7440 | 0 | } |
7441 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7442 | | const int DeleteUniverseReplicationResponsePB::kErrorFieldNumber; |
7443 | | const int DeleteUniverseReplicationResponsePB::kWarningsFieldNumber; |
7444 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7445 | | |
7446 | | DeleteUniverseReplicationResponsePB::DeleteUniverseReplicationResponsePB() |
7447 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7448 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7449 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteUniverseReplicationResponsePB(); |
7450 | 0 | } |
7451 | 26.8k | SharedCtor(); |
7452 | | // @@protoc_insertion_point(constructor:yb.master.DeleteUniverseReplicationResponsePB) |
7453 | 26.8k | } |
7454 | | DeleteUniverseReplicationResponsePB::DeleteUniverseReplicationResponsePB(const DeleteUniverseReplicationResponsePB& from) |
7455 | | : ::google::protobuf::Message(), |
7456 | | _internal_metadata_(NULL), |
7457 | | _has_bits_(from._has_bits_), |
7458 | | _cached_size_(0), |
7459 | 0 | warnings_(from.warnings_) { |
7460 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7461 | 0 | if (from.has_error()) { |
7462 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
7463 | 0 | } else { |
7464 | 0 | error_ = NULL; |
7465 | 0 | } |
7466 | | // @@protoc_insertion_point(copy_constructor:yb.master.DeleteUniverseReplicationResponsePB) |
7467 | 0 | } |
7468 | | |
7469 | 26.8k | void DeleteUniverseReplicationResponsePB::SharedCtor() { |
7470 | 26.8k | _cached_size_ = 0; |
7471 | 26.8k | error_ = NULL; |
7472 | 26.8k | } |
7473 | | |
7474 | 0 | DeleteUniverseReplicationResponsePB::~DeleteUniverseReplicationResponsePB() { |
7475 | | // @@protoc_insertion_point(destructor:yb.master.DeleteUniverseReplicationResponsePB) |
7476 | 0 | SharedDtor(); |
7477 | 0 | } |
7478 | | |
7479 | 0 | void DeleteUniverseReplicationResponsePB::SharedDtor() { |
7480 | 0 | if (this != internal_default_instance()) delete error_; |
7481 | 0 | } |
7482 | | |
7483 | 0 | void DeleteUniverseReplicationResponsePB::SetCachedSize(int size) const { |
7484 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7485 | 0 | _cached_size_ = size; |
7486 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7487 | 0 | } |
7488 | 0 | const ::google::protobuf::Descriptor* DeleteUniverseReplicationResponsePB::descriptor() { |
7489 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7490 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7491 | 0 | } |
7492 | | |
7493 | 0 | const DeleteUniverseReplicationResponsePB& DeleteUniverseReplicationResponsePB::default_instance() { |
7494 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsDeleteUniverseReplicationResponsePB(); |
7495 | 0 | return *internal_default_instance(); |
7496 | 0 | } |
7497 | | |
7498 | 0 | DeleteUniverseReplicationResponsePB* DeleteUniverseReplicationResponsePB::New(::google::protobuf::Arena* arena) const { |
7499 | 0 | DeleteUniverseReplicationResponsePB* n = new DeleteUniverseReplicationResponsePB; |
7500 | 0 | if (arena != NULL) { |
7501 | 0 | arena->Own(n); |
7502 | 0 | } |
7503 | 0 | return n; |
7504 | 0 | } |
7505 | | |
7506 | 0 | void DeleteUniverseReplicationResponsePB::Clear() { |
7507 | | // @@protoc_insertion_point(message_clear_start:yb.master.DeleteUniverseReplicationResponsePB) |
7508 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7509 | | // Prevent compiler warnings about cached_has_bits being unused |
7510 | 0 | (void) cached_has_bits; |
7511 | |
|
7512 | 0 | warnings_.Clear(); |
7513 | 0 | cached_has_bits = _has_bits_[0]; |
7514 | 0 | if (cached_has_bits & 0x00000001u) { |
7515 | 0 | GOOGLE_DCHECK(error_ != NULL); |
7516 | 0 | error_->Clear(); |
7517 | 0 | } |
7518 | 0 | _has_bits_.Clear(); |
7519 | 0 | _internal_metadata_.Clear(); |
7520 | 0 | } |
7521 | | |
7522 | | bool DeleteUniverseReplicationResponsePB::MergePartialFromCodedStream( |
7523 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7524 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7525 | 0 | ::google::protobuf::uint32 tag; |
7526 | | // @@protoc_insertion_point(parse_start:yb.master.DeleteUniverseReplicationResponsePB) |
7527 | 0 | for (;;) { |
7528 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7529 | 0 | tag = p.first; |
7530 | 0 | if (!p.second) goto handle_unusual; |
7531 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7532 | | // optional .yb.master.MasterErrorPB error = 1; |
7533 | 0 | case 1: { |
7534 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7535 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7536 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7537 | 0 | input, mutable_error())); |
7538 | 0 | } else { |
7539 | 0 | goto handle_unusual; |
7540 | 0 | } |
7541 | 0 | break; |
7542 | 0 | } |
7543 | | |
7544 | | // repeated .yb.AppStatusPB warnings = 2; |
7545 | 0 | case 2: { |
7546 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7547 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
7548 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_warnings())); |
7549 | 0 | } else { |
7550 | 0 | goto handle_unusual; |
7551 | 0 | } |
7552 | 0 | break; |
7553 | 0 | } |
7554 | | |
7555 | 0 | default: { |
7556 | 0 | handle_unusual: |
7557 | 0 | if (tag == 0) { |
7558 | 0 | goto success; |
7559 | 0 | } |
7560 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7561 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7562 | 0 | break; |
7563 | 0 | } |
7564 | 0 | } |
7565 | 0 | } |
7566 | 0 | success: |
7567 | | // @@protoc_insertion_point(parse_success:yb.master.DeleteUniverseReplicationResponsePB) |
7568 | 0 | return true; |
7569 | 0 | failure: |
7570 | | // @@protoc_insertion_point(parse_failure:yb.master.DeleteUniverseReplicationResponsePB) |
7571 | 0 | return false; |
7572 | 0 | #undef DO_ |
7573 | 0 | } |
7574 | | |
7575 | | void DeleteUniverseReplicationResponsePB::SerializeWithCachedSizes( |
7576 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7577 | | // @@protoc_insertion_point(serialize_start:yb.master.DeleteUniverseReplicationResponsePB) |
7578 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7579 | 0 | (void) cached_has_bits; |
7580 | |
|
7581 | 0 | cached_has_bits = _has_bits_[0]; |
7582 | | // optional .yb.master.MasterErrorPB error = 1; |
7583 | 0 | if (cached_has_bits & 0x00000001u) { |
7584 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7585 | 0 | 1, *this->error_, output); |
7586 | 0 | } |
7587 | | |
7588 | | // repeated .yb.AppStatusPB warnings = 2; |
7589 | 0 | for (unsigned int i = 0, |
7590 | 0 | n = static_cast<unsigned int>(this->warnings_size()); i < n; i++) { |
7591 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7592 | 0 | 2, this->warnings(static_cast<int>(i)), output); |
7593 | 0 | } |
7594 | |
|
7595 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7596 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7597 | 0 | _internal_metadata_.unknown_fields(), output); |
7598 | 0 | } |
7599 | | // @@protoc_insertion_point(serialize_end:yb.master.DeleteUniverseReplicationResponsePB) |
7600 | 0 | } |
7601 | | |
7602 | | ::google::protobuf::uint8* DeleteUniverseReplicationResponsePB::InternalSerializeWithCachedSizesToArray( |
7603 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
7604 | 0 | (void)deterministic; // Unused |
7605 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteUniverseReplicationResponsePB) |
7606 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7607 | 0 | (void) cached_has_bits; |
7608 | |
|
7609 | 0 | cached_has_bits = _has_bits_[0]; |
7610 | | // optional .yb.master.MasterErrorPB error = 1; |
7611 | 0 | if (cached_has_bits & 0x00000001u) { |
7612 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
7613 | 0 | InternalWriteMessageToArray( |
7614 | 0 | 1, *this->error_, deterministic, target); |
7615 | 0 | } |
7616 | | |
7617 | | // repeated .yb.AppStatusPB warnings = 2; |
7618 | 0 | for (unsigned int i = 0, |
7619 | 0 | n = static_cast<unsigned int>(this->warnings_size()); i < n; i++) { |
7620 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
7621 | 0 | InternalWriteMessageToArray( |
7622 | 0 | 2, this->warnings(static_cast<int>(i)), deterministic, target); |
7623 | 0 | } |
7624 | |
|
7625 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7626 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7627 | 0 | _internal_metadata_.unknown_fields(), target); |
7628 | 0 | } |
7629 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteUniverseReplicationResponsePB) |
7630 | 0 | return target; |
7631 | 0 | } |
7632 | | |
7633 | 0 | size_t DeleteUniverseReplicationResponsePB::ByteSizeLong() const { |
7634 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteUniverseReplicationResponsePB) |
7635 | 0 | size_t total_size = 0; |
7636 | |
|
7637 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7638 | 0 | total_size += |
7639 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7640 | 0 | _internal_metadata_.unknown_fields()); |
7641 | 0 | } |
7642 | | // repeated .yb.AppStatusPB warnings = 2; |
7643 | 0 | { |
7644 | 0 | unsigned int count = static_cast<unsigned int>(this->warnings_size()); |
7645 | 0 | total_size += 1UL * count; |
7646 | 0 | for (unsigned int i = 0; i < count; i++) { |
7647 | 0 | total_size += |
7648 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7649 | 0 | this->warnings(static_cast<int>(i))); |
7650 | 0 | } |
7651 | 0 | } |
7652 | | |
7653 | | // optional .yb.master.MasterErrorPB error = 1; |
7654 | 0 | if (has_error()) { |
7655 | 0 | total_size += 1 + |
7656 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7657 | 0 | *this->error_); |
7658 | 0 | } |
7659 | |
|
7660 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7661 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7662 | 0 | _cached_size_ = cached_size; |
7663 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7664 | 0 | return total_size; |
7665 | 0 | } |
7666 | | |
7667 | 0 | void DeleteUniverseReplicationResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
7668 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteUniverseReplicationResponsePB) |
7669 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7670 | 0 | const DeleteUniverseReplicationResponsePB* source = |
7671 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const DeleteUniverseReplicationResponsePB>( |
7672 | 0 | &from); |
7673 | 0 | if (source == NULL) { |
7674 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteUniverseReplicationResponsePB) |
7675 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7676 | 0 | } else { |
7677 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteUniverseReplicationResponsePB) |
7678 | 0 | MergeFrom(*source); |
7679 | 0 | } |
7680 | 0 | } |
7681 | | |
7682 | 0 | void DeleteUniverseReplicationResponsePB::MergeFrom(const DeleteUniverseReplicationResponsePB& from) { |
7683 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteUniverseReplicationResponsePB) |
7684 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7685 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7686 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7687 | 0 | (void) cached_has_bits; |
7688 | |
|
7689 | 0 | warnings_.MergeFrom(from.warnings_); |
7690 | 0 | if (from.has_error()) { |
7691 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
7692 | 0 | } |
7693 | 0 | } |
7694 | | |
7695 | 0 | void DeleteUniverseReplicationResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
7696 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteUniverseReplicationResponsePB) |
7697 | 0 | if (&from == this) return; |
7698 | 0 | Clear(); |
7699 | 0 | MergeFrom(from); |
7700 | 0 | } |
7701 | | |
7702 | 0 | void DeleteUniverseReplicationResponsePB::CopyFrom(const DeleteUniverseReplicationResponsePB& from) { |
7703 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteUniverseReplicationResponsePB) |
7704 | 0 | if (&from == this) return; |
7705 | 0 | Clear(); |
7706 | 0 | MergeFrom(from); |
7707 | 0 | } |
7708 | | |
7709 | 0 | bool DeleteUniverseReplicationResponsePB::IsInitialized() const { |
7710 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->warnings())) return false; |
7711 | 0 | if (has_error()) { |
7712 | 0 | if (!this->error_->IsInitialized()) return false; |
7713 | 0 | } |
7714 | 0 | return true; |
7715 | 0 | } |
7716 | | |
7717 | 0 | void DeleteUniverseReplicationResponsePB::Swap(DeleteUniverseReplicationResponsePB* other) { |
7718 | 0 | if (other == this) return; |
7719 | 0 | InternalSwap(other); |
7720 | 0 | } |
7721 | 0 | void DeleteUniverseReplicationResponsePB::InternalSwap(DeleteUniverseReplicationResponsePB* other) { |
7722 | 0 | using std::swap; |
7723 | 0 | warnings_.InternalSwap(&other->warnings_); |
7724 | 0 | swap(error_, other->error_); |
7725 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7726 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7727 | 0 | swap(_cached_size_, other->_cached_size_); |
7728 | 0 | } |
7729 | | |
7730 | 0 | ::google::protobuf::Metadata DeleteUniverseReplicationResponsePB::GetMetadata() const { |
7731 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7732 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
7733 | 0 | } |
7734 | | |
7735 | | |
7736 | | // =================================================================== |
7737 | | |
7738 | 26.8k | void AlterUniverseReplicationRequestPB::InitAsDefaultInstance() { |
7739 | 26.8k | } |
7740 | 0 | void AlterUniverseReplicationRequestPB::clear_producer_master_addresses() { |
7741 | 0 | producer_master_addresses_.Clear(); |
7742 | 0 | } |
7743 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7744 | | const int AlterUniverseReplicationRequestPB::kProducerIdFieldNumber; |
7745 | | const int AlterUniverseReplicationRequestPB::kProducerMasterAddressesFieldNumber; |
7746 | | const int AlterUniverseReplicationRequestPB::kProducerTableIdsToAddFieldNumber; |
7747 | | const int AlterUniverseReplicationRequestPB::kProducerTableIdsToRemoveFieldNumber; |
7748 | | const int AlterUniverseReplicationRequestPB::kNewProducerUniverseIdFieldNumber; |
7749 | | const int AlterUniverseReplicationRequestPB::kProducerBootstrapIdsToAddFieldNumber; |
7750 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7751 | | |
7752 | | AlterUniverseReplicationRequestPB::AlterUniverseReplicationRequestPB() |
7753 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7754 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7755 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsAlterUniverseReplicationRequestPB(); |
7756 | 0 | } |
7757 | 26.8k | SharedCtor(); |
7758 | | // @@protoc_insertion_point(constructor:yb.master.AlterUniverseReplicationRequestPB) |
7759 | 26.8k | } |
7760 | | AlterUniverseReplicationRequestPB::AlterUniverseReplicationRequestPB(const AlterUniverseReplicationRequestPB& from) |
7761 | | : ::google::protobuf::Message(), |
7762 | | _internal_metadata_(NULL), |
7763 | | _has_bits_(from._has_bits_), |
7764 | | _cached_size_(0), |
7765 | | producer_master_addresses_(from.producer_master_addresses_), |
7766 | | producer_table_ids_to_add_(from.producer_table_ids_to_add_), |
7767 | | producer_table_ids_to_remove_(from.producer_table_ids_to_remove_), |
7768 | 0 | producer_bootstrap_ids_to_add_(from.producer_bootstrap_ids_to_add_) { |
7769 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7770 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7771 | 0 | if (from.has_producer_id()) { |
7772 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
7773 | 0 | } |
7774 | 0 | new_producer_universe_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7775 | 0 | if (from.has_new_producer_universe_id()) { |
7776 | 0 | new_producer_universe_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_producer_universe_id_); |
7777 | 0 | } |
7778 | | // @@protoc_insertion_point(copy_constructor:yb.master.AlterUniverseReplicationRequestPB) |
7779 | 0 | } |
7780 | | |
7781 | 26.8k | void AlterUniverseReplicationRequestPB::SharedCtor() { |
7782 | 26.8k | _cached_size_ = 0; |
7783 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7784 | 26.8k | new_producer_universe_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7785 | 26.8k | } |
7786 | | |
7787 | 0 | AlterUniverseReplicationRequestPB::~AlterUniverseReplicationRequestPB() { |
7788 | | // @@protoc_insertion_point(destructor:yb.master.AlterUniverseReplicationRequestPB) |
7789 | 0 | SharedDtor(); |
7790 | 0 | } |
7791 | | |
7792 | 0 | void AlterUniverseReplicationRequestPB::SharedDtor() { |
7793 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7794 | 0 | new_producer_universe_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7795 | 0 | } |
7796 | | |
7797 | 0 | void AlterUniverseReplicationRequestPB::SetCachedSize(int size) const { |
7798 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7799 | 0 | _cached_size_ = size; |
7800 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7801 | 0 | } |
7802 | 0 | const ::google::protobuf::Descriptor* AlterUniverseReplicationRequestPB::descriptor() { |
7803 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
7804 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7805 | 0 | } |
7806 | | |
7807 | 0 | const AlterUniverseReplicationRequestPB& AlterUniverseReplicationRequestPB::default_instance() { |
7808 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsAlterUniverseReplicationRequestPB(); |
7809 | 0 | return *internal_default_instance(); |
7810 | 0 | } |
7811 | | |
7812 | 0 | AlterUniverseReplicationRequestPB* AlterUniverseReplicationRequestPB::New(::google::protobuf::Arena* arena) const { |
7813 | 0 | AlterUniverseReplicationRequestPB* n = new AlterUniverseReplicationRequestPB; |
7814 | 0 | if (arena != NULL) { |
7815 | 0 | arena->Own(n); |
7816 | 0 | } |
7817 | 0 | return n; |
7818 | 0 | } |
7819 | | |
7820 | 0 | void AlterUniverseReplicationRequestPB::Clear() { |
7821 | | // @@protoc_insertion_point(message_clear_start:yb.master.AlterUniverseReplicationRequestPB) |
7822 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7823 | | // Prevent compiler warnings about cached_has_bits being unused |
7824 | 0 | (void) cached_has_bits; |
7825 | |
|
7826 | 0 | producer_master_addresses_.Clear(); |
7827 | 0 | producer_table_ids_to_add_.Clear(); |
7828 | 0 | producer_table_ids_to_remove_.Clear(); |
7829 | 0 | producer_bootstrap_ids_to_add_.Clear(); |
7830 | 0 | cached_has_bits = _has_bits_[0]; |
7831 | 0 | if (cached_has_bits & 3u) { |
7832 | 0 | if (cached_has_bits & 0x00000001u) { |
7833 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7834 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
7835 | 0 | } |
7836 | 0 | if (cached_has_bits & 0x00000002u) { |
7837 | 0 | GOOGLE_DCHECK(!new_producer_universe_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7838 | 0 | (*new_producer_universe_id_.UnsafeRawStringPointer())->clear(); |
7839 | 0 | } |
7840 | 0 | } |
7841 | 0 | _has_bits_.Clear(); |
7842 | 0 | _internal_metadata_.Clear(); |
7843 | 0 | } |
7844 | | |
7845 | | bool AlterUniverseReplicationRequestPB::MergePartialFromCodedStream( |
7846 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7847 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7848 | 0 | ::google::protobuf::uint32 tag; |
7849 | | // @@protoc_insertion_point(parse_start:yb.master.AlterUniverseReplicationRequestPB) |
7850 | 0 | for (;;) { |
7851 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7852 | 0 | tag = p.first; |
7853 | 0 | if (!p.second) goto handle_unusual; |
7854 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7855 | | // optional string producer_id = 1; |
7856 | 0 | case 1: { |
7857 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7858 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7859 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7860 | 0 | input, this->mutable_producer_id())); |
7861 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7862 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
7863 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7864 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_id"); |
7865 | 0 | } else { |
7866 | 0 | goto handle_unusual; |
7867 | 0 | } |
7868 | 0 | break; |
7869 | 0 | } |
7870 | | |
7871 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
7872 | 0 | case 2: { |
7873 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7874 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
7875 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_producer_master_addresses())); |
7876 | 0 | } else { |
7877 | 0 | goto handle_unusual; |
7878 | 0 | } |
7879 | 0 | break; |
7880 | 0 | } |
7881 | | |
7882 | | // repeated string producer_table_ids_to_add = 4; |
7883 | 0 | case 4: { |
7884 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7885 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
7886 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7887 | 0 | input, this->add_producer_table_ids_to_add())); |
7888 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7889 | 0 | this->producer_table_ids_to_add(this->producer_table_ids_to_add_size() - 1).data(), |
7890 | 0 | static_cast<int>(this->producer_table_ids_to_add(this->producer_table_ids_to_add_size() - 1).length()), |
7891 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7892 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_add"); |
7893 | 0 | } else { |
7894 | 0 | goto handle_unusual; |
7895 | 0 | } |
7896 | 0 | break; |
7897 | 0 | } |
7898 | | |
7899 | | // repeated string producer_table_ids_to_remove = 5; |
7900 | 0 | case 5: { |
7901 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7902 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
7903 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7904 | 0 | input, this->add_producer_table_ids_to_remove())); |
7905 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7906 | 0 | this->producer_table_ids_to_remove(this->producer_table_ids_to_remove_size() - 1).data(), |
7907 | 0 | static_cast<int>(this->producer_table_ids_to_remove(this->producer_table_ids_to_remove_size() - 1).length()), |
7908 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7909 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_remove"); |
7910 | 0 | } else { |
7911 | 0 | goto handle_unusual; |
7912 | 0 | } |
7913 | 0 | break; |
7914 | 0 | } |
7915 | | |
7916 | | // repeated string producer_bootstrap_ids_to_add = 6; |
7917 | 0 | case 6: { |
7918 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7919 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
7920 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7921 | 0 | input, this->add_producer_bootstrap_ids_to_add())); |
7922 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7923 | 0 | this->producer_bootstrap_ids_to_add(this->producer_bootstrap_ids_to_add_size() - 1).data(), |
7924 | 0 | static_cast<int>(this->producer_bootstrap_ids_to_add(this->producer_bootstrap_ids_to_add_size() - 1).length()), |
7925 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7926 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_bootstrap_ids_to_add"); |
7927 | 0 | } else { |
7928 | 0 | goto handle_unusual; |
7929 | 0 | } |
7930 | 0 | break; |
7931 | 0 | } |
7932 | | |
7933 | | // optional string new_producer_universe_id = 7; |
7934 | 0 | case 7: { |
7935 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7936 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
7937 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7938 | 0 | input, this->mutable_new_producer_universe_id())); |
7939 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7940 | 0 | this->new_producer_universe_id().data(), static_cast<int>(this->new_producer_universe_id().length()), |
7941 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
7942 | 0 | "yb.master.AlterUniverseReplicationRequestPB.new_producer_universe_id"); |
7943 | 0 | } else { |
7944 | 0 | goto handle_unusual; |
7945 | 0 | } |
7946 | 0 | break; |
7947 | 0 | } |
7948 | | |
7949 | 0 | default: { |
7950 | 0 | handle_unusual: |
7951 | 0 | if (tag == 0) { |
7952 | 0 | goto success; |
7953 | 0 | } |
7954 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7955 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7956 | 0 | break; |
7957 | 0 | } |
7958 | 0 | } |
7959 | 0 | } |
7960 | 0 | success: |
7961 | | // @@protoc_insertion_point(parse_success:yb.master.AlterUniverseReplicationRequestPB) |
7962 | 0 | return true; |
7963 | 0 | failure: |
7964 | | // @@protoc_insertion_point(parse_failure:yb.master.AlterUniverseReplicationRequestPB) |
7965 | 0 | return false; |
7966 | 0 | #undef DO_ |
7967 | 0 | } |
7968 | | |
7969 | | void AlterUniverseReplicationRequestPB::SerializeWithCachedSizes( |
7970 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7971 | | // @@protoc_insertion_point(serialize_start:yb.master.AlterUniverseReplicationRequestPB) |
7972 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7973 | 0 | (void) cached_has_bits; |
7974 | |
|
7975 | 0 | cached_has_bits = _has_bits_[0]; |
7976 | | // optional string producer_id = 1; |
7977 | 0 | if (cached_has_bits & 0x00000001u) { |
7978 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7979 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
7980 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7981 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_id"); |
7982 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
7983 | 0 | 1, this->producer_id(), output); |
7984 | 0 | } |
7985 | | |
7986 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
7987 | 0 | for (unsigned int i = 0, |
7988 | 0 | n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++) { |
7989 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7990 | 0 | 2, this->producer_master_addresses(static_cast<int>(i)), output); |
7991 | 0 | } |
7992 | | |
7993 | | // repeated string producer_table_ids_to_add = 4; |
7994 | 0 | for (int i = 0, n = this->producer_table_ids_to_add_size(); i < n; i++) { |
7995 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7996 | 0 | this->producer_table_ids_to_add(i).data(), static_cast<int>(this->producer_table_ids_to_add(i).length()), |
7997 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7998 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_add"); |
7999 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
8000 | 0 | 4, this->producer_table_ids_to_add(i), output); |
8001 | 0 | } |
8002 | | |
8003 | | // repeated string producer_table_ids_to_remove = 5; |
8004 | 0 | for (int i = 0, n = this->producer_table_ids_to_remove_size(); i < n; i++) { |
8005 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8006 | 0 | this->producer_table_ids_to_remove(i).data(), static_cast<int>(this->producer_table_ids_to_remove(i).length()), |
8007 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8008 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_remove"); |
8009 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
8010 | 0 | 5, this->producer_table_ids_to_remove(i), output); |
8011 | 0 | } |
8012 | | |
8013 | | // repeated string producer_bootstrap_ids_to_add = 6; |
8014 | 0 | for (int i = 0, n = this->producer_bootstrap_ids_to_add_size(); i < n; i++) { |
8015 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8016 | 0 | this->producer_bootstrap_ids_to_add(i).data(), static_cast<int>(this->producer_bootstrap_ids_to_add(i).length()), |
8017 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8018 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_bootstrap_ids_to_add"); |
8019 | 0 | ::google::protobuf::internal::WireFormatLite::WriteString( |
8020 | 0 | 6, this->producer_bootstrap_ids_to_add(i), output); |
8021 | 0 | } |
8022 | | |
8023 | | // optional string new_producer_universe_id = 7; |
8024 | 0 | if (cached_has_bits & 0x00000002u) { |
8025 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8026 | 0 | this->new_producer_universe_id().data(), static_cast<int>(this->new_producer_universe_id().length()), |
8027 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8028 | 0 | "yb.master.AlterUniverseReplicationRequestPB.new_producer_universe_id"); |
8029 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8030 | 0 | 7, this->new_producer_universe_id(), output); |
8031 | 0 | } |
8032 | |
|
8033 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8034 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8035 | 0 | _internal_metadata_.unknown_fields(), output); |
8036 | 0 | } |
8037 | | // @@protoc_insertion_point(serialize_end:yb.master.AlterUniverseReplicationRequestPB) |
8038 | 0 | } |
8039 | | |
8040 | | ::google::protobuf::uint8* AlterUniverseReplicationRequestPB::InternalSerializeWithCachedSizesToArray( |
8041 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8042 | 0 | (void)deterministic; // Unused |
8043 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.AlterUniverseReplicationRequestPB) |
8044 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8045 | 0 | (void) cached_has_bits; |
8046 | |
|
8047 | 0 | cached_has_bits = _has_bits_[0]; |
8048 | | // optional string producer_id = 1; |
8049 | 0 | if (cached_has_bits & 0x00000001u) { |
8050 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8051 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
8052 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8053 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_id"); |
8054 | 0 | target = |
8055 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8056 | 0 | 1, this->producer_id(), target); |
8057 | 0 | } |
8058 | | |
8059 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
8060 | 0 | for (unsigned int i = 0, |
8061 | 0 | n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++) { |
8062 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8063 | 0 | InternalWriteMessageToArray( |
8064 | 0 | 2, this->producer_master_addresses(static_cast<int>(i)), deterministic, target); |
8065 | 0 | } |
8066 | | |
8067 | | // repeated string producer_table_ids_to_add = 4; |
8068 | 0 | for (int i = 0, n = this->producer_table_ids_to_add_size(); i < n; i++) { |
8069 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8070 | 0 | this->producer_table_ids_to_add(i).data(), static_cast<int>(this->producer_table_ids_to_add(i).length()), |
8071 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8072 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_add"); |
8073 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8074 | 0 | WriteStringToArray(4, this->producer_table_ids_to_add(i), target); |
8075 | 0 | } |
8076 | | |
8077 | | // repeated string producer_table_ids_to_remove = 5; |
8078 | 0 | for (int i = 0, n = this->producer_table_ids_to_remove_size(); i < n; i++) { |
8079 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8080 | 0 | this->producer_table_ids_to_remove(i).data(), static_cast<int>(this->producer_table_ids_to_remove(i).length()), |
8081 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8082 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_table_ids_to_remove"); |
8083 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8084 | 0 | WriteStringToArray(5, this->producer_table_ids_to_remove(i), target); |
8085 | 0 | } |
8086 | | |
8087 | | // repeated string producer_bootstrap_ids_to_add = 6; |
8088 | 0 | for (int i = 0, n = this->producer_bootstrap_ids_to_add_size(); i < n; i++) { |
8089 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8090 | 0 | this->producer_bootstrap_ids_to_add(i).data(), static_cast<int>(this->producer_bootstrap_ids_to_add(i).length()), |
8091 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8092 | 0 | "yb.master.AlterUniverseReplicationRequestPB.producer_bootstrap_ids_to_add"); |
8093 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8094 | 0 | WriteStringToArray(6, this->producer_bootstrap_ids_to_add(i), target); |
8095 | 0 | } |
8096 | | |
8097 | | // optional string new_producer_universe_id = 7; |
8098 | 0 | if (cached_has_bits & 0x00000002u) { |
8099 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8100 | 0 | this->new_producer_universe_id().data(), static_cast<int>(this->new_producer_universe_id().length()), |
8101 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8102 | 0 | "yb.master.AlterUniverseReplicationRequestPB.new_producer_universe_id"); |
8103 | 0 | target = |
8104 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8105 | 0 | 7, this->new_producer_universe_id(), target); |
8106 | 0 | } |
8107 | |
|
8108 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8109 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8110 | 0 | _internal_metadata_.unknown_fields(), target); |
8111 | 0 | } |
8112 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.AlterUniverseReplicationRequestPB) |
8113 | 0 | return target; |
8114 | 0 | } |
8115 | | |
8116 | 0 | size_t AlterUniverseReplicationRequestPB::ByteSizeLong() const { |
8117 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.AlterUniverseReplicationRequestPB) |
8118 | 0 | size_t total_size = 0; |
8119 | |
|
8120 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8121 | 0 | total_size += |
8122 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8123 | 0 | _internal_metadata_.unknown_fields()); |
8124 | 0 | } |
8125 | | // repeated .yb.HostPortPB producer_master_addresses = 2; |
8126 | 0 | { |
8127 | 0 | unsigned int count = static_cast<unsigned int>(this->producer_master_addresses_size()); |
8128 | 0 | total_size += 1UL * count; |
8129 | 0 | for (unsigned int i = 0; i < count; i++) { |
8130 | 0 | total_size += |
8131 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8132 | 0 | this->producer_master_addresses(static_cast<int>(i))); |
8133 | 0 | } |
8134 | 0 | } |
8135 | | |
8136 | | // repeated string producer_table_ids_to_add = 4; |
8137 | 0 | total_size += 1 * |
8138 | 0 | ::google::protobuf::internal::FromIntSize(this->producer_table_ids_to_add_size()); |
8139 | 0 | for (int i = 0, n = this->producer_table_ids_to_add_size(); i < n; i++) { |
8140 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
8141 | 0 | this->producer_table_ids_to_add(i)); |
8142 | 0 | } |
8143 | | |
8144 | | // repeated string producer_table_ids_to_remove = 5; |
8145 | 0 | total_size += 1 * |
8146 | 0 | ::google::protobuf::internal::FromIntSize(this->producer_table_ids_to_remove_size()); |
8147 | 0 | for (int i = 0, n = this->producer_table_ids_to_remove_size(); i < n; i++) { |
8148 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
8149 | 0 | this->producer_table_ids_to_remove(i)); |
8150 | 0 | } |
8151 | | |
8152 | | // repeated string producer_bootstrap_ids_to_add = 6; |
8153 | 0 | total_size += 1 * |
8154 | 0 | ::google::protobuf::internal::FromIntSize(this->producer_bootstrap_ids_to_add_size()); |
8155 | 0 | for (int i = 0, n = this->producer_bootstrap_ids_to_add_size(); i < n; i++) { |
8156 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
8157 | 0 | this->producer_bootstrap_ids_to_add(i)); |
8158 | 0 | } |
8159 | |
|
8160 | 0 | if (_has_bits_[0 / 32] & 3u) { |
8161 | | // optional string producer_id = 1; |
8162 | 0 | if (has_producer_id()) { |
8163 | 0 | total_size += 1 + |
8164 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8165 | 0 | this->producer_id()); |
8166 | 0 | } |
8167 | | |
8168 | | // optional string new_producer_universe_id = 7; |
8169 | 0 | if (has_new_producer_universe_id()) { |
8170 | 0 | total_size += 1 + |
8171 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8172 | 0 | this->new_producer_universe_id()); |
8173 | 0 | } |
8174 | |
|
8175 | 0 | } |
8176 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8177 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8178 | 0 | _cached_size_ = cached_size; |
8179 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8180 | 0 | return total_size; |
8181 | 0 | } |
8182 | | |
8183 | 0 | void AlterUniverseReplicationRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8184 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.AlterUniverseReplicationRequestPB) |
8185 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8186 | 0 | const AlterUniverseReplicationRequestPB* source = |
8187 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AlterUniverseReplicationRequestPB>( |
8188 | 0 | &from); |
8189 | 0 | if (source == NULL) { |
8190 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.AlterUniverseReplicationRequestPB) |
8191 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8192 | 0 | } else { |
8193 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.AlterUniverseReplicationRequestPB) |
8194 | 0 | MergeFrom(*source); |
8195 | 0 | } |
8196 | 0 | } |
8197 | | |
8198 | 0 | void AlterUniverseReplicationRequestPB::MergeFrom(const AlterUniverseReplicationRequestPB& from) { |
8199 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.AlterUniverseReplicationRequestPB) |
8200 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8201 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8202 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8203 | 0 | (void) cached_has_bits; |
8204 | |
|
8205 | 0 | producer_master_addresses_.MergeFrom(from.producer_master_addresses_); |
8206 | 0 | producer_table_ids_to_add_.MergeFrom(from.producer_table_ids_to_add_); |
8207 | 0 | producer_table_ids_to_remove_.MergeFrom(from.producer_table_ids_to_remove_); |
8208 | 0 | producer_bootstrap_ids_to_add_.MergeFrom(from.producer_bootstrap_ids_to_add_); |
8209 | 0 | cached_has_bits = from._has_bits_[0]; |
8210 | 0 | if (cached_has_bits & 3u) { |
8211 | 0 | if (cached_has_bits & 0x00000001u) { |
8212 | 0 | set_has_producer_id(); |
8213 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
8214 | 0 | } |
8215 | 0 | if (cached_has_bits & 0x00000002u) { |
8216 | 0 | set_has_new_producer_universe_id(); |
8217 | 0 | new_producer_universe_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_producer_universe_id_); |
8218 | 0 | } |
8219 | 0 | } |
8220 | 0 | } |
8221 | | |
8222 | 0 | void AlterUniverseReplicationRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8223 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.AlterUniverseReplicationRequestPB) |
8224 | 0 | if (&from == this) return; |
8225 | 0 | Clear(); |
8226 | 0 | MergeFrom(from); |
8227 | 0 | } |
8228 | | |
8229 | 0 | void AlterUniverseReplicationRequestPB::CopyFrom(const AlterUniverseReplicationRequestPB& from) { |
8230 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.AlterUniverseReplicationRequestPB) |
8231 | 0 | if (&from == this) return; |
8232 | 0 | Clear(); |
8233 | 0 | MergeFrom(from); |
8234 | 0 | } |
8235 | | |
8236 | 0 | bool AlterUniverseReplicationRequestPB::IsInitialized() const { |
8237 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->producer_master_addresses())) return false; |
8238 | 0 | return true; |
8239 | 0 | } |
8240 | | |
8241 | 0 | void AlterUniverseReplicationRequestPB::Swap(AlterUniverseReplicationRequestPB* other) { |
8242 | 0 | if (other == this) return; |
8243 | 0 | InternalSwap(other); |
8244 | 0 | } |
8245 | 0 | void AlterUniverseReplicationRequestPB::InternalSwap(AlterUniverseReplicationRequestPB* other) { |
8246 | 0 | using std::swap; |
8247 | 0 | producer_master_addresses_.InternalSwap(&other->producer_master_addresses_); |
8248 | 0 | producer_table_ids_to_add_.InternalSwap(&other->producer_table_ids_to_add_); |
8249 | 0 | producer_table_ids_to_remove_.InternalSwap(&other->producer_table_ids_to_remove_); |
8250 | 0 | producer_bootstrap_ids_to_add_.InternalSwap(&other->producer_bootstrap_ids_to_add_); |
8251 | 0 | producer_id_.Swap(&other->producer_id_); |
8252 | 0 | new_producer_universe_id_.Swap(&other->new_producer_universe_id_); |
8253 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8254 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8255 | 0 | swap(_cached_size_, other->_cached_size_); |
8256 | 0 | } |
8257 | | |
8258 | 0 | ::google::protobuf::Metadata AlterUniverseReplicationRequestPB::GetMetadata() const { |
8259 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8260 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
8261 | 0 | } |
8262 | | |
8263 | | |
8264 | | // =================================================================== |
8265 | | |
8266 | 26.8k | void AlterUniverseReplicationResponsePB::InitAsDefaultInstance() { |
8267 | 26.8k | ::yb::master::_AlterUniverseReplicationResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
8268 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
8269 | 26.8k | } |
8270 | 0 | void AlterUniverseReplicationResponsePB::clear_error() { |
8271 | 0 | if (error_ != NULL) error_->Clear(); |
8272 | 0 | clear_has_error(); |
8273 | 0 | } |
8274 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8275 | | const int AlterUniverseReplicationResponsePB::kErrorFieldNumber; |
8276 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8277 | | |
8278 | | AlterUniverseReplicationResponsePB::AlterUniverseReplicationResponsePB() |
8279 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8280 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8281 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsAlterUniverseReplicationResponsePB(); |
8282 | 0 | } |
8283 | 26.8k | SharedCtor(); |
8284 | | // @@protoc_insertion_point(constructor:yb.master.AlterUniverseReplicationResponsePB) |
8285 | 26.8k | } |
8286 | | AlterUniverseReplicationResponsePB::AlterUniverseReplicationResponsePB(const AlterUniverseReplicationResponsePB& from) |
8287 | | : ::google::protobuf::Message(), |
8288 | | _internal_metadata_(NULL), |
8289 | | _has_bits_(from._has_bits_), |
8290 | 0 | _cached_size_(0) { |
8291 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8292 | 0 | if (from.has_error()) { |
8293 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
8294 | 0 | } else { |
8295 | 0 | error_ = NULL; |
8296 | 0 | } |
8297 | | // @@protoc_insertion_point(copy_constructor:yb.master.AlterUniverseReplicationResponsePB) |
8298 | 0 | } |
8299 | | |
8300 | 26.8k | void AlterUniverseReplicationResponsePB::SharedCtor() { |
8301 | 26.8k | _cached_size_ = 0; |
8302 | 26.8k | error_ = NULL; |
8303 | 26.8k | } |
8304 | | |
8305 | 0 | AlterUniverseReplicationResponsePB::~AlterUniverseReplicationResponsePB() { |
8306 | | // @@protoc_insertion_point(destructor:yb.master.AlterUniverseReplicationResponsePB) |
8307 | 0 | SharedDtor(); |
8308 | 0 | } |
8309 | | |
8310 | 0 | void AlterUniverseReplicationResponsePB::SharedDtor() { |
8311 | 0 | if (this != internal_default_instance()) delete error_; |
8312 | 0 | } |
8313 | | |
8314 | 0 | void AlterUniverseReplicationResponsePB::SetCachedSize(int size) const { |
8315 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8316 | 0 | _cached_size_ = size; |
8317 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8318 | 0 | } |
8319 | 0 | const ::google::protobuf::Descriptor* AlterUniverseReplicationResponsePB::descriptor() { |
8320 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8321 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8322 | 0 | } |
8323 | | |
8324 | 0 | const AlterUniverseReplicationResponsePB& AlterUniverseReplicationResponsePB::default_instance() { |
8325 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsAlterUniverseReplicationResponsePB(); |
8326 | 0 | return *internal_default_instance(); |
8327 | 0 | } |
8328 | | |
8329 | 0 | AlterUniverseReplicationResponsePB* AlterUniverseReplicationResponsePB::New(::google::protobuf::Arena* arena) const { |
8330 | 0 | AlterUniverseReplicationResponsePB* n = new AlterUniverseReplicationResponsePB; |
8331 | 0 | if (arena != NULL) { |
8332 | 0 | arena->Own(n); |
8333 | 0 | } |
8334 | 0 | return n; |
8335 | 0 | } |
8336 | | |
8337 | 0 | void AlterUniverseReplicationResponsePB::Clear() { |
8338 | | // @@protoc_insertion_point(message_clear_start:yb.master.AlterUniverseReplicationResponsePB) |
8339 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8340 | | // Prevent compiler warnings about cached_has_bits being unused |
8341 | 0 | (void) cached_has_bits; |
8342 | |
|
8343 | 0 | cached_has_bits = _has_bits_[0]; |
8344 | 0 | if (cached_has_bits & 0x00000001u) { |
8345 | 0 | GOOGLE_DCHECK(error_ != NULL); |
8346 | 0 | error_->Clear(); |
8347 | 0 | } |
8348 | 0 | _has_bits_.Clear(); |
8349 | 0 | _internal_metadata_.Clear(); |
8350 | 0 | } |
8351 | | |
8352 | | bool AlterUniverseReplicationResponsePB::MergePartialFromCodedStream( |
8353 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8354 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8355 | 0 | ::google::protobuf::uint32 tag; |
8356 | | // @@protoc_insertion_point(parse_start:yb.master.AlterUniverseReplicationResponsePB) |
8357 | 0 | for (;;) { |
8358 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8359 | 0 | tag = p.first; |
8360 | 0 | if (!p.second) goto handle_unusual; |
8361 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8362 | | // optional .yb.master.MasterErrorPB error = 1; |
8363 | 0 | case 1: { |
8364 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8365 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8366 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8367 | 0 | input, mutable_error())); |
8368 | 0 | } else { |
8369 | 0 | goto handle_unusual; |
8370 | 0 | } |
8371 | 0 | break; |
8372 | 0 | } |
8373 | | |
8374 | 0 | default: { |
8375 | 0 | handle_unusual: |
8376 | 0 | if (tag == 0) { |
8377 | 0 | goto success; |
8378 | 0 | } |
8379 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8380 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8381 | 0 | break; |
8382 | 0 | } |
8383 | 0 | } |
8384 | 0 | } |
8385 | 0 | success: |
8386 | | // @@protoc_insertion_point(parse_success:yb.master.AlterUniverseReplicationResponsePB) |
8387 | 0 | return true; |
8388 | 0 | failure: |
8389 | | // @@protoc_insertion_point(parse_failure:yb.master.AlterUniverseReplicationResponsePB) |
8390 | 0 | return false; |
8391 | 0 | #undef DO_ |
8392 | 0 | } |
8393 | | |
8394 | | void AlterUniverseReplicationResponsePB::SerializeWithCachedSizes( |
8395 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8396 | | // @@protoc_insertion_point(serialize_start:yb.master.AlterUniverseReplicationResponsePB) |
8397 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8398 | 0 | (void) cached_has_bits; |
8399 | |
|
8400 | 0 | cached_has_bits = _has_bits_[0]; |
8401 | | // optional .yb.master.MasterErrorPB error = 1; |
8402 | 0 | if (cached_has_bits & 0x00000001u) { |
8403 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8404 | 0 | 1, *this->error_, output); |
8405 | 0 | } |
8406 | |
|
8407 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8408 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8409 | 0 | _internal_metadata_.unknown_fields(), output); |
8410 | 0 | } |
8411 | | // @@protoc_insertion_point(serialize_end:yb.master.AlterUniverseReplicationResponsePB) |
8412 | 0 | } |
8413 | | |
8414 | | ::google::protobuf::uint8* AlterUniverseReplicationResponsePB::InternalSerializeWithCachedSizesToArray( |
8415 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8416 | 0 | (void)deterministic; // Unused |
8417 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.AlterUniverseReplicationResponsePB) |
8418 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8419 | 0 | (void) cached_has_bits; |
8420 | |
|
8421 | 0 | cached_has_bits = _has_bits_[0]; |
8422 | | // optional .yb.master.MasterErrorPB error = 1; |
8423 | 0 | if (cached_has_bits & 0x00000001u) { |
8424 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8425 | 0 | InternalWriteMessageToArray( |
8426 | 0 | 1, *this->error_, deterministic, target); |
8427 | 0 | } |
8428 | |
|
8429 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8430 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8431 | 0 | _internal_metadata_.unknown_fields(), target); |
8432 | 0 | } |
8433 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.AlterUniverseReplicationResponsePB) |
8434 | 0 | return target; |
8435 | 0 | } |
8436 | | |
8437 | 0 | size_t AlterUniverseReplicationResponsePB::ByteSizeLong() const { |
8438 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.AlterUniverseReplicationResponsePB) |
8439 | 0 | size_t total_size = 0; |
8440 | |
|
8441 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8442 | 0 | total_size += |
8443 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8444 | 0 | _internal_metadata_.unknown_fields()); |
8445 | 0 | } |
8446 | | // optional .yb.master.MasterErrorPB error = 1; |
8447 | 0 | if (has_error()) { |
8448 | 0 | total_size += 1 + |
8449 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8450 | 0 | *this->error_); |
8451 | 0 | } |
8452 | |
|
8453 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8454 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8455 | 0 | _cached_size_ = cached_size; |
8456 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8457 | 0 | return total_size; |
8458 | 0 | } |
8459 | | |
8460 | 0 | void AlterUniverseReplicationResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
8461 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.AlterUniverseReplicationResponsePB) |
8462 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8463 | 0 | const AlterUniverseReplicationResponsePB* source = |
8464 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AlterUniverseReplicationResponsePB>( |
8465 | 0 | &from); |
8466 | 0 | if (source == NULL) { |
8467 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.AlterUniverseReplicationResponsePB) |
8468 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8469 | 0 | } else { |
8470 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.AlterUniverseReplicationResponsePB) |
8471 | 0 | MergeFrom(*source); |
8472 | 0 | } |
8473 | 0 | } |
8474 | | |
8475 | 0 | void AlterUniverseReplicationResponsePB::MergeFrom(const AlterUniverseReplicationResponsePB& from) { |
8476 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.AlterUniverseReplicationResponsePB) |
8477 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8478 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8479 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8480 | 0 | (void) cached_has_bits; |
8481 | |
|
8482 | 0 | if (from.has_error()) { |
8483 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
8484 | 0 | } |
8485 | 0 | } |
8486 | | |
8487 | 0 | void AlterUniverseReplicationResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
8488 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.AlterUniverseReplicationResponsePB) |
8489 | 0 | if (&from == this) return; |
8490 | 0 | Clear(); |
8491 | 0 | MergeFrom(from); |
8492 | 0 | } |
8493 | | |
8494 | 0 | void AlterUniverseReplicationResponsePB::CopyFrom(const AlterUniverseReplicationResponsePB& from) { |
8495 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.AlterUniverseReplicationResponsePB) |
8496 | 0 | if (&from == this) return; |
8497 | 0 | Clear(); |
8498 | 0 | MergeFrom(from); |
8499 | 0 | } |
8500 | | |
8501 | 0 | bool AlterUniverseReplicationResponsePB::IsInitialized() const { |
8502 | 0 | if (has_error()) { |
8503 | 0 | if (!this->error_->IsInitialized()) return false; |
8504 | 0 | } |
8505 | 0 | return true; |
8506 | 0 | } |
8507 | | |
8508 | 0 | void AlterUniverseReplicationResponsePB::Swap(AlterUniverseReplicationResponsePB* other) { |
8509 | 0 | if (other == this) return; |
8510 | 0 | InternalSwap(other); |
8511 | 0 | } |
8512 | 0 | void AlterUniverseReplicationResponsePB::InternalSwap(AlterUniverseReplicationResponsePB* other) { |
8513 | 0 | using std::swap; |
8514 | 0 | swap(error_, other->error_); |
8515 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8516 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8517 | 0 | swap(_cached_size_, other->_cached_size_); |
8518 | 0 | } |
8519 | | |
8520 | 0 | ::google::protobuf::Metadata AlterUniverseReplicationResponsePB::GetMetadata() const { |
8521 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8522 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
8523 | 0 | } |
8524 | | |
8525 | | |
8526 | | // =================================================================== |
8527 | | |
8528 | 26.8k | void SetUniverseReplicationEnabledRequestPB::InitAsDefaultInstance() { |
8529 | 26.8k | } |
8530 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8531 | | const int SetUniverseReplicationEnabledRequestPB::kProducerIdFieldNumber; |
8532 | | const int SetUniverseReplicationEnabledRequestPB::kIsEnabledFieldNumber; |
8533 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8534 | | |
8535 | | SetUniverseReplicationEnabledRequestPB::SetUniverseReplicationEnabledRequestPB() |
8536 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8537 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8538 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetUniverseReplicationEnabledRequestPB(); |
8539 | 0 | } |
8540 | 26.8k | SharedCtor(); |
8541 | | // @@protoc_insertion_point(constructor:yb.master.SetUniverseReplicationEnabledRequestPB) |
8542 | 26.8k | } |
8543 | | SetUniverseReplicationEnabledRequestPB::SetUniverseReplicationEnabledRequestPB(const SetUniverseReplicationEnabledRequestPB& from) |
8544 | | : ::google::protobuf::Message(), |
8545 | | _internal_metadata_(NULL), |
8546 | | _has_bits_(from._has_bits_), |
8547 | 0 | _cached_size_(0) { |
8548 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8549 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8550 | 0 | if (from.has_producer_id()) { |
8551 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
8552 | 0 | } |
8553 | 0 | is_enabled_ = from.is_enabled_; |
8554 | | // @@protoc_insertion_point(copy_constructor:yb.master.SetUniverseReplicationEnabledRequestPB) |
8555 | 0 | } |
8556 | | |
8557 | 26.8k | void SetUniverseReplicationEnabledRequestPB::SharedCtor() { |
8558 | 26.8k | _cached_size_ = 0; |
8559 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8560 | 26.8k | is_enabled_ = false; |
8561 | 26.8k | } |
8562 | | |
8563 | 0 | SetUniverseReplicationEnabledRequestPB::~SetUniverseReplicationEnabledRequestPB() { |
8564 | | // @@protoc_insertion_point(destructor:yb.master.SetUniverseReplicationEnabledRequestPB) |
8565 | 0 | SharedDtor(); |
8566 | 0 | } |
8567 | | |
8568 | 0 | void SetUniverseReplicationEnabledRequestPB::SharedDtor() { |
8569 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8570 | 0 | } |
8571 | | |
8572 | 0 | void SetUniverseReplicationEnabledRequestPB::SetCachedSize(int size) const { |
8573 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8574 | 0 | _cached_size_ = size; |
8575 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8576 | 0 | } |
8577 | 0 | const ::google::protobuf::Descriptor* SetUniverseReplicationEnabledRequestPB::descriptor() { |
8578 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8579 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8580 | 0 | } |
8581 | | |
8582 | 0 | const SetUniverseReplicationEnabledRequestPB& SetUniverseReplicationEnabledRequestPB::default_instance() { |
8583 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetUniverseReplicationEnabledRequestPB(); |
8584 | 0 | return *internal_default_instance(); |
8585 | 0 | } |
8586 | | |
8587 | 0 | SetUniverseReplicationEnabledRequestPB* SetUniverseReplicationEnabledRequestPB::New(::google::protobuf::Arena* arena) const { |
8588 | 0 | SetUniverseReplicationEnabledRequestPB* n = new SetUniverseReplicationEnabledRequestPB; |
8589 | 0 | if (arena != NULL) { |
8590 | 0 | arena->Own(n); |
8591 | 0 | } |
8592 | 0 | return n; |
8593 | 0 | } |
8594 | | |
8595 | 0 | void SetUniverseReplicationEnabledRequestPB::Clear() { |
8596 | | // @@protoc_insertion_point(message_clear_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8597 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8598 | | // Prevent compiler warnings about cached_has_bits being unused |
8599 | 0 | (void) cached_has_bits; |
8600 | |
|
8601 | 0 | cached_has_bits = _has_bits_[0]; |
8602 | 0 | if (cached_has_bits & 0x00000001u) { |
8603 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
8604 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
8605 | 0 | } |
8606 | 0 | is_enabled_ = false; |
8607 | 0 | _has_bits_.Clear(); |
8608 | 0 | _internal_metadata_.Clear(); |
8609 | 0 | } |
8610 | | |
8611 | | bool SetUniverseReplicationEnabledRequestPB::MergePartialFromCodedStream( |
8612 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8613 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8614 | 0 | ::google::protobuf::uint32 tag; |
8615 | | // @@protoc_insertion_point(parse_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8616 | 0 | for (;;) { |
8617 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8618 | 0 | tag = p.first; |
8619 | 0 | if (!p.second) goto handle_unusual; |
8620 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8621 | | // optional string producer_id = 1; |
8622 | 0 | case 1: { |
8623 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8624 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8625 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8626 | 0 | input, this->mutable_producer_id())); |
8627 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8628 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
8629 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
8630 | 0 | "yb.master.SetUniverseReplicationEnabledRequestPB.producer_id"); |
8631 | 0 | } else { |
8632 | 0 | goto handle_unusual; |
8633 | 0 | } |
8634 | 0 | break; |
8635 | 0 | } |
8636 | | |
8637 | | // optional bool is_enabled = 2; |
8638 | 0 | case 2: { |
8639 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8640 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
8641 | 0 | set_has_is_enabled(); |
8642 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8643 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
8644 | 0 | input, &is_enabled_))); |
8645 | 0 | } else { |
8646 | 0 | goto handle_unusual; |
8647 | 0 | } |
8648 | 0 | break; |
8649 | 0 | } |
8650 | | |
8651 | 0 | default: { |
8652 | 0 | handle_unusual: |
8653 | 0 | if (tag == 0) { |
8654 | 0 | goto success; |
8655 | 0 | } |
8656 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8657 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8658 | 0 | break; |
8659 | 0 | } |
8660 | 0 | } |
8661 | 0 | } |
8662 | 0 | success: |
8663 | | // @@protoc_insertion_point(parse_success:yb.master.SetUniverseReplicationEnabledRequestPB) |
8664 | 0 | return true; |
8665 | 0 | failure: |
8666 | | // @@protoc_insertion_point(parse_failure:yb.master.SetUniverseReplicationEnabledRequestPB) |
8667 | 0 | return false; |
8668 | 0 | #undef DO_ |
8669 | 0 | } |
8670 | | |
8671 | | void SetUniverseReplicationEnabledRequestPB::SerializeWithCachedSizes( |
8672 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8673 | | // @@protoc_insertion_point(serialize_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8674 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8675 | 0 | (void) cached_has_bits; |
8676 | |
|
8677 | 0 | cached_has_bits = _has_bits_[0]; |
8678 | | // optional string producer_id = 1; |
8679 | 0 | if (cached_has_bits & 0x00000001u) { |
8680 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8681 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
8682 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8683 | 0 | "yb.master.SetUniverseReplicationEnabledRequestPB.producer_id"); |
8684 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8685 | 0 | 1, this->producer_id(), output); |
8686 | 0 | } |
8687 | | |
8688 | | // optional bool is_enabled = 2; |
8689 | 0 | if (cached_has_bits & 0x00000002u) { |
8690 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_enabled(), output); |
8691 | 0 | } |
8692 | |
|
8693 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8694 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8695 | 0 | _internal_metadata_.unknown_fields(), output); |
8696 | 0 | } |
8697 | | // @@protoc_insertion_point(serialize_end:yb.master.SetUniverseReplicationEnabledRequestPB) |
8698 | 0 | } |
8699 | | |
8700 | | ::google::protobuf::uint8* SetUniverseReplicationEnabledRequestPB::InternalSerializeWithCachedSizesToArray( |
8701 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8702 | 0 | (void)deterministic; // Unused |
8703 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8704 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8705 | 0 | (void) cached_has_bits; |
8706 | |
|
8707 | 0 | cached_has_bits = _has_bits_[0]; |
8708 | | // optional string producer_id = 1; |
8709 | 0 | if (cached_has_bits & 0x00000001u) { |
8710 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8711 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
8712 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8713 | 0 | "yb.master.SetUniverseReplicationEnabledRequestPB.producer_id"); |
8714 | 0 | target = |
8715 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8716 | 0 | 1, this->producer_id(), target); |
8717 | 0 | } |
8718 | | |
8719 | | // optional bool is_enabled = 2; |
8720 | 0 | if (cached_has_bits & 0x00000002u) { |
8721 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_enabled(), target); |
8722 | 0 | } |
8723 | |
|
8724 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8725 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8726 | 0 | _internal_metadata_.unknown_fields(), target); |
8727 | 0 | } |
8728 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SetUniverseReplicationEnabledRequestPB) |
8729 | 0 | return target; |
8730 | 0 | } |
8731 | | |
8732 | 0 | size_t SetUniverseReplicationEnabledRequestPB::ByteSizeLong() const { |
8733 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8734 | 0 | size_t total_size = 0; |
8735 | |
|
8736 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8737 | 0 | total_size += |
8738 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8739 | 0 | _internal_metadata_.unknown_fields()); |
8740 | 0 | } |
8741 | 0 | if (_has_bits_[0 / 32] & 3u) { |
8742 | | // optional string producer_id = 1; |
8743 | 0 | if (has_producer_id()) { |
8744 | 0 | total_size += 1 + |
8745 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8746 | 0 | this->producer_id()); |
8747 | 0 | } |
8748 | | |
8749 | | // optional bool is_enabled = 2; |
8750 | 0 | if (has_is_enabled()) { |
8751 | 0 | total_size += 1 + 1; |
8752 | 0 | } |
8753 | |
|
8754 | 0 | } |
8755 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8756 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8757 | 0 | _cached_size_ = cached_size; |
8758 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8759 | 0 | return total_size; |
8760 | 0 | } |
8761 | | |
8762 | 0 | void SetUniverseReplicationEnabledRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8763 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8764 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8765 | 0 | const SetUniverseReplicationEnabledRequestPB* source = |
8766 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetUniverseReplicationEnabledRequestPB>( |
8767 | 0 | &from); |
8768 | 0 | if (source == NULL) { |
8769 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SetUniverseReplicationEnabledRequestPB) |
8770 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8771 | 0 | } else { |
8772 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SetUniverseReplicationEnabledRequestPB) |
8773 | 0 | MergeFrom(*source); |
8774 | 0 | } |
8775 | 0 | } |
8776 | | |
8777 | 0 | void SetUniverseReplicationEnabledRequestPB::MergeFrom(const SetUniverseReplicationEnabledRequestPB& from) { |
8778 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8779 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8780 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8781 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8782 | 0 | (void) cached_has_bits; |
8783 | |
|
8784 | 0 | cached_has_bits = from._has_bits_[0]; |
8785 | 0 | if (cached_has_bits & 3u) { |
8786 | 0 | if (cached_has_bits & 0x00000001u) { |
8787 | 0 | set_has_producer_id(); |
8788 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
8789 | 0 | } |
8790 | 0 | if (cached_has_bits & 0x00000002u) { |
8791 | 0 | is_enabled_ = from.is_enabled_; |
8792 | 0 | } |
8793 | 0 | _has_bits_[0] |= cached_has_bits; |
8794 | 0 | } |
8795 | 0 | } |
8796 | | |
8797 | 0 | void SetUniverseReplicationEnabledRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8798 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8799 | 0 | if (&from == this) return; |
8800 | 0 | Clear(); |
8801 | 0 | MergeFrom(from); |
8802 | 0 | } |
8803 | | |
8804 | 0 | void SetUniverseReplicationEnabledRequestPB::CopyFrom(const SetUniverseReplicationEnabledRequestPB& from) { |
8805 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SetUniverseReplicationEnabledRequestPB) |
8806 | 0 | if (&from == this) return; |
8807 | 0 | Clear(); |
8808 | 0 | MergeFrom(from); |
8809 | 0 | } |
8810 | | |
8811 | 0 | bool SetUniverseReplicationEnabledRequestPB::IsInitialized() const { |
8812 | 0 | return true; |
8813 | 0 | } |
8814 | | |
8815 | 0 | void SetUniverseReplicationEnabledRequestPB::Swap(SetUniverseReplicationEnabledRequestPB* other) { |
8816 | 0 | if (other == this) return; |
8817 | 0 | InternalSwap(other); |
8818 | 0 | } |
8819 | 0 | void SetUniverseReplicationEnabledRequestPB::InternalSwap(SetUniverseReplicationEnabledRequestPB* other) { |
8820 | 0 | using std::swap; |
8821 | 0 | producer_id_.Swap(&other->producer_id_); |
8822 | 0 | swap(is_enabled_, other->is_enabled_); |
8823 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8824 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8825 | 0 | swap(_cached_size_, other->_cached_size_); |
8826 | 0 | } |
8827 | | |
8828 | 0 | ::google::protobuf::Metadata SetUniverseReplicationEnabledRequestPB::GetMetadata() const { |
8829 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8830 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
8831 | 0 | } |
8832 | | |
8833 | | |
8834 | | // =================================================================== |
8835 | | |
8836 | 26.8k | void SetUniverseReplicationEnabledResponsePB::InitAsDefaultInstance() { |
8837 | 26.8k | ::yb::master::_SetUniverseReplicationEnabledResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
8838 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
8839 | 26.8k | } |
8840 | 0 | void SetUniverseReplicationEnabledResponsePB::clear_error() { |
8841 | 0 | if (error_ != NULL) error_->Clear(); |
8842 | 0 | clear_has_error(); |
8843 | 0 | } |
8844 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8845 | | const int SetUniverseReplicationEnabledResponsePB::kErrorFieldNumber; |
8846 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8847 | | |
8848 | | SetUniverseReplicationEnabledResponsePB::SetUniverseReplicationEnabledResponsePB() |
8849 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8850 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8851 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetUniverseReplicationEnabledResponsePB(); |
8852 | 0 | } |
8853 | 26.8k | SharedCtor(); |
8854 | | // @@protoc_insertion_point(constructor:yb.master.SetUniverseReplicationEnabledResponsePB) |
8855 | 26.8k | } |
8856 | | SetUniverseReplicationEnabledResponsePB::SetUniverseReplicationEnabledResponsePB(const SetUniverseReplicationEnabledResponsePB& from) |
8857 | | : ::google::protobuf::Message(), |
8858 | | _internal_metadata_(NULL), |
8859 | | _has_bits_(from._has_bits_), |
8860 | 0 | _cached_size_(0) { |
8861 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8862 | 0 | if (from.has_error()) { |
8863 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
8864 | 0 | } else { |
8865 | 0 | error_ = NULL; |
8866 | 0 | } |
8867 | | // @@protoc_insertion_point(copy_constructor:yb.master.SetUniverseReplicationEnabledResponsePB) |
8868 | 0 | } |
8869 | | |
8870 | 26.8k | void SetUniverseReplicationEnabledResponsePB::SharedCtor() { |
8871 | 26.8k | _cached_size_ = 0; |
8872 | 26.8k | error_ = NULL; |
8873 | 26.8k | } |
8874 | | |
8875 | 0 | SetUniverseReplicationEnabledResponsePB::~SetUniverseReplicationEnabledResponsePB() { |
8876 | | // @@protoc_insertion_point(destructor:yb.master.SetUniverseReplicationEnabledResponsePB) |
8877 | 0 | SharedDtor(); |
8878 | 0 | } |
8879 | | |
8880 | 0 | void SetUniverseReplicationEnabledResponsePB::SharedDtor() { |
8881 | 0 | if (this != internal_default_instance()) delete error_; |
8882 | 0 | } |
8883 | | |
8884 | 0 | void SetUniverseReplicationEnabledResponsePB::SetCachedSize(int size) const { |
8885 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8886 | 0 | _cached_size_ = size; |
8887 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8888 | 0 | } |
8889 | 0 | const ::google::protobuf::Descriptor* SetUniverseReplicationEnabledResponsePB::descriptor() { |
8890 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
8891 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8892 | 0 | } |
8893 | | |
8894 | 0 | const SetUniverseReplicationEnabledResponsePB& SetUniverseReplicationEnabledResponsePB::default_instance() { |
8895 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsSetUniverseReplicationEnabledResponsePB(); |
8896 | 0 | return *internal_default_instance(); |
8897 | 0 | } |
8898 | | |
8899 | 0 | SetUniverseReplicationEnabledResponsePB* SetUniverseReplicationEnabledResponsePB::New(::google::protobuf::Arena* arena) const { |
8900 | 0 | SetUniverseReplicationEnabledResponsePB* n = new SetUniverseReplicationEnabledResponsePB; |
8901 | 0 | if (arena != NULL) { |
8902 | 0 | arena->Own(n); |
8903 | 0 | } |
8904 | 0 | return n; |
8905 | 0 | } |
8906 | | |
8907 | 0 | void SetUniverseReplicationEnabledResponsePB::Clear() { |
8908 | | // @@protoc_insertion_point(message_clear_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
8909 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8910 | | // Prevent compiler warnings about cached_has_bits being unused |
8911 | 0 | (void) cached_has_bits; |
8912 | |
|
8913 | 0 | cached_has_bits = _has_bits_[0]; |
8914 | 0 | if (cached_has_bits & 0x00000001u) { |
8915 | 0 | GOOGLE_DCHECK(error_ != NULL); |
8916 | 0 | error_->Clear(); |
8917 | 0 | } |
8918 | 0 | _has_bits_.Clear(); |
8919 | 0 | _internal_metadata_.Clear(); |
8920 | 0 | } |
8921 | | |
8922 | | bool SetUniverseReplicationEnabledResponsePB::MergePartialFromCodedStream( |
8923 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8924 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8925 | 0 | ::google::protobuf::uint32 tag; |
8926 | | // @@protoc_insertion_point(parse_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
8927 | 0 | for (;;) { |
8928 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8929 | 0 | tag = p.first; |
8930 | 0 | if (!p.second) goto handle_unusual; |
8931 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8932 | | // optional .yb.master.MasterErrorPB error = 1; |
8933 | 0 | case 1: { |
8934 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8935 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8936 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8937 | 0 | input, mutable_error())); |
8938 | 0 | } else { |
8939 | 0 | goto handle_unusual; |
8940 | 0 | } |
8941 | 0 | break; |
8942 | 0 | } |
8943 | | |
8944 | 0 | default: { |
8945 | 0 | handle_unusual: |
8946 | 0 | if (tag == 0) { |
8947 | 0 | goto success; |
8948 | 0 | } |
8949 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8950 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8951 | 0 | break; |
8952 | 0 | } |
8953 | 0 | } |
8954 | 0 | } |
8955 | 0 | success: |
8956 | | // @@protoc_insertion_point(parse_success:yb.master.SetUniverseReplicationEnabledResponsePB) |
8957 | 0 | return true; |
8958 | 0 | failure: |
8959 | | // @@protoc_insertion_point(parse_failure:yb.master.SetUniverseReplicationEnabledResponsePB) |
8960 | 0 | return false; |
8961 | 0 | #undef DO_ |
8962 | 0 | } |
8963 | | |
8964 | | void SetUniverseReplicationEnabledResponsePB::SerializeWithCachedSizes( |
8965 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8966 | | // @@protoc_insertion_point(serialize_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
8967 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8968 | 0 | (void) cached_has_bits; |
8969 | |
|
8970 | 0 | cached_has_bits = _has_bits_[0]; |
8971 | | // optional .yb.master.MasterErrorPB error = 1; |
8972 | 0 | if (cached_has_bits & 0x00000001u) { |
8973 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8974 | 0 | 1, *this->error_, output); |
8975 | 0 | } |
8976 | |
|
8977 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8978 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8979 | 0 | _internal_metadata_.unknown_fields(), output); |
8980 | 0 | } |
8981 | | // @@protoc_insertion_point(serialize_end:yb.master.SetUniverseReplicationEnabledResponsePB) |
8982 | 0 | } |
8983 | | |
8984 | | ::google::protobuf::uint8* SetUniverseReplicationEnabledResponsePB::InternalSerializeWithCachedSizesToArray( |
8985 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
8986 | 0 | (void)deterministic; // Unused |
8987 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
8988 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8989 | 0 | (void) cached_has_bits; |
8990 | |
|
8991 | 0 | cached_has_bits = _has_bits_[0]; |
8992 | | // optional .yb.master.MasterErrorPB error = 1; |
8993 | 0 | if (cached_has_bits & 0x00000001u) { |
8994 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
8995 | 0 | InternalWriteMessageToArray( |
8996 | 0 | 1, *this->error_, deterministic, target); |
8997 | 0 | } |
8998 | |
|
8999 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9000 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9001 | 0 | _internal_metadata_.unknown_fields(), target); |
9002 | 0 | } |
9003 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.SetUniverseReplicationEnabledResponsePB) |
9004 | 0 | return target; |
9005 | 0 | } |
9006 | | |
9007 | 0 | size_t SetUniverseReplicationEnabledResponsePB::ByteSizeLong() const { |
9008 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
9009 | 0 | size_t total_size = 0; |
9010 | |
|
9011 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9012 | 0 | total_size += |
9013 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9014 | 0 | _internal_metadata_.unknown_fields()); |
9015 | 0 | } |
9016 | | // optional .yb.master.MasterErrorPB error = 1; |
9017 | 0 | if (has_error()) { |
9018 | 0 | total_size += 1 + |
9019 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9020 | 0 | *this->error_); |
9021 | 0 | } |
9022 | |
|
9023 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9024 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9025 | 0 | _cached_size_ = cached_size; |
9026 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9027 | 0 | return total_size; |
9028 | 0 | } |
9029 | | |
9030 | 0 | void SetUniverseReplicationEnabledResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
9031 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
9032 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9033 | 0 | const SetUniverseReplicationEnabledResponsePB* source = |
9034 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SetUniverseReplicationEnabledResponsePB>( |
9035 | 0 | &from); |
9036 | 0 | if (source == NULL) { |
9037 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SetUniverseReplicationEnabledResponsePB) |
9038 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9039 | 0 | } else { |
9040 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SetUniverseReplicationEnabledResponsePB) |
9041 | 0 | MergeFrom(*source); |
9042 | 0 | } |
9043 | 0 | } |
9044 | | |
9045 | 0 | void SetUniverseReplicationEnabledResponsePB::MergeFrom(const SetUniverseReplicationEnabledResponsePB& from) { |
9046 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
9047 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9048 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9049 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9050 | 0 | (void) cached_has_bits; |
9051 | |
|
9052 | 0 | if (from.has_error()) { |
9053 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
9054 | 0 | } |
9055 | 0 | } |
9056 | | |
9057 | 0 | void SetUniverseReplicationEnabledResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
9058 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
9059 | 0 | if (&from == this) return; |
9060 | 0 | Clear(); |
9061 | 0 | MergeFrom(from); |
9062 | 0 | } |
9063 | | |
9064 | 0 | void SetUniverseReplicationEnabledResponsePB::CopyFrom(const SetUniverseReplicationEnabledResponsePB& from) { |
9065 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SetUniverseReplicationEnabledResponsePB) |
9066 | 0 | if (&from == this) return; |
9067 | 0 | Clear(); |
9068 | 0 | MergeFrom(from); |
9069 | 0 | } |
9070 | | |
9071 | 0 | bool SetUniverseReplicationEnabledResponsePB::IsInitialized() const { |
9072 | 0 | if (has_error()) { |
9073 | 0 | if (!this->error_->IsInitialized()) return false; |
9074 | 0 | } |
9075 | 0 | return true; |
9076 | 0 | } |
9077 | | |
9078 | 0 | void SetUniverseReplicationEnabledResponsePB::Swap(SetUniverseReplicationEnabledResponsePB* other) { |
9079 | 0 | if (other == this) return; |
9080 | 0 | InternalSwap(other); |
9081 | 0 | } |
9082 | 0 | void SetUniverseReplicationEnabledResponsePB::InternalSwap(SetUniverseReplicationEnabledResponsePB* other) { |
9083 | 0 | using std::swap; |
9084 | 0 | swap(error_, other->error_); |
9085 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9086 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9087 | 0 | swap(_cached_size_, other->_cached_size_); |
9088 | 0 | } |
9089 | | |
9090 | 0 | ::google::protobuf::Metadata SetUniverseReplicationEnabledResponsePB::GetMetadata() const { |
9091 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9092 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
9093 | 0 | } |
9094 | | |
9095 | | |
9096 | | // =================================================================== |
9097 | | |
9098 | 26.8k | void GetUniverseReplicationRequestPB::InitAsDefaultInstance() { |
9099 | 26.8k | } |
9100 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9101 | | const int GetUniverseReplicationRequestPB::kProducerIdFieldNumber; |
9102 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9103 | | |
9104 | | GetUniverseReplicationRequestPB::GetUniverseReplicationRequestPB() |
9105 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9106 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9107 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetUniverseReplicationRequestPB(); |
9108 | 0 | } |
9109 | 26.8k | SharedCtor(); |
9110 | | // @@protoc_insertion_point(constructor:yb.master.GetUniverseReplicationRequestPB) |
9111 | 26.8k | } |
9112 | | GetUniverseReplicationRequestPB::GetUniverseReplicationRequestPB(const GetUniverseReplicationRequestPB& from) |
9113 | | : ::google::protobuf::Message(), |
9114 | | _internal_metadata_(NULL), |
9115 | | _has_bits_(from._has_bits_), |
9116 | 0 | _cached_size_(0) { |
9117 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9118 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9119 | 0 | if (from.has_producer_id()) { |
9120 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
9121 | 0 | } |
9122 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetUniverseReplicationRequestPB) |
9123 | 0 | } |
9124 | | |
9125 | 26.8k | void GetUniverseReplicationRequestPB::SharedCtor() { |
9126 | 26.8k | _cached_size_ = 0; |
9127 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9128 | 26.8k | } |
9129 | | |
9130 | 0 | GetUniverseReplicationRequestPB::~GetUniverseReplicationRequestPB() { |
9131 | | // @@protoc_insertion_point(destructor:yb.master.GetUniverseReplicationRequestPB) |
9132 | 0 | SharedDtor(); |
9133 | 0 | } |
9134 | | |
9135 | 0 | void GetUniverseReplicationRequestPB::SharedDtor() { |
9136 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9137 | 0 | } |
9138 | | |
9139 | 0 | void GetUniverseReplicationRequestPB::SetCachedSize(int size) const { |
9140 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9141 | 0 | _cached_size_ = size; |
9142 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9143 | 0 | } |
9144 | 0 | const ::google::protobuf::Descriptor* GetUniverseReplicationRequestPB::descriptor() { |
9145 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9146 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9147 | 0 | } |
9148 | | |
9149 | 0 | const GetUniverseReplicationRequestPB& GetUniverseReplicationRequestPB::default_instance() { |
9150 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetUniverseReplicationRequestPB(); |
9151 | 0 | return *internal_default_instance(); |
9152 | 0 | } |
9153 | | |
9154 | 0 | GetUniverseReplicationRequestPB* GetUniverseReplicationRequestPB::New(::google::protobuf::Arena* arena) const { |
9155 | 0 | GetUniverseReplicationRequestPB* n = new GetUniverseReplicationRequestPB; |
9156 | 0 | if (arena != NULL) { |
9157 | 0 | arena->Own(n); |
9158 | 0 | } |
9159 | 0 | return n; |
9160 | 0 | } |
9161 | | |
9162 | 0 | void GetUniverseReplicationRequestPB::Clear() { |
9163 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetUniverseReplicationRequestPB) |
9164 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9165 | | // Prevent compiler warnings about cached_has_bits being unused |
9166 | 0 | (void) cached_has_bits; |
9167 | |
|
9168 | 0 | cached_has_bits = _has_bits_[0]; |
9169 | 0 | if (cached_has_bits & 0x00000001u) { |
9170 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
9171 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
9172 | 0 | } |
9173 | 0 | _has_bits_.Clear(); |
9174 | 0 | _internal_metadata_.Clear(); |
9175 | 0 | } |
9176 | | |
9177 | | bool GetUniverseReplicationRequestPB::MergePartialFromCodedStream( |
9178 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9179 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9180 | 0 | ::google::protobuf::uint32 tag; |
9181 | | // @@protoc_insertion_point(parse_start:yb.master.GetUniverseReplicationRequestPB) |
9182 | 0 | for (;;) { |
9183 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9184 | 0 | tag = p.first; |
9185 | 0 | if (!p.second) goto handle_unusual; |
9186 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9187 | | // optional string producer_id = 1; |
9188 | 0 | case 1: { |
9189 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9190 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9191 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9192 | 0 | input, this->mutable_producer_id())); |
9193 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9194 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9195 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
9196 | 0 | "yb.master.GetUniverseReplicationRequestPB.producer_id"); |
9197 | 0 | } else { |
9198 | 0 | goto handle_unusual; |
9199 | 0 | } |
9200 | 0 | break; |
9201 | 0 | } |
9202 | | |
9203 | 0 | default: { |
9204 | 0 | handle_unusual: |
9205 | 0 | if (tag == 0) { |
9206 | 0 | goto success; |
9207 | 0 | } |
9208 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9209 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9210 | 0 | break; |
9211 | 0 | } |
9212 | 0 | } |
9213 | 0 | } |
9214 | 0 | success: |
9215 | | // @@protoc_insertion_point(parse_success:yb.master.GetUniverseReplicationRequestPB) |
9216 | 0 | return true; |
9217 | 0 | failure: |
9218 | | // @@protoc_insertion_point(parse_failure:yb.master.GetUniverseReplicationRequestPB) |
9219 | 0 | return false; |
9220 | 0 | #undef DO_ |
9221 | 0 | } |
9222 | | |
9223 | | void GetUniverseReplicationRequestPB::SerializeWithCachedSizes( |
9224 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9225 | | // @@protoc_insertion_point(serialize_start:yb.master.GetUniverseReplicationRequestPB) |
9226 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9227 | 0 | (void) cached_has_bits; |
9228 | |
|
9229 | 0 | cached_has_bits = _has_bits_[0]; |
9230 | | // optional string producer_id = 1; |
9231 | 0 | if (cached_has_bits & 0x00000001u) { |
9232 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9233 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9234 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9235 | 0 | "yb.master.GetUniverseReplicationRequestPB.producer_id"); |
9236 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9237 | 0 | 1, this->producer_id(), output); |
9238 | 0 | } |
9239 | |
|
9240 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9241 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9242 | 0 | _internal_metadata_.unknown_fields(), output); |
9243 | 0 | } |
9244 | | // @@protoc_insertion_point(serialize_end:yb.master.GetUniverseReplicationRequestPB) |
9245 | 0 | } |
9246 | | |
9247 | | ::google::protobuf::uint8* GetUniverseReplicationRequestPB::InternalSerializeWithCachedSizesToArray( |
9248 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9249 | 0 | (void)deterministic; // Unused |
9250 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetUniverseReplicationRequestPB) |
9251 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9252 | 0 | (void) cached_has_bits; |
9253 | |
|
9254 | 0 | cached_has_bits = _has_bits_[0]; |
9255 | | // optional string producer_id = 1; |
9256 | 0 | if (cached_has_bits & 0x00000001u) { |
9257 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9258 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9259 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9260 | 0 | "yb.master.GetUniverseReplicationRequestPB.producer_id"); |
9261 | 0 | target = |
9262 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9263 | 0 | 1, this->producer_id(), target); |
9264 | 0 | } |
9265 | |
|
9266 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9267 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9268 | 0 | _internal_metadata_.unknown_fields(), target); |
9269 | 0 | } |
9270 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetUniverseReplicationRequestPB) |
9271 | 0 | return target; |
9272 | 0 | } |
9273 | | |
9274 | 0 | size_t GetUniverseReplicationRequestPB::ByteSizeLong() const { |
9275 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetUniverseReplicationRequestPB) |
9276 | 0 | size_t total_size = 0; |
9277 | |
|
9278 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9279 | 0 | total_size += |
9280 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9281 | 0 | _internal_metadata_.unknown_fields()); |
9282 | 0 | } |
9283 | | // optional string producer_id = 1; |
9284 | 0 | if (has_producer_id()) { |
9285 | 0 | total_size += 1 + |
9286 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9287 | 0 | this->producer_id()); |
9288 | 0 | } |
9289 | |
|
9290 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9291 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9292 | 0 | _cached_size_ = cached_size; |
9293 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9294 | 0 | return total_size; |
9295 | 0 | } |
9296 | | |
9297 | 0 | void GetUniverseReplicationRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9298 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetUniverseReplicationRequestPB) |
9299 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9300 | 0 | const GetUniverseReplicationRequestPB* source = |
9301 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetUniverseReplicationRequestPB>( |
9302 | 0 | &from); |
9303 | 0 | if (source == NULL) { |
9304 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetUniverseReplicationRequestPB) |
9305 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9306 | 0 | } else { |
9307 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetUniverseReplicationRequestPB) |
9308 | 0 | MergeFrom(*source); |
9309 | 0 | } |
9310 | 0 | } |
9311 | | |
9312 | 0 | void GetUniverseReplicationRequestPB::MergeFrom(const GetUniverseReplicationRequestPB& from) { |
9313 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetUniverseReplicationRequestPB) |
9314 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9315 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9316 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9317 | 0 | (void) cached_has_bits; |
9318 | |
|
9319 | 0 | if (from.has_producer_id()) { |
9320 | 0 | set_has_producer_id(); |
9321 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
9322 | 0 | } |
9323 | 0 | } |
9324 | | |
9325 | 0 | void GetUniverseReplicationRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9326 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetUniverseReplicationRequestPB) |
9327 | 0 | if (&from == this) return; |
9328 | 0 | Clear(); |
9329 | 0 | MergeFrom(from); |
9330 | 0 | } |
9331 | | |
9332 | 0 | void GetUniverseReplicationRequestPB::CopyFrom(const GetUniverseReplicationRequestPB& from) { |
9333 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetUniverseReplicationRequestPB) |
9334 | 0 | if (&from == this) return; |
9335 | 0 | Clear(); |
9336 | 0 | MergeFrom(from); |
9337 | 0 | } |
9338 | | |
9339 | 0 | bool GetUniverseReplicationRequestPB::IsInitialized() const { |
9340 | 0 | return true; |
9341 | 0 | } |
9342 | | |
9343 | 0 | void GetUniverseReplicationRequestPB::Swap(GetUniverseReplicationRequestPB* other) { |
9344 | 0 | if (other == this) return; |
9345 | 0 | InternalSwap(other); |
9346 | 0 | } |
9347 | 0 | void GetUniverseReplicationRequestPB::InternalSwap(GetUniverseReplicationRequestPB* other) { |
9348 | 0 | using std::swap; |
9349 | 0 | producer_id_.Swap(&other->producer_id_); |
9350 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9351 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9352 | 0 | swap(_cached_size_, other->_cached_size_); |
9353 | 0 | } |
9354 | | |
9355 | 0 | ::google::protobuf::Metadata GetUniverseReplicationRequestPB::GetMetadata() const { |
9356 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9357 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
9358 | 0 | } |
9359 | | |
9360 | | |
9361 | | // =================================================================== |
9362 | | |
9363 | 26.8k | void GetUniverseReplicationResponsePB::InitAsDefaultInstance() { |
9364 | 26.8k | ::yb::master::_GetUniverseReplicationResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
9365 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
9366 | 26.8k | ::yb::master::_GetUniverseReplicationResponsePB_default_instance_._instance.get_mutable()->entry_ = const_cast< ::yb::master::SysUniverseReplicationEntryPB*>( |
9367 | 26.8k | ::yb::master::SysUniverseReplicationEntryPB::internal_default_instance()); |
9368 | 26.8k | } |
9369 | 0 | void GetUniverseReplicationResponsePB::clear_error() { |
9370 | 0 | if (error_ != NULL) error_->Clear(); |
9371 | 0 | clear_has_error(); |
9372 | 0 | } |
9373 | 0 | void GetUniverseReplicationResponsePB::clear_entry() { |
9374 | 0 | if (entry_ != NULL) entry_->Clear(); |
9375 | 0 | clear_has_entry(); |
9376 | 0 | } |
9377 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9378 | | const int GetUniverseReplicationResponsePB::kErrorFieldNumber; |
9379 | | const int GetUniverseReplicationResponsePB::kEntryFieldNumber; |
9380 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9381 | | |
9382 | | GetUniverseReplicationResponsePB::GetUniverseReplicationResponsePB() |
9383 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9384 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9385 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetUniverseReplicationResponsePB(); |
9386 | 0 | } |
9387 | 26.8k | SharedCtor(); |
9388 | | // @@protoc_insertion_point(constructor:yb.master.GetUniverseReplicationResponsePB) |
9389 | 26.8k | } |
9390 | | GetUniverseReplicationResponsePB::GetUniverseReplicationResponsePB(const GetUniverseReplicationResponsePB& from) |
9391 | | : ::google::protobuf::Message(), |
9392 | | _internal_metadata_(NULL), |
9393 | | _has_bits_(from._has_bits_), |
9394 | 0 | _cached_size_(0) { |
9395 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9396 | 0 | if (from.has_error()) { |
9397 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
9398 | 0 | } else { |
9399 | 0 | error_ = NULL; |
9400 | 0 | } |
9401 | 0 | if (from.has_entry()) { |
9402 | 0 | entry_ = new ::yb::master::SysUniverseReplicationEntryPB(*from.entry_); |
9403 | 0 | } else { |
9404 | 0 | entry_ = NULL; |
9405 | 0 | } |
9406 | | // @@protoc_insertion_point(copy_constructor:yb.master.GetUniverseReplicationResponsePB) |
9407 | 0 | } |
9408 | | |
9409 | 26.8k | void GetUniverseReplicationResponsePB::SharedCtor() { |
9410 | 26.8k | _cached_size_ = 0; |
9411 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
9412 | 26.8k | reinterpret_cast<char*>(&entry_) - |
9413 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(entry_)); |
9414 | 26.8k | } |
9415 | | |
9416 | 0 | GetUniverseReplicationResponsePB::~GetUniverseReplicationResponsePB() { |
9417 | | // @@protoc_insertion_point(destructor:yb.master.GetUniverseReplicationResponsePB) |
9418 | 0 | SharedDtor(); |
9419 | 0 | } |
9420 | | |
9421 | 0 | void GetUniverseReplicationResponsePB::SharedDtor() { |
9422 | 0 | if (this != internal_default_instance()) delete error_; |
9423 | 0 | if (this != internal_default_instance()) delete entry_; |
9424 | 0 | } |
9425 | | |
9426 | 0 | void GetUniverseReplicationResponsePB::SetCachedSize(int size) const { |
9427 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9428 | 0 | _cached_size_ = size; |
9429 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9430 | 0 | } |
9431 | 0 | const ::google::protobuf::Descriptor* GetUniverseReplicationResponsePB::descriptor() { |
9432 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9433 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9434 | 0 | } |
9435 | | |
9436 | 0 | const GetUniverseReplicationResponsePB& GetUniverseReplicationResponsePB::default_instance() { |
9437 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsGetUniverseReplicationResponsePB(); |
9438 | 0 | return *internal_default_instance(); |
9439 | 0 | } |
9440 | | |
9441 | 0 | GetUniverseReplicationResponsePB* GetUniverseReplicationResponsePB::New(::google::protobuf::Arena* arena) const { |
9442 | 0 | GetUniverseReplicationResponsePB* n = new GetUniverseReplicationResponsePB; |
9443 | 0 | if (arena != NULL) { |
9444 | 0 | arena->Own(n); |
9445 | 0 | } |
9446 | 0 | return n; |
9447 | 0 | } |
9448 | | |
9449 | 0 | void GetUniverseReplicationResponsePB::Clear() { |
9450 | | // @@protoc_insertion_point(message_clear_start:yb.master.GetUniverseReplicationResponsePB) |
9451 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9452 | | // Prevent compiler warnings about cached_has_bits being unused |
9453 | 0 | (void) cached_has_bits; |
9454 | |
|
9455 | 0 | cached_has_bits = _has_bits_[0]; |
9456 | 0 | if (cached_has_bits & 3u) { |
9457 | 0 | if (cached_has_bits & 0x00000001u) { |
9458 | 0 | GOOGLE_DCHECK(error_ != NULL); |
9459 | 0 | error_->Clear(); |
9460 | 0 | } |
9461 | 0 | if (cached_has_bits & 0x00000002u) { |
9462 | 0 | GOOGLE_DCHECK(entry_ != NULL); |
9463 | 0 | entry_->Clear(); |
9464 | 0 | } |
9465 | 0 | } |
9466 | 0 | _has_bits_.Clear(); |
9467 | 0 | _internal_metadata_.Clear(); |
9468 | 0 | } |
9469 | | |
9470 | | bool GetUniverseReplicationResponsePB::MergePartialFromCodedStream( |
9471 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9472 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9473 | 0 | ::google::protobuf::uint32 tag; |
9474 | | // @@protoc_insertion_point(parse_start:yb.master.GetUniverseReplicationResponsePB) |
9475 | 0 | for (;;) { |
9476 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9477 | 0 | tag = p.first; |
9478 | 0 | if (!p.second) goto handle_unusual; |
9479 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9480 | | // optional .yb.master.MasterErrorPB error = 1; |
9481 | 0 | case 1: { |
9482 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9483 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9484 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9485 | 0 | input, mutable_error())); |
9486 | 0 | } else { |
9487 | 0 | goto handle_unusual; |
9488 | 0 | } |
9489 | 0 | break; |
9490 | 0 | } |
9491 | | |
9492 | | // optional .yb.master.SysUniverseReplicationEntryPB entry = 2; |
9493 | 0 | case 2: { |
9494 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9495 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
9496 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9497 | 0 | input, mutable_entry())); |
9498 | 0 | } else { |
9499 | 0 | goto handle_unusual; |
9500 | 0 | } |
9501 | 0 | break; |
9502 | 0 | } |
9503 | | |
9504 | 0 | default: { |
9505 | 0 | handle_unusual: |
9506 | 0 | if (tag == 0) { |
9507 | 0 | goto success; |
9508 | 0 | } |
9509 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9510 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9511 | 0 | break; |
9512 | 0 | } |
9513 | 0 | } |
9514 | 0 | } |
9515 | 0 | success: |
9516 | | // @@protoc_insertion_point(parse_success:yb.master.GetUniverseReplicationResponsePB) |
9517 | 0 | return true; |
9518 | 0 | failure: |
9519 | | // @@protoc_insertion_point(parse_failure:yb.master.GetUniverseReplicationResponsePB) |
9520 | 0 | return false; |
9521 | 0 | #undef DO_ |
9522 | 0 | } |
9523 | | |
9524 | | void GetUniverseReplicationResponsePB::SerializeWithCachedSizes( |
9525 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9526 | | // @@protoc_insertion_point(serialize_start:yb.master.GetUniverseReplicationResponsePB) |
9527 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9528 | 0 | (void) cached_has_bits; |
9529 | |
|
9530 | 0 | cached_has_bits = _has_bits_[0]; |
9531 | | // optional .yb.master.MasterErrorPB error = 1; |
9532 | 0 | if (cached_has_bits & 0x00000001u) { |
9533 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9534 | 0 | 1, *this->error_, output); |
9535 | 0 | } |
9536 | | |
9537 | | // optional .yb.master.SysUniverseReplicationEntryPB entry = 2; |
9538 | 0 | if (cached_has_bits & 0x00000002u) { |
9539 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9540 | 0 | 2, *this->entry_, output); |
9541 | 0 | } |
9542 | |
|
9543 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9544 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9545 | 0 | _internal_metadata_.unknown_fields(), output); |
9546 | 0 | } |
9547 | | // @@protoc_insertion_point(serialize_end:yb.master.GetUniverseReplicationResponsePB) |
9548 | 0 | } |
9549 | | |
9550 | | ::google::protobuf::uint8* GetUniverseReplicationResponsePB::InternalSerializeWithCachedSizesToArray( |
9551 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9552 | 0 | (void)deterministic; // Unused |
9553 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetUniverseReplicationResponsePB) |
9554 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9555 | 0 | (void) cached_has_bits; |
9556 | |
|
9557 | 0 | cached_has_bits = _has_bits_[0]; |
9558 | | // optional .yb.master.MasterErrorPB error = 1; |
9559 | 0 | if (cached_has_bits & 0x00000001u) { |
9560 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
9561 | 0 | InternalWriteMessageToArray( |
9562 | 0 | 1, *this->error_, deterministic, target); |
9563 | 0 | } |
9564 | | |
9565 | | // optional .yb.master.SysUniverseReplicationEntryPB entry = 2; |
9566 | 0 | if (cached_has_bits & 0x00000002u) { |
9567 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
9568 | 0 | InternalWriteMessageToArray( |
9569 | 0 | 2, *this->entry_, deterministic, target); |
9570 | 0 | } |
9571 | |
|
9572 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9573 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9574 | 0 | _internal_metadata_.unknown_fields(), target); |
9575 | 0 | } |
9576 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetUniverseReplicationResponsePB) |
9577 | 0 | return target; |
9578 | 0 | } |
9579 | | |
9580 | 0 | size_t GetUniverseReplicationResponsePB::ByteSizeLong() const { |
9581 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.GetUniverseReplicationResponsePB) |
9582 | 0 | size_t total_size = 0; |
9583 | |
|
9584 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9585 | 0 | total_size += |
9586 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9587 | 0 | _internal_metadata_.unknown_fields()); |
9588 | 0 | } |
9589 | 0 | if (_has_bits_[0 / 32] & 3u) { |
9590 | | // optional .yb.master.MasterErrorPB error = 1; |
9591 | 0 | if (has_error()) { |
9592 | 0 | total_size += 1 + |
9593 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9594 | 0 | *this->error_); |
9595 | 0 | } |
9596 | | |
9597 | | // optional .yb.master.SysUniverseReplicationEntryPB entry = 2; |
9598 | 0 | if (has_entry()) { |
9599 | 0 | total_size += 1 + |
9600 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9601 | 0 | *this->entry_); |
9602 | 0 | } |
9603 | |
|
9604 | 0 | } |
9605 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9606 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9607 | 0 | _cached_size_ = cached_size; |
9608 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9609 | 0 | return total_size; |
9610 | 0 | } |
9611 | | |
9612 | 0 | void GetUniverseReplicationResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
9613 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetUniverseReplicationResponsePB) |
9614 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9615 | 0 | const GetUniverseReplicationResponsePB* source = |
9616 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetUniverseReplicationResponsePB>( |
9617 | 0 | &from); |
9618 | 0 | if (source == NULL) { |
9619 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetUniverseReplicationResponsePB) |
9620 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9621 | 0 | } else { |
9622 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetUniverseReplicationResponsePB) |
9623 | 0 | MergeFrom(*source); |
9624 | 0 | } |
9625 | 0 | } |
9626 | | |
9627 | 0 | void GetUniverseReplicationResponsePB::MergeFrom(const GetUniverseReplicationResponsePB& from) { |
9628 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetUniverseReplicationResponsePB) |
9629 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9630 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9631 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9632 | 0 | (void) cached_has_bits; |
9633 | |
|
9634 | 0 | cached_has_bits = from._has_bits_[0]; |
9635 | 0 | if (cached_has_bits & 3u) { |
9636 | 0 | if (cached_has_bits & 0x00000001u) { |
9637 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
9638 | 0 | } |
9639 | 0 | if (cached_has_bits & 0x00000002u) { |
9640 | 0 | mutable_entry()->::yb::master::SysUniverseReplicationEntryPB::MergeFrom(from.entry()); |
9641 | 0 | } |
9642 | 0 | } |
9643 | 0 | } |
9644 | | |
9645 | 0 | void GetUniverseReplicationResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
9646 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetUniverseReplicationResponsePB) |
9647 | 0 | if (&from == this) return; |
9648 | 0 | Clear(); |
9649 | 0 | MergeFrom(from); |
9650 | 0 | } |
9651 | | |
9652 | 0 | void GetUniverseReplicationResponsePB::CopyFrom(const GetUniverseReplicationResponsePB& from) { |
9653 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetUniverseReplicationResponsePB) |
9654 | 0 | if (&from == this) return; |
9655 | 0 | Clear(); |
9656 | 0 | MergeFrom(from); |
9657 | 0 | } |
9658 | | |
9659 | 0 | bool GetUniverseReplicationResponsePB::IsInitialized() const { |
9660 | 0 | if (has_error()) { |
9661 | 0 | if (!this->error_->IsInitialized()) return false; |
9662 | 0 | } |
9663 | 0 | if (has_entry()) { |
9664 | 0 | if (!this->entry_->IsInitialized()) return false; |
9665 | 0 | } |
9666 | 0 | return true; |
9667 | 0 | } |
9668 | | |
9669 | 0 | void GetUniverseReplicationResponsePB::Swap(GetUniverseReplicationResponsePB* other) { |
9670 | 0 | if (other == this) return; |
9671 | 0 | InternalSwap(other); |
9672 | 0 | } |
9673 | 0 | void GetUniverseReplicationResponsePB::InternalSwap(GetUniverseReplicationResponsePB* other) { |
9674 | 0 | using std::swap; |
9675 | 0 | swap(error_, other->error_); |
9676 | 0 | swap(entry_, other->entry_); |
9677 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9678 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9679 | 0 | swap(_cached_size_, other->_cached_size_); |
9680 | 0 | } |
9681 | | |
9682 | 0 | ::google::protobuf::Metadata GetUniverseReplicationResponsePB::GetMetadata() const { |
9683 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9684 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
9685 | 0 | } |
9686 | | |
9687 | | |
9688 | | // =================================================================== |
9689 | | |
9690 | 26.8k | void IsSetupUniverseReplicationDoneRequestPB::InitAsDefaultInstance() { |
9691 | 26.8k | } |
9692 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9693 | | const int IsSetupUniverseReplicationDoneRequestPB::kProducerIdFieldNumber; |
9694 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9695 | | |
9696 | | IsSetupUniverseReplicationDoneRequestPB::IsSetupUniverseReplicationDoneRequestPB() |
9697 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9698 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9699 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsIsSetupUniverseReplicationDoneRequestPB(); |
9700 | 0 | } |
9701 | 26.8k | SharedCtor(); |
9702 | | // @@protoc_insertion_point(constructor:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9703 | 26.8k | } |
9704 | | IsSetupUniverseReplicationDoneRequestPB::IsSetupUniverseReplicationDoneRequestPB(const IsSetupUniverseReplicationDoneRequestPB& from) |
9705 | | : ::google::protobuf::Message(), |
9706 | | _internal_metadata_(NULL), |
9707 | | _has_bits_(from._has_bits_), |
9708 | 0 | _cached_size_(0) { |
9709 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9710 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9711 | 0 | if (from.has_producer_id()) { |
9712 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
9713 | 0 | } |
9714 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9715 | 0 | } |
9716 | | |
9717 | 26.8k | void IsSetupUniverseReplicationDoneRequestPB::SharedCtor() { |
9718 | 26.8k | _cached_size_ = 0; |
9719 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9720 | 26.8k | } |
9721 | | |
9722 | 0 | IsSetupUniverseReplicationDoneRequestPB::~IsSetupUniverseReplicationDoneRequestPB() { |
9723 | | // @@protoc_insertion_point(destructor:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9724 | 0 | SharedDtor(); |
9725 | 0 | } |
9726 | | |
9727 | 0 | void IsSetupUniverseReplicationDoneRequestPB::SharedDtor() { |
9728 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9729 | 0 | } |
9730 | | |
9731 | 0 | void IsSetupUniverseReplicationDoneRequestPB::SetCachedSize(int size) const { |
9732 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9733 | 0 | _cached_size_ = size; |
9734 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9735 | 0 | } |
9736 | 0 | const ::google::protobuf::Descriptor* IsSetupUniverseReplicationDoneRequestPB::descriptor() { |
9737 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9738 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9739 | 0 | } |
9740 | | |
9741 | 0 | const IsSetupUniverseReplicationDoneRequestPB& IsSetupUniverseReplicationDoneRequestPB::default_instance() { |
9742 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsIsSetupUniverseReplicationDoneRequestPB(); |
9743 | 0 | return *internal_default_instance(); |
9744 | 0 | } |
9745 | | |
9746 | 0 | IsSetupUniverseReplicationDoneRequestPB* IsSetupUniverseReplicationDoneRequestPB::New(::google::protobuf::Arena* arena) const { |
9747 | 0 | IsSetupUniverseReplicationDoneRequestPB* n = new IsSetupUniverseReplicationDoneRequestPB; |
9748 | 0 | if (arena != NULL) { |
9749 | 0 | arena->Own(n); |
9750 | 0 | } |
9751 | 0 | return n; |
9752 | 0 | } |
9753 | | |
9754 | 0 | void IsSetupUniverseReplicationDoneRequestPB::Clear() { |
9755 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9756 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9757 | | // Prevent compiler warnings about cached_has_bits being unused |
9758 | 0 | (void) cached_has_bits; |
9759 | |
|
9760 | 0 | cached_has_bits = _has_bits_[0]; |
9761 | 0 | if (cached_has_bits & 0x00000001u) { |
9762 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
9763 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
9764 | 0 | } |
9765 | 0 | _has_bits_.Clear(); |
9766 | 0 | _internal_metadata_.Clear(); |
9767 | 0 | } |
9768 | | |
9769 | | bool IsSetupUniverseReplicationDoneRequestPB::MergePartialFromCodedStream( |
9770 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9771 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9772 | 0 | ::google::protobuf::uint32 tag; |
9773 | | // @@protoc_insertion_point(parse_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9774 | 0 | for (;;) { |
9775 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9776 | 0 | tag = p.first; |
9777 | 0 | if (!p.second) goto handle_unusual; |
9778 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9779 | | // optional string producer_id = 1; |
9780 | 0 | case 1: { |
9781 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9782 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9783 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9784 | 0 | input, this->mutable_producer_id())); |
9785 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9786 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9787 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
9788 | 0 | "yb.master.IsSetupUniverseReplicationDoneRequestPB.producer_id"); |
9789 | 0 | } else { |
9790 | 0 | goto handle_unusual; |
9791 | 0 | } |
9792 | 0 | break; |
9793 | 0 | } |
9794 | | |
9795 | 0 | default: { |
9796 | 0 | handle_unusual: |
9797 | 0 | if (tag == 0) { |
9798 | 0 | goto success; |
9799 | 0 | } |
9800 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9801 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9802 | 0 | break; |
9803 | 0 | } |
9804 | 0 | } |
9805 | 0 | } |
9806 | 0 | success: |
9807 | | // @@protoc_insertion_point(parse_success:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9808 | 0 | return true; |
9809 | 0 | failure: |
9810 | | // @@protoc_insertion_point(parse_failure:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9811 | 0 | return false; |
9812 | 0 | #undef DO_ |
9813 | 0 | } |
9814 | | |
9815 | | void IsSetupUniverseReplicationDoneRequestPB::SerializeWithCachedSizes( |
9816 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9817 | | // @@protoc_insertion_point(serialize_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9818 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9819 | 0 | (void) cached_has_bits; |
9820 | |
|
9821 | 0 | cached_has_bits = _has_bits_[0]; |
9822 | | // optional string producer_id = 1; |
9823 | 0 | if (cached_has_bits & 0x00000001u) { |
9824 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9825 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9826 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9827 | 0 | "yb.master.IsSetupUniverseReplicationDoneRequestPB.producer_id"); |
9828 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9829 | 0 | 1, this->producer_id(), output); |
9830 | 0 | } |
9831 | |
|
9832 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9833 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9834 | 0 | _internal_metadata_.unknown_fields(), output); |
9835 | 0 | } |
9836 | | // @@protoc_insertion_point(serialize_end:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9837 | 0 | } |
9838 | | |
9839 | | ::google::protobuf::uint8* IsSetupUniverseReplicationDoneRequestPB::InternalSerializeWithCachedSizesToArray( |
9840 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9841 | 0 | (void)deterministic; // Unused |
9842 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9843 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9844 | 0 | (void) cached_has_bits; |
9845 | |
|
9846 | 0 | cached_has_bits = _has_bits_[0]; |
9847 | | // optional string producer_id = 1; |
9848 | 0 | if (cached_has_bits & 0x00000001u) { |
9849 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9850 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
9851 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9852 | 0 | "yb.master.IsSetupUniverseReplicationDoneRequestPB.producer_id"); |
9853 | 0 | target = |
9854 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9855 | 0 | 1, this->producer_id(), target); |
9856 | 0 | } |
9857 | |
|
9858 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9859 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9860 | 0 | _internal_metadata_.unknown_fields(), target); |
9861 | 0 | } |
9862 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9863 | 0 | return target; |
9864 | 0 | } |
9865 | | |
9866 | 0 | size_t IsSetupUniverseReplicationDoneRequestPB::ByteSizeLong() const { |
9867 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9868 | 0 | size_t total_size = 0; |
9869 | |
|
9870 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9871 | 0 | total_size += |
9872 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9873 | 0 | _internal_metadata_.unknown_fields()); |
9874 | 0 | } |
9875 | | // optional string producer_id = 1; |
9876 | 0 | if (has_producer_id()) { |
9877 | 0 | total_size += 1 + |
9878 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9879 | 0 | this->producer_id()); |
9880 | 0 | } |
9881 | |
|
9882 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9883 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9884 | 0 | _cached_size_ = cached_size; |
9885 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9886 | 0 | return total_size; |
9887 | 0 | } |
9888 | | |
9889 | 0 | void IsSetupUniverseReplicationDoneRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9890 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9891 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9892 | 0 | const IsSetupUniverseReplicationDoneRequestPB* source = |
9893 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsSetupUniverseReplicationDoneRequestPB>( |
9894 | 0 | &from); |
9895 | 0 | if (source == NULL) { |
9896 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9897 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9898 | 0 | } else { |
9899 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9900 | 0 | MergeFrom(*source); |
9901 | 0 | } |
9902 | 0 | } |
9903 | | |
9904 | 0 | void IsSetupUniverseReplicationDoneRequestPB::MergeFrom(const IsSetupUniverseReplicationDoneRequestPB& from) { |
9905 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9906 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9907 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9908 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9909 | 0 | (void) cached_has_bits; |
9910 | |
|
9911 | 0 | if (from.has_producer_id()) { |
9912 | 0 | set_has_producer_id(); |
9913 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
9914 | 0 | } |
9915 | 0 | } |
9916 | | |
9917 | 0 | void IsSetupUniverseReplicationDoneRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9918 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9919 | 0 | if (&from == this) return; |
9920 | 0 | Clear(); |
9921 | 0 | MergeFrom(from); |
9922 | 0 | } |
9923 | | |
9924 | 0 | void IsSetupUniverseReplicationDoneRequestPB::CopyFrom(const IsSetupUniverseReplicationDoneRequestPB& from) { |
9925 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsSetupUniverseReplicationDoneRequestPB) |
9926 | 0 | if (&from == this) return; |
9927 | 0 | Clear(); |
9928 | 0 | MergeFrom(from); |
9929 | 0 | } |
9930 | | |
9931 | 0 | bool IsSetupUniverseReplicationDoneRequestPB::IsInitialized() const { |
9932 | 0 | return true; |
9933 | 0 | } |
9934 | | |
9935 | 0 | void IsSetupUniverseReplicationDoneRequestPB::Swap(IsSetupUniverseReplicationDoneRequestPB* other) { |
9936 | 0 | if (other == this) return; |
9937 | 0 | InternalSwap(other); |
9938 | 0 | } |
9939 | 0 | void IsSetupUniverseReplicationDoneRequestPB::InternalSwap(IsSetupUniverseReplicationDoneRequestPB* other) { |
9940 | 0 | using std::swap; |
9941 | 0 | producer_id_.Swap(&other->producer_id_); |
9942 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9943 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9944 | 0 | swap(_cached_size_, other->_cached_size_); |
9945 | 0 | } |
9946 | | |
9947 | 0 | ::google::protobuf::Metadata IsSetupUniverseReplicationDoneRequestPB::GetMetadata() const { |
9948 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
9949 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
9950 | 0 | } |
9951 | | |
9952 | | |
9953 | | // =================================================================== |
9954 | | |
9955 | 26.8k | void IsSetupUniverseReplicationDoneResponsePB::InitAsDefaultInstance() { |
9956 | 26.8k | ::yb::master::_IsSetupUniverseReplicationDoneResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
9957 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
9958 | 26.8k | ::yb::master::_IsSetupUniverseReplicationDoneResponsePB_default_instance_._instance.get_mutable()->replication_error_ = const_cast< ::yb::AppStatusPB*>( |
9959 | 26.8k | ::yb::AppStatusPB::internal_default_instance()); |
9960 | 26.8k | } |
9961 | 0 | void IsSetupUniverseReplicationDoneResponsePB::clear_error() { |
9962 | 0 | if (error_ != NULL) error_->Clear(); |
9963 | 0 | clear_has_error(); |
9964 | 0 | } |
9965 | 0 | void IsSetupUniverseReplicationDoneResponsePB::clear_replication_error() { |
9966 | 0 | if (replication_error_ != NULL) replication_error_->Clear(); |
9967 | 0 | clear_has_replication_error(); |
9968 | 0 | } |
9969 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9970 | | const int IsSetupUniverseReplicationDoneResponsePB::kErrorFieldNumber; |
9971 | | const int IsSetupUniverseReplicationDoneResponsePB::kDoneFieldNumber; |
9972 | | const int IsSetupUniverseReplicationDoneResponsePB::kReplicationErrorFieldNumber; |
9973 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9974 | | |
9975 | | IsSetupUniverseReplicationDoneResponsePB::IsSetupUniverseReplicationDoneResponsePB() |
9976 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9977 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9978 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsIsSetupUniverseReplicationDoneResponsePB(); |
9979 | 0 | } |
9980 | 26.8k | SharedCtor(); |
9981 | | // @@protoc_insertion_point(constructor:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
9982 | 26.8k | } |
9983 | | IsSetupUniverseReplicationDoneResponsePB::IsSetupUniverseReplicationDoneResponsePB(const IsSetupUniverseReplicationDoneResponsePB& from) |
9984 | | : ::google::protobuf::Message(), |
9985 | | _internal_metadata_(NULL), |
9986 | | _has_bits_(from._has_bits_), |
9987 | 0 | _cached_size_(0) { |
9988 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9989 | 0 | if (from.has_error()) { |
9990 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
9991 | 0 | } else { |
9992 | 0 | error_ = NULL; |
9993 | 0 | } |
9994 | 0 | if (from.has_replication_error()) { |
9995 | 0 | replication_error_ = new ::yb::AppStatusPB(*from.replication_error_); |
9996 | 0 | } else { |
9997 | 0 | replication_error_ = NULL; |
9998 | 0 | } |
9999 | 0 | done_ = from.done_; |
10000 | | // @@protoc_insertion_point(copy_constructor:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10001 | 0 | } |
10002 | | |
10003 | 26.8k | void IsSetupUniverseReplicationDoneResponsePB::SharedCtor() { |
10004 | 26.8k | _cached_size_ = 0; |
10005 | 26.8k | ::memset(&error_, 0, static_cast<size_t>( |
10006 | 26.8k | reinterpret_cast<char*>(&done_) - |
10007 | 26.8k | reinterpret_cast<char*>(&error_)) + sizeof(done_)); |
10008 | 26.8k | } |
10009 | | |
10010 | 0 | IsSetupUniverseReplicationDoneResponsePB::~IsSetupUniverseReplicationDoneResponsePB() { |
10011 | | // @@protoc_insertion_point(destructor:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10012 | 0 | SharedDtor(); |
10013 | 0 | } |
10014 | | |
10015 | 0 | void IsSetupUniverseReplicationDoneResponsePB::SharedDtor() { |
10016 | 0 | if (this != internal_default_instance()) delete error_; |
10017 | 0 | if (this != internal_default_instance()) delete replication_error_; |
10018 | 0 | } |
10019 | | |
10020 | 0 | void IsSetupUniverseReplicationDoneResponsePB::SetCachedSize(int size) const { |
10021 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10022 | 0 | _cached_size_ = size; |
10023 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10024 | 0 | } |
10025 | 0 | const ::google::protobuf::Descriptor* IsSetupUniverseReplicationDoneResponsePB::descriptor() { |
10026 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
10027 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10028 | 0 | } |
10029 | | |
10030 | 0 | const IsSetupUniverseReplicationDoneResponsePB& IsSetupUniverseReplicationDoneResponsePB::default_instance() { |
10031 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsIsSetupUniverseReplicationDoneResponsePB(); |
10032 | 0 | return *internal_default_instance(); |
10033 | 0 | } |
10034 | | |
10035 | 0 | IsSetupUniverseReplicationDoneResponsePB* IsSetupUniverseReplicationDoneResponsePB::New(::google::protobuf::Arena* arena) const { |
10036 | 0 | IsSetupUniverseReplicationDoneResponsePB* n = new IsSetupUniverseReplicationDoneResponsePB; |
10037 | 0 | if (arena != NULL) { |
10038 | 0 | arena->Own(n); |
10039 | 0 | } |
10040 | 0 | return n; |
10041 | 0 | } |
10042 | | |
10043 | 0 | void IsSetupUniverseReplicationDoneResponsePB::Clear() { |
10044 | | // @@protoc_insertion_point(message_clear_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10045 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10046 | | // Prevent compiler warnings about cached_has_bits being unused |
10047 | 0 | (void) cached_has_bits; |
10048 | |
|
10049 | 0 | cached_has_bits = _has_bits_[0]; |
10050 | 0 | if (cached_has_bits & 3u) { |
10051 | 0 | if (cached_has_bits & 0x00000001u) { |
10052 | 0 | GOOGLE_DCHECK(error_ != NULL); |
10053 | 0 | error_->Clear(); |
10054 | 0 | } |
10055 | 0 | if (cached_has_bits & 0x00000002u) { |
10056 | 0 | GOOGLE_DCHECK(replication_error_ != NULL); |
10057 | 0 | replication_error_->Clear(); |
10058 | 0 | } |
10059 | 0 | } |
10060 | 0 | done_ = false; |
10061 | 0 | _has_bits_.Clear(); |
10062 | 0 | _internal_metadata_.Clear(); |
10063 | 0 | } |
10064 | | |
10065 | | bool IsSetupUniverseReplicationDoneResponsePB::MergePartialFromCodedStream( |
10066 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10067 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10068 | 0 | ::google::protobuf::uint32 tag; |
10069 | | // @@protoc_insertion_point(parse_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10070 | 0 | for (;;) { |
10071 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10072 | 0 | tag = p.first; |
10073 | 0 | if (!p.second) goto handle_unusual; |
10074 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10075 | | // optional .yb.master.MasterErrorPB error = 1; |
10076 | 0 | case 1: { |
10077 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10078 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10079 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10080 | 0 | input, mutable_error())); |
10081 | 0 | } else { |
10082 | 0 | goto handle_unusual; |
10083 | 0 | } |
10084 | 0 | break; |
10085 | 0 | } |
10086 | | |
10087 | | // optional bool done = 2; |
10088 | 0 | case 2: { |
10089 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10090 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10091 | 0 | set_has_done(); |
10092 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10093 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
10094 | 0 | input, &done_))); |
10095 | 0 | } else { |
10096 | 0 | goto handle_unusual; |
10097 | 0 | } |
10098 | 0 | break; |
10099 | 0 | } |
10100 | | |
10101 | | // optional .yb.AppStatusPB replication_error = 3; |
10102 | 0 | case 3: { |
10103 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10104 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
10105 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10106 | 0 | input, mutable_replication_error())); |
10107 | 0 | } else { |
10108 | 0 | goto handle_unusual; |
10109 | 0 | } |
10110 | 0 | break; |
10111 | 0 | } |
10112 | | |
10113 | 0 | default: { |
10114 | 0 | handle_unusual: |
10115 | 0 | if (tag == 0) { |
10116 | 0 | goto success; |
10117 | 0 | } |
10118 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10119 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10120 | 0 | break; |
10121 | 0 | } |
10122 | 0 | } |
10123 | 0 | } |
10124 | 0 | success: |
10125 | | // @@protoc_insertion_point(parse_success:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10126 | 0 | return true; |
10127 | 0 | failure: |
10128 | | // @@protoc_insertion_point(parse_failure:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10129 | 0 | return false; |
10130 | 0 | #undef DO_ |
10131 | 0 | } |
10132 | | |
10133 | | void IsSetupUniverseReplicationDoneResponsePB::SerializeWithCachedSizes( |
10134 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10135 | | // @@protoc_insertion_point(serialize_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10136 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10137 | 0 | (void) cached_has_bits; |
10138 | |
|
10139 | 0 | cached_has_bits = _has_bits_[0]; |
10140 | | // optional .yb.master.MasterErrorPB error = 1; |
10141 | 0 | if (cached_has_bits & 0x00000001u) { |
10142 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10143 | 0 | 1, *this->error_, output); |
10144 | 0 | } |
10145 | | |
10146 | | // optional bool done = 2; |
10147 | 0 | if (cached_has_bits & 0x00000004u) { |
10148 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->done(), output); |
10149 | 0 | } |
10150 | | |
10151 | | // optional .yb.AppStatusPB replication_error = 3; |
10152 | 0 | if (cached_has_bits & 0x00000002u) { |
10153 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10154 | 0 | 3, *this->replication_error_, output); |
10155 | 0 | } |
10156 | |
|
10157 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10158 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10159 | 0 | _internal_metadata_.unknown_fields(), output); |
10160 | 0 | } |
10161 | | // @@protoc_insertion_point(serialize_end:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10162 | 0 | } |
10163 | | |
10164 | | ::google::protobuf::uint8* IsSetupUniverseReplicationDoneResponsePB::InternalSerializeWithCachedSizesToArray( |
10165 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
10166 | 0 | (void)deterministic; // Unused |
10167 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10168 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10169 | 0 | (void) cached_has_bits; |
10170 | |
|
10171 | 0 | cached_has_bits = _has_bits_[0]; |
10172 | | // optional .yb.master.MasterErrorPB error = 1; |
10173 | 0 | if (cached_has_bits & 0x00000001u) { |
10174 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
10175 | 0 | InternalWriteMessageToArray( |
10176 | 0 | 1, *this->error_, deterministic, target); |
10177 | 0 | } |
10178 | | |
10179 | | // optional bool done = 2; |
10180 | 0 | if (cached_has_bits & 0x00000004u) { |
10181 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->done(), target); |
10182 | 0 | } |
10183 | | |
10184 | | // optional .yb.AppStatusPB replication_error = 3; |
10185 | 0 | if (cached_has_bits & 0x00000002u) { |
10186 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
10187 | 0 | InternalWriteMessageToArray( |
10188 | 0 | 3, *this->replication_error_, deterministic, target); |
10189 | 0 | } |
10190 | |
|
10191 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10192 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10193 | 0 | _internal_metadata_.unknown_fields(), target); |
10194 | 0 | } |
10195 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10196 | 0 | return target; |
10197 | 0 | } |
10198 | | |
10199 | 0 | size_t IsSetupUniverseReplicationDoneResponsePB::ByteSizeLong() const { |
10200 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10201 | 0 | size_t total_size = 0; |
10202 | |
|
10203 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10204 | 0 | total_size += |
10205 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10206 | 0 | _internal_metadata_.unknown_fields()); |
10207 | 0 | } |
10208 | 0 | if (_has_bits_[0 / 32] & 7u) { |
10209 | | // optional .yb.master.MasterErrorPB error = 1; |
10210 | 0 | if (has_error()) { |
10211 | 0 | total_size += 1 + |
10212 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10213 | 0 | *this->error_); |
10214 | 0 | } |
10215 | | |
10216 | | // optional .yb.AppStatusPB replication_error = 3; |
10217 | 0 | if (has_replication_error()) { |
10218 | 0 | total_size += 1 + |
10219 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10220 | 0 | *this->replication_error_); |
10221 | 0 | } |
10222 | | |
10223 | | // optional bool done = 2; |
10224 | 0 | if (has_done()) { |
10225 | 0 | total_size += 1 + 1; |
10226 | 0 | } |
10227 | |
|
10228 | 0 | } |
10229 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10230 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10231 | 0 | _cached_size_ = cached_size; |
10232 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10233 | 0 | return total_size; |
10234 | 0 | } |
10235 | | |
10236 | 0 | void IsSetupUniverseReplicationDoneResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
10237 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10238 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10239 | 0 | const IsSetupUniverseReplicationDoneResponsePB* source = |
10240 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const IsSetupUniverseReplicationDoneResponsePB>( |
10241 | 0 | &from); |
10242 | 0 | if (source == NULL) { |
10243 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10244 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10245 | 0 | } else { |
10246 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10247 | 0 | MergeFrom(*source); |
10248 | 0 | } |
10249 | 0 | } |
10250 | | |
10251 | 0 | void IsSetupUniverseReplicationDoneResponsePB::MergeFrom(const IsSetupUniverseReplicationDoneResponsePB& from) { |
10252 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10253 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10254 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10255 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10256 | 0 | (void) cached_has_bits; |
10257 | |
|
10258 | 0 | cached_has_bits = from._has_bits_[0]; |
10259 | 0 | if (cached_has_bits & 7u) { |
10260 | 0 | if (cached_has_bits & 0x00000001u) { |
10261 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
10262 | 0 | } |
10263 | 0 | if (cached_has_bits & 0x00000002u) { |
10264 | 0 | mutable_replication_error()->::yb::AppStatusPB::MergeFrom(from.replication_error()); |
10265 | 0 | } |
10266 | 0 | if (cached_has_bits & 0x00000004u) { |
10267 | 0 | done_ = from.done_; |
10268 | 0 | } |
10269 | 0 | _has_bits_[0] |= cached_has_bits; |
10270 | 0 | } |
10271 | 0 | } |
10272 | | |
10273 | 0 | void IsSetupUniverseReplicationDoneResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
10274 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10275 | 0 | if (&from == this) return; |
10276 | 0 | Clear(); |
10277 | 0 | MergeFrom(from); |
10278 | 0 | } |
10279 | | |
10280 | 0 | void IsSetupUniverseReplicationDoneResponsePB::CopyFrom(const IsSetupUniverseReplicationDoneResponsePB& from) { |
10281 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.IsSetupUniverseReplicationDoneResponsePB) |
10282 | 0 | if (&from == this) return; |
10283 | 0 | Clear(); |
10284 | 0 | MergeFrom(from); |
10285 | 0 | } |
10286 | | |
10287 | 0 | bool IsSetupUniverseReplicationDoneResponsePB::IsInitialized() const { |
10288 | 0 | if (has_error()) { |
10289 | 0 | if (!this->error_->IsInitialized()) return false; |
10290 | 0 | } |
10291 | 0 | if (has_replication_error()) { |
10292 | 0 | if (!this->replication_error_->IsInitialized()) return false; |
10293 | 0 | } |
10294 | 0 | return true; |
10295 | 0 | } |
10296 | | |
10297 | 0 | void IsSetupUniverseReplicationDoneResponsePB::Swap(IsSetupUniverseReplicationDoneResponsePB* other) { |
10298 | 0 | if (other == this) return; |
10299 | 0 | InternalSwap(other); |
10300 | 0 | } |
10301 | 0 | void IsSetupUniverseReplicationDoneResponsePB::InternalSwap(IsSetupUniverseReplicationDoneResponsePB* other) { |
10302 | 0 | using std::swap; |
10303 | 0 | swap(error_, other->error_); |
10304 | 0 | swap(replication_error_, other->replication_error_); |
10305 | 0 | swap(done_, other->done_); |
10306 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10307 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10308 | 0 | swap(_cached_size_, other->_cached_size_); |
10309 | 0 | } |
10310 | | |
10311 | 0 | ::google::protobuf::Metadata IsSetupUniverseReplicationDoneResponsePB::GetMetadata() const { |
10312 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
10313 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
10314 | 0 | } |
10315 | | |
10316 | | |
10317 | | // =================================================================== |
10318 | | |
10319 | 26.8k | void ProducerSplitTabletInfoPB::InitAsDefaultInstance() { |
10320 | 26.8k | } |
10321 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10322 | | const int ProducerSplitTabletInfoPB::kTabletIdFieldNumber; |
10323 | | const int ProducerSplitTabletInfoPB::kNewTablet1IdFieldNumber; |
10324 | | const int ProducerSplitTabletInfoPB::kNewTablet2IdFieldNumber; |
10325 | | const int ProducerSplitTabletInfoPB::kSplitPartitionKeyFieldNumber; |
10326 | | const int ProducerSplitTabletInfoPB::kSplitEncodedKeyFieldNumber; |
10327 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10328 | | |
10329 | | ProducerSplitTabletInfoPB::ProducerSplitTabletInfoPB() |
10330 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10331 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10332 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsProducerSplitTabletInfoPB(); |
10333 | 0 | } |
10334 | 26.8k | SharedCtor(); |
10335 | | // @@protoc_insertion_point(constructor:yb.master.ProducerSplitTabletInfoPB) |
10336 | 26.8k | } |
10337 | | ProducerSplitTabletInfoPB::ProducerSplitTabletInfoPB(const ProducerSplitTabletInfoPB& from) |
10338 | | : ::google::protobuf::Message(), |
10339 | | _internal_metadata_(NULL), |
10340 | | _has_bits_(from._has_bits_), |
10341 | 0 | _cached_size_(0) { |
10342 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10343 | 0 | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10344 | 0 | if (from.has_tablet_id()) { |
10345 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
10346 | 0 | } |
10347 | 0 | new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10348 | 0 | if (from.has_new_tablet1_id()) { |
10349 | 0 | new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_); |
10350 | 0 | } |
10351 | 0 | new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10352 | 0 | if (from.has_new_tablet2_id()) { |
10353 | 0 | new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_); |
10354 | 0 | } |
10355 | 0 | split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10356 | 0 | if (from.has_split_partition_key()) { |
10357 | 0 | split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_); |
10358 | 0 | } |
10359 | 0 | split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10360 | 0 | if (from.has_split_encoded_key()) { |
10361 | 0 | split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_); |
10362 | 0 | } |
10363 | | // @@protoc_insertion_point(copy_constructor:yb.master.ProducerSplitTabletInfoPB) |
10364 | 0 | } |
10365 | | |
10366 | 26.8k | void ProducerSplitTabletInfoPB::SharedCtor() { |
10367 | 26.8k | _cached_size_ = 0; |
10368 | 26.8k | tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10369 | 26.8k | new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10370 | 26.8k | new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10371 | 26.8k | split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10372 | 26.8k | split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10373 | 26.8k | } |
10374 | | |
10375 | 0 | ProducerSplitTabletInfoPB::~ProducerSplitTabletInfoPB() { |
10376 | | // @@protoc_insertion_point(destructor:yb.master.ProducerSplitTabletInfoPB) |
10377 | 0 | SharedDtor(); |
10378 | 0 | } |
10379 | | |
10380 | 0 | void ProducerSplitTabletInfoPB::SharedDtor() { |
10381 | 0 | tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10382 | 0 | new_tablet1_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10383 | 0 | new_tablet2_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10384 | 0 | split_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10385 | 0 | split_encoded_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10386 | 0 | } |
10387 | | |
10388 | 0 | void ProducerSplitTabletInfoPB::SetCachedSize(int size) const { |
10389 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10390 | 0 | _cached_size_ = size; |
10391 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10392 | 0 | } |
10393 | 0 | const ::google::protobuf::Descriptor* ProducerSplitTabletInfoPB::descriptor() { |
10394 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
10395 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10396 | 0 | } |
10397 | | |
10398 | 0 | const ProducerSplitTabletInfoPB& ProducerSplitTabletInfoPB::default_instance() { |
10399 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsProducerSplitTabletInfoPB(); |
10400 | 0 | return *internal_default_instance(); |
10401 | 0 | } |
10402 | | |
10403 | 0 | ProducerSplitTabletInfoPB* ProducerSplitTabletInfoPB::New(::google::protobuf::Arena* arena) const { |
10404 | 0 | ProducerSplitTabletInfoPB* n = new ProducerSplitTabletInfoPB; |
10405 | 0 | if (arena != NULL) { |
10406 | 0 | arena->Own(n); |
10407 | 0 | } |
10408 | 0 | return n; |
10409 | 0 | } |
10410 | | |
10411 | 0 | void ProducerSplitTabletInfoPB::Clear() { |
10412 | | // @@protoc_insertion_point(message_clear_start:yb.master.ProducerSplitTabletInfoPB) |
10413 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10414 | | // Prevent compiler warnings about cached_has_bits being unused |
10415 | 0 | (void) cached_has_bits; |
10416 | |
|
10417 | 0 | cached_has_bits = _has_bits_[0]; |
10418 | 0 | if (cached_has_bits & 31u) { |
10419 | 0 | if (cached_has_bits & 0x00000001u) { |
10420 | 0 | GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10421 | 0 | (*tablet_id_.UnsafeRawStringPointer())->clear(); |
10422 | 0 | } |
10423 | 0 | if (cached_has_bits & 0x00000002u) { |
10424 | 0 | GOOGLE_DCHECK(!new_tablet1_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10425 | 0 | (*new_tablet1_id_.UnsafeRawStringPointer())->clear(); |
10426 | 0 | } |
10427 | 0 | if (cached_has_bits & 0x00000004u) { |
10428 | 0 | GOOGLE_DCHECK(!new_tablet2_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10429 | 0 | (*new_tablet2_id_.UnsafeRawStringPointer())->clear(); |
10430 | 0 | } |
10431 | 0 | if (cached_has_bits & 0x00000008u) { |
10432 | 0 | GOOGLE_DCHECK(!split_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10433 | 0 | (*split_partition_key_.UnsafeRawStringPointer())->clear(); |
10434 | 0 | } |
10435 | 0 | if (cached_has_bits & 0x00000010u) { |
10436 | 0 | GOOGLE_DCHECK(!split_encoded_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10437 | 0 | (*split_encoded_key_.UnsafeRawStringPointer())->clear(); |
10438 | 0 | } |
10439 | 0 | } |
10440 | 0 | _has_bits_.Clear(); |
10441 | 0 | _internal_metadata_.Clear(); |
10442 | 0 | } |
10443 | | |
10444 | | bool ProducerSplitTabletInfoPB::MergePartialFromCodedStream( |
10445 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10446 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10447 | 0 | ::google::protobuf::uint32 tag; |
10448 | | // @@protoc_insertion_point(parse_start:yb.master.ProducerSplitTabletInfoPB) |
10449 | 0 | for (;;) { |
10450 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10451 | 0 | tag = p.first; |
10452 | 0 | if (!p.second) goto handle_unusual; |
10453 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10454 | | // required bytes tablet_id = 1; |
10455 | 0 | case 1: { |
10456 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10457 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10458 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10459 | 0 | input, this->mutable_tablet_id())); |
10460 | 0 | } else { |
10461 | 0 | goto handle_unusual; |
10462 | 0 | } |
10463 | 0 | break; |
10464 | 0 | } |
10465 | | |
10466 | | // required bytes new_tablet1_id = 2; |
10467 | 0 | case 2: { |
10468 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10469 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
10470 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10471 | 0 | input, this->mutable_new_tablet1_id())); |
10472 | 0 | } else { |
10473 | 0 | goto handle_unusual; |
10474 | 0 | } |
10475 | 0 | break; |
10476 | 0 | } |
10477 | | |
10478 | | // required bytes new_tablet2_id = 3; |
10479 | 0 | case 3: { |
10480 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10481 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
10482 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10483 | 0 | input, this->mutable_new_tablet2_id())); |
10484 | 0 | } else { |
10485 | 0 | goto handle_unusual; |
10486 | 0 | } |
10487 | 0 | break; |
10488 | 0 | } |
10489 | | |
10490 | | // required bytes split_partition_key = 4; |
10491 | 0 | case 4: { |
10492 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10493 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
10494 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10495 | 0 | input, this->mutable_split_partition_key())); |
10496 | 0 | } else { |
10497 | 0 | goto handle_unusual; |
10498 | 0 | } |
10499 | 0 | break; |
10500 | 0 | } |
10501 | | |
10502 | | // required bytes split_encoded_key = 5; |
10503 | 0 | case 5: { |
10504 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10505 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
10506 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
10507 | 0 | input, this->mutable_split_encoded_key())); |
10508 | 0 | } else { |
10509 | 0 | goto handle_unusual; |
10510 | 0 | } |
10511 | 0 | break; |
10512 | 0 | } |
10513 | | |
10514 | 0 | default: { |
10515 | 0 | handle_unusual: |
10516 | 0 | if (tag == 0) { |
10517 | 0 | goto success; |
10518 | 0 | } |
10519 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10520 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10521 | 0 | break; |
10522 | 0 | } |
10523 | 0 | } |
10524 | 0 | } |
10525 | 0 | success: |
10526 | | // @@protoc_insertion_point(parse_success:yb.master.ProducerSplitTabletInfoPB) |
10527 | 0 | return true; |
10528 | 0 | failure: |
10529 | | // @@protoc_insertion_point(parse_failure:yb.master.ProducerSplitTabletInfoPB) |
10530 | 0 | return false; |
10531 | 0 | #undef DO_ |
10532 | 0 | } |
10533 | | |
10534 | | void ProducerSplitTabletInfoPB::SerializeWithCachedSizes( |
10535 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10536 | | // @@protoc_insertion_point(serialize_start:yb.master.ProducerSplitTabletInfoPB) |
10537 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10538 | 0 | (void) cached_has_bits; |
10539 | |
|
10540 | 0 | cached_has_bits = _has_bits_[0]; |
10541 | | // required bytes tablet_id = 1; |
10542 | 0 | if (cached_has_bits & 0x00000001u) { |
10543 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10544 | 0 | 1, this->tablet_id(), output); |
10545 | 0 | } |
10546 | | |
10547 | | // required bytes new_tablet1_id = 2; |
10548 | 0 | if (cached_has_bits & 0x00000002u) { |
10549 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10550 | 0 | 2, this->new_tablet1_id(), output); |
10551 | 0 | } |
10552 | | |
10553 | | // required bytes new_tablet2_id = 3; |
10554 | 0 | if (cached_has_bits & 0x00000004u) { |
10555 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10556 | 0 | 3, this->new_tablet2_id(), output); |
10557 | 0 | } |
10558 | | |
10559 | | // required bytes split_partition_key = 4; |
10560 | 0 | if (cached_has_bits & 0x00000008u) { |
10561 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10562 | 0 | 4, this->split_partition_key(), output); |
10563 | 0 | } |
10564 | | |
10565 | | // required bytes split_encoded_key = 5; |
10566 | 0 | if (cached_has_bits & 0x00000010u) { |
10567 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
10568 | 0 | 5, this->split_encoded_key(), output); |
10569 | 0 | } |
10570 | |
|
10571 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10572 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10573 | 0 | _internal_metadata_.unknown_fields(), output); |
10574 | 0 | } |
10575 | | // @@protoc_insertion_point(serialize_end:yb.master.ProducerSplitTabletInfoPB) |
10576 | 0 | } |
10577 | | |
10578 | | ::google::protobuf::uint8* ProducerSplitTabletInfoPB::InternalSerializeWithCachedSizesToArray( |
10579 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
10580 | 0 | (void)deterministic; // Unused |
10581 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.ProducerSplitTabletInfoPB) |
10582 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10583 | 0 | (void) cached_has_bits; |
10584 | |
|
10585 | 0 | cached_has_bits = _has_bits_[0]; |
10586 | | // required bytes tablet_id = 1; |
10587 | 0 | if (cached_has_bits & 0x00000001u) { |
10588 | 0 | target = |
10589 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10590 | 0 | 1, this->tablet_id(), target); |
10591 | 0 | } |
10592 | | |
10593 | | // required bytes new_tablet1_id = 2; |
10594 | 0 | if (cached_has_bits & 0x00000002u) { |
10595 | 0 | target = |
10596 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10597 | 0 | 2, this->new_tablet1_id(), target); |
10598 | 0 | } |
10599 | | |
10600 | | // required bytes new_tablet2_id = 3; |
10601 | 0 | if (cached_has_bits & 0x00000004u) { |
10602 | 0 | target = |
10603 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10604 | 0 | 3, this->new_tablet2_id(), target); |
10605 | 0 | } |
10606 | | |
10607 | | // required bytes split_partition_key = 4; |
10608 | 0 | if (cached_has_bits & 0x00000008u) { |
10609 | 0 | target = |
10610 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10611 | 0 | 4, this->split_partition_key(), target); |
10612 | 0 | } |
10613 | | |
10614 | | // required bytes split_encoded_key = 5; |
10615 | 0 | if (cached_has_bits & 0x00000010u) { |
10616 | 0 | target = |
10617 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
10618 | 0 | 5, this->split_encoded_key(), target); |
10619 | 0 | } |
10620 | |
|
10621 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10622 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10623 | 0 | _internal_metadata_.unknown_fields(), target); |
10624 | 0 | } |
10625 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.ProducerSplitTabletInfoPB) |
10626 | 0 | return target; |
10627 | 0 | } |
10628 | | |
10629 | 0 | size_t ProducerSplitTabletInfoPB::RequiredFieldsByteSizeFallback() const { |
10630 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.ProducerSplitTabletInfoPB) |
10631 | 0 | size_t total_size = 0; |
10632 | |
|
10633 | 0 | if (has_tablet_id()) { |
10634 | | // required bytes tablet_id = 1; |
10635 | 0 | total_size += 1 + |
10636 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10637 | 0 | this->tablet_id()); |
10638 | 0 | } |
10639 | |
|
10640 | 0 | if (has_new_tablet1_id()) { |
10641 | | // required bytes new_tablet1_id = 2; |
10642 | 0 | total_size += 1 + |
10643 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10644 | 0 | this->new_tablet1_id()); |
10645 | 0 | } |
10646 | |
|
10647 | 0 | if (has_new_tablet2_id()) { |
10648 | | // required bytes new_tablet2_id = 3; |
10649 | 0 | total_size += 1 + |
10650 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10651 | 0 | this->new_tablet2_id()); |
10652 | 0 | } |
10653 | |
|
10654 | 0 | if (has_split_partition_key()) { |
10655 | | // required bytes split_partition_key = 4; |
10656 | 0 | total_size += 1 + |
10657 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10658 | 0 | this->split_partition_key()); |
10659 | 0 | } |
10660 | |
|
10661 | 0 | if (has_split_encoded_key()) { |
10662 | | // required bytes split_encoded_key = 5; |
10663 | 0 | total_size += 1 + |
10664 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10665 | 0 | this->split_encoded_key()); |
10666 | 0 | } |
10667 | |
|
10668 | 0 | return total_size; |
10669 | 0 | } |
10670 | 0 | size_t ProducerSplitTabletInfoPB::ByteSizeLong() const { |
10671 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.ProducerSplitTabletInfoPB) |
10672 | 0 | size_t total_size = 0; |
10673 | |
|
10674 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10675 | 0 | total_size += |
10676 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10677 | 0 | _internal_metadata_.unknown_fields()); |
10678 | 0 | } |
10679 | 0 | if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. |
10680 | | // required bytes tablet_id = 1; |
10681 | 0 | total_size += 1 + |
10682 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10683 | 0 | this->tablet_id()); |
10684 | | |
10685 | | // required bytes new_tablet1_id = 2; |
10686 | 0 | total_size += 1 + |
10687 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10688 | 0 | this->new_tablet1_id()); |
10689 | | |
10690 | | // required bytes new_tablet2_id = 3; |
10691 | 0 | total_size += 1 + |
10692 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10693 | 0 | this->new_tablet2_id()); |
10694 | | |
10695 | | // required bytes split_partition_key = 4; |
10696 | 0 | total_size += 1 + |
10697 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10698 | 0 | this->split_partition_key()); |
10699 | | |
10700 | | // required bytes split_encoded_key = 5; |
10701 | 0 | total_size += 1 + |
10702 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
10703 | 0 | this->split_encoded_key()); |
10704 | |
|
10705 | 0 | } else { |
10706 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
10707 | 0 | } |
10708 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10709 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10710 | 0 | _cached_size_ = cached_size; |
10711 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10712 | 0 | return total_size; |
10713 | 0 | } |
10714 | | |
10715 | 0 | void ProducerSplitTabletInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
10716 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.ProducerSplitTabletInfoPB) |
10717 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10718 | 0 | const ProducerSplitTabletInfoPB* source = |
10719 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const ProducerSplitTabletInfoPB>( |
10720 | 0 | &from); |
10721 | 0 | if (source == NULL) { |
10722 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ProducerSplitTabletInfoPB) |
10723 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10724 | 0 | } else { |
10725 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ProducerSplitTabletInfoPB) |
10726 | 0 | MergeFrom(*source); |
10727 | 0 | } |
10728 | 0 | } |
10729 | | |
10730 | 0 | void ProducerSplitTabletInfoPB::MergeFrom(const ProducerSplitTabletInfoPB& from) { |
10731 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ProducerSplitTabletInfoPB) |
10732 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10733 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10734 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10735 | 0 | (void) cached_has_bits; |
10736 | |
|
10737 | 0 | cached_has_bits = from._has_bits_[0]; |
10738 | 0 | if (cached_has_bits & 31u) { |
10739 | 0 | if (cached_has_bits & 0x00000001u) { |
10740 | 0 | set_has_tablet_id(); |
10741 | 0 | tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_); |
10742 | 0 | } |
10743 | 0 | if (cached_has_bits & 0x00000002u) { |
10744 | 0 | set_has_new_tablet1_id(); |
10745 | 0 | new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_); |
10746 | 0 | } |
10747 | 0 | if (cached_has_bits & 0x00000004u) { |
10748 | 0 | set_has_new_tablet2_id(); |
10749 | 0 | new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_); |
10750 | 0 | } |
10751 | 0 | if (cached_has_bits & 0x00000008u) { |
10752 | 0 | set_has_split_partition_key(); |
10753 | 0 | split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_); |
10754 | 0 | } |
10755 | 0 | if (cached_has_bits & 0x00000010u) { |
10756 | 0 | set_has_split_encoded_key(); |
10757 | 0 | split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_); |
10758 | 0 | } |
10759 | 0 | } |
10760 | 0 | } |
10761 | | |
10762 | 0 | void ProducerSplitTabletInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
10763 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.ProducerSplitTabletInfoPB) |
10764 | 0 | if (&from == this) return; |
10765 | 0 | Clear(); |
10766 | 0 | MergeFrom(from); |
10767 | 0 | } |
10768 | | |
10769 | 0 | void ProducerSplitTabletInfoPB::CopyFrom(const ProducerSplitTabletInfoPB& from) { |
10770 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ProducerSplitTabletInfoPB) |
10771 | 0 | if (&from == this) return; |
10772 | 0 | Clear(); |
10773 | 0 | MergeFrom(from); |
10774 | 0 | } |
10775 | | |
10776 | 0 | bool ProducerSplitTabletInfoPB::IsInitialized() const { |
10777 | 0 | if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; |
10778 | 0 | return true; |
10779 | 0 | } |
10780 | | |
10781 | 0 | void ProducerSplitTabletInfoPB::Swap(ProducerSplitTabletInfoPB* other) { |
10782 | 0 | if (other == this) return; |
10783 | 0 | InternalSwap(other); |
10784 | 0 | } |
10785 | 0 | void ProducerSplitTabletInfoPB::InternalSwap(ProducerSplitTabletInfoPB* other) { |
10786 | 0 | using std::swap; |
10787 | 0 | tablet_id_.Swap(&other->tablet_id_); |
10788 | 0 | new_tablet1_id_.Swap(&other->new_tablet1_id_); |
10789 | 0 | new_tablet2_id_.Swap(&other->new_tablet2_id_); |
10790 | 0 | split_partition_key_.Swap(&other->split_partition_key_); |
10791 | 0 | split_encoded_key_.Swap(&other->split_encoded_key_); |
10792 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10793 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10794 | 0 | swap(_cached_size_, other->_cached_size_); |
10795 | 0 | } |
10796 | | |
10797 | 0 | ::google::protobuf::Metadata ProducerSplitTabletInfoPB::GetMetadata() const { |
10798 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
10799 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
10800 | 0 | } |
10801 | | |
10802 | | |
10803 | | // =================================================================== |
10804 | | |
10805 | 26.8k | void UpdateConsumerOnProducerSplitRequestPB::InitAsDefaultInstance() { |
10806 | 26.8k | ::yb::master::_UpdateConsumerOnProducerSplitRequestPB_default_instance_._instance.get_mutable()->producer_split_tablet_info_ = const_cast< ::yb::master::ProducerSplitTabletInfoPB*>( |
10807 | 26.8k | ::yb::master::ProducerSplitTabletInfoPB::internal_default_instance()); |
10808 | 26.8k | } |
10809 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10810 | | const int UpdateConsumerOnProducerSplitRequestPB::kProducerIdFieldNumber; |
10811 | | const int UpdateConsumerOnProducerSplitRequestPB::kStreamIdFieldNumber; |
10812 | | const int UpdateConsumerOnProducerSplitRequestPB::kProducerSplitTabletInfoFieldNumber; |
10813 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10814 | | |
10815 | | UpdateConsumerOnProducerSplitRequestPB::UpdateConsumerOnProducerSplitRequestPB() |
10816 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10817 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10818 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateConsumerOnProducerSplitRequestPB(); |
10819 | 0 | } |
10820 | 26.8k | SharedCtor(); |
10821 | | // @@protoc_insertion_point(constructor:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10822 | 26.8k | } |
10823 | | UpdateConsumerOnProducerSplitRequestPB::UpdateConsumerOnProducerSplitRequestPB(const UpdateConsumerOnProducerSplitRequestPB& from) |
10824 | | : ::google::protobuf::Message(), |
10825 | | _internal_metadata_(NULL), |
10826 | | _has_bits_(from._has_bits_), |
10827 | 0 | _cached_size_(0) { |
10828 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10829 | 0 | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10830 | 0 | if (from.has_producer_id()) { |
10831 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
10832 | 0 | } |
10833 | 0 | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10834 | 0 | if (from.has_stream_id()) { |
10835 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
10836 | 0 | } |
10837 | 0 | if (from.has_producer_split_tablet_info()) { |
10838 | 0 | producer_split_tablet_info_ = new ::yb::master::ProducerSplitTabletInfoPB(*from.producer_split_tablet_info_); |
10839 | 0 | } else { |
10840 | 0 | producer_split_tablet_info_ = NULL; |
10841 | 0 | } |
10842 | | // @@protoc_insertion_point(copy_constructor:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10843 | 0 | } |
10844 | | |
10845 | 26.8k | void UpdateConsumerOnProducerSplitRequestPB::SharedCtor() { |
10846 | 26.8k | _cached_size_ = 0; |
10847 | 26.8k | producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10848 | 26.8k | stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10849 | 26.8k | producer_split_tablet_info_ = NULL; |
10850 | 26.8k | } |
10851 | | |
10852 | 0 | UpdateConsumerOnProducerSplitRequestPB::~UpdateConsumerOnProducerSplitRequestPB() { |
10853 | | // @@protoc_insertion_point(destructor:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10854 | 0 | SharedDtor(); |
10855 | 0 | } |
10856 | | |
10857 | 0 | void UpdateConsumerOnProducerSplitRequestPB::SharedDtor() { |
10858 | 0 | producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10859 | 0 | stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10860 | 0 | if (this != internal_default_instance()) delete producer_split_tablet_info_; |
10861 | 0 | } |
10862 | | |
10863 | 0 | void UpdateConsumerOnProducerSplitRequestPB::SetCachedSize(int size) const { |
10864 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10865 | 0 | _cached_size_ = size; |
10866 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10867 | 0 | } |
10868 | 0 | const ::google::protobuf::Descriptor* UpdateConsumerOnProducerSplitRequestPB::descriptor() { |
10869 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
10870 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10871 | 0 | } |
10872 | | |
10873 | 0 | const UpdateConsumerOnProducerSplitRequestPB& UpdateConsumerOnProducerSplitRequestPB::default_instance() { |
10874 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateConsumerOnProducerSplitRequestPB(); |
10875 | 0 | return *internal_default_instance(); |
10876 | 0 | } |
10877 | | |
10878 | 0 | UpdateConsumerOnProducerSplitRequestPB* UpdateConsumerOnProducerSplitRequestPB::New(::google::protobuf::Arena* arena) const { |
10879 | 0 | UpdateConsumerOnProducerSplitRequestPB* n = new UpdateConsumerOnProducerSplitRequestPB; |
10880 | 0 | if (arena != NULL) { |
10881 | 0 | arena->Own(n); |
10882 | 0 | } |
10883 | 0 | return n; |
10884 | 0 | } |
10885 | | |
10886 | 0 | void UpdateConsumerOnProducerSplitRequestPB::Clear() { |
10887 | | // @@protoc_insertion_point(message_clear_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10888 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10889 | | // Prevent compiler warnings about cached_has_bits being unused |
10890 | 0 | (void) cached_has_bits; |
10891 | |
|
10892 | 0 | cached_has_bits = _has_bits_[0]; |
10893 | 0 | if (cached_has_bits & 7u) { |
10894 | 0 | if (cached_has_bits & 0x00000001u) { |
10895 | 0 | GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10896 | 0 | (*producer_id_.UnsafeRawStringPointer())->clear(); |
10897 | 0 | } |
10898 | 0 | if (cached_has_bits & 0x00000002u) { |
10899 | 0 | GOOGLE_DCHECK(!stream_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
10900 | 0 | (*stream_id_.UnsafeRawStringPointer())->clear(); |
10901 | 0 | } |
10902 | 0 | if (cached_has_bits & 0x00000004u) { |
10903 | 0 | GOOGLE_DCHECK(producer_split_tablet_info_ != NULL); |
10904 | 0 | producer_split_tablet_info_->Clear(); |
10905 | 0 | } |
10906 | 0 | } |
10907 | 0 | _has_bits_.Clear(); |
10908 | 0 | _internal_metadata_.Clear(); |
10909 | 0 | } |
10910 | | |
10911 | | bool UpdateConsumerOnProducerSplitRequestPB::MergePartialFromCodedStream( |
10912 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10913 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10914 | 0 | ::google::protobuf::uint32 tag; |
10915 | | // @@protoc_insertion_point(parse_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10916 | 0 | for (;;) { |
10917 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10918 | 0 | tag = p.first; |
10919 | 0 | if (!p.second) goto handle_unusual; |
10920 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10921 | | // optional string producer_id = 1; |
10922 | 0 | case 1: { |
10923 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10924 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10925 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
10926 | 0 | input, this->mutable_producer_id())); |
10927 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10928 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
10929 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
10930 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.producer_id"); |
10931 | 0 | } else { |
10932 | 0 | goto handle_unusual; |
10933 | 0 | } |
10934 | 0 | break; |
10935 | 0 | } |
10936 | | |
10937 | | // optional string stream_id = 2; |
10938 | 0 | case 2: { |
10939 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10940 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
10941 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
10942 | 0 | input, this->mutable_stream_id())); |
10943 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10944 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
10945 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
10946 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.stream_id"); |
10947 | 0 | } else { |
10948 | 0 | goto handle_unusual; |
10949 | 0 | } |
10950 | 0 | break; |
10951 | 0 | } |
10952 | | |
10953 | | // optional .yb.master.ProducerSplitTabletInfoPB producer_split_tablet_info = 3; |
10954 | 0 | case 3: { |
10955 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10956 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
10957 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10958 | 0 | input, mutable_producer_split_tablet_info())); |
10959 | 0 | } else { |
10960 | 0 | goto handle_unusual; |
10961 | 0 | } |
10962 | 0 | break; |
10963 | 0 | } |
10964 | | |
10965 | 0 | default: { |
10966 | 0 | handle_unusual: |
10967 | 0 | if (tag == 0) { |
10968 | 0 | goto success; |
10969 | 0 | } |
10970 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10971 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10972 | 0 | break; |
10973 | 0 | } |
10974 | 0 | } |
10975 | 0 | } |
10976 | 0 | success: |
10977 | | // @@protoc_insertion_point(parse_success:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10978 | 0 | return true; |
10979 | 0 | failure: |
10980 | | // @@protoc_insertion_point(parse_failure:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10981 | 0 | return false; |
10982 | 0 | #undef DO_ |
10983 | 0 | } |
10984 | | |
10985 | | void UpdateConsumerOnProducerSplitRequestPB::SerializeWithCachedSizes( |
10986 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10987 | | // @@protoc_insertion_point(serialize_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
10988 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10989 | 0 | (void) cached_has_bits; |
10990 | |
|
10991 | 0 | cached_has_bits = _has_bits_[0]; |
10992 | | // optional string producer_id = 1; |
10993 | 0 | if (cached_has_bits & 0x00000001u) { |
10994 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10995 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
10996 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10997 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.producer_id"); |
10998 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
10999 | 0 | 1, this->producer_id(), output); |
11000 | 0 | } |
11001 | | |
11002 | | // optional string stream_id = 2; |
11003 | 0 | if (cached_has_bits & 0x00000002u) { |
11004 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11005 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
11006 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11007 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.stream_id"); |
11008 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
11009 | 0 | 2, this->stream_id(), output); |
11010 | 0 | } |
11011 | | |
11012 | | // optional .yb.master.ProducerSplitTabletInfoPB producer_split_tablet_info = 3; |
11013 | 0 | if (cached_has_bits & 0x00000004u) { |
11014 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11015 | 0 | 3, *this->producer_split_tablet_info_, output); |
11016 | 0 | } |
11017 | |
|
11018 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11019 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11020 | 0 | _internal_metadata_.unknown_fields(), output); |
11021 | 0 | } |
11022 | | // @@protoc_insertion_point(serialize_end:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11023 | 0 | } |
11024 | | |
11025 | | ::google::protobuf::uint8* UpdateConsumerOnProducerSplitRequestPB::InternalSerializeWithCachedSizesToArray( |
11026 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
11027 | 0 | (void)deterministic; // Unused |
11028 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11029 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11030 | 0 | (void) cached_has_bits; |
11031 | |
|
11032 | 0 | cached_has_bits = _has_bits_[0]; |
11033 | | // optional string producer_id = 1; |
11034 | 0 | if (cached_has_bits & 0x00000001u) { |
11035 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11036 | 0 | this->producer_id().data(), static_cast<int>(this->producer_id().length()), |
11037 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11038 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.producer_id"); |
11039 | 0 | target = |
11040 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
11041 | 0 | 1, this->producer_id(), target); |
11042 | 0 | } |
11043 | | |
11044 | | // optional string stream_id = 2; |
11045 | 0 | if (cached_has_bits & 0x00000002u) { |
11046 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11047 | 0 | this->stream_id().data(), static_cast<int>(this->stream_id().length()), |
11048 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11049 | 0 | "yb.master.UpdateConsumerOnProducerSplitRequestPB.stream_id"); |
11050 | 0 | target = |
11051 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
11052 | 0 | 2, this->stream_id(), target); |
11053 | 0 | } |
11054 | | |
11055 | | // optional .yb.master.ProducerSplitTabletInfoPB producer_split_tablet_info = 3; |
11056 | 0 | if (cached_has_bits & 0x00000004u) { |
11057 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
11058 | 0 | InternalWriteMessageToArray( |
11059 | 0 | 3, *this->producer_split_tablet_info_, deterministic, target); |
11060 | 0 | } |
11061 | |
|
11062 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11063 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11064 | 0 | _internal_metadata_.unknown_fields(), target); |
11065 | 0 | } |
11066 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11067 | 0 | return target; |
11068 | 0 | } |
11069 | | |
11070 | 0 | size_t UpdateConsumerOnProducerSplitRequestPB::ByteSizeLong() const { |
11071 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11072 | 0 | size_t total_size = 0; |
11073 | |
|
11074 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11075 | 0 | total_size += |
11076 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11077 | 0 | _internal_metadata_.unknown_fields()); |
11078 | 0 | } |
11079 | 0 | if (_has_bits_[0 / 32] & 7u) { |
11080 | | // optional string producer_id = 1; |
11081 | 0 | if (has_producer_id()) { |
11082 | 0 | total_size += 1 + |
11083 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
11084 | 0 | this->producer_id()); |
11085 | 0 | } |
11086 | | |
11087 | | // optional string stream_id = 2; |
11088 | 0 | if (has_stream_id()) { |
11089 | 0 | total_size += 1 + |
11090 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
11091 | 0 | this->stream_id()); |
11092 | 0 | } |
11093 | | |
11094 | | // optional .yb.master.ProducerSplitTabletInfoPB producer_split_tablet_info = 3; |
11095 | 0 | if (has_producer_split_tablet_info()) { |
11096 | 0 | total_size += 1 + |
11097 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11098 | 0 | *this->producer_split_tablet_info_); |
11099 | 0 | } |
11100 | |
|
11101 | 0 | } |
11102 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11103 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11104 | 0 | _cached_size_ = cached_size; |
11105 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11106 | 0 | return total_size; |
11107 | 0 | } |
11108 | | |
11109 | 0 | void UpdateConsumerOnProducerSplitRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
11110 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11111 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11112 | 0 | const UpdateConsumerOnProducerSplitRequestPB* source = |
11113 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateConsumerOnProducerSplitRequestPB>( |
11114 | 0 | &from); |
11115 | 0 | if (source == NULL) { |
11116 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11117 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11118 | 0 | } else { |
11119 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11120 | 0 | MergeFrom(*source); |
11121 | 0 | } |
11122 | 0 | } |
11123 | | |
11124 | 0 | void UpdateConsumerOnProducerSplitRequestPB::MergeFrom(const UpdateConsumerOnProducerSplitRequestPB& from) { |
11125 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11126 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11127 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11128 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11129 | 0 | (void) cached_has_bits; |
11130 | |
|
11131 | 0 | cached_has_bits = from._has_bits_[0]; |
11132 | 0 | if (cached_has_bits & 7u) { |
11133 | 0 | if (cached_has_bits & 0x00000001u) { |
11134 | 0 | set_has_producer_id(); |
11135 | 0 | producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); |
11136 | 0 | } |
11137 | 0 | if (cached_has_bits & 0x00000002u) { |
11138 | 0 | set_has_stream_id(); |
11139 | 0 | stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_); |
11140 | 0 | } |
11141 | 0 | if (cached_has_bits & 0x00000004u) { |
11142 | 0 | mutable_producer_split_tablet_info()->::yb::master::ProducerSplitTabletInfoPB::MergeFrom(from.producer_split_tablet_info()); |
11143 | 0 | } |
11144 | 0 | } |
11145 | 0 | } |
11146 | | |
11147 | 0 | void UpdateConsumerOnProducerSplitRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
11148 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11149 | 0 | if (&from == this) return; |
11150 | 0 | Clear(); |
11151 | 0 | MergeFrom(from); |
11152 | 0 | } |
11153 | | |
11154 | 0 | void UpdateConsumerOnProducerSplitRequestPB::CopyFrom(const UpdateConsumerOnProducerSplitRequestPB& from) { |
11155 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.UpdateConsumerOnProducerSplitRequestPB) |
11156 | 0 | if (&from == this) return; |
11157 | 0 | Clear(); |
11158 | 0 | MergeFrom(from); |
11159 | 0 | } |
11160 | | |
11161 | 0 | bool UpdateConsumerOnProducerSplitRequestPB::IsInitialized() const { |
11162 | 0 | if (has_producer_split_tablet_info()) { |
11163 | 0 | if (!this->producer_split_tablet_info_->IsInitialized()) return false; |
11164 | 0 | } |
11165 | 0 | return true; |
11166 | 0 | } |
11167 | | |
11168 | 0 | void UpdateConsumerOnProducerSplitRequestPB::Swap(UpdateConsumerOnProducerSplitRequestPB* other) { |
11169 | 0 | if (other == this) return; |
11170 | 0 | InternalSwap(other); |
11171 | 0 | } |
11172 | 0 | void UpdateConsumerOnProducerSplitRequestPB::InternalSwap(UpdateConsumerOnProducerSplitRequestPB* other) { |
11173 | 0 | using std::swap; |
11174 | 0 | producer_id_.Swap(&other->producer_id_); |
11175 | 0 | stream_id_.Swap(&other->stream_id_); |
11176 | 0 | swap(producer_split_tablet_info_, other->producer_split_tablet_info_); |
11177 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11178 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11179 | 0 | swap(_cached_size_, other->_cached_size_); |
11180 | 0 | } |
11181 | | |
11182 | 0 | ::google::protobuf::Metadata UpdateConsumerOnProducerSplitRequestPB::GetMetadata() const { |
11183 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
11184 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
11185 | 0 | } |
11186 | | |
11187 | | |
11188 | | // =================================================================== |
11189 | | |
11190 | 26.8k | void UpdateConsumerOnProducerSplitResponsePB::InitAsDefaultInstance() { |
11191 | 26.8k | ::yb::master::_UpdateConsumerOnProducerSplitResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>( |
11192 | 26.8k | ::yb::master::MasterErrorPB::internal_default_instance()); |
11193 | 26.8k | } |
11194 | 0 | void UpdateConsumerOnProducerSplitResponsePB::clear_error() { |
11195 | 0 | if (error_ != NULL) error_->Clear(); |
11196 | 0 | clear_has_error(); |
11197 | 0 | } |
11198 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11199 | | const int UpdateConsumerOnProducerSplitResponsePB::kErrorFieldNumber; |
11200 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11201 | | |
11202 | | UpdateConsumerOnProducerSplitResponsePB::UpdateConsumerOnProducerSplitResponsePB() |
11203 | 26.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11204 | 26.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11205 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateConsumerOnProducerSplitResponsePB(); |
11206 | 0 | } |
11207 | 26.8k | SharedCtor(); |
11208 | | // @@protoc_insertion_point(constructor:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11209 | 26.8k | } |
11210 | | UpdateConsumerOnProducerSplitResponsePB::UpdateConsumerOnProducerSplitResponsePB(const UpdateConsumerOnProducerSplitResponsePB& from) |
11211 | | : ::google::protobuf::Message(), |
11212 | | _internal_metadata_(NULL), |
11213 | | _has_bits_(from._has_bits_), |
11214 | 0 | _cached_size_(0) { |
11215 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11216 | 0 | if (from.has_error()) { |
11217 | 0 | error_ = new ::yb::master::MasterErrorPB(*from.error_); |
11218 | 0 | } else { |
11219 | 0 | error_ = NULL; |
11220 | 0 | } |
11221 | | // @@protoc_insertion_point(copy_constructor:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11222 | 0 | } |
11223 | | |
11224 | 26.8k | void UpdateConsumerOnProducerSplitResponsePB::SharedCtor() { |
11225 | 26.8k | _cached_size_ = 0; |
11226 | 26.8k | error_ = NULL; |
11227 | 26.8k | } |
11228 | | |
11229 | 0 | UpdateConsumerOnProducerSplitResponsePB::~UpdateConsumerOnProducerSplitResponsePB() { |
11230 | | // @@protoc_insertion_point(destructor:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11231 | 0 | SharedDtor(); |
11232 | 0 | } |
11233 | | |
11234 | 0 | void UpdateConsumerOnProducerSplitResponsePB::SharedDtor() { |
11235 | 0 | if (this != internal_default_instance()) delete error_; |
11236 | 0 | } |
11237 | | |
11238 | 0 | void UpdateConsumerOnProducerSplitResponsePB::SetCachedSize(int size) const { |
11239 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11240 | 0 | _cached_size_ = size; |
11241 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11242 | 0 | } |
11243 | 0 | const ::google::protobuf::Descriptor* UpdateConsumerOnProducerSplitResponsePB::descriptor() { |
11244 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
11245 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11246 | 0 | } |
11247 | | |
11248 | 0 | const UpdateConsumerOnProducerSplitResponsePB& UpdateConsumerOnProducerSplitResponsePB::default_instance() { |
11249 | 0 | ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::InitDefaultsUpdateConsumerOnProducerSplitResponsePB(); |
11250 | 0 | return *internal_default_instance(); |
11251 | 0 | } |
11252 | | |
11253 | 0 | UpdateConsumerOnProducerSplitResponsePB* UpdateConsumerOnProducerSplitResponsePB::New(::google::protobuf::Arena* arena) const { |
11254 | 0 | UpdateConsumerOnProducerSplitResponsePB* n = new UpdateConsumerOnProducerSplitResponsePB; |
11255 | 0 | if (arena != NULL) { |
11256 | 0 | arena->Own(n); |
11257 | 0 | } |
11258 | 0 | return n; |
11259 | 0 | } |
11260 | | |
11261 | 0 | void UpdateConsumerOnProducerSplitResponsePB::Clear() { |
11262 | | // @@protoc_insertion_point(message_clear_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11263 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11264 | | // Prevent compiler warnings about cached_has_bits being unused |
11265 | 0 | (void) cached_has_bits; |
11266 | |
|
11267 | 0 | cached_has_bits = _has_bits_[0]; |
11268 | 0 | if (cached_has_bits & 0x00000001u) { |
11269 | 0 | GOOGLE_DCHECK(error_ != NULL); |
11270 | 0 | error_->Clear(); |
11271 | 0 | } |
11272 | 0 | _has_bits_.Clear(); |
11273 | 0 | _internal_metadata_.Clear(); |
11274 | 0 | } |
11275 | | |
11276 | | bool UpdateConsumerOnProducerSplitResponsePB::MergePartialFromCodedStream( |
11277 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
11278 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11279 | 0 | ::google::protobuf::uint32 tag; |
11280 | | // @@protoc_insertion_point(parse_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11281 | 0 | for (;;) { |
11282 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11283 | 0 | tag = p.first; |
11284 | 0 | if (!p.second) goto handle_unusual; |
11285 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11286 | | // optional .yb.master.MasterErrorPB error = 1; |
11287 | 0 | case 1: { |
11288 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11289 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11290 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
11291 | 0 | input, mutable_error())); |
11292 | 0 | } else { |
11293 | 0 | goto handle_unusual; |
11294 | 0 | } |
11295 | 0 | break; |
11296 | 0 | } |
11297 | | |
11298 | 0 | default: { |
11299 | 0 | handle_unusual: |
11300 | 0 | if (tag == 0) { |
11301 | 0 | goto success; |
11302 | 0 | } |
11303 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11304 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11305 | 0 | break; |
11306 | 0 | } |
11307 | 0 | } |
11308 | 0 | } |
11309 | 0 | success: |
11310 | | // @@protoc_insertion_point(parse_success:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11311 | 0 | return true; |
11312 | 0 | failure: |
11313 | | // @@protoc_insertion_point(parse_failure:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11314 | 0 | return false; |
11315 | 0 | #undef DO_ |
11316 | 0 | } |
11317 | | |
11318 | | void UpdateConsumerOnProducerSplitResponsePB::SerializeWithCachedSizes( |
11319 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11320 | | // @@protoc_insertion_point(serialize_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11321 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11322 | 0 | (void) cached_has_bits; |
11323 | |
|
11324 | 0 | cached_has_bits = _has_bits_[0]; |
11325 | | // optional .yb.master.MasterErrorPB error = 1; |
11326 | 0 | if (cached_has_bits & 0x00000001u) { |
11327 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11328 | 0 | 1, *this->error_, output); |
11329 | 0 | } |
11330 | |
|
11331 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11332 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11333 | 0 | _internal_metadata_.unknown_fields(), output); |
11334 | 0 | } |
11335 | | // @@protoc_insertion_point(serialize_end:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11336 | 0 | } |
11337 | | |
11338 | | ::google::protobuf::uint8* UpdateConsumerOnProducerSplitResponsePB::InternalSerializeWithCachedSizesToArray( |
11339 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
11340 | 0 | (void)deterministic; // Unused |
11341 | | // @@protoc_insertion_point(serialize_to_array_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11342 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11343 | 0 | (void) cached_has_bits; |
11344 | |
|
11345 | 0 | cached_has_bits = _has_bits_[0]; |
11346 | | // optional .yb.master.MasterErrorPB error = 1; |
11347 | 0 | if (cached_has_bits & 0x00000001u) { |
11348 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
11349 | 0 | InternalWriteMessageToArray( |
11350 | 0 | 1, *this->error_, deterministic, target); |
11351 | 0 | } |
11352 | |
|
11353 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11354 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11355 | 0 | _internal_metadata_.unknown_fields(), target); |
11356 | 0 | } |
11357 | | // @@protoc_insertion_point(serialize_to_array_end:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11358 | 0 | return target; |
11359 | 0 | } |
11360 | | |
11361 | 0 | size_t UpdateConsumerOnProducerSplitResponsePB::ByteSizeLong() const { |
11362 | | // @@protoc_insertion_point(message_byte_size_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11363 | 0 | size_t total_size = 0; |
11364 | |
|
11365 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11366 | 0 | total_size += |
11367 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11368 | 0 | _internal_metadata_.unknown_fields()); |
11369 | 0 | } |
11370 | | // optional .yb.master.MasterErrorPB error = 1; |
11371 | 0 | if (has_error()) { |
11372 | 0 | total_size += 1 + |
11373 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11374 | 0 | *this->error_); |
11375 | 0 | } |
11376 | |
|
11377 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11378 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11379 | 0 | _cached_size_ = cached_size; |
11380 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11381 | 0 | return total_size; |
11382 | 0 | } |
11383 | | |
11384 | 0 | void UpdateConsumerOnProducerSplitResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
11385 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11386 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11387 | 0 | const UpdateConsumerOnProducerSplitResponsePB* source = |
11388 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const UpdateConsumerOnProducerSplitResponsePB>( |
11389 | 0 | &from); |
11390 | 0 | if (source == NULL) { |
11391 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11392 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11393 | 0 | } else { |
11394 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11395 | 0 | MergeFrom(*source); |
11396 | 0 | } |
11397 | 0 | } |
11398 | | |
11399 | 0 | void UpdateConsumerOnProducerSplitResponsePB::MergeFrom(const UpdateConsumerOnProducerSplitResponsePB& from) { |
11400 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11401 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11402 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11403 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11404 | 0 | (void) cached_has_bits; |
11405 | |
|
11406 | 0 | if (from.has_error()) { |
11407 | 0 | mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error()); |
11408 | 0 | } |
11409 | 0 | } |
11410 | | |
11411 | 0 | void UpdateConsumerOnProducerSplitResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
11412 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11413 | 0 | if (&from == this) return; |
11414 | 0 | Clear(); |
11415 | 0 | MergeFrom(from); |
11416 | 0 | } |
11417 | | |
11418 | 0 | void UpdateConsumerOnProducerSplitResponsePB::CopyFrom(const UpdateConsumerOnProducerSplitResponsePB& from) { |
11419 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.master.UpdateConsumerOnProducerSplitResponsePB) |
11420 | 0 | if (&from == this) return; |
11421 | 0 | Clear(); |
11422 | 0 | MergeFrom(from); |
11423 | 0 | } |
11424 | | |
11425 | 0 | bool UpdateConsumerOnProducerSplitResponsePB::IsInitialized() const { |
11426 | 0 | if (has_error()) { |
11427 | 0 | if (!this->error_->IsInitialized()) return false; |
11428 | 0 | } |
11429 | 0 | return true; |
11430 | 0 | } |
11431 | | |
11432 | 0 | void UpdateConsumerOnProducerSplitResponsePB::Swap(UpdateConsumerOnProducerSplitResponsePB* other) { |
11433 | 0 | if (other == this) return; |
11434 | 0 | InternalSwap(other); |
11435 | 0 | } |
11436 | 0 | void UpdateConsumerOnProducerSplitResponsePB::InternalSwap(UpdateConsumerOnProducerSplitResponsePB* other) { |
11437 | 0 | using std::swap; |
11438 | 0 | swap(error_, other->error_); |
11439 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11440 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11441 | 0 | swap(_cached_size_, other->_cached_size_); |
11442 | 0 | } |
11443 | | |
11444 | 0 | ::google::protobuf::Metadata UpdateConsumerOnProducerSplitResponsePB::GetMetadata() const { |
11445 | 0 | protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::protobuf_AssignDescriptorsOnce(); |
11446 | 0 | return ::protobuf_yb_2fmaster_2fmaster_5freplication_2eproto::file_level_metadata[kIndexInFileMessages]; |
11447 | 0 | } |
11448 | | |
11449 | | |
11450 | | // @@protoc_insertion_point(namespace_scope) |
11451 | | } // namespace master |
11452 | | } // namespace yb |
11453 | | |
11454 | | // @@protoc_insertion_point(global_scope) |