/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/version_info.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/util/version_info.proto |
3 | | |
4 | | #include "yb/util/version_info.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 | | class VersionInfoPBDefaultTypeInternal { |
25 | | public: |
26 | | ::google::protobuf::internal::ExplicitlyConstructed<VersionInfoPB> |
27 | | _instance; |
28 | | } _VersionInfoPB_default_instance_; |
29 | | } // namespace yb |
30 | | namespace protobuf_yb_2futil_2fversion_5finfo_2eproto { |
31 | 20.6k | void InitDefaultsVersionInfoPBImpl() { |
32 | 20.6k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
33 | | |
34 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
35 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
36 | | #else |
37 | 20.6k | ::google::protobuf::internal::InitProtobufDefaults(); |
38 | 20.6k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
39 | 20.6k | { |
40 | 20.6k | void* ptr = &::yb::_VersionInfoPB_default_instance_; |
41 | 20.6k | new (ptr) ::yb::VersionInfoPB(); |
42 | 20.6k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
43 | 20.6k | } |
44 | 20.6k | ::yb::VersionInfoPB::InitAsDefaultInstance(); |
45 | 20.6k | } |
46 | | |
47 | 52.5k | void InitDefaultsVersionInfoPB() { |
48 | 52.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
49 | 52.5k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVersionInfoPBImpl); |
50 | 52.5k | } |
51 | | |
52 | | ::google::protobuf::Metadata file_level_metadata[1]; |
53 | | |
54 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
55 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, _has_bits_), |
56 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, _internal_metadata_), |
57 | | ~0u, // no _extensions_ |
58 | | ~0u, // no _oneof_case_ |
59 | | ~0u, // no _weak_field_map_ |
60 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, git_hash_), |
61 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_hostname_), |
62 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_timestamp_), |
63 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_username_), |
64 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_clean_repo_), |
65 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_id_), |
66 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_type_), |
67 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, version_number_), |
68 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::VersionInfoPB, build_number_), |
69 | | 0, |
70 | | 1, |
71 | | 2, |
72 | | 3, |
73 | | 8, |
74 | | 4, |
75 | | 5, |
76 | | 6, |
77 | | 7, |
78 | | }; |
79 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
80 | | { 0, 14, sizeof(::yb::VersionInfoPB)}, |
81 | | }; |
82 | | |
83 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
84 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_VersionInfoPB_default_instance_), |
85 | | }; |
86 | | |
87 | 0 | void protobuf_AssignDescriptors() { |
88 | 0 | AddDescriptors(); |
89 | 0 | ::google::protobuf::MessageFactory* factory = NULL; |
90 | 0 | AssignDescriptors( |
91 | 0 | "yb/util/version_info.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
92 | 0 | file_level_metadata, NULL, NULL); |
93 | 0 | } |
94 | | |
95 | 0 | void protobuf_AssignDescriptorsOnce() { |
96 | 0 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
97 | 0 | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
98 | 0 | } |
99 | | |
100 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
101 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
102 | 0 | protobuf_AssignDescriptorsOnce(); |
103 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); |
104 | 0 | } |
105 | | |
106 | 20.6k | void AddDescriptorsImpl() { |
107 | 20.6k | InitDefaults(); |
108 | 20.6k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
109 | 20.6k | "\n\032yb/util/version_info.proto\022\002yb\"\330\001\n\rVer" |
110 | 20.6k | "sionInfoPB\022\020\n\010git_hash\030\001 \001(\t\022\026\n\016build_ho" |
111 | 20.6k | "stname\030\002 \001(\t\022\027\n\017build_timestamp\030\003 \001(\t\022\026\n" |
112 | 20.6k | "\016build_username\030\004 \001(\t\022\030\n\020build_clean_rep" |
113 | 20.6k | "o\030\005 \001(\010\022\020\n\010build_id\030\006 \001(\t\022\022\n\nbuild_type\030" |
114 | 20.6k | "\007 \001(\t\022\026\n\016version_number\030\t \001(\t\022\024\n\014build_n" |
115 | 20.6k | "umber\030\n \001(\tB\010\n\006org.yb" |
116 | 20.6k | }; |
117 | 20.6k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
118 | 20.6k | descriptor, 261); |
119 | 20.6k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
120 | 20.6k | "yb/util/version_info.proto", &protobuf_RegisterTypes); |
121 | 20.6k | } |
122 | | |
123 | 36.4k | void AddDescriptors() { |
124 | 36.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
125 | 36.4k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
126 | 36.4k | } |
127 | | // Force AddDescriptors() to be called at dynamic initialization time. |
128 | | struct StaticDescriptorInitializer { |
129 | 20.6k | StaticDescriptorInitializer() { |
130 | 20.6k | AddDescriptors(); |
131 | 20.6k | } |
132 | | } static_descriptor_initializer; |
133 | | } // namespace protobuf_yb_2futil_2fversion_5finfo_2eproto |
134 | | namespace yb { |
135 | | |
136 | | // =================================================================== |
137 | | |
138 | 20.6k | void VersionInfoPB::InitAsDefaultInstance() { |
139 | 20.6k | } |
140 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
141 | | const int VersionInfoPB::kGitHashFieldNumber; |
142 | | const int VersionInfoPB::kBuildHostnameFieldNumber; |
143 | | const int VersionInfoPB::kBuildTimestampFieldNumber; |
144 | | const int VersionInfoPB::kBuildUsernameFieldNumber; |
145 | | const int VersionInfoPB::kBuildCleanRepoFieldNumber; |
146 | | const int VersionInfoPB::kBuildIdFieldNumber; |
147 | | const int VersionInfoPB::kBuildTypeFieldNumber; |
148 | | const int VersionInfoPB::kVersionNumberFieldNumber; |
149 | | const int VersionInfoPB::kBuildNumberFieldNumber; |
150 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
151 | | |
152 | | VersionInfoPB::VersionInfoPB() |
153 | 36.6k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
154 | 16.0k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
155 | 16.0k | ::protobuf_yb_2futil_2fversion_5finfo_2eproto::InitDefaultsVersionInfoPB(); |
156 | 16.0k | } |
157 | 36.6k | SharedCtor(); |
158 | | // @@protoc_insertion_point(constructor:yb.VersionInfoPB) |
159 | 36.6k | } |
160 | | VersionInfoPB::VersionInfoPB(const VersionInfoPB& from) |
161 | | : ::google::protobuf::Message(), |
162 | | _internal_metadata_(NULL), |
163 | | _has_bits_(from._has_bits_), |
164 | 0 | _cached_size_(0) { |
165 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
166 | 0 | git_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
167 | 0 | if (from.has_git_hash()) { |
168 | 0 | git_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.git_hash_); |
169 | 0 | } |
170 | 0 | build_hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
171 | 0 | if (from.has_build_hostname()) { |
172 | 0 | build_hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_hostname_); |
173 | 0 | } |
174 | 0 | build_timestamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
175 | 0 | if (from.has_build_timestamp()) { |
176 | 0 | build_timestamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_timestamp_); |
177 | 0 | } |
178 | 0 | build_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
179 | 0 | if (from.has_build_username()) { |
180 | 0 | build_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_username_); |
181 | 0 | } |
182 | 0 | build_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
183 | 0 | if (from.has_build_id()) { |
184 | 0 | build_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_id_); |
185 | 0 | } |
186 | 0 | build_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
187 | 0 | if (from.has_build_type()) { |
188 | 0 | build_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_type_); |
189 | 0 | } |
190 | 0 | version_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
191 | 0 | if (from.has_version_number()) { |
192 | 0 | version_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_number_); |
193 | 0 | } |
194 | 0 | build_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
195 | 0 | if (from.has_build_number()) { |
196 | 0 | build_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_number_); |
197 | 0 | } |
198 | 0 | build_clean_repo_ = from.build_clean_repo_; |
199 | | // @@protoc_insertion_point(copy_constructor:yb.VersionInfoPB) |
200 | 0 | } |
201 | | |
202 | 36.6k | void VersionInfoPB::SharedCtor() { |
203 | 36.6k | _cached_size_ = 0; |
204 | 36.6k | git_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
205 | 36.6k | build_hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
206 | 36.6k | build_timestamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
207 | 36.6k | build_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
208 | 36.6k | build_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
209 | 36.6k | build_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
210 | 36.6k | version_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
211 | 36.6k | build_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
212 | 36.6k | build_clean_repo_ = false; |
213 | 36.6k | } |
214 | | |
215 | 4.82k | VersionInfoPB::~VersionInfoPB() { |
216 | | // @@protoc_insertion_point(destructor:yb.VersionInfoPB) |
217 | 4.82k | SharedDtor(); |
218 | 4.82k | } |
219 | | |
220 | 4.82k | void VersionInfoPB::SharedDtor() { |
221 | 4.82k | git_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
222 | 4.82k | build_hostname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
223 | 4.82k | build_timestamp_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
224 | 4.82k | build_username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
225 | 4.82k | build_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
226 | 4.82k | build_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
227 | 4.82k | version_number_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
228 | 4.82k | build_number_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
229 | 4.82k | } |
230 | | |
231 | 0 | void VersionInfoPB::SetCachedSize(int size) const { |
232 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
233 | 0 | _cached_size_ = size; |
234 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
235 | 0 | } |
236 | 0 | const ::google::protobuf::Descriptor* VersionInfoPB::descriptor() { |
237 | 0 | ::protobuf_yb_2futil_2fversion_5finfo_2eproto::protobuf_AssignDescriptorsOnce(); |
238 | 0 | return ::protobuf_yb_2futil_2fversion_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
239 | 0 | } |
240 | | |
241 | 0 | const VersionInfoPB& VersionInfoPB::default_instance() { |
242 | 0 | ::protobuf_yb_2futil_2fversion_5finfo_2eproto::InitDefaultsVersionInfoPB(); |
243 | 0 | return *internal_default_instance(); |
244 | 0 | } |
245 | | |
246 | 0 | VersionInfoPB* VersionInfoPB::New(::google::protobuf::Arena* arena) const { |
247 | 0 | VersionInfoPB* n = new VersionInfoPB; |
248 | 0 | if (arena != NULL) { |
249 | 0 | arena->Own(n); |
250 | 0 | } |
251 | 0 | return n; |
252 | 0 | } |
253 | | |
254 | 2.54k | void VersionInfoPB::Clear() { |
255 | | // @@protoc_insertion_point(message_clear_start:yb.VersionInfoPB) |
256 | 2.54k | ::google::protobuf::uint32 cached_has_bits = 0; |
257 | | // Prevent compiler warnings about cached_has_bits being unused |
258 | 2.54k | (void) cached_has_bits; |
259 | | |
260 | 2.54k | cached_has_bits = _has_bits_[0]; |
261 | 2.54k | if (cached_has_bits & 255u) { |
262 | 0 | if (cached_has_bits & 0x00000001u) { |
263 | 0 | GOOGLE_DCHECK(!git_hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
264 | 0 | (*git_hash_.UnsafeRawStringPointer())->clear(); |
265 | 0 | } |
266 | 0 | if (cached_has_bits & 0x00000002u) { |
267 | 0 | GOOGLE_DCHECK(!build_hostname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
268 | 0 | (*build_hostname_.UnsafeRawStringPointer())->clear(); |
269 | 0 | } |
270 | 0 | if (cached_has_bits & 0x00000004u) { |
271 | 0 | GOOGLE_DCHECK(!build_timestamp_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
272 | 0 | (*build_timestamp_.UnsafeRawStringPointer())->clear(); |
273 | 0 | } |
274 | 0 | if (cached_has_bits & 0x00000008u) { |
275 | 0 | GOOGLE_DCHECK(!build_username_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
276 | 0 | (*build_username_.UnsafeRawStringPointer())->clear(); |
277 | 0 | } |
278 | 0 | if (cached_has_bits & 0x00000010u) { |
279 | 0 | GOOGLE_DCHECK(!build_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
280 | 0 | (*build_id_.UnsafeRawStringPointer())->clear(); |
281 | 0 | } |
282 | 0 | if (cached_has_bits & 0x00000020u) { |
283 | 0 | GOOGLE_DCHECK(!build_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
284 | 0 | (*build_type_.UnsafeRawStringPointer())->clear(); |
285 | 0 | } |
286 | 0 | if (cached_has_bits & 0x00000040u) { |
287 | 0 | GOOGLE_DCHECK(!version_number_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
288 | 0 | (*version_number_.UnsafeRawStringPointer())->clear(); |
289 | 0 | } |
290 | 0 | if (cached_has_bits & 0x00000080u) { |
291 | 0 | GOOGLE_DCHECK(!build_number_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
292 | 0 | (*build_number_.UnsafeRawStringPointer())->clear(); |
293 | 0 | } |
294 | 0 | } |
295 | 2.54k | build_clean_repo_ = false; |
296 | 2.54k | _has_bits_.Clear(); |
297 | 2.54k | _internal_metadata_.Clear(); |
298 | 2.54k | } |
299 | | |
300 | | bool VersionInfoPB::MergePartialFromCodedStream( |
301 | 1.80k | ::google::protobuf::io::CodedInputStream* input) { |
302 | 16.2k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
303 | 1.80k | ::google::protobuf::uint32 tag; |
304 | | // @@protoc_insertion_point(parse_start:yb.VersionInfoPB) |
305 | 18.0k | for (;;) { |
306 | 18.0k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
307 | 18.0k | tag = p.first; |
308 | 18.0k | if (!p.second) goto handle_unusual; |
309 | 16.2k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
310 | | // optional string git_hash = 1; |
311 | 1.80k | case 1: { |
312 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
313 | 1.80k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
314 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
315 | 1.80k | input, this->mutable_git_hash())); |
316 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
317 | 1.80k | this->git_hash().data(), static_cast<int>(this->git_hash().length()), |
318 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
319 | 1.80k | "yb.VersionInfoPB.git_hash"); |
320 | 0 | } else { |
321 | 0 | goto handle_unusual; |
322 | 0 | } |
323 | 1.80k | break; |
324 | 1.80k | } |
325 | | |
326 | | // optional string build_hostname = 2; |
327 | 1.80k | case 2: { |
328 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
329 | 1.80k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
330 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
331 | 1.80k | input, this->mutable_build_hostname())); |
332 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
333 | 1.80k | this->build_hostname().data(), static_cast<int>(this->build_hostname().length()), |
334 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
335 | 1.80k | "yb.VersionInfoPB.build_hostname"); |
336 | 0 | } else { |
337 | 0 | goto handle_unusual; |
338 | 0 | } |
339 | 1.80k | break; |
340 | 1.80k | } |
341 | | |
342 | | // optional string build_timestamp = 3; |
343 | 1.80k | case 3: { |
344 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
345 | 1.80k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
346 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
347 | 1.80k | input, this->mutable_build_timestamp())); |
348 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
349 | 1.80k | this->build_timestamp().data(), static_cast<int>(this->build_timestamp().length()), |
350 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
351 | 1.80k | "yb.VersionInfoPB.build_timestamp"); |
352 | 0 | } else { |
353 | 0 | goto handle_unusual; |
354 | 0 | } |
355 | 1.80k | break; |
356 | 1.80k | } |
357 | | |
358 | | // optional string build_username = 4; |
359 | 1.80k | case 4: { |
360 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
361 | 1.80k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
362 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
363 | 1.80k | input, this->mutable_build_username())); |
364 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
365 | 1.80k | this->build_username().data(), static_cast<int>(this->build_username().length()), |
366 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
367 | 1.80k | "yb.VersionInfoPB.build_username"); |
368 | 0 | } else { |
369 | 0 | goto handle_unusual; |
370 | 0 | } |
371 | 1.80k | break; |
372 | 1.80k | } |
373 | | |
374 | | // optional bool build_clean_repo = 5; |
375 | 1.80k | case 5: { |
376 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
377 | 1.80k | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
378 | 1.80k | set_has_build_clean_repo(); |
379 | 1.80k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
380 | 1.80k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
381 | 1.80k | input, &build_clean_repo_))); |
382 | 0 | } else { |
383 | 0 | goto handle_unusual; |
384 | 0 | } |
385 | 1.80k | break; |
386 | 1.80k | } |
387 | | |
388 | | // optional string build_id = 6; |
389 | 1.80k | case 6: { |
390 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
391 | 1.80k | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
392 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
393 | 1.80k | input, this->mutable_build_id())); |
394 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
395 | 1.80k | this->build_id().data(), static_cast<int>(this->build_id().length()), |
396 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
397 | 1.80k | "yb.VersionInfoPB.build_id"); |
398 | 0 | } else { |
399 | 0 | goto handle_unusual; |
400 | 0 | } |
401 | 1.80k | break; |
402 | 1.80k | } |
403 | | |
404 | | // optional string build_type = 7; |
405 | 1.80k | case 7: { |
406 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
407 | 1.80k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
408 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
409 | 1.80k | input, this->mutable_build_type())); |
410 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
411 | 1.80k | this->build_type().data(), static_cast<int>(this->build_type().length()), |
412 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
413 | 1.80k | "yb.VersionInfoPB.build_type"); |
414 | 0 | } else { |
415 | 0 | goto handle_unusual; |
416 | 0 | } |
417 | 1.80k | break; |
418 | 1.80k | } |
419 | | |
420 | | // optional string version_number = 9; |
421 | 1.80k | case 9: { |
422 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
423 | 1.80k | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
424 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
425 | 1.80k | input, this->mutable_version_number())); |
426 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
427 | 1.80k | this->version_number().data(), static_cast<int>(this->version_number().length()), |
428 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
429 | 1.80k | "yb.VersionInfoPB.version_number"); |
430 | 0 | } else { |
431 | 0 | goto handle_unusual; |
432 | 0 | } |
433 | 1.80k | break; |
434 | 1.80k | } |
435 | | |
436 | | // optional string build_number = 10; |
437 | 1.80k | case 10: { |
438 | 1.80k | if (static_cast< ::google::protobuf::uint8>(tag) == |
439 | 1.80k | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
440 | 1.80k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
441 | 1.80k | input, this->mutable_build_number())); |
442 | 1.80k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
443 | 1.80k | this->build_number().data(), static_cast<int>(this->build_number().length()), |
444 | 1.80k | ::google::protobuf::internal::WireFormat::PARSE, |
445 | 1.80k | "yb.VersionInfoPB.build_number"); |
446 | 0 | } else { |
447 | 0 | goto handle_unusual; |
448 | 0 | } |
449 | 1.80k | break; |
450 | 1.80k | } |
451 | | |
452 | 0 | default: { |
453 | 1.80k | handle_unusual: |
454 | 1.80k | if (tag == 0) { |
455 | 1.80k | goto success; |
456 | 1.80k | } |
457 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
458 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
459 | 0 | break; |
460 | 0 | } |
461 | 16.2k | } |
462 | 16.2k | } |
463 | 1.80k | success: |
464 | | // @@protoc_insertion_point(parse_success:yb.VersionInfoPB) |
465 | 1.80k | return true; |
466 | 0 | failure: |
467 | | // @@protoc_insertion_point(parse_failure:yb.VersionInfoPB) |
468 | 0 | return false; |
469 | 1.80k | #undef DO_ |
470 | 1.80k | } |
471 | | |
472 | | void VersionInfoPB::SerializeWithCachedSizes( |
473 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
474 | | // @@protoc_insertion_point(serialize_start:yb.VersionInfoPB) |
475 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
476 | 0 | (void) cached_has_bits; |
477 | |
|
478 | 0 | cached_has_bits = _has_bits_[0]; |
479 | | // optional string git_hash = 1; |
480 | 0 | if (cached_has_bits & 0x00000001u) { |
481 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
482 | 0 | this->git_hash().data(), static_cast<int>(this->git_hash().length()), |
483 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
484 | 0 | "yb.VersionInfoPB.git_hash"); |
485 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
486 | 0 | 1, this->git_hash(), output); |
487 | 0 | } |
488 | | |
489 | | // optional string build_hostname = 2; |
490 | 0 | if (cached_has_bits & 0x00000002u) { |
491 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
492 | 0 | this->build_hostname().data(), static_cast<int>(this->build_hostname().length()), |
493 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
494 | 0 | "yb.VersionInfoPB.build_hostname"); |
495 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
496 | 0 | 2, this->build_hostname(), output); |
497 | 0 | } |
498 | | |
499 | | // optional string build_timestamp = 3; |
500 | 0 | if (cached_has_bits & 0x00000004u) { |
501 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
502 | 0 | this->build_timestamp().data(), static_cast<int>(this->build_timestamp().length()), |
503 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
504 | 0 | "yb.VersionInfoPB.build_timestamp"); |
505 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
506 | 0 | 3, this->build_timestamp(), output); |
507 | 0 | } |
508 | | |
509 | | // optional string build_username = 4; |
510 | 0 | if (cached_has_bits & 0x00000008u) { |
511 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
512 | 0 | this->build_username().data(), static_cast<int>(this->build_username().length()), |
513 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
514 | 0 | "yb.VersionInfoPB.build_username"); |
515 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
516 | 0 | 4, this->build_username(), output); |
517 | 0 | } |
518 | | |
519 | | // optional bool build_clean_repo = 5; |
520 | 0 | if (cached_has_bits & 0x00000100u) { |
521 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->build_clean_repo(), output); |
522 | 0 | } |
523 | | |
524 | | // optional string build_id = 6; |
525 | 0 | if (cached_has_bits & 0x00000010u) { |
526 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
527 | 0 | this->build_id().data(), static_cast<int>(this->build_id().length()), |
528 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
529 | 0 | "yb.VersionInfoPB.build_id"); |
530 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
531 | 0 | 6, this->build_id(), output); |
532 | 0 | } |
533 | | |
534 | | // optional string build_type = 7; |
535 | 0 | if (cached_has_bits & 0x00000020u) { |
536 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
537 | 0 | this->build_type().data(), static_cast<int>(this->build_type().length()), |
538 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
539 | 0 | "yb.VersionInfoPB.build_type"); |
540 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
541 | 0 | 7, this->build_type(), output); |
542 | 0 | } |
543 | | |
544 | | // optional string version_number = 9; |
545 | 0 | if (cached_has_bits & 0x00000040u) { |
546 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
547 | 0 | this->version_number().data(), static_cast<int>(this->version_number().length()), |
548 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
549 | 0 | "yb.VersionInfoPB.version_number"); |
550 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
551 | 0 | 9, this->version_number(), output); |
552 | 0 | } |
553 | | |
554 | | // optional string build_number = 10; |
555 | 0 | if (cached_has_bits & 0x00000080u) { |
556 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
557 | 0 | this->build_number().data(), static_cast<int>(this->build_number().length()), |
558 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
559 | 0 | "yb.VersionInfoPB.build_number"); |
560 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
561 | 0 | 10, this->build_number(), output); |
562 | 0 | } |
563 | |
|
564 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
565 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
566 | 0 | _internal_metadata_.unknown_fields(), output); |
567 | 0 | } |
568 | | // @@protoc_insertion_point(serialize_end:yb.VersionInfoPB) |
569 | 0 | } |
570 | | |
571 | | ::google::protobuf::uint8* VersionInfoPB::InternalSerializeWithCachedSizesToArray( |
572 | 2.54k | bool deterministic, ::google::protobuf::uint8* target) const { |
573 | 2.54k | (void)deterministic; // Unused |
574 | | // @@protoc_insertion_point(serialize_to_array_start:yb.VersionInfoPB) |
575 | 2.54k | ::google::protobuf::uint32 cached_has_bits = 0; |
576 | 2.54k | (void) cached_has_bits; |
577 | | |
578 | 2.54k | cached_has_bits = _has_bits_[0]; |
579 | | // optional string git_hash = 1; |
580 | 2.54k | if (cached_has_bits & 0x00000001u) { |
581 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
582 | 2.54k | this->git_hash().data(), static_cast<int>(this->git_hash().length()), |
583 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
584 | 2.54k | "yb.VersionInfoPB.git_hash"); |
585 | 2.54k | target = |
586 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
587 | 2.54k | 1, this->git_hash(), target); |
588 | 2.54k | } |
589 | | |
590 | | // optional string build_hostname = 2; |
591 | 2.54k | if (cached_has_bits & 0x00000002u) { |
592 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
593 | 2.54k | this->build_hostname().data(), static_cast<int>(this->build_hostname().length()), |
594 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
595 | 2.54k | "yb.VersionInfoPB.build_hostname"); |
596 | 2.54k | target = |
597 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
598 | 2.54k | 2, this->build_hostname(), target); |
599 | 2.54k | } |
600 | | |
601 | | // optional string build_timestamp = 3; |
602 | 2.54k | if (cached_has_bits & 0x00000004u) { |
603 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
604 | 2.54k | this->build_timestamp().data(), static_cast<int>(this->build_timestamp().length()), |
605 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
606 | 2.54k | "yb.VersionInfoPB.build_timestamp"); |
607 | 2.54k | target = |
608 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
609 | 2.54k | 3, this->build_timestamp(), target); |
610 | 2.54k | } |
611 | | |
612 | | // optional string build_username = 4; |
613 | 2.54k | if (cached_has_bits & 0x00000008u) { |
614 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
615 | 2.54k | this->build_username().data(), static_cast<int>(this->build_username().length()), |
616 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
617 | 2.54k | "yb.VersionInfoPB.build_username"); |
618 | 2.54k | target = |
619 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
620 | 2.54k | 4, this->build_username(), target); |
621 | 2.54k | } |
622 | | |
623 | | // optional bool build_clean_repo = 5; |
624 | 2.54k | if (cached_has_bits & 0x00000100u) { |
625 | 2.54k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->build_clean_repo(), target); |
626 | 2.54k | } |
627 | | |
628 | | // optional string build_id = 6; |
629 | 2.54k | if (cached_has_bits & 0x00000010u) { |
630 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
631 | 2.54k | this->build_id().data(), static_cast<int>(this->build_id().length()), |
632 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
633 | 2.54k | "yb.VersionInfoPB.build_id"); |
634 | 2.54k | target = |
635 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
636 | 2.54k | 6, this->build_id(), target); |
637 | 2.54k | } |
638 | | |
639 | | // optional string build_type = 7; |
640 | 2.54k | if (cached_has_bits & 0x00000020u) { |
641 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
642 | 2.54k | this->build_type().data(), static_cast<int>(this->build_type().length()), |
643 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
644 | 2.54k | "yb.VersionInfoPB.build_type"); |
645 | 2.54k | target = |
646 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
647 | 2.54k | 7, this->build_type(), target); |
648 | 2.54k | } |
649 | | |
650 | | // optional string version_number = 9; |
651 | 2.54k | if (cached_has_bits & 0x00000040u) { |
652 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
653 | 2.54k | this->version_number().data(), static_cast<int>(this->version_number().length()), |
654 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
655 | 2.54k | "yb.VersionInfoPB.version_number"); |
656 | 2.54k | target = |
657 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
658 | 2.54k | 9, this->version_number(), target); |
659 | 2.54k | } |
660 | | |
661 | | // optional string build_number = 10; |
662 | 2.54k | if (cached_has_bits & 0x00000080u) { |
663 | 2.54k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
664 | 2.54k | this->build_number().data(), static_cast<int>(this->build_number().length()), |
665 | 2.54k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
666 | 2.54k | "yb.VersionInfoPB.build_number"); |
667 | 2.54k | target = |
668 | 2.54k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
669 | 2.54k | 10, this->build_number(), target); |
670 | 2.54k | } |
671 | | |
672 | 2.54k | if (_internal_metadata_.have_unknown_fields()) { |
673 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
674 | 0 | _internal_metadata_.unknown_fields(), target); |
675 | 0 | } |
676 | | // @@protoc_insertion_point(serialize_to_array_end:yb.VersionInfoPB) |
677 | 2.54k | return target; |
678 | 2.54k | } |
679 | | |
680 | 2.54k | size_t VersionInfoPB::ByteSizeLong() const { |
681 | | // @@protoc_insertion_point(message_byte_size_start:yb.VersionInfoPB) |
682 | 2.54k | size_t total_size = 0; |
683 | | |
684 | 2.54k | if (_internal_metadata_.have_unknown_fields()) { |
685 | 0 | total_size += |
686 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
687 | 0 | _internal_metadata_.unknown_fields()); |
688 | 0 | } |
689 | 2.54k | if (_has_bits_[0 / 32] & 255u) { |
690 | | // optional string git_hash = 1; |
691 | 2.54k | if (has_git_hash()) { |
692 | 2.54k | total_size += 1 + |
693 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
694 | 2.54k | this->git_hash()); |
695 | 2.54k | } |
696 | | |
697 | | // optional string build_hostname = 2; |
698 | 2.54k | if (has_build_hostname()) { |
699 | 2.54k | total_size += 1 + |
700 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
701 | 2.54k | this->build_hostname()); |
702 | 2.54k | } |
703 | | |
704 | | // optional string build_timestamp = 3; |
705 | 2.54k | if (has_build_timestamp()) { |
706 | 2.54k | total_size += 1 + |
707 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
708 | 2.54k | this->build_timestamp()); |
709 | 2.54k | } |
710 | | |
711 | | // optional string build_username = 4; |
712 | 2.54k | if (has_build_username()) { |
713 | 2.54k | total_size += 1 + |
714 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
715 | 2.54k | this->build_username()); |
716 | 2.54k | } |
717 | | |
718 | | // optional string build_id = 6; |
719 | 2.54k | if (has_build_id()) { |
720 | 2.54k | total_size += 1 + |
721 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
722 | 2.54k | this->build_id()); |
723 | 2.54k | } |
724 | | |
725 | | // optional string build_type = 7; |
726 | 2.54k | if (has_build_type()) { |
727 | 2.54k | total_size += 1 + |
728 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
729 | 2.54k | this->build_type()); |
730 | 2.54k | } |
731 | | |
732 | | // optional string version_number = 9; |
733 | 2.54k | if (has_version_number()) { |
734 | 2.54k | total_size += 1 + |
735 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
736 | 2.54k | this->version_number()); |
737 | 2.54k | } |
738 | | |
739 | | // optional string build_number = 10; |
740 | 2.54k | if (has_build_number()) { |
741 | 2.54k | total_size += 1 + |
742 | 2.54k | ::google::protobuf::internal::WireFormatLite::StringSize( |
743 | 2.54k | this->build_number()); |
744 | 2.54k | } |
745 | | |
746 | 2.54k | } |
747 | | // optional bool build_clean_repo = 5; |
748 | 2.54k | if (has_build_clean_repo()) { |
749 | 2.54k | total_size += 1 + 1; |
750 | 2.54k | } |
751 | | |
752 | 2.54k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
753 | 2.54k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
754 | 2.54k | _cached_size_ = cached_size; |
755 | 2.54k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
756 | 2.54k | return total_size; |
757 | 2.54k | } |
758 | | |
759 | 0 | void VersionInfoPB::MergeFrom(const ::google::protobuf::Message& from) { |
760 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.VersionInfoPB) |
761 | 0 | GOOGLE_DCHECK_NE(&from, this); |
762 | 0 | const VersionInfoPB* source = |
763 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const VersionInfoPB>( |
764 | 0 | &from); |
765 | 0 | if (source == NULL) { |
766 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.VersionInfoPB) |
767 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
768 | 0 | } else { |
769 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.VersionInfoPB) |
770 | 0 | MergeFrom(*source); |
771 | 0 | } |
772 | 0 | } |
773 | | |
774 | 2.54k | void VersionInfoPB::MergeFrom(const VersionInfoPB& from) { |
775 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.VersionInfoPB) |
776 | 2.54k | GOOGLE_DCHECK_NE(&from, this); |
777 | 2.54k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
778 | 2.54k | ::google::protobuf::uint32 cached_has_bits = 0; |
779 | 2.54k | (void) cached_has_bits; |
780 | | |
781 | 2.54k | cached_has_bits = from._has_bits_[0]; |
782 | 2.54k | if (cached_has_bits & 255u) { |
783 | 2.54k | if (cached_has_bits & 0x00000001u) { |
784 | 2.54k | set_has_git_hash(); |
785 | 2.54k | git_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.git_hash_); |
786 | 2.54k | } |
787 | 2.54k | if (cached_has_bits & 0x00000002u) { |
788 | 2.54k | set_has_build_hostname(); |
789 | 2.54k | build_hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_hostname_); |
790 | 2.54k | } |
791 | 2.54k | if (cached_has_bits & 0x00000004u) { |
792 | 2.54k | set_has_build_timestamp(); |
793 | 2.54k | build_timestamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_timestamp_); |
794 | 2.54k | } |
795 | 2.54k | if (cached_has_bits & 0x00000008u) { |
796 | 2.54k | set_has_build_username(); |
797 | 2.54k | build_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_username_); |
798 | 2.54k | } |
799 | 2.54k | if (cached_has_bits & 0x00000010u) { |
800 | 2.54k | set_has_build_id(); |
801 | 2.54k | build_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_id_); |
802 | 2.54k | } |
803 | 2.54k | if (cached_has_bits & 0x00000020u) { |
804 | 2.54k | set_has_build_type(); |
805 | 2.54k | build_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_type_); |
806 | 2.54k | } |
807 | 2.54k | if (cached_has_bits & 0x00000040u) { |
808 | 2.54k | set_has_version_number(); |
809 | 2.54k | version_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_number_); |
810 | 2.54k | } |
811 | 2.54k | if (cached_has_bits & 0x00000080u) { |
812 | 2.54k | set_has_build_number(); |
813 | 2.54k | build_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_number_); |
814 | 2.54k | } |
815 | 2.54k | } |
816 | 2.54k | if (cached_has_bits & 0x00000100u) { |
817 | 2.54k | set_build_clean_repo(from.build_clean_repo()); |
818 | 2.54k | } |
819 | 2.54k | } |
820 | | |
821 | 0 | void VersionInfoPB::CopyFrom(const ::google::protobuf::Message& from) { |
822 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.VersionInfoPB) |
823 | 0 | if (&from == this) return; |
824 | 0 | Clear(); |
825 | 0 | MergeFrom(from); |
826 | 0 | } |
827 | | |
828 | 2.54k | void VersionInfoPB::CopyFrom(const VersionInfoPB& from) { |
829 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.VersionInfoPB) |
830 | 2.54k | if (&from == this) return; |
831 | 2.54k | Clear(); |
832 | 2.54k | MergeFrom(from); |
833 | 2.54k | } |
834 | | |
835 | 0 | bool VersionInfoPB::IsInitialized() const { |
836 | 0 | return true; |
837 | 0 | } |
838 | | |
839 | 0 | void VersionInfoPB::Swap(VersionInfoPB* other) { |
840 | 0 | if (other == this) return; |
841 | 0 | InternalSwap(other); |
842 | 0 | } |
843 | 0 | void VersionInfoPB::InternalSwap(VersionInfoPB* other) { |
844 | 0 | using std::swap; |
845 | 0 | git_hash_.Swap(&other->git_hash_); |
846 | 0 | build_hostname_.Swap(&other->build_hostname_); |
847 | 0 | build_timestamp_.Swap(&other->build_timestamp_); |
848 | 0 | build_username_.Swap(&other->build_username_); |
849 | 0 | build_id_.Swap(&other->build_id_); |
850 | 0 | build_type_.Swap(&other->build_type_); |
851 | 0 | version_number_.Swap(&other->version_number_); |
852 | 0 | build_number_.Swap(&other->build_number_); |
853 | 0 | swap(build_clean_repo_, other->build_clean_repo_); |
854 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
855 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
856 | 0 | swap(_cached_size_, other->_cached_size_); |
857 | 0 | } |
858 | | |
859 | 0 | ::google::protobuf::Metadata VersionInfoPB::GetMetadata() const { |
860 | 0 | protobuf_yb_2futil_2fversion_5finfo_2eproto::protobuf_AssignDescriptorsOnce(); |
861 | 0 | return ::protobuf_yb_2futil_2fversion_5finfo_2eproto::file_level_metadata[kIndexInFileMessages]; |
862 | 0 | } |
863 | | |
864 | | |
865 | | // @@protoc_insertion_point(namespace_scope) |
866 | | } // namespace yb |
867 | | |
868 | | // @@protoc_insertion_point(global_scope) |