// Generated by the protocol buffer compiler. DO NOT EDIT! // source: sentence.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_sentence_2eproto #define GOOGLE_PROTOBUF_INCLUDED_sentence_2eproto #include #include #include #if PROTOBUF_VERSION < 3019000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3019006 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_sentence_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_sentence_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; namespace chrome_lang_id { class Sentence; struct SentenceDefaultTypeInternal; extern SentenceDefaultTypeInternal _Sentence_default_instance_; class Token; struct TokenDefaultTypeInternal; extern TokenDefaultTypeInternal _Token_default_instance_; } // namespace chrome_lang_id PROTOBUF_NAMESPACE_OPEN template<> ::chrome_lang_id::Sentence* Arena::CreateMaybeMessage<::chrome_lang_id::Sentence>(Arena*); template<> ::chrome_lang_id::Token* Arena::CreateMaybeMessage<::chrome_lang_id::Token>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace chrome_lang_id { enum Token_BreakLevel : int { Token_BreakLevel_NO_BREAK = 0, Token_BreakLevel_SPACE_BREAK = 1, Token_BreakLevel_LINE_BREAK = 2, Token_BreakLevel_SENTENCE_BREAK = 3 }; bool Token_BreakLevel_IsValid(int value); constexpr Token_BreakLevel Token_BreakLevel_BreakLevel_MIN = Token_BreakLevel_NO_BREAK; constexpr Token_BreakLevel Token_BreakLevel_BreakLevel_MAX = Token_BreakLevel_SENTENCE_BREAK; constexpr int Token_BreakLevel_BreakLevel_ARRAYSIZE = Token_BreakLevel_BreakLevel_MAX + 1; const std::string& Token_BreakLevel_Name(Token_BreakLevel value); template inline const std::string& Token_BreakLevel_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Token_BreakLevel_Name."); return Token_BreakLevel_Name(static_cast(enum_t_value)); } bool Token_BreakLevel_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Token_BreakLevel* value); // =================================================================== class Sentence final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:chrome_lang_id.Sentence) */ { public: inline Sentence() : Sentence(nullptr) {} ~Sentence() override; explicit constexpr Sentence(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Sentence(const Sentence& from); Sentence(Sentence&& from) noexcept : Sentence() { *this = ::std::move(from); } inline Sentence& operator=(const Sentence& from) { CopyFrom(from); return *this; } inline Sentence& operator=(Sentence&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const std::string& unknown_fields() const { return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); } inline std::string* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const Sentence& default_instance() { return *internal_default_instance(); } static inline const Sentence* internal_default_instance() { return reinterpret_cast( &_Sentence_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Sentence& a, Sentence& b) { a.Swap(&b); } inline void Swap(Sentence* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Sentence* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Sentence* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const Sentence& from); void MergeFrom(const Sentence& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Sentence* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "chrome_lang_id.Sentence"; } protected: explicit Sentence(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kTokenFieldNumber = 3, kIdFieldNumber = 1, kTextFieldNumber = 2, }; // repeated .chrome_lang_id.Token token = 3; int token_size() const; private: int _internal_token_size() const; public: void clear_token(); ::chrome_lang_id::Token* mutable_token(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chrome_lang_id::Token >* mutable_token(); private: const ::chrome_lang_id::Token& _internal_token(int index) const; ::chrome_lang_id::Token* _internal_add_token(); public: const ::chrome_lang_id::Token& token(int index) const; ::chrome_lang_id::Token* add_token(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chrome_lang_id::Token >& token() const; // optional string id = 1; bool has_id() const; private: bool _internal_has_id() const; public: void clear_id(); const std::string& id() const; template void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); public: // optional string text = 2; bool has_text() const; private: bool _internal_has_text() const; public: void clear_text(); const std::string& text() const; template void set_text(ArgT0&& arg0, ArgT... args); std::string* mutable_text(); PROTOBUF_NODISCARD std::string* release_text(); void set_allocated_text(std::string* text); private: const std::string& _internal_text() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_text(const std::string& value); std::string* _internal_mutable_text(); public: template inline bool HasExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _extensions_.Has(id.number()); } template inline void ClearExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { _extensions_.ClearExtension(id.number()); } template inline int ExtensionSize( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _extensions_.ExtensionSize(id.number()); } template inline typename _proto_TypeTraits::Singular::ConstType GetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _proto_TypeTraits::Get(id.number(), _extensions_, id.default_value()); } template inline typename _proto_TypeTraits::Singular::MutableType MutableExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::Mutable(id.number(), _field_type, &_extensions_); } template inline void SetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::ConstType value) { _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_); } template inline void SetAllocatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::MutableType value) { _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_extensions_); } template inline void UnsafeArenaSetAllocatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::MutableType value) { _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_extensions_); } template PROTOBUF_NODISCARD inline typename _proto_TypeTraits::Singular::MutableType ReleaseExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::Release(id.number(), _field_type, &_extensions_); } template inline typename _proto_TypeTraits::Singular::MutableType UnsafeArenaReleaseExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_extensions_); } template inline typename _proto_TypeTraits::Repeated::ConstType GetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, int index) const { return _proto_TypeTraits::Get(id.number(), _extensions_, index); } template inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, int index) { return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_); } template inline void SetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, int index, typename _proto_TypeTraits::Repeated::ConstType value) { _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); } template inline typename _proto_TypeTraits::Repeated::MutableType AddExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { typename _proto_TypeTraits::Repeated::MutableType to_add = _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_); return to_add; } template inline void AddExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Repeated::ConstType value) { _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_extensions_); } template inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType& GetRepeatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _proto_TypeTraits::GetRepeated(id.number(), _extensions_); } template inline typename _proto_TypeTraits::Repeated::RepeatedFieldType* MutableRepeatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Sentence, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_extensions_); } // @@protoc_insertion_point(class_scope:chrome_lang_id.Sentence) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chrome_lang_id::Token > token_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; friend struct ::TableStruct_sentence_2eproto; }; // ------------------------------------------------------------------- class Token final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:chrome_lang_id.Token) */ { public: inline Token() : Token(nullptr) {} ~Token() override; explicit constexpr Token(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Token(const Token& from); Token(Token&& from) noexcept : Token() { *this = ::std::move(from); } inline Token& operator=(const Token& from) { CopyFrom(from); return *this; } inline Token& operator=(Token&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const std::string& unknown_fields() const { return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); } inline std::string* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const Token& default_instance() { return *internal_default_instance(); } static inline const Token* internal_default_instance() { return reinterpret_cast( &_Token_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Token& a, Token& b) { a.Swap(&b); } inline void Swap(Token* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Token* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Token* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const Token& from); void MergeFrom(const Token& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Token* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "chrome_lang_id.Token"; } protected: explicit Token(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef Token_BreakLevel BreakLevel; static constexpr BreakLevel NO_BREAK = Token_BreakLevel_NO_BREAK; static constexpr BreakLevel SPACE_BREAK = Token_BreakLevel_SPACE_BREAK; static constexpr BreakLevel LINE_BREAK = Token_BreakLevel_LINE_BREAK; static constexpr BreakLevel SENTENCE_BREAK = Token_BreakLevel_SENTENCE_BREAK; static inline bool BreakLevel_IsValid(int value) { return Token_BreakLevel_IsValid(value); } static constexpr BreakLevel BreakLevel_MIN = Token_BreakLevel_BreakLevel_MIN; static constexpr BreakLevel BreakLevel_MAX = Token_BreakLevel_BreakLevel_MAX; static constexpr int BreakLevel_ARRAYSIZE = Token_BreakLevel_BreakLevel_ARRAYSIZE; template static inline const std::string& BreakLevel_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function BreakLevel_Name."); return Token_BreakLevel_Name(enum_t_value); } static inline bool BreakLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BreakLevel* value) { return Token_BreakLevel_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kWordFieldNumber = 1, kTagFieldNumber = 5, kCategoryFieldNumber = 6, kLabelFieldNumber = 7, kStartFieldNumber = 2, kEndFieldNumber = 3, kHeadFieldNumber = 4, kBreakLevelFieldNumber = 8, }; // required string word = 1; bool has_word() const; private: bool _internal_has_word() const; public: void clear_word(); const std::string& word() const; template void set_word(ArgT0&& arg0, ArgT... args); std::string* mutable_word(); PROTOBUF_NODISCARD std::string* release_word(); void set_allocated_word(std::string* word); private: const std::string& _internal_word() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_word(const std::string& value); std::string* _internal_mutable_word(); public: // optional string tag = 5; bool has_tag() const; private: bool _internal_has_tag() const; public: void clear_tag(); const std::string& tag() const; template void set_tag(ArgT0&& arg0, ArgT... args); std::string* mutable_tag(); PROTOBUF_NODISCARD std::string* release_tag(); void set_allocated_tag(std::string* tag); private: const std::string& _internal_tag() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value); std::string* _internal_mutable_tag(); public: // optional string category = 6; bool has_category() const; private: bool _internal_has_category() const; public: void clear_category(); const std::string& category() const; template void set_category(ArgT0&& arg0, ArgT... args); std::string* mutable_category(); PROTOBUF_NODISCARD std::string* release_category(); void set_allocated_category(std::string* category); private: const std::string& _internal_category() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_category(const std::string& value); std::string* _internal_mutable_category(); public: // optional string label = 7; bool has_label() const; private: bool _internal_has_label() const; public: void clear_label(); const std::string& label() const; template void set_label(ArgT0&& arg0, ArgT... args); std::string* mutable_label(); PROTOBUF_NODISCARD std::string* release_label(); void set_allocated_label(std::string* label); private: const std::string& _internal_label() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); std::string* _internal_mutable_label(); public: // required int32 start = 2; bool has_start() const; private: bool _internal_has_start() const; public: void clear_start(); int32_t start() const; void set_start(int32_t value); private: int32_t _internal_start() const; void _internal_set_start(int32_t value); public: // required int32 end = 3; bool has_end() const; private: bool _internal_has_end() const; public: void clear_end(); int32_t end() const; void set_end(int32_t value); private: int32_t _internal_end() const; void _internal_set_end(int32_t value); public: // optional int32 head = 4 [default = -1]; bool has_head() const; private: bool _internal_has_head() const; public: void clear_head(); int32_t head() const; void set_head(int32_t value); private: int32_t _internal_head() const; void _internal_set_head(int32_t value); public: // optional .chrome_lang_id.Token.BreakLevel break_level = 8 [default = SPACE_BREAK]; bool has_break_level() const; private: bool _internal_has_break_level() const; public: void clear_break_level(); ::chrome_lang_id::Token_BreakLevel break_level() const; void set_break_level(::chrome_lang_id::Token_BreakLevel value); private: ::chrome_lang_id::Token_BreakLevel _internal_break_level() const; void _internal_set_break_level(::chrome_lang_id::Token_BreakLevel value); public: template inline bool HasExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _extensions_.Has(id.number()); } template inline void ClearExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { _extensions_.ClearExtension(id.number()); } template inline int ExtensionSize( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _extensions_.ExtensionSize(id.number()); } template inline typename _proto_TypeTraits::Singular::ConstType GetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _proto_TypeTraits::Get(id.number(), _extensions_, id.default_value()); } template inline typename _proto_TypeTraits::Singular::MutableType MutableExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::Mutable(id.number(), _field_type, &_extensions_); } template inline void SetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::ConstType value) { _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_); } template inline void SetAllocatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::MutableType value) { _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_extensions_); } template inline void UnsafeArenaSetAllocatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Singular::MutableType value) { _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_extensions_); } template PROTOBUF_NODISCARD inline typename _proto_TypeTraits::Singular::MutableType ReleaseExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::Release(id.number(), _field_type, &_extensions_); } template inline typename _proto_TypeTraits::Singular::MutableType UnsafeArenaReleaseExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_extensions_); } template inline typename _proto_TypeTraits::Repeated::ConstType GetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, int index) const { return _proto_TypeTraits::Get(id.number(), _extensions_, index); } template inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, int index) { return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_); } template inline void SetExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, int index, typename _proto_TypeTraits::Repeated::ConstType value) { _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); } template inline typename _proto_TypeTraits::Repeated::MutableType AddExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { typename _proto_TypeTraits::Repeated::MutableType to_add = _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_); return to_add; } template inline void AddExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id, typename _proto_TypeTraits::Repeated::ConstType value) { _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_extensions_); } template inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType& GetRepeatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) const { return _proto_TypeTraits::GetRepeated(id.number(), _extensions_); } template inline typename _proto_TypeTraits::Repeated::RepeatedFieldType* MutableRepeatedExtension( const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< Token, _proto_TypeTraits, _field_type, _is_packed>& id) { return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_extensions_); } // @@protoc_insertion_point(class_scope:chrome_lang_id.Token) private: class _Internal; // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr word_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr category_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; int32_t start_; int32_t end_; int32_t head_; int break_level_; friend struct ::TableStruct_sentence_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Sentence // optional string id = 1; inline bool Sentence::_internal_has_id() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool Sentence::has_id() const { return _internal_has_id(); } inline void Sentence::clear_id() { id_.ClearToEmpty(); _has_bits_[0] &= ~0x00000001u; } inline const std::string& Sentence::id() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Sentence.id) return _internal_id(); } template inline PROTOBUF_ALWAYS_INLINE void Sentence::set_id(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000001u; id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Sentence.id) } inline std::string* Sentence::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Sentence.id) return _s; } inline const std::string& Sentence::_internal_id() const { return id_.Get(); } inline void Sentence::_internal_set_id(const std::string& value) { _has_bits_[0] |= 0x00000001u; id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Sentence::_internal_mutable_id() { _has_bits_[0] |= 0x00000001u; return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Sentence::release_id() { // @@protoc_insertion_point(field_release:chrome_lang_id.Sentence.id) if (!_internal_has_id()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; auto* p = id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Sentence::set_allocated_id(std::string* id) { if (id != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Sentence.id) } // optional string text = 2; inline bool Sentence::_internal_has_text() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool Sentence::has_text() const { return _internal_has_text(); } inline void Sentence::clear_text() { text_.ClearToEmpty(); _has_bits_[0] &= ~0x00000002u; } inline const std::string& Sentence::text() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Sentence.text) return _internal_text(); } template inline PROTOBUF_ALWAYS_INLINE void Sentence::set_text(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000002u; text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Sentence.text) } inline std::string* Sentence::mutable_text() { std::string* _s = _internal_mutable_text(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Sentence.text) return _s; } inline const std::string& Sentence::_internal_text() const { return text_.Get(); } inline void Sentence::_internal_set_text(const std::string& value) { _has_bits_[0] |= 0x00000002u; text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Sentence::_internal_mutable_text() { _has_bits_[0] |= 0x00000002u; return text_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Sentence::release_text() { // @@protoc_insertion_point(field_release:chrome_lang_id.Sentence.text) if (!_internal_has_text()) { return nullptr; } _has_bits_[0] &= ~0x00000002u; auto* p = text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (text_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Sentence::set_allocated_text(std::string* text) { if (text != nullptr) { _has_bits_[0] |= 0x00000002u; } else { _has_bits_[0] &= ~0x00000002u; } text_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), text, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (text_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Sentence.text) } // repeated .chrome_lang_id.Token token = 3; inline int Sentence::_internal_token_size() const { return token_.size(); } inline int Sentence::token_size() const { return _internal_token_size(); } inline void Sentence::clear_token() { token_.Clear(); } inline ::chrome_lang_id::Token* Sentence::mutable_token(int index) { // @@protoc_insertion_point(field_mutable:chrome_lang_id.Sentence.token) return token_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chrome_lang_id::Token >* Sentence::mutable_token() { // @@protoc_insertion_point(field_mutable_list:chrome_lang_id.Sentence.token) return &token_; } inline const ::chrome_lang_id::Token& Sentence::_internal_token(int index) const { return token_.Get(index); } inline const ::chrome_lang_id::Token& Sentence::token(int index) const { // @@protoc_insertion_point(field_get:chrome_lang_id.Sentence.token) return _internal_token(index); } inline ::chrome_lang_id::Token* Sentence::_internal_add_token() { return token_.Add(); } inline ::chrome_lang_id::Token* Sentence::add_token() { ::chrome_lang_id::Token* _add = _internal_add_token(); // @@protoc_insertion_point(field_add:chrome_lang_id.Sentence.token) return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chrome_lang_id::Token >& Sentence::token() const { // @@protoc_insertion_point(field_list:chrome_lang_id.Sentence.token) return token_; } // ------------------------------------------------------------------- // Token // required string word = 1; inline bool Token::_internal_has_word() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool Token::has_word() const { return _internal_has_word(); } inline void Token::clear_word() { word_.ClearToEmpty(); _has_bits_[0] &= ~0x00000001u; } inline const std::string& Token::word() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.word) return _internal_word(); } template inline PROTOBUF_ALWAYS_INLINE void Token::set_word(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000001u; word_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.word) } inline std::string* Token::mutable_word() { std::string* _s = _internal_mutable_word(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Token.word) return _s; } inline const std::string& Token::_internal_word() const { return word_.Get(); } inline void Token::_internal_set_word(const std::string& value) { _has_bits_[0] |= 0x00000001u; word_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Token::_internal_mutable_word() { _has_bits_[0] |= 0x00000001u; return word_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Token::release_word() { // @@protoc_insertion_point(field_release:chrome_lang_id.Token.word) if (!_internal_has_word()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; auto* p = word_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (word_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { word_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Token::set_allocated_word(std::string* word) { if (word != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } word_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), word, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (word_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { word_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Token.word) } // required int32 start = 2; inline bool Token::_internal_has_start() const { bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } inline bool Token::has_start() const { return _internal_has_start(); } inline void Token::clear_start() { start_ = 0; _has_bits_[0] &= ~0x00000010u; } inline int32_t Token::_internal_start() const { return start_; } inline int32_t Token::start() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.start) return _internal_start(); } inline void Token::_internal_set_start(int32_t value) { _has_bits_[0] |= 0x00000010u; start_ = value; } inline void Token::set_start(int32_t value) { _internal_set_start(value); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.start) } // required int32 end = 3; inline bool Token::_internal_has_end() const { bool value = (_has_bits_[0] & 0x00000020u) != 0; return value; } inline bool Token::has_end() const { return _internal_has_end(); } inline void Token::clear_end() { end_ = 0; _has_bits_[0] &= ~0x00000020u; } inline int32_t Token::_internal_end() const { return end_; } inline int32_t Token::end() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.end) return _internal_end(); } inline void Token::_internal_set_end(int32_t value) { _has_bits_[0] |= 0x00000020u; end_ = value; } inline void Token::set_end(int32_t value) { _internal_set_end(value); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.end) } // optional int32 head = 4 [default = -1]; inline bool Token::_internal_has_head() const { bool value = (_has_bits_[0] & 0x00000040u) != 0; return value; } inline bool Token::has_head() const { return _internal_has_head(); } inline void Token::clear_head() { head_ = -1; _has_bits_[0] &= ~0x00000040u; } inline int32_t Token::_internal_head() const { return head_; } inline int32_t Token::head() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.head) return _internal_head(); } inline void Token::_internal_set_head(int32_t value) { _has_bits_[0] |= 0x00000040u; head_ = value; } inline void Token::set_head(int32_t value) { _internal_set_head(value); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.head) } // optional string tag = 5; inline bool Token::_internal_has_tag() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool Token::has_tag() const { return _internal_has_tag(); } inline void Token::clear_tag() { tag_.ClearToEmpty(); _has_bits_[0] &= ~0x00000002u; } inline const std::string& Token::tag() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.tag) return _internal_tag(); } template inline PROTOBUF_ALWAYS_INLINE void Token::set_tag(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000002u; tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.tag) } inline std::string* Token::mutable_tag() { std::string* _s = _internal_mutable_tag(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Token.tag) return _s; } inline const std::string& Token::_internal_tag() const { return tag_.Get(); } inline void Token::_internal_set_tag(const std::string& value) { _has_bits_[0] |= 0x00000002u; tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Token::_internal_mutable_tag() { _has_bits_[0] |= 0x00000002u; return tag_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Token::release_tag() { // @@protoc_insertion_point(field_release:chrome_lang_id.Token.tag) if (!_internal_has_tag()) { return nullptr; } _has_bits_[0] &= ~0x00000002u; auto* p = tag_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Token::set_allocated_tag(std::string* tag) { if (tag != nullptr) { _has_bits_[0] |= 0x00000002u; } else { _has_bits_[0] &= ~0x00000002u; } tag_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Token.tag) } // optional string category = 6; inline bool Token::_internal_has_category() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool Token::has_category() const { return _internal_has_category(); } inline void Token::clear_category() { category_.ClearToEmpty(); _has_bits_[0] &= ~0x00000004u; } inline const std::string& Token::category() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.category) return _internal_category(); } template inline PROTOBUF_ALWAYS_INLINE void Token::set_category(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000004u; category_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.category) } inline std::string* Token::mutable_category() { std::string* _s = _internal_mutable_category(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Token.category) return _s; } inline const std::string& Token::_internal_category() const { return category_.Get(); } inline void Token::_internal_set_category(const std::string& value) { _has_bits_[0] |= 0x00000004u; category_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Token::_internal_mutable_category() { _has_bits_[0] |= 0x00000004u; return category_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Token::release_category() { // @@protoc_insertion_point(field_release:chrome_lang_id.Token.category) if (!_internal_has_category()) { return nullptr; } _has_bits_[0] &= ~0x00000004u; auto* p = category_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (category_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { category_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Token::set_allocated_category(std::string* category) { if (category != nullptr) { _has_bits_[0] |= 0x00000004u; } else { _has_bits_[0] &= ~0x00000004u; } category_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), category, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (category_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { category_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Token.category) } // optional string label = 7; inline bool Token::_internal_has_label() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool Token::has_label() const { return _internal_has_label(); } inline void Token::clear_label() { label_.ClearToEmpty(); _has_bits_[0] &= ~0x00000008u; } inline const std::string& Token::label() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.label) return _internal_label(); } template inline PROTOBUF_ALWAYS_INLINE void Token::set_label(ArgT0&& arg0, ArgT... args) { _has_bits_[0] |= 0x00000008u; label_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.label) } inline std::string* Token::mutable_label() { std::string* _s = _internal_mutable_label(); // @@protoc_insertion_point(field_mutable:chrome_lang_id.Token.label) return _s; } inline const std::string& Token::_internal_label() const { return label_.Get(); } inline void Token::_internal_set_label(const std::string& value) { _has_bits_[0] |= 0x00000008u; label_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Token::_internal_mutable_label() { _has_bits_[0] |= 0x00000008u; return label_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Token::release_label() { // @@protoc_insertion_point(field_release:chrome_lang_id.Token.label) if (!_internal_has_label()) { return nullptr; } _has_bits_[0] &= ~0x00000008u; auto* p = label_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (label_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { label_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING return p; } inline void Token::set_allocated_label(std::string* label) { if (label != nullptr) { _has_bits_[0] |= 0x00000008u; } else { _has_bits_[0] &= ~0x00000008u; } label_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), label, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (label_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { label_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chrome_lang_id.Token.label) } // optional .chrome_lang_id.Token.BreakLevel break_level = 8 [default = SPACE_BREAK]; inline bool Token::_internal_has_break_level() const { bool value = (_has_bits_[0] & 0x00000080u) != 0; return value; } inline bool Token::has_break_level() const { return _internal_has_break_level(); } inline void Token::clear_break_level() { break_level_ = 1; _has_bits_[0] &= ~0x00000080u; } inline ::chrome_lang_id::Token_BreakLevel Token::_internal_break_level() const { return static_cast< ::chrome_lang_id::Token_BreakLevel >(break_level_); } inline ::chrome_lang_id::Token_BreakLevel Token::break_level() const { // @@protoc_insertion_point(field_get:chrome_lang_id.Token.break_level) return _internal_break_level(); } inline void Token::_internal_set_break_level(::chrome_lang_id::Token_BreakLevel value) { assert(::chrome_lang_id::Token_BreakLevel_IsValid(value)); _has_bits_[0] |= 0x00000080u; break_level_ = value; } inline void Token::set_break_level(::chrome_lang_id::Token_BreakLevel value) { _internal_set_break_level(value); // @@protoc_insertion_point(field_set:chrome_lang_id.Token.break_level) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace chrome_lang_id PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::chrome_lang_id::Token_BreakLevel> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_sentence_2eproto