Go to the documentation of this file.
31 #ifndef GOOGLE_PROTOBUF_INLINED_STRING_FIELD_H__
32 #define GOOGLE_PROTOBUF_INLINED_STRING_FIELD_H__
37 #include <google/protobuf/stubs/logging.h>
38 #include <google/protobuf/stubs/common.h>
39 #include <google/protobuf/arenastring.h>
40 #include <google/protobuf/message_lite.h>
41 #include <google/protobuf/port.h>
42 #include <google/protobuf/stubs/strutil.h>
45 #include <google/protobuf/port_def.inc>
48 #error "You cannot SWIG proto headers"
109 class PROTOBUF_EXPORT InlinedStringField {
138 SetNoArena(default_value,
value);
146 template <
typename FirstParam>
152 template <
typename FirstParam>
156 Set(p1, sp,
arena, donated, donating_states, mask);
159 template <
typename FirstParam,
typename RefWrappedType>
161 std::reference_wrapper<RefWrappedType> const_string_ref,
164 Set(p1, const_string_ref.get(),
arena, donated, donating_states, mask);
167 template <
typename FirstParam,
typename SecondParam>
170 Set(p1,
static_cast<SecondParam&&
>(p2),
arena, donated, donating_states,
174 template <
typename FirstParam>
180 Set(p1, sp,
arena, donated, donating_states, mask);
183 PROTOBUF_NDEBUG_INLINE
void SetNoArena(
const std::string* default_value,
185 PROTOBUF_NDEBUG_INLINE
void SetNoArena(
const std::string* default_value,
190 PROTOBUF_NDEBUG_INLINE
const std::string& GetNoArena()
const;
221 void SetAllocatedNoArena(
const std::string* default_value,
230 bool from_donated,
uint32_t* donating_states,
237 if (
arena ==
nullptr) {
238 DestroyNoArena(default_value);
241 PROTOBUF_NDEBUG_INLINE
void DestroyNoArena(
const std::string* default_value);
246 PROTOBUF_NDEBUG_INLINE
void ClearToEmpty() { ClearNonDefaultToEmpty(); }
248 get_mutable()->clear();
259 PROTOBUF_NDEBUG_INLINE
std::string* MutableNoArenaNoDefault(
263 PROTOBUF_NDEBUG_INLINE
std::string* UnsafeMutablePointer();
270 void Destruct() { get_mutable()->~basic_string(); }
273 PROTOBUF_NDEBUG_INLINE
const std::string* get_const()
const;
302 if (
arena !=
nullptr) {
313 if (
value ==
nullptr) {
350 #if GOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE
352 if (donated && !from_donated) {
354 }
else if (!donated && from_donated) {
355 from->MutableSlow(
arena, from_donated, from_donating_states, mask);
362 (void)donating_states;
363 (void)from_donating_states;
382 #include <google/protobuf/port_undef.inc>
384 #endif // GOOGLE_PROTOBUF_INLINED_STRING_FIELD_H__
std::string * UnsafeMutablePointer()
void Swap(T &lhs, T &rhs) noexcept(IsNothrowSwappable< T >::value)
const Descriptor::ReservedRange value
void DestructorSkippable_
static int Init(CMessage *self, PyObject *args, PyObject *kwargs)
const std::string & GetNoArena() const PROTOBUF_ALWAYS_INLINE
grpc_core::ScopedArenaPtr arena
void Set(FirstParam p1, const char *str, size_t size, ::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
void DestroyNoArena(const std::string *default_value) PROTOBUF_ALWAYS_INLINE
const PROTOBUF_NDEBUG_INLINE std::string & Get() const
const std::string & ConstStringParam
constexpr InlinedStringField(const ExplicitlyConstructed< std::string > *, bool)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
bool IsDefault(const std::string *) const
PROTOBUF_NDEBUG_INLINE void ClearToEmpty()
void Set(FirstParam p1, std::reference_wrapper< RefWrappedType > const_string_ref, ::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
void SetBytes(FirstParam p1, const void *str, size_t size, ::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
void SetNoArena(const std::string *default_value, StringPiece value) PROTOBUF_ALWAYS_INLINE
void InternalArenaConstructable_
void Swap(InlinedStringField *from) PROTOBUF_ALWAYS_INLINE
std::string * MutableSlow(::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
void Set(const std::string *default_value, ConstStringParam value, Arena *arena, bool donated, uint32_t *, uint32_t)
PROTOBUF_NDEBUG_INLINE void Destroy(const std::string *default_value, Arena *arena)
PROTOBUF_NDEBUG_INLINE std::string * get_mutable()
PROTOBUF_NDEBUG_INLINE std::string * MutableNoArenaNoDefault(const std::string *)
const PROTOBUF_NDEBUG_INLINE std::string * get_const() const
void SetAllocatedNoArena(const std::string *default_value, std::string *value)
InlinedStringField() PROTOBUF_ALWAYS_INLINE
void SetBytes(FirstParam p1, SecondParam &&p2, ::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
std::string * ReleaseNonDefaultNoArena(const std::string *default_value)
PROTOBUF_NDEBUG_INLINE void ClearNonDefaultToEmpty()
void Set(FirstParam p1, const char *str, ::google::protobuf::Arena *arena, bool donated, uint32_t *donating_states, uint32_t mask)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:03