1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: icing/proto/internal/scorable_property_set.proto
3
4 #include "icing/proto/internal/scorable_property_set.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15
16 PROTOBUF_PRAGMA_INIT_SEG
17
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20
21 namespace icing {
22 namespace lib {
ScorablePropertyProto(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR ScorablePropertyProto::ScorablePropertyProto(
24 ::_pbi::ConstantInitialized): _impl_{
25 /*decltype(_impl_.int64_values_)*/{}
26 , /*decltype(_impl_._int64_values_cached_byte_size_)*/{0}
27 , /*decltype(_impl_.double_values_)*/{}
28 , /*decltype(_impl_.boolean_values_)*/{}
29 , /*decltype(_impl_._cached_size_)*/{}} {}
30 struct ScorablePropertyProtoDefaultTypeInternal {
ScorablePropertyProtoDefaultTypeInternalicing::lib::ScorablePropertyProtoDefaultTypeInternal31 PROTOBUF_CONSTEXPR ScorablePropertyProtoDefaultTypeInternal()
32 : _instance(::_pbi::ConstantInitialized{}) {}
~ScorablePropertyProtoDefaultTypeInternalicing::lib::ScorablePropertyProtoDefaultTypeInternal33 ~ScorablePropertyProtoDefaultTypeInternal() {}
34 union { // NOLINT(misc-non-private-member-variables-in-classes)
35 ScorablePropertyProto _instance;
36 };
37 };
38 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScorablePropertyProtoDefaultTypeInternal _ScorablePropertyProto_default_instance_;
ScorablePropertySetProto(::_pbi::ConstantInitialized)39 PROTOBUF_CONSTEXPR ScorablePropertySetProto::ScorablePropertySetProto(
40 ::_pbi::ConstantInitialized): _impl_{
41 /*decltype(_impl_.properties_)*/{}
42 , /*decltype(_impl_._cached_size_)*/{}} {}
43 struct ScorablePropertySetProtoDefaultTypeInternal {
ScorablePropertySetProtoDefaultTypeInternalicing::lib::ScorablePropertySetProtoDefaultTypeInternal44 PROTOBUF_CONSTEXPR ScorablePropertySetProtoDefaultTypeInternal()
45 : _instance(::_pbi::ConstantInitialized{}) {}
~ScorablePropertySetProtoDefaultTypeInternalicing::lib::ScorablePropertySetProtoDefaultTypeInternal46 ~ScorablePropertySetProtoDefaultTypeInternal() {}
47 union { // NOLINT(misc-non-private-member-variables-in-classes)
48 ScorablePropertySetProto _instance;
49 };
50 };
51 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScorablePropertySetProtoDefaultTypeInternal _ScorablePropertySetProto_default_instance_;
52 } // namespace lib
53 } // namespace icing
54 namespace icing {
55 namespace lib {
56
57 // ===================================================================
58
59 class ScorablePropertyProto::_Internal {
60 public:
61 };
62
ScorablePropertyProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)63 ScorablePropertyProto::ScorablePropertyProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
64 bool is_message_owned)
65 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
66 SharedCtor(arena, is_message_owned);
67 // @@protoc_insertion_point(arena_constructor:icing.lib.ScorablePropertyProto)
68 }
ScorablePropertyProto(const ScorablePropertyProto & from)69 ScorablePropertyProto::ScorablePropertyProto(const ScorablePropertyProto& from)
70 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
71 ScorablePropertyProto* const _this = this; (void)_this;
72 new (&_impl_) Impl_{
73 decltype(_impl_.int64_values_){from._impl_.int64_values_}
74 , /*decltype(_impl_._int64_values_cached_byte_size_)*/{0}
75 , decltype(_impl_.double_values_){from._impl_.double_values_}
76 , decltype(_impl_.boolean_values_){from._impl_.boolean_values_}
77 , /*decltype(_impl_._cached_size_)*/{}};
78
79 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
80 // @@protoc_insertion_point(copy_constructor:icing.lib.ScorablePropertyProto)
81 }
82
SharedCtor(::_pb::Arena * arena,bool is_message_owned)83 inline void ScorablePropertyProto::SharedCtor(
84 ::_pb::Arena* arena, bool is_message_owned) {
85 (void)arena;
86 (void)is_message_owned;
87 new (&_impl_) Impl_{
88 decltype(_impl_.int64_values_){arena}
89 , /*decltype(_impl_._int64_values_cached_byte_size_)*/{0}
90 , decltype(_impl_.double_values_){arena}
91 , decltype(_impl_.boolean_values_){arena}
92 , /*decltype(_impl_._cached_size_)*/{}
93 };
94 }
95
~ScorablePropertyProto()96 ScorablePropertyProto::~ScorablePropertyProto() {
97 // @@protoc_insertion_point(destructor:icing.lib.ScorablePropertyProto)
98 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
99 (void)arena;
100 return;
101 }
102 SharedDtor();
103 }
104
SharedDtor()105 inline void ScorablePropertyProto::SharedDtor() {
106 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
107 _impl_.int64_values_.~RepeatedField();
108 _impl_.double_values_.~RepeatedField();
109 _impl_.boolean_values_.~RepeatedField();
110 }
111
SetCachedSize(int size) const112 void ScorablePropertyProto::SetCachedSize(int size) const {
113 _impl_._cached_size_.Set(size);
114 }
115
Clear()116 void ScorablePropertyProto::Clear() {
117 // @@protoc_insertion_point(message_clear_start:icing.lib.ScorablePropertyProto)
118 ::uint32_t cached_has_bits = 0;
119 // Prevent compiler warnings about cached_has_bits being unused
120 (void) cached_has_bits;
121
122 _impl_.int64_values_.Clear();
123 _impl_.double_values_.Clear();
124 _impl_.boolean_values_.Clear();
125 _internal_metadata_.Clear<std::string>();
126 }
127
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)128 const char* ScorablePropertyProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
129 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
130 while (!ctx->Done(&ptr)) {
131 ::uint32_t tag;
132 ptr = ::_pbi::ReadTag(ptr, &tag);
133 switch (tag >> 3) {
134 // repeated int64 int64_values = 1 [packed = true];
135 case 1:
136 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
137 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_int64_values(), ptr, ctx);
138 CHK_(ptr);
139 } else if (static_cast<::uint8_t>(tag) == 8) {
140 _internal_add_int64_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
141 CHK_(ptr);
142 } else {
143 goto handle_unusual;
144 }
145 continue;
146 // repeated double double_values = 2 [packed = true];
147 case 2:
148 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
149 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_double_values(), ptr, ctx);
150 CHK_(ptr);
151 } else if (static_cast<::uint8_t>(tag) == 17) {
152 _internal_add_double_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
153 ptr += sizeof(double);
154 } else {
155 goto handle_unusual;
156 }
157 continue;
158 // repeated bool boolean_values = 3 [packed = true];
159 case 3:
160 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
161 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(_internal_mutable_boolean_values(), ptr, ctx);
162 CHK_(ptr);
163 } else if (static_cast<::uint8_t>(tag) == 24) {
164 _internal_add_boolean_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
165 CHK_(ptr);
166 } else {
167 goto handle_unusual;
168 }
169 continue;
170 default:
171 goto handle_unusual;
172 } // switch
173 handle_unusual:
174 if ((tag == 0) || ((tag & 7) == 4)) {
175 CHK_(ptr);
176 ctx->SetLastTag(tag);
177 goto message_done;
178 }
179 ptr = UnknownFieldParse(
180 tag,
181 _internal_metadata_.mutable_unknown_fields<std::string>(),
182 ptr, ctx);
183 CHK_(ptr != nullptr);
184 } // while
185 message_done:
186 return ptr;
187 failure:
188 ptr = nullptr;
189 goto message_done;
190 #undef CHK_
191 }
192
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const193 ::uint8_t* ScorablePropertyProto::_InternalSerialize(
194 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
195 // @@protoc_insertion_point(serialize_to_array_start:icing.lib.ScorablePropertyProto)
196 ::uint32_t cached_has_bits = 0;
197 (void) cached_has_bits;
198
199 // repeated int64 int64_values = 1 [packed = true];
200 {
201 int byte_size = _impl_._int64_values_cached_byte_size_.load(std::memory_order_relaxed);
202 if (byte_size > 0) {
203 target = stream->WriteInt64Packed(
204 1, _internal_int64_values(), byte_size, target);
205 }
206 }
207
208 // repeated double double_values = 2 [packed = true];
209 if (this->_internal_double_values_size() > 0) {
210 target = stream->WriteFixedPacked(2, _internal_double_values(), target);
211 }
212
213 // repeated bool boolean_values = 3 [packed = true];
214 if (this->_internal_boolean_values_size() > 0) {
215 target = stream->WriteFixedPacked(3, _internal_boolean_values(), target);
216 }
217
218 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
219 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
220 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
221 }
222 // @@protoc_insertion_point(serialize_to_array_end:icing.lib.ScorablePropertyProto)
223 return target;
224 }
225
ByteSizeLong() const226 size_t ScorablePropertyProto::ByteSizeLong() const {
227 // @@protoc_insertion_point(message_byte_size_start:icing.lib.ScorablePropertyProto)
228 size_t total_size = 0;
229
230 ::uint32_t cached_has_bits = 0;
231 // Prevent compiler warnings about cached_has_bits being unused
232 (void) cached_has_bits;
233
234 // repeated int64 int64_values = 1 [packed = true];
235 {
236 size_t data_size = ::_pbi::WireFormatLite::
237 Int64Size(this->_impl_.int64_values_);
238 if (data_size > 0) {
239 total_size += 1 +
240 ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
241 }
242 int cached_size = ::_pbi::ToCachedSize(data_size);
243 _impl_._int64_values_cached_byte_size_.store(cached_size,
244 std::memory_order_relaxed);
245 total_size += data_size;
246 }
247
248 // repeated double double_values = 2 [packed = true];
249 {
250 unsigned int count = static_cast<unsigned int>(this->_internal_double_values_size());
251 size_t data_size = 8UL * count;
252 if (data_size > 0) {
253 total_size += 1 +
254 ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
255 }
256 total_size += data_size;
257 }
258
259 // repeated bool boolean_values = 3 [packed = true];
260 {
261 unsigned int count = static_cast<unsigned int>(this->_internal_boolean_values_size());
262 size_t data_size = 1UL * count;
263 if (data_size > 0) {
264 total_size += 1 +
265 ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
266 }
267 total_size += data_size;
268 }
269
270 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
271 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
272 }
273 int cached_size = ::_pbi::ToCachedSize(total_size);
274 SetCachedSize(cached_size);
275 return total_size;
276 }
277
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)278 void ScorablePropertyProto::CheckTypeAndMergeFrom(
279 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
280 MergeFrom(*::_pbi::DownCast<const ScorablePropertyProto*>(
281 &from));
282 }
283
MergeFrom(const ScorablePropertyProto & from)284 void ScorablePropertyProto::MergeFrom(const ScorablePropertyProto& from) {
285 ScorablePropertyProto* const _this = this;
286 // @@protoc_insertion_point(class_specific_merge_from_start:icing.lib.ScorablePropertyProto)
287 GOOGLE_DCHECK_NE(&from, _this);
288 ::uint32_t cached_has_bits = 0;
289 (void) cached_has_bits;
290
291 _this->_impl_.int64_values_.MergeFrom(from._impl_.int64_values_);
292 _this->_impl_.double_values_.MergeFrom(from._impl_.double_values_);
293 _this->_impl_.boolean_values_.MergeFrom(from._impl_.boolean_values_);
294 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
295 }
296
CopyFrom(const ScorablePropertyProto & from)297 void ScorablePropertyProto::CopyFrom(const ScorablePropertyProto& from) {
298 // @@protoc_insertion_point(class_specific_copy_from_start:icing.lib.ScorablePropertyProto)
299 if (&from == this) return;
300 Clear();
301 MergeFrom(from);
302 }
303
IsInitialized() const304 bool ScorablePropertyProto::IsInitialized() const {
305 return true;
306 }
307
InternalSwap(ScorablePropertyProto * other)308 void ScorablePropertyProto::InternalSwap(ScorablePropertyProto* other) {
309 using std::swap;
310 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
311 _impl_.int64_values_.InternalSwap(&other->_impl_.int64_values_);
312 _impl_.double_values_.InternalSwap(&other->_impl_.double_values_);
313 _impl_.boolean_values_.InternalSwap(&other->_impl_.boolean_values_);
314 }
315
GetTypeName() const316 std::string ScorablePropertyProto::GetTypeName() const {
317 return "icing.lib.ScorablePropertyProto";
318 }
319
320
321 // ===================================================================
322
323 class ScorablePropertySetProto::_Internal {
324 public:
325 };
326
ScorablePropertySetProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)327 ScorablePropertySetProto::ScorablePropertySetProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
328 bool is_message_owned)
329 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
330 SharedCtor(arena, is_message_owned);
331 // @@protoc_insertion_point(arena_constructor:icing.lib.ScorablePropertySetProto)
332 }
ScorablePropertySetProto(const ScorablePropertySetProto & from)333 ScorablePropertySetProto::ScorablePropertySetProto(const ScorablePropertySetProto& from)
334 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
335 ScorablePropertySetProto* const _this = this; (void)_this;
336 new (&_impl_) Impl_{
337 decltype(_impl_.properties_){from._impl_.properties_}
338 , /*decltype(_impl_._cached_size_)*/{}};
339
340 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
341 // @@protoc_insertion_point(copy_constructor:icing.lib.ScorablePropertySetProto)
342 }
343
SharedCtor(::_pb::Arena * arena,bool is_message_owned)344 inline void ScorablePropertySetProto::SharedCtor(
345 ::_pb::Arena* arena, bool is_message_owned) {
346 (void)arena;
347 (void)is_message_owned;
348 new (&_impl_) Impl_{
349 decltype(_impl_.properties_){arena}
350 , /*decltype(_impl_._cached_size_)*/{}
351 };
352 }
353
~ScorablePropertySetProto()354 ScorablePropertySetProto::~ScorablePropertySetProto() {
355 // @@protoc_insertion_point(destructor:icing.lib.ScorablePropertySetProto)
356 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
357 (void)arena;
358 return;
359 }
360 SharedDtor();
361 }
362
SharedDtor()363 inline void ScorablePropertySetProto::SharedDtor() {
364 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
365 _impl_.properties_.~RepeatedPtrField();
366 }
367
SetCachedSize(int size) const368 void ScorablePropertySetProto::SetCachedSize(int size) const {
369 _impl_._cached_size_.Set(size);
370 }
371
Clear()372 void ScorablePropertySetProto::Clear() {
373 // @@protoc_insertion_point(message_clear_start:icing.lib.ScorablePropertySetProto)
374 ::uint32_t cached_has_bits = 0;
375 // Prevent compiler warnings about cached_has_bits being unused
376 (void) cached_has_bits;
377
378 _impl_.properties_.Clear();
379 _internal_metadata_.Clear<std::string>();
380 }
381
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)382 const char* ScorablePropertySetProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
383 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
384 while (!ctx->Done(&ptr)) {
385 ::uint32_t tag;
386 ptr = ::_pbi::ReadTag(ptr, &tag);
387 switch (tag >> 3) {
388 // repeated .icing.lib.ScorablePropertyProto properties = 1;
389 case 1:
390 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
391 ptr -= 1;
392 do {
393 ptr += 1;
394 ptr = ctx->ParseMessage(_internal_add_properties(), ptr);
395 CHK_(ptr);
396 if (!ctx->DataAvailable(ptr)) break;
397 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
398 } else {
399 goto handle_unusual;
400 }
401 continue;
402 default:
403 goto handle_unusual;
404 } // switch
405 handle_unusual:
406 if ((tag == 0) || ((tag & 7) == 4)) {
407 CHK_(ptr);
408 ctx->SetLastTag(tag);
409 goto message_done;
410 }
411 ptr = UnknownFieldParse(
412 tag,
413 _internal_metadata_.mutable_unknown_fields<std::string>(),
414 ptr, ctx);
415 CHK_(ptr != nullptr);
416 } // while
417 message_done:
418 return ptr;
419 failure:
420 ptr = nullptr;
421 goto message_done;
422 #undef CHK_
423 }
424
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const425 ::uint8_t* ScorablePropertySetProto::_InternalSerialize(
426 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
427 // @@protoc_insertion_point(serialize_to_array_start:icing.lib.ScorablePropertySetProto)
428 ::uint32_t cached_has_bits = 0;
429 (void) cached_has_bits;
430
431 // repeated .icing.lib.ScorablePropertyProto properties = 1;
432 for (unsigned i = 0,
433 n = static_cast<unsigned>(this->_internal_properties_size()); i < n; i++) {
434 const auto& repfield = this->_internal_properties(i);
435 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
436 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
437 }
438
439 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
440 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
441 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
442 }
443 // @@protoc_insertion_point(serialize_to_array_end:icing.lib.ScorablePropertySetProto)
444 return target;
445 }
446
ByteSizeLong() const447 size_t ScorablePropertySetProto::ByteSizeLong() const {
448 // @@protoc_insertion_point(message_byte_size_start:icing.lib.ScorablePropertySetProto)
449 size_t total_size = 0;
450
451 ::uint32_t cached_has_bits = 0;
452 // Prevent compiler warnings about cached_has_bits being unused
453 (void) cached_has_bits;
454
455 // repeated .icing.lib.ScorablePropertyProto properties = 1;
456 total_size += 1UL * this->_internal_properties_size();
457 for (const auto& msg : this->_impl_.properties_) {
458 total_size +=
459 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
460 }
461
462 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
463 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
464 }
465 int cached_size = ::_pbi::ToCachedSize(total_size);
466 SetCachedSize(cached_size);
467 return total_size;
468 }
469
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)470 void ScorablePropertySetProto::CheckTypeAndMergeFrom(
471 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
472 MergeFrom(*::_pbi::DownCast<const ScorablePropertySetProto*>(
473 &from));
474 }
475
MergeFrom(const ScorablePropertySetProto & from)476 void ScorablePropertySetProto::MergeFrom(const ScorablePropertySetProto& from) {
477 ScorablePropertySetProto* const _this = this;
478 // @@protoc_insertion_point(class_specific_merge_from_start:icing.lib.ScorablePropertySetProto)
479 GOOGLE_DCHECK_NE(&from, _this);
480 ::uint32_t cached_has_bits = 0;
481 (void) cached_has_bits;
482
483 _this->_impl_.properties_.MergeFrom(from._impl_.properties_);
484 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
485 }
486
CopyFrom(const ScorablePropertySetProto & from)487 void ScorablePropertySetProto::CopyFrom(const ScorablePropertySetProto& from) {
488 // @@protoc_insertion_point(class_specific_copy_from_start:icing.lib.ScorablePropertySetProto)
489 if (&from == this) return;
490 Clear();
491 MergeFrom(from);
492 }
493
IsInitialized() const494 bool ScorablePropertySetProto::IsInitialized() const {
495 return true;
496 }
497
InternalSwap(ScorablePropertySetProto * other)498 void ScorablePropertySetProto::InternalSwap(ScorablePropertySetProto* other) {
499 using std::swap;
500 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
501 _impl_.properties_.InternalSwap(&other->_impl_.properties_);
502 }
503
GetTypeName() const504 std::string ScorablePropertySetProto::GetTypeName() const {
505 return "icing.lib.ScorablePropertySetProto";
506 }
507
508
509 // @@protoc_insertion_point(namespace_scope)
510 } // namespace lib
511 } // namespace icing
512 PROTOBUF_NAMESPACE_OPEN
513 template<> PROTOBUF_NOINLINE ::icing::lib::ScorablePropertyProto*
CreateMaybeMessage(Arena * arena)514 Arena::CreateMaybeMessage< ::icing::lib::ScorablePropertyProto >(Arena* arena) {
515 return Arena::CreateMessageInternal< ::icing::lib::ScorablePropertyProto >(arena);
516 }
517 template<> PROTOBUF_NOINLINE ::icing::lib::ScorablePropertySetProto*
CreateMaybeMessage(Arena * arena)518 Arena::CreateMaybeMessage< ::icing::lib::ScorablePropertySetProto >(Arena* arena) {
519 return Arena::CreateMessageInternal< ::icing::lib::ScorablePropertySetProto >(arena);
520 }
521 PROTOBUF_NAMESPACE_CLOSE
522
523 // @@protoc_insertion_point(global_scope)
524 #include <google/protobuf/port_undef.inc>
525