Coverage Report

Created: 2026-12-01 06:10

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/sentencepiece/build/src/sentencepiece.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// NO CHECKED-IN PROTOBUF GENCODE
3
// source: sentencepiece.proto
4
// Protobuf C++ Version: 7.36.2
5
6
#include "sentencepiece.pb.h"
7
8
#include <algorithm>
9
#include <type_traits>
10
#include "google/protobuf/io/coded_stream.h"
11
#include "google/protobuf/generated_message_tctable_impl.h"
12
#include "google/protobuf/internal_visibility.h"
13
#include "google/protobuf/extension_set.h"
14
#include "google/protobuf/generated_message_util.h"
15
#include "google/protobuf/wire_format_lite.h"
16
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
17
// @@protoc_insertion_point(includes)
18
19
// Must be included last.
20
#include "google/protobuf/port_def.inc"
21
PROTOBUF_PRAGMA_INIT_SEG
22
namespace _pb = ::google::protobuf;
23
namespace _pbi = ::google::protobuf::internal;
24
namespace _fl = ::google::protobuf::internal::field_layout;
25
namespace sentencepiece {
26
class SentencePieceText_SentencePiece::_Internal {
27
 public:
28
  using HasBits = decltype(::std::declval<SentencePieceText_SentencePiece>()._impl_._has_bits_);
29
  static constexpr ::int32_t kHasBitsOffset =
30
      8 * PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_._has_bits_);
31
};
32
33
0
constexpr SentencePieceText_SentencePiece::ParseTableT_ SentencePieceText_SentencePiece::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
34
0
  return ParseTableT_{
35
0
    {
36
0
      PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_._has_bits_),
37
0
      PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_._extensions_),
38
0
      5, 56,  // max_field_number, fast_idx_mask
39
0
      offsetof(ParseTableT_, field_lookup_table),
40
0
      4294967264,  // skipmap
41
0
      offsetof(ParseTableT_, field_entries),
42
0
      5,  // num_field_entries
43
0
      0,  // num_aux_entries
44
0
      offsetof(ParseTableT_, field_names),  // no aux_entries
45
0
      class_data,
46
0
      nullptr,  // post_loop_handler
47
0
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
48
0
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
49
0
      ::_pbi::TcParser::GetTable<::sentencepiece::SentencePieceText_SentencePiece>(),  // to_prefetch
50
0
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
51
0
    }, {{
52
0
      {::_pbi::TcParser::MiniParse, {}},
53
0
      // optional string piece = 1;
54
0
      {::_pbi::TcParser::FastBS1,
55
0
       {10, 0, 0,
56
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.piece_)}},
57
0
      // optional uint32 id = 2;
58
0
      {::_pbi::TcParser::FastV32S1,
59
0
       {16, 2, 0,
60
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.id_)}},
61
0
      // optional string surface = 3;
62
0
      {::_pbi::TcParser::FastBS1,
63
0
       {26, 1, 0,
64
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.surface_)}},
65
0
      // optional uint32 begin = 4;
66
0
      {::_pbi::TcParser::FastV32S1,
67
0
       {32, 3, 0,
68
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.begin_)}},
69
0
      // optional uint32 end = 5;
70
0
      {::_pbi::TcParser::FastV32S1,
71
0
       {40, 4, 0,
72
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.end_)}},
73
0
      {::_pbi::TcParser::MiniParse, {}},
74
0
      {::_pbi::TcParser::MiniParse, {}},
75
0
    }}, {{
76
0
      65535, 65535
77
0
    }}, {{
78
0
      // optional string piece = 1;
79
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.piece_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
80
0
      // optional uint32 id = 2;
81
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
82
0
      // optional string surface = 3;
83
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.surface_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
84
0
      // optional uint32 begin = 4;
85
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.begin_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
86
0
      // optional uint32 end = 5;
87
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.end_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
88
0
    }},
89
0
    // no aux_entries
90
0
    {{
91
0
    }},
92
0
  };
93
0
}
94
95
96
inline constexpr SentencePieceText_SentencePiece::Impl_::Impl_(
97
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
98
    ::_pbi::ConstantInitialized) noexcept
99
      : piece_(
100
            &::google::protobuf::internal::fixed_address_empty_string,
101
            ::_pbi::ConstantInitialized()),
102
        surface_(
103
            &::google::protobuf::internal::fixed_address_empty_string,
104
            ::_pbi::ConstantInitialized()),
105
        id_{0u},
106
        begin_{0u},
107
        end_{0u} {}
108
109
template <typename>
110
constexpr SentencePieceText_SentencePiece::SentencePieceText_SentencePiece(::_pbi::ConstantInitialized,
111
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
112
    : Super_(
113
#if defined(PROTOBUF_CUSTOM_VTABLE)
114
          class_data
115
#endif  // PROTOBUF_CUSTOM_VTABLE
116
          ),
117
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
118
}
119
inline void* PROTOBUF_NONNULL SentencePieceText_SentencePiece::PlacementNew_(
120
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
121
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
122
0
  return ::new (mem) SentencePieceText_SentencePiece(arena);
123
0
}
124
0
constexpr auto SentencePieceText_SentencePiece::InternalNewImpl_() {
125
0
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SentencePieceText_SentencePiece), alignof(SentencePieceText_SentencePiece));
126
0
}
127
constexpr auto SentencePieceText_SentencePiece::InternalGenerateClassData_(
128
    const MessageLite& prototype,
129
0
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
130
0
  return ::google::protobuf::internal::ClassDataLite{
131
0
      {
132
0
          &prototype,
133
0
#ifndef PROTOBUF_MESSAGE_GLOBALS
134
0
          &_table_.header,
135
0
#else
136
0
          tc_table,
137
0
#endif
138
0
          SentencePieceText_SentencePiece::IsInitializedImpl,
139
0
          &SentencePieceText_SentencePiece::MergeImpl,
140
0
          Super_::GetNewImpl<SentencePieceText_SentencePiece>(),
141
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
142
0
          &SentencePieceText_SentencePiece::SharedDtor,
143
0
          Super_::GetClearImpl<SentencePieceText_SentencePiece>(), &SentencePieceText_SentencePiece::ByteSizeLong,
144
0
              &SentencePieceText_SentencePiece::_InternalSerialize,
145
0
#endif  // PROTOBUF_CUSTOM_VTABLE
146
0
          PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_._cached_size_),
147
0
          true,
148
0
      },
149
0
      "sentencepiece.SentencePieceText.SentencePiece",
150
0
  };
151
0
}
152
struct SentencePieceText_SentencePieceGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
153
  constexpr SentencePieceText_SentencePieceGlobalsTypeInternal()
154
      :
155
#ifndef PROTOBUF_MESSAGE_GLOBALS
156
        _default(::_pbi::ConstantInitialized{},
157
                 SentencePieceText_SentencePiece_class_data_.base())
158
#else   // !PROTOBUF_MESSAGE_GLOBALS
159
        MessageGlobalsBase(SentencePieceText_SentencePiece::InternalGenerateClassData_(
160
            _default, &SentencePieceText_SentencePiece_globals_._table.header)),
161
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
162
        _table(::_pbi::PrivateAccess::GenerateParseTable<SentencePieceText_SentencePiece>(
163
            GetClassData()))
164
#endif  // PROTOBUF_MESSAGE_GLOBALS
165
0
  {
166
0
  }
167
0
  ~SentencePieceText_SentencePieceGlobalsTypeInternal() {}
168
  union {
169
    alignas(::_pbi::kMaxMessageAlignment) SentencePieceText_SentencePiece _default;
170
  };
171
#ifdef PROTOBUF_MESSAGE_GLOBALS
172
  decltype(::_pbi::PrivateAccess::GenerateParseTable<SentencePieceText_SentencePiece>(
173
      ::std::declval<const ::_pbi::ClassData*>())) _table;
174
#endif
175
};
176
#ifdef PROTOBUF_MESSAGE_GLOBALS
177
static_assert(PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePieceGlobalsTypeInternal, _default) ==
178
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
179
#endif  // PROTOBUF_MESSAGE_GLOBALS
180
181
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
182
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SentencePieceText_SentencePieceGlobalsTypeInternal SentencePieceText_SentencePiece_globals_
183
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
184
#if defined(PROTOBUF_CUSTOM_VTABLE)
185
namespace {
186
const ::_pbi::ClassData* SentencePieceText_SentencePiece_get_class_data() {
187
#ifdef PROTOBUF_MESSAGE_GLOBALS
188
  return SentencePieceText_SentencePiece_globals_.GetClassData();
189
#else
190
  return SentencePieceText_SentencePiece_class_data_.base();
191
#endif  // PROTOBUF_MESSAGE_GLOBALS
192
}
193
}  // namespace
194
#endif  // PROTOBUF_CUSTOM_VTABLE
195
class SentencePieceText::_Internal {
196
 public:
197
  using HasBits = decltype(::std::declval<SentencePieceText>()._impl_._has_bits_);
198
  static constexpr ::int32_t kHasBitsOffset =
199
      8 * PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_._has_bits_);
200
};
201
202
0
constexpr SentencePieceText::ParseTableT_ SentencePieceText::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
203
0
  return ParseTableT_{
204
0
    {
205
0
      PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_._has_bits_),
206
0
      PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_._extensions_),
207
0
      3, 24,  // max_field_number, fast_idx_mask
208
0
      offsetof(ParseTableT_, field_lookup_table),
209
0
      4294967288,  // skipmap
210
0
      offsetof(ParseTableT_, field_entries),
211
0
      3,  // num_field_entries
212
0
      1,  // num_aux_entries
213
0
      offsetof(ParseTableT_, aux_entries),
214
0
      class_data,
215
0
      nullptr,  // post_loop_handler
216
0
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
217
0
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
218
0
      ::_pbi::TcParser::GetTable<::sentencepiece::SentencePieceText>(),  // to_prefetch
219
0
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
220
0
    }, {{
221
0
      {::_pbi::TcParser::MiniParse, {}},
222
0
      // optional string text = 1;
223
0
      {::_pbi::TcParser::FastBS1,
224
0
       {10, 1, 0,
225
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.text_)}},
226
0
      // repeated .sentencepiece.SentencePieceText.SentencePiece pieces = 2;
227
0
      {::_pbi::TcParser::FastMtR1,
228
0
       {18, 0, 0,
229
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.pieces_)}},
230
0
      // optional float score = 3;
231
0
      {::_pbi::TcParser::FastF32S1,
232
0
       {29, 2, 0,
233
0
        PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.score_)}},
234
0
    }}, {{
235
0
      65535, 65535
236
0
    }}, {{
237
0
      // optional string text = 1;
238
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.text_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
239
0
      // repeated .sentencepiece.SentencePieceText.SentencePiece pieces = 2;
240
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.pieces_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
241
0
      // optional float score = 3;
242
0
      {PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_.score_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
243
0
    }},
244
0
    {{
245
0
        #ifndef PROTOBUF_MESSAGE_GLOBALS
246
0
        {::_pbi::TcParser::GetTable<::sentencepiece::SentencePieceText_SentencePiece>()},
247
0
        #else
248
0
        {::_pbi::FieldAuxMessageGlobals(), &::sentencepiece::SentencePieceText_SentencePiece_globals_},
249
0
        #endif
250
0
    }},
251
0
    {{
252
0
    }},
253
0
  };
254
0
}
255
256
257
inline constexpr SentencePieceText::Impl_::Impl_(
258
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
259
    ::_pbi::ConstantInitialized) noexcept
260
      : pieces_ { visibility, ::_pbi::InternalMetadataOffset::Build<
261
            ::sentencepiece::SentencePieceText,
262
            PROTOBUF_FIELD_OFFSET(::sentencepiece::SentencePieceText, _impl_.pieces_)>()
263
         }
264
        ,
265
        text_(
266
            &::google::protobuf::internal::fixed_address_empty_string,
267
            ::_pbi::ConstantInitialized()),
268
        score_{0} {}
269
270
template <typename>
271
constexpr SentencePieceText::SentencePieceText(::_pbi::ConstantInitialized,
272
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
273
    : Super_(
274
#if defined(PROTOBUF_CUSTOM_VTABLE)
275
          class_data
276
#endif  // PROTOBUF_CUSTOM_VTABLE
277
          ),
278
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
279
}
280
inline void* PROTOBUF_NONNULL SentencePieceText::PlacementNew_(
281
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
282
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
283
0
  return ::new (mem) SentencePieceText(arena);
284
0
}
285
0
constexpr auto SentencePieceText::InternalNewImpl_() {
286
0
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SentencePieceText), alignof(SentencePieceText));
287
0
}
288
constexpr auto SentencePieceText::InternalGenerateClassData_(
289
    const MessageLite& prototype,
290
0
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
291
0
  return ::google::protobuf::internal::ClassDataLite{
292
0
      {
293
0
          &prototype,
294
0
#ifndef PROTOBUF_MESSAGE_GLOBALS
295
0
          &_table_.header,
296
0
#else
297
0
          tc_table,
298
0
#endif
299
0
          SentencePieceText::IsInitializedImpl,
300
0
          &SentencePieceText::MergeImpl,
301
0
          Super_::GetNewImpl<SentencePieceText>(),
302
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
303
0
          &SentencePieceText::SharedDtor,
304
0
          Super_::GetClearImpl<SentencePieceText>(), &SentencePieceText::ByteSizeLong,
305
0
              &SentencePieceText::_InternalSerialize,
306
0
#endif  // PROTOBUF_CUSTOM_VTABLE
307
0
          PROTOBUF_FIELD_OFFSET(SentencePieceText, _impl_._cached_size_),
308
0
          true,
309
0
      },
310
0
      "sentencepiece.SentencePieceText",
311
0
  };
312
0
}
313
struct SentencePieceTextGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
314
  constexpr SentencePieceTextGlobalsTypeInternal()
315
      :
316
#ifndef PROTOBUF_MESSAGE_GLOBALS
317
        _default(::_pbi::ConstantInitialized{},
318
                 SentencePieceText_class_data_.base())
319
#else   // !PROTOBUF_MESSAGE_GLOBALS
320
        MessageGlobalsBase(SentencePieceText::InternalGenerateClassData_(
321
            _default, &SentencePieceText_globals_._table.header)),
322
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
323
        _table(::_pbi::PrivateAccess::GenerateParseTable<SentencePieceText>(
324
            GetClassData()))
325
#endif  // PROTOBUF_MESSAGE_GLOBALS
326
0
  {
327
0
  }
328
0
  ~SentencePieceTextGlobalsTypeInternal() {}
329
  union {
330
    alignas(::_pbi::kMaxMessageAlignment) SentencePieceText _default;
331
  };
332
#ifdef PROTOBUF_MESSAGE_GLOBALS
333
  decltype(::_pbi::PrivateAccess::GenerateParseTable<SentencePieceText>(
334
      ::std::declval<const ::_pbi::ClassData*>())) _table;
335
#endif
336
};
337
#ifdef PROTOBUF_MESSAGE_GLOBALS
338
static_assert(PROTOBUF_FIELD_OFFSET(SentencePieceTextGlobalsTypeInternal, _default) ==
339
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
340
#endif  // PROTOBUF_MESSAGE_GLOBALS
341
342
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
343
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SentencePieceTextGlobalsTypeInternal SentencePieceText_globals_
344
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
345
#if defined(PROTOBUF_CUSTOM_VTABLE)
346
namespace {
347
const ::_pbi::ClassData* SentencePieceText_get_class_data() {
348
#ifdef PROTOBUF_MESSAGE_GLOBALS
349
  return SentencePieceText_globals_.GetClassData();
350
#else
351
  return SentencePieceText_class_data_.base();
352
#endif  // PROTOBUF_MESSAGE_GLOBALS
353
}
354
}  // namespace
355
#endif  // PROTOBUF_CUSTOM_VTABLE
356
class NBestSentencePieceText::_Internal {
357
 public:
358
  using HasBits = decltype(::std::declval<NBestSentencePieceText>()._impl_._has_bits_);
359
  static constexpr ::int32_t kHasBitsOffset =
360
      8 * PROTOBUF_FIELD_OFFSET(NBestSentencePieceText, _impl_._has_bits_);
361
};
362
363
0
constexpr NBestSentencePieceText::ParseTableT_ NBestSentencePieceText::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
364
0
  return ParseTableT_{
365
0
    {
366
0
      PROTOBUF_FIELD_OFFSET(NBestSentencePieceText, _impl_._has_bits_),
367
0
      0, // no _extensions_
368
0
      1, 0,  // max_field_number, fast_idx_mask
369
0
      offsetof(ParseTableT_, field_lookup_table),
370
0
      4294967294,  // skipmap
371
0
      offsetof(ParseTableT_, field_entries),
372
0
      1,  // num_field_entries
373
0
      1,  // num_aux_entries
374
0
      offsetof(ParseTableT_, aux_entries),
375
0
      class_data,
376
0
      nullptr,  // post_loop_handler
377
0
      ::_pbi::TcParser::MpUnknownFields,  // fallback
378
0
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
379
0
      ::_pbi::TcParser::GetTable<::sentencepiece::NBestSentencePieceText>(),  // to_prefetch
380
0
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
381
0
    }, {{
382
0
      // repeated .sentencepiece.SentencePieceText nbests = 1;
383
0
      {::_pbi::TcParser::FastMtR1,
384
0
       {10, 0, 0,
385
0
        PROTOBUF_FIELD_OFFSET(NBestSentencePieceText, _impl_.nbests_)}},
386
0
    }}, {{
387
0
      65535, 65535
388
0
    }}, {{
389
0
      // repeated .sentencepiece.SentencePieceText nbests = 1;
390
0
      {PROTOBUF_FIELD_OFFSET(NBestSentencePieceText, _impl_.nbests_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
391
0
    }},
392
0
    {{
393
0
        #ifndef PROTOBUF_MESSAGE_GLOBALS
394
0
        {::_pbi::TcParser::GetTable<::sentencepiece::SentencePieceText>()},
395
0
        #else
396
0
        {::_pbi::FieldAuxMessageGlobals(), &::sentencepiece::SentencePieceText_globals_},
397
0
        #endif
398
0
    }},
399
0
    {{
400
0
    }},
401
0
  };
402
0
}
403
404
405
inline constexpr NBestSentencePieceText::Impl_::Impl_(
406
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
407
    ::_pbi::ConstantInitialized) noexcept
408
      : nbests_ { visibility, ::_pbi::InternalMetadataOffset::Build<
409
            ::sentencepiece::NBestSentencePieceText,
410
            PROTOBUF_FIELD_OFFSET(::sentencepiece::NBestSentencePieceText, _impl_.nbests_)>()
411
         }
412
     {}
413
414
template <typename>
415
constexpr NBestSentencePieceText::NBestSentencePieceText(::_pbi::ConstantInitialized,
416
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
417
    : Super_(
418
#if defined(PROTOBUF_CUSTOM_VTABLE)
419
          class_data
420
#endif  // PROTOBUF_CUSTOM_VTABLE
421
          ),
422
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
423
}
424
inline void* PROTOBUF_NONNULL NBestSentencePieceText::PlacementNew_(
425
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
426
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
427
0
  return ::new (mem) NBestSentencePieceText(arena);
428
0
}
429
0
constexpr auto NBestSentencePieceText::InternalNewImpl_() {
430
0
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NBestSentencePieceText), alignof(NBestSentencePieceText));
431
0
}
432
constexpr auto NBestSentencePieceText::InternalGenerateClassData_(
433
    const MessageLite& prototype,
434
0
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
435
0
  return ::google::protobuf::internal::ClassDataLite{
436
0
      {
437
0
          &prototype,
438
0
#ifndef PROTOBUF_MESSAGE_GLOBALS
439
0
          &_table_.header,
440
0
#else
441
0
          tc_table,
442
0
#endif
443
0
          NBestSentencePieceText::IsInitializedImpl,
444
0
          &NBestSentencePieceText::MergeImpl,
445
0
          Super_::GetNewImpl<NBestSentencePieceText>(),
446
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
447
0
          &NBestSentencePieceText::SharedDtor,
448
0
          Super_::GetClearImpl<NBestSentencePieceText>(), &NBestSentencePieceText::ByteSizeLong,
449
0
              &NBestSentencePieceText::_InternalSerialize,
450
0
#endif  // PROTOBUF_CUSTOM_VTABLE
451
0
          PROTOBUF_FIELD_OFFSET(NBestSentencePieceText, _impl_._cached_size_),
452
0
          true,
453
0
      },
454
0
      "sentencepiece.NBestSentencePieceText",
455
0
  };
456
0
}
457
struct NBestSentencePieceTextGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
458
  constexpr NBestSentencePieceTextGlobalsTypeInternal()
459
      :
460
#ifndef PROTOBUF_MESSAGE_GLOBALS
461
        _default(::_pbi::ConstantInitialized{},
462
                 NBestSentencePieceText_class_data_.base())
463
#else   // !PROTOBUF_MESSAGE_GLOBALS
464
        MessageGlobalsBase(NBestSentencePieceText::InternalGenerateClassData_(
465
            _default, &NBestSentencePieceText_globals_._table.header)),
466
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
467
        _table(::_pbi::PrivateAccess::GenerateParseTable<NBestSentencePieceText>(
468
            GetClassData()))
469
#endif  // PROTOBUF_MESSAGE_GLOBALS
470
0
  {
471
0
  }
472
0
  ~NBestSentencePieceTextGlobalsTypeInternal() {}
473
  union {
474
    alignas(::_pbi::kMaxMessageAlignment) NBestSentencePieceText _default;
475
  };
476
#ifdef PROTOBUF_MESSAGE_GLOBALS
477
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NBestSentencePieceText>(
478
      ::std::declval<const ::_pbi::ClassData*>())) _table;
479
#endif
480
};
481
#ifdef PROTOBUF_MESSAGE_GLOBALS
482
static_assert(PROTOBUF_FIELD_OFFSET(NBestSentencePieceTextGlobalsTypeInternal, _default) ==
483
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
484
#endif  // PROTOBUF_MESSAGE_GLOBALS
485
486
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
487
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NBestSentencePieceTextGlobalsTypeInternal NBestSentencePieceText_globals_
488
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
489
#if defined(PROTOBUF_CUSTOM_VTABLE)
490
namespace {
491
const ::_pbi::ClassData* NBestSentencePieceText_get_class_data() {
492
#ifdef PROTOBUF_MESSAGE_GLOBALS
493
  return NBestSentencePieceText_globals_.GetClassData();
494
#else
495
  return NBestSentencePieceText_class_data_.base();
496
#endif  // PROTOBUF_MESSAGE_GLOBALS
497
}
498
}  // namespace
499
#endif  // PROTOBUF_CUSTOM_VTABLE
500
}  // namespace sentencepiece
501
namespace sentencepiece {
502
// ===================================================================
503
504
SentencePieceText_SentencePiece::SentencePieceText_SentencePiece(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
505
#if defined(PROTOBUF_CUSTOM_VTABLE)
506
    : Super_(arena, SentencePieceText_SentencePiece_get_class_data()) {
507
#else   // PROTOBUF_CUSTOM_VTABLE
508
162M
    : Super_(arena) {
509
162M
#endif  // PROTOBUF_CUSTOM_VTABLE
510
162M
  SharedCtor(arena);
511
  // @@protoc_insertion_point(arena_constructor:sentencepiece.SentencePieceText.SentencePiece)
512
162M
}
513
PROTOBUF_NDEBUG_INLINE SentencePieceText_SentencePiece::Impl_::Impl_(
514
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
515
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
516
    [[maybe_unused]] const ::sentencepiece::SentencePieceText_SentencePiece& from_msg)
517
0
      : _extensions_ {}
518
        ,
519
0
        _has_bits_{from._has_bits_},
520
0
        piece_(arena, from.piece_),
521
0
        surface_(arena, from.surface_) {}
522
523
SentencePieceText_SentencePiece::SentencePieceText_SentencePiece(
524
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
525
    const SentencePieceText_SentencePiece& from)
526
#if defined(PROTOBUF_CUSTOM_VTABLE)
527
    : Super_(arena, SentencePieceText_SentencePiece_get_class_data()) {
528
529
#else   // PROTOBUF_CUSTOM_VTABLE
530
0
    : Super_(arena) {
531
0
#endif  // PROTOBUF_CUSTOM_VTABLE
532
0
  SentencePieceText_SentencePiece* const _this = this;
533
0
  (void)_this;
534
0
  _internal_metadata_.MergeFrom<::std::string>(
535
0
      from._internal_metadata_);
536
0
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
537
0
  _impl_._extensions_.MergeFrom(arena, this, from._impl_._extensions_,
538
0
                                from.GetArena());
539
0
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
540
0
               offsetof(Impl_, id_),
541
0
           reinterpret_cast<const char*>(&from._impl_) +
542
0
               offsetof(Impl_, id_),
543
0
           offsetof(Impl_, end_) -
544
0
               offsetof(Impl_, id_) +
545
0
               sizeof(Impl_::end_));
546
547
  // @@protoc_insertion_point(copy_constructor:sentencepiece.SentencePieceText.SentencePiece)
548
0
}
549
PROTOBUF_NDEBUG_INLINE SentencePieceText_SentencePiece::Impl_::Impl_(
550
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
551
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
552
162M
      : _extensions_ {}
553
        ,
554
162M
        piece_(arena),
555
162M
        surface_(arena) {}
556
557
162M
inline void SentencePieceText_SentencePiece::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
558
162M
  new (&_impl_) Impl_(internal_visibility(), arena);
559
162M
  ::memset(reinterpret_cast<char*>(&_impl_) +
560
162M
               offsetof(Impl_, id_),
561
162M
           0,
562
162M
           offsetof(Impl_, end_) -
563
162M
               offsetof(Impl_, id_) +
564
162M
               sizeof(Impl_::end_));
565
162M
}
566
0
SentencePieceText_SentencePiece::~SentencePieceText_SentencePiece() {
567
  // @@protoc_insertion_point(destructor:sentencepiece.SentencePieceText.SentencePiece)
568
0
  SharedDtor(*this);
569
0
}
570
0
inline void SentencePieceText_SentencePiece::SharedDtor(MessageLite& self) {
571
0
  SentencePieceText_SentencePiece& this_ = static_cast<SentencePieceText_SentencePiece&>(self);
572
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
573
    this_.CheckHasBitConsistency();
574
  }
575
0
  this_._internal_metadata_.Delete<::std::string>();
576
0
  ABSL_DCHECK(this_.GetArena() == nullptr);
577
0
  this_._impl_.piece_.Destroy();
578
0
  this_._impl_.surface_.Destroy();
579
0
  this_._impl_.~Impl_();
580
0
}
581
582
#ifndef PROTOBUF_MESSAGE_GLOBALS
583
PROTOBUF_CONSTINIT
584
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
585
const ::google::protobuf::internal::ClassDataLite SentencePieceText_SentencePiece_class_data_ =
586
    SentencePieceText_SentencePiece::InternalGenerateClassData_(SentencePieceText_SentencePiece_globals_._default);
587
588
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
589
0
SentencePieceText_SentencePiece::GetClassData() const {
590
0
  return SentencePieceText_SentencePiece_class_data_.base();
591
0
}
592
#else
593
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
594
SentencePieceText_SentencePiece::GetClassData() const {
595
  return SentencePieceText_SentencePiece_globals_.GetClassData();
596
}
597
#endif  // !PROTOBUF_MESSAGE_GLOBALS
598
#ifndef PROTOBUF_MESSAGE_GLOBALS
599
PROTOBUF_CONSTINIT
600
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SentencePieceText_SentencePiece::ParseTableT_
601
    SentencePieceText_SentencePiece::_table_ =
602
        SentencePieceText_SentencePiece::InternalGenerateParseTable_(SentencePieceText_SentencePiece_class_data_.base());
603
#endif  // !PROTOBUF_MESSAGE_GLOBALS
604
0
PROTOBUF_NOINLINE void SentencePieceText_SentencePiece::Clear() {
605
0
  auto& this_ [[maybe_unused]] = *this;
606
  // @@protoc_insertion_point(message_clear_start:sentencepiece.SentencePieceText.SentencePiece)
607
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
608
0
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
609
610
0
  _impl_._extensions_.Clear();
611
0
  cached_has_bits = this_._impl_._has_bits_[0];
612
0
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
613
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
614
0
      this_._impl_.piece_.ClearNonDefaultToEmpty();
615
0
    }
616
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
617
0
      this_._impl_.surface_.ClearNonDefaultToEmpty();
618
0
    }
619
0
  }
620
0
  if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
621
0
    ::memset(&this_._impl_.id_, 0,
622
0
             static_cast<::size_t>(
623
0
                 reinterpret_cast<char*>(&this_._impl_.end_) -
624
0
                 reinterpret_cast<char*>(&this_._impl_.id_)) +
625
0
                 sizeof(_impl_.end_));
626
0
  }
627
0
  _impl_._has_bits_.Clear();
628
0
  _internal_metadata_.Clear<::std::string>();
629
0
}
630
631
#if defined(PROTOBUF_CUSTOM_VTABLE)
632
::uint8_t* PROTOBUF_NONNULL SentencePieceText_SentencePiece::_InternalSerialize(
633
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
634
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
635
  const SentencePieceText_SentencePiece& this_ = static_cast<const SentencePieceText_SentencePiece&>(base);
636
#else   // PROTOBUF_CUSTOM_VTABLE
637
::uint8_t* PROTOBUF_NONNULL SentencePieceText_SentencePiece::_InternalSerialize(
638
    ::uint8_t* PROTOBUF_NONNULL target,
639
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
640
0
  const SentencePieceText_SentencePiece& this_ = *this;
641
0
#endif  // PROTOBUF_CUSTOM_VTABLE
642
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
643
    this_.CheckHasBitConsistency();
644
  }
645
  // @@protoc_insertion_point(serialize_to_array_start:sentencepiece.SentencePieceText.SentencePiece)
646
0
  ::uint32_t cached_has_bits = 0;
647
0
  (void)cached_has_bits;
648
649
0
  cached_has_bits = this_._impl_._has_bits_[0];
650
  // optional string piece = 1;
651
0
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
652
0
    const ::std::string& _s = this_._internal_piece();
653
0
    target = stream->WriteStringMaybeAliased(1, _s, target);
654
0
  }
655
656
  // optional uint32 id = 2;
657
0
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
658
0
    target = stream->EnsureSpace(target);
659
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
660
0
        2, this_._internal_id(), target);
661
0
  }
662
663
  // optional string surface = 3;
664
0
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
665
0
    const ::std::string& _s = this_._internal_surface();
666
0
    target = stream->WriteStringMaybeAliased(3, _s, target);
667
0
  }
668
669
  // optional uint32 begin = 4;
670
0
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
671
0
    target = stream->EnsureSpace(target);
672
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
673
0
        4, this_._internal_begin(), target);
674
0
  }
675
676
  // optional uint32 end = 5;
677
0
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
678
0
    target = stream->EnsureSpace(target);
679
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
680
0
        5, this_._internal_end(), target);
681
0
  }
682
683
  // All extensions.
684
0
  target = this_._impl_._extensions_._InternalSerializeAll(&default_instance(),
685
0
                                                    target, stream);
686
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
687
0
    target = stream->WriteRaw(
688
0
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
689
0
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
690
0
  }
691
  // @@protoc_insertion_point(serialize_to_array_end:sentencepiece.SentencePieceText.SentencePiece)
692
0
  return target;
693
0
}
694
695
#if defined(PROTOBUF_CUSTOM_VTABLE)
696
::size_t SentencePieceText_SentencePiece::ByteSizeLong(const MessageLite& base) {
697
  const SentencePieceText_SentencePiece& this_ = static_cast<const SentencePieceText_SentencePiece&>(base);
698
#else   // PROTOBUF_CUSTOM_VTABLE
699
0
::size_t SentencePieceText_SentencePiece::ByteSizeLong() const {
700
0
  const SentencePieceText_SentencePiece& this_ = *this;
701
0
#endif  // PROTOBUF_CUSTOM_VTABLE
702
  // @@protoc_insertion_point(message_byte_size_start:sentencepiece.SentencePieceText.SentencePiece)
703
0
  ::size_t total_size = 0;
704
0
  total_size += this_._impl_._extensions_.ByteSize();
705
706
0
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
707
708
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
709
0
  cached_has_bits = this_._impl_._has_bits_[0];
710
0
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
711
    // optional string piece = 1;
712
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
713
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
714
0
                                      this_._internal_piece());
715
0
    }
716
    // optional string surface = 3;
717
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
718
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
719
0
                                      this_._internal_surface());
720
0
    }
721
    // optional uint32 id = 2;
722
0
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
723
0
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
724
0
          this_._internal_id());
725
0
    }
726
    // optional uint32 begin = 4;
727
0
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
728
0
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
729
0
          this_._internal_begin());
730
0
    }
731
    // optional uint32 end = 5;
732
0
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
733
0
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
734
0
          this_._internal_end());
735
0
    }
736
0
  }
737
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
738
0
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
739
0
  }
740
0
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
741
0
  return total_size;
742
0
}
743
744
void SentencePieceText_SentencePiece::MergeImpl(::google::protobuf::MessageLite& to_msg,
745
0
                      const ::google::protobuf::MessageLite& from_msg) {
746
0
   auto* const _this = static_cast<SentencePieceText_SentencePiece*>(&to_msg);
747
0
  auto& from = static_cast<const SentencePieceText_SentencePiece&>(from_msg);
748
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
749
    from.CheckHasBitConsistency();
750
  }
751
0
  ::google::protobuf::Arena* arena = _this->GetArena();
752
  // @@protoc_insertion_point(class_specific_merge_from_start:sentencepiece.SentencePieceText.SentencePiece)
753
0
  ABSL_DCHECK_NE(&from, _this);
754
0
  ::uint32_t cached_has_bits = 0;
755
0
  (void)cached_has_bits;
756
757
0
  cached_has_bits = from._impl_._has_bits_[0];
758
0
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
759
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
760
0
      _this->_internal_set_piece(from._internal_piece());
761
0
    }
762
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
763
0
      _this->_internal_set_surface(from._internal_surface());
764
0
    }
765
0
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
766
0
      _this->_impl_.id_ = from._impl_.id_;
767
0
    }
768
0
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
769
0
      _this->_impl_.begin_ = from._impl_.begin_;
770
0
    }
771
0
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
772
0
      _this->_impl_.end_ = from._impl_.end_;
773
0
    }
774
0
  }
775
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
776
0
  _this->_impl_._extensions_.MergeFrom(arena, &default_instance(),
777
0
                                from._impl_._extensions_, from.GetArena());
778
0
  _this->_internal_metadata_.MergeFrom<::std::string>(
779
0
      from._internal_metadata_);
780
0
}
781
782
0
void SentencePieceText_SentencePiece::CopyFrom(const SentencePieceText_SentencePiece& from) {
783
  // @@protoc_insertion_point(class_specific_copy_from_start:sentencepiece.SentencePieceText.SentencePiece)
784
0
  if (&from == this) return;
785
0
  Clear();
786
0
  MergeFrom(from);
787
0
}
788
789
PROTOBUF_NOINLINE bool SentencePieceText_SentencePiece::IsInitializedImpl(
790
0
    const MessageLite& msg) {
791
0
  auto& this_ = static_cast<const SentencePieceText_SentencePiece&>(msg);
792
0
  if (!this_._impl_._extensions_.IsInitialized(this_.GetArena(),
793
0
                                        &default_instance())) {
794
0
    return false;
795
0
  }
796
0
  return true;
797
0
}
798
799
0
void SentencePieceText_SentencePiece::InternalSwap(SentencePieceText_SentencePiece* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
800
0
  using ::std::swap;
801
0
  _impl_._extensions_.InternalSwap(&other->_impl_._extensions_);
802
0
  auto* arena = GetArena();
803
0
  ABSL_DCHECK_EQ(arena, other->GetArena());
804
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
805
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
806
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.piece_, &other->_impl_.piece_, arena);
807
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.surface_, &other->_impl_.surface_, arena);
808
0
  ::google::protobuf::internal::memswap<
809
0
      PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.end_)
810
0
      + sizeof(SentencePieceText_SentencePiece::_impl_.end_)
811
0
      - PROTOBUF_FIELD_OFFSET(SentencePieceText_SentencePiece, _impl_.id_)>(
812
0
          reinterpret_cast<char*>(&_impl_.id_),
813
0
          reinterpret_cast<char*>(&other->_impl_.id_));
814
0
}
815
816
// ===================================================================
817
818
SentencePieceText::SentencePieceText(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
819
#if defined(PROTOBUF_CUSTOM_VTABLE)
820
    : Super_(arena, SentencePieceText_get_class_data()) {
821
#else   // PROTOBUF_CUSTOM_VTABLE
822
17.6k
    : Super_(arena) {
823
17.6k
#endif  // PROTOBUF_CUSTOM_VTABLE
824
17.6k
  SharedCtor(arena);
825
  // @@protoc_insertion_point(arena_constructor:sentencepiece.SentencePieceText)
826
17.6k
}
827
PROTOBUF_NDEBUG_INLINE SentencePieceText::Impl_::Impl_(
828
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
829
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
830
    [[maybe_unused]] const ::sentencepiece::SentencePieceText& from_msg)
831
0
      : _extensions_ {}
832
        ,
833
0
        _has_bits_{from._has_bits_},
834
0
        pieces_ {
835
0
          visibility, ::_pbi::InternalMetadataOffset::Build<
836
0
              ::sentencepiece::SentencePieceText,
837
0
              PROTOBUF_FIELD_OFFSET(::sentencepiece::SentencePieceText, _impl_.pieces_)>()
838
0
          , arena, from.pieces_
839
0
        }
840
        ,
841
0
        text_(arena, from.text_) {}
842
843
SentencePieceText::SentencePieceText(
844
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
845
    const SentencePieceText& from)
846
#if defined(PROTOBUF_CUSTOM_VTABLE)
847
    : Super_(arena, SentencePieceText_get_class_data()) {
848
849
#else   // PROTOBUF_CUSTOM_VTABLE
850
0
    : Super_(arena) {
851
0
#endif  // PROTOBUF_CUSTOM_VTABLE
852
0
  SentencePieceText* const _this = this;
853
0
  (void)_this;
854
0
  _internal_metadata_.MergeFrom<::std::string>(
855
0
      from._internal_metadata_);
856
0
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
857
0
  _impl_._extensions_.MergeFrom(arena, this, from._impl_._extensions_,
858
0
                                from.GetArena());
859
0
  _impl_.score_ = from._impl_.score_;
860
861
  // @@protoc_insertion_point(copy_constructor:sentencepiece.SentencePieceText)
862
0
}
863
PROTOBUF_NDEBUG_INLINE SentencePieceText::Impl_::Impl_(
864
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
865
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
866
17.6k
      : _extensions_ {}
867
        ,
868
17.6k
        pieces_ { visibility, ::_pbi::InternalMetadataOffset::Build<
869
17.6k
            ::sentencepiece::SentencePieceText,
870
17.6k
            PROTOBUF_FIELD_OFFSET(::sentencepiece::SentencePieceText, _impl_.pieces_)>()
871
17.6k
         }
872
        ,
873
17.6k
        text_(arena) {}
874
875
17.6k
inline void SentencePieceText::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
876
17.6k
  new (&_impl_) Impl_(internal_visibility(), arena);
877
17.6k
  _impl_.score_ = {};
878
17.6k
}
879
0
SentencePieceText::~SentencePieceText() {
880
  // @@protoc_insertion_point(destructor:sentencepiece.SentencePieceText)
881
0
  SharedDtor(*this);
882
0
}
883
0
inline void SentencePieceText::SharedDtor(MessageLite& self) {
884
0
  SentencePieceText& this_ = static_cast<SentencePieceText&>(self);
885
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
886
    this_.CheckHasBitConsistency();
887
  }
888
0
  this_._internal_metadata_.Delete<::std::string>();
889
0
  ABSL_DCHECK(this_.GetArena() == nullptr);
890
0
  this_._impl_.text_.Destroy();
891
0
  this_._impl_.~Impl_();
892
0
}
893
894
#ifndef PROTOBUF_MESSAGE_GLOBALS
895
PROTOBUF_CONSTINIT
896
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
897
const ::google::protobuf::internal::ClassDataLite SentencePieceText_class_data_ =
898
    SentencePieceText::InternalGenerateClassData_(SentencePieceText_globals_._default);
899
900
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
901
0
SentencePieceText::GetClassData() const {
902
0
  return SentencePieceText_class_data_.base();
903
0
}
904
#else
905
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
906
SentencePieceText::GetClassData() const {
907
  return SentencePieceText_globals_.GetClassData();
908
}
909
#endif  // !PROTOBUF_MESSAGE_GLOBALS
910
#ifndef PROTOBUF_MESSAGE_GLOBALS
911
PROTOBUF_CONSTINIT
912
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SentencePieceText::ParseTableT_
913
    SentencePieceText::_table_ =
914
        SentencePieceText::InternalGenerateParseTable_(SentencePieceText_class_data_.base());
915
#endif  // !PROTOBUF_MESSAGE_GLOBALS
916
13.1k
PROTOBUF_NOINLINE void SentencePieceText::Clear() {
917
13.1k
  auto& this_ [[maybe_unused]] = *this;
918
  // @@protoc_insertion_point(message_clear_start:sentencepiece.SentencePieceText)
919
13.1k
  ::google::protobuf::internal::TSanWrite(&_impl_);
920
13.1k
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
921
922
13.1k
  _impl_._extensions_.Clear();
923
13.1k
  cached_has_bits = this_._impl_._has_bits_[0];
924
13.1k
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
925
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
926
0
      _impl_.pieces_.Clear();
927
0
    }
928
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
929
0
      this_._impl_.text_.ClearNonDefaultToEmpty();
930
0
    }
931
0
  }
932
13.1k
  this_._impl_.score_ = 0;
933
13.1k
  _impl_._has_bits_.Clear();
934
13.1k
  _internal_metadata_.Clear<::std::string>();
935
13.1k
}
936
937
#if defined(PROTOBUF_CUSTOM_VTABLE)
938
::uint8_t* PROTOBUF_NONNULL SentencePieceText::_InternalSerialize(
939
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
940
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
941
  const SentencePieceText& this_ = static_cast<const SentencePieceText&>(base);
942
#else   // PROTOBUF_CUSTOM_VTABLE
943
::uint8_t* PROTOBUF_NONNULL SentencePieceText::_InternalSerialize(
944
    ::uint8_t* PROTOBUF_NONNULL target,
945
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
946
0
  const SentencePieceText& this_ = *this;
947
0
#endif  // PROTOBUF_CUSTOM_VTABLE
948
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
949
    this_.CheckHasBitConsistency();
950
  }
951
  // @@protoc_insertion_point(serialize_to_array_start:sentencepiece.SentencePieceText)
952
0
  ::uint32_t cached_has_bits = 0;
953
0
  (void)cached_has_bits;
954
955
0
  cached_has_bits = this_._impl_._has_bits_[0];
956
  // optional string text = 1;
957
0
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
958
0
    const ::std::string& _s = this_._internal_text();
959
0
    target = stream->WriteStringMaybeAliased(1, _s, target);
960
0
  }
961
962
  // repeated .sentencepiece.SentencePieceText.SentencePiece pieces = 2;
963
0
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
964
0
    for (unsigned i = 0, n = static_cast<unsigned>(
965
0
                             this_._internal_pieces_size());
966
0
         i < n; i++) {
967
0
      const auto& repfield = this_._internal_pieces().Get(i);
968
0
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
969
0
          2, repfield, repfield.GetCachedSize(), target,
970
0
          stream);
971
0
    }
972
0
  }
973
974
  // optional float score = 3;
975
0
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
976
0
    target = stream->EnsureSpace(target);
977
0
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
978
0
        3, this_._internal_score(), target);
979
0
  }
980
981
  // All extensions.
982
0
  target = this_._impl_._extensions_._InternalSerializeAll(&default_instance(),
983
0
                                                    target, stream);
984
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
985
0
    target = stream->WriteRaw(
986
0
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
987
0
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
988
0
  }
989
  // @@protoc_insertion_point(serialize_to_array_end:sentencepiece.SentencePieceText)
990
0
  return target;
991
0
}
992
993
#if defined(PROTOBUF_CUSTOM_VTABLE)
994
::size_t SentencePieceText::ByteSizeLong(const MessageLite& base) {
995
  const SentencePieceText& this_ = static_cast<const SentencePieceText&>(base);
996
#else   // PROTOBUF_CUSTOM_VTABLE
997
0
::size_t SentencePieceText::ByteSizeLong() const {
998
0
  const SentencePieceText& this_ = *this;
999
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1000
  // @@protoc_insertion_point(message_byte_size_start:sentencepiece.SentencePieceText)
1001
0
  ::size_t total_size = 0;
1002
0
  total_size += this_._impl_._extensions_.ByteSize();
1003
1004
0
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
1005
1006
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1007
0
  cached_has_bits = this_._impl_._has_bits_[0];
1008
0
  total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 5;
1009
0
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1010
    // repeated .sentencepiece.SentencePieceText.SentencePiece pieces = 2;
1011
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1012
0
      total_size += 1UL * this_._internal_pieces_size();
1013
0
      for (const auto& msg : this_._internal_pieces()) {
1014
0
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1015
0
      }
1016
0
    }
1017
    // optional string text = 1;
1018
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1019
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1020
0
                                      this_._internal_text());
1021
0
    }
1022
0
  }
1023
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1024
0
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
1025
0
  }
1026
0
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
1027
0
  return total_size;
1028
0
}
1029
1030
void SentencePieceText::MergeImpl(::google::protobuf::MessageLite& to_msg,
1031
0
                      const ::google::protobuf::MessageLite& from_msg) {
1032
0
   auto* const _this = static_cast<SentencePieceText*>(&to_msg);
1033
0
  auto& from = static_cast<const SentencePieceText&>(from_msg);
1034
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1035
    from.CheckHasBitConsistency();
1036
  }
1037
0
  ::google::protobuf::Arena* arena = _this->GetArena();
1038
  // @@protoc_insertion_point(class_specific_merge_from_start:sentencepiece.SentencePieceText)
1039
0
  ABSL_DCHECK_NE(&from, _this);
1040
0
  ::uint32_t cached_has_bits = 0;
1041
0
  (void)cached_has_bits;
1042
1043
0
  cached_has_bits = from._impl_._has_bits_[0];
1044
0
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1045
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1046
0
      _this->_internal_mutable_pieces()->InternalMergeFromWithArena(
1047
0
          ::google::protobuf::MessageLite::internal_visibility(), arena,
1048
0
          from._internal_pieces());
1049
0
    }
1050
0
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1051
0
      _this->_internal_set_text(from._internal_text());
1052
0
    }
1053
0
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1054
0
      _this->_impl_.score_ = from._impl_.score_;
1055
0
    }
1056
0
  }
1057
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
1058
0
  _this->_impl_._extensions_.MergeFrom(arena, &default_instance(),
1059
0
                                from._impl_._extensions_, from.GetArena());
1060
0
  _this->_internal_metadata_.MergeFrom<::std::string>(
1061
0
      from._internal_metadata_);
1062
0
}
1063
1064
0
void SentencePieceText::CopyFrom(const SentencePieceText& from) {
1065
  // @@protoc_insertion_point(class_specific_copy_from_start:sentencepiece.SentencePieceText)
1066
0
  if (&from == this) return;
1067
0
  Clear();
1068
0
  MergeFrom(from);
1069
0
}
1070
1071
PROTOBUF_NOINLINE bool SentencePieceText::IsInitializedImpl(
1072
0
    const MessageLite& msg) {
1073
0
  auto& this_ = static_cast<const SentencePieceText&>(msg);
1074
0
  if (!this_._impl_._extensions_.IsInitialized(this_.GetArena(),
1075
0
                                        &default_instance())) {
1076
0
    return false;
1077
0
  }
1078
0
  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_pieces()))
1079
0
    return false;
1080
0
  return true;
1081
0
}
1082
1083
0
void SentencePieceText::InternalSwap(SentencePieceText* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1084
0
  using ::std::swap;
1085
0
  _impl_._extensions_.InternalSwap(&other->_impl_._extensions_);
1086
0
  auto* arena = GetArena();
1087
0
  ABSL_DCHECK_EQ(arena, other->GetArena());
1088
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1089
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1090
0
  _impl_.pieces_.InternalSwap(&other->_impl_.pieces_);
1091
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_, &other->_impl_.text_, arena);
1092
0
  swap(_impl_.score_, other->_impl_.score_);
1093
0
}
1094
1095
// ===================================================================
1096
1097
NBestSentencePieceText::NBestSentencePieceText(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1098
#if defined(PROTOBUF_CUSTOM_VTABLE)
1099
    : Super_(arena, NBestSentencePieceText_get_class_data()) {
1100
#else   // PROTOBUF_CUSTOM_VTABLE
1101
6.56k
    : Super_(arena) {
1102
6.56k
#endif  // PROTOBUF_CUSTOM_VTABLE
1103
6.56k
  SharedCtor(arena);
1104
  // @@protoc_insertion_point(arena_constructor:sentencepiece.NBestSentencePieceText)
1105
6.56k
}
1106
PROTOBUF_NDEBUG_INLINE NBestSentencePieceText::Impl_::Impl_(
1107
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1108
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1109
    [[maybe_unused]] const ::sentencepiece::NBestSentencePieceText& from_msg)
1110
0
      : _has_bits_{from._has_bits_},
1111
0
        nbests_ {
1112
0
          visibility, ::_pbi::InternalMetadataOffset::Build<
1113
0
              ::sentencepiece::NBestSentencePieceText,
1114
0
              PROTOBUF_FIELD_OFFSET(::sentencepiece::NBestSentencePieceText, _impl_.nbests_)>()
1115
0
          , arena, from.nbests_
1116
0
        }
1117
0
     {}
1118
1119
NBestSentencePieceText::NBestSentencePieceText(
1120
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1121
    const NBestSentencePieceText& from)
1122
#if defined(PROTOBUF_CUSTOM_VTABLE)
1123
    : Super_(arena, NBestSentencePieceText_get_class_data()) {
1124
1125
#else   // PROTOBUF_CUSTOM_VTABLE
1126
0
    : Super_(arena) {
1127
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1128
0
  NBestSentencePieceText* const _this = this;
1129
0
  (void)_this;
1130
0
  _internal_metadata_.MergeFrom<::std::string>(
1131
0
      from._internal_metadata_);
1132
0
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1133
1134
  // @@protoc_insertion_point(copy_constructor:sentencepiece.NBestSentencePieceText)
1135
0
}
1136
PROTOBUF_NDEBUG_INLINE NBestSentencePieceText::Impl_::Impl_(
1137
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1138
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1139
6.56k
      : nbests_ { visibility, ::_pbi::InternalMetadataOffset::Build<
1140
6.56k
            ::sentencepiece::NBestSentencePieceText,
1141
6.56k
            PROTOBUF_FIELD_OFFSET(::sentencepiece::NBestSentencePieceText, _impl_.nbests_)>()
1142
6.56k
         }
1143
6.56k
     {}
1144
1145
6.56k
inline void NBestSentencePieceText::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1146
6.56k
  new (&_impl_) Impl_(internal_visibility(), arena);
1147
6.56k
}
1148
0
NBestSentencePieceText::~NBestSentencePieceText() {
1149
  // @@protoc_insertion_point(destructor:sentencepiece.NBestSentencePieceText)
1150
0
  SharedDtor(*this);
1151
0
}
1152
0
inline void NBestSentencePieceText::SharedDtor(MessageLite& self) {
1153
0
  NBestSentencePieceText& this_ = static_cast<NBestSentencePieceText&>(self);
1154
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1155
    this_.CheckHasBitConsistency();
1156
  }
1157
0
  this_._internal_metadata_.Delete<::std::string>();
1158
0
  ABSL_DCHECK(this_.GetArena() == nullptr);
1159
0
  this_._impl_.~Impl_();
1160
0
}
1161
1162
#ifndef PROTOBUF_MESSAGE_GLOBALS
1163
PROTOBUF_CONSTINIT
1164
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1165
const ::google::protobuf::internal::ClassDataLite NBestSentencePieceText_class_data_ =
1166
    NBestSentencePieceText::InternalGenerateClassData_(NBestSentencePieceText_globals_._default);
1167
1168
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1169
0
NBestSentencePieceText::GetClassData() const {
1170
0
  return NBestSentencePieceText_class_data_.base();
1171
0
}
1172
#else
1173
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1174
NBestSentencePieceText::GetClassData() const {
1175
  return NBestSentencePieceText_globals_.GetClassData();
1176
}
1177
#endif  // !PROTOBUF_MESSAGE_GLOBALS
1178
#ifndef PROTOBUF_MESSAGE_GLOBALS
1179
PROTOBUF_CONSTINIT
1180
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NBestSentencePieceText::ParseTableT_
1181
    NBestSentencePieceText::_table_ =
1182
        NBestSentencePieceText::InternalGenerateParseTable_(NBestSentencePieceText_class_data_.base());
1183
#endif  // !PROTOBUF_MESSAGE_GLOBALS
1184
6.56k
PROTOBUF_NOINLINE void NBestSentencePieceText::Clear() {
1185
6.56k
  auto& this_ [[maybe_unused]] = *this;
1186
  // @@protoc_insertion_point(message_clear_start:sentencepiece.NBestSentencePieceText)
1187
6.56k
  ::google::protobuf::internal::TSanWrite(&_impl_);
1188
6.56k
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
1189
1190
6.56k
  cached_has_bits = this_._impl_._has_bits_[0];
1191
6.56k
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1192
0
    _impl_.nbests_.Clear();
1193
0
  }
1194
6.56k
  _impl_._has_bits_.Clear();
1195
6.56k
  _internal_metadata_.Clear<::std::string>();
1196
6.56k
}
1197
1198
#if defined(PROTOBUF_CUSTOM_VTABLE)
1199
::uint8_t* PROTOBUF_NONNULL NBestSentencePieceText::_InternalSerialize(
1200
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1201
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1202
  const NBestSentencePieceText& this_ = static_cast<const NBestSentencePieceText&>(base);
1203
#else   // PROTOBUF_CUSTOM_VTABLE
1204
::uint8_t* PROTOBUF_NONNULL NBestSentencePieceText::_InternalSerialize(
1205
    ::uint8_t* PROTOBUF_NONNULL target,
1206
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1207
0
  const NBestSentencePieceText& this_ = *this;
1208
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1209
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1210
    this_.CheckHasBitConsistency();
1211
  }
1212
  // @@protoc_insertion_point(serialize_to_array_start:sentencepiece.NBestSentencePieceText)
1213
0
  ::uint32_t cached_has_bits = 0;
1214
0
  (void)cached_has_bits;
1215
1216
0
  cached_has_bits = this_._impl_._has_bits_[0];
1217
  // repeated .sentencepiece.SentencePieceText nbests = 1;
1218
0
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1219
0
    for (unsigned i = 0, n = static_cast<unsigned>(
1220
0
                             this_._internal_nbests_size());
1221
0
         i < n; i++) {
1222
0
      const auto& repfield = this_._internal_nbests().Get(i);
1223
0
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1224
0
          1, repfield, repfield.GetCachedSize(), target,
1225
0
          stream);
1226
0
    }
1227
0
  }
1228
1229
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1230
0
    target = stream->WriteRaw(
1231
0
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
1232
0
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
1233
0
  }
1234
  // @@protoc_insertion_point(serialize_to_array_end:sentencepiece.NBestSentencePieceText)
1235
0
  return target;
1236
0
}
1237
1238
#if defined(PROTOBUF_CUSTOM_VTABLE)
1239
::size_t NBestSentencePieceText::ByteSizeLong(const MessageLite& base) {
1240
  const NBestSentencePieceText& this_ = static_cast<const NBestSentencePieceText&>(base);
1241
#else   // PROTOBUF_CUSTOM_VTABLE
1242
0
::size_t NBestSentencePieceText::ByteSizeLong() const {
1243
0
  const NBestSentencePieceText& this_ = *this;
1244
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1245
  // @@protoc_insertion_point(message_byte_size_start:sentencepiece.NBestSentencePieceText)
1246
0
  ::size_t total_size = 0;
1247
1248
0
  ::uint32_t cached_has_bits [[maybe_unused]] = 0;
1249
1250
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1251
0
   {
1252
    // repeated .sentencepiece.SentencePieceText nbests = 1;
1253
0
    cached_has_bits = this_._impl_._has_bits_[0];
1254
0
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1255
0
      total_size += 1UL * this_._internal_nbests_size();
1256
0
      for (const auto& msg : this_._internal_nbests()) {
1257
0
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1258
0
      }
1259
0
    }
1260
0
  }
1261
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1262
0
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
1263
0
  }
1264
0
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
1265
0
  return total_size;
1266
0
}
1267
1268
void NBestSentencePieceText::MergeImpl(::google::protobuf::MessageLite& to_msg,
1269
0
                      const ::google::protobuf::MessageLite& from_msg) {
1270
0
   auto* const _this = static_cast<NBestSentencePieceText*>(&to_msg);
1271
0
  auto& from = static_cast<const NBestSentencePieceText&>(from_msg);
1272
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1273
    from.CheckHasBitConsistency();
1274
  }
1275
0
  ::google::protobuf::Arena* arena = _this->GetArena();
1276
  // @@protoc_insertion_point(class_specific_merge_from_start:sentencepiece.NBestSentencePieceText)
1277
0
  ABSL_DCHECK_NE(&from, _this);
1278
0
  ::uint32_t cached_has_bits = 0;
1279
0
  (void)cached_has_bits;
1280
1281
0
  cached_has_bits = from._impl_._has_bits_[0];
1282
0
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1283
0
    _this->_internal_mutable_nbests()->InternalMergeFromWithArena(
1284
0
        ::google::protobuf::MessageLite::internal_visibility(), arena,
1285
0
        from._internal_nbests());
1286
0
  }
1287
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
1288
0
  _this->_internal_metadata_.MergeFrom<::std::string>(
1289
0
      from._internal_metadata_);
1290
0
}
1291
1292
0
void NBestSentencePieceText::CopyFrom(const NBestSentencePieceText& from) {
1293
  // @@protoc_insertion_point(class_specific_copy_from_start:sentencepiece.NBestSentencePieceText)
1294
0
  if (&from == this) return;
1295
0
  Clear();
1296
0
  MergeFrom(from);
1297
0
}
1298
1299
PROTOBUF_NOINLINE bool NBestSentencePieceText::IsInitializedImpl(
1300
0
    const MessageLite& msg) {
1301
0
  auto& this_ = static_cast<const NBestSentencePieceText&>(msg);
1302
0
  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_nbests()))
1303
0
    return false;
1304
0
  return true;
1305
0
}
1306
1307
0
void NBestSentencePieceText::InternalSwap(NBestSentencePieceText* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1308
0
  using ::std::swap;
1309
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1310
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1311
0
  _impl_.nbests_.InternalSwap(&other->_impl_.nbests_);
1312
0
}
1313
1314
// @@protoc_insertion_point(namespace_scope)
1315
}  // namespace sentencepiece
1316
namespace google {
1317
namespace protobuf {
1318
}  // namespace protobuf
1319
}  // namespace google
1320
// @@protoc_insertion_point(global_scope)
1321
#include "google/protobuf/port_undef.inc"