Go to the documentation of this file.
38 #ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
39 #define GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
48 #include <google/protobuf/stubs/common.h>
49 #include <google/protobuf/any.h>
50 #include <google/protobuf/has_bits.h>
51 #include <google/protobuf/implicit_weak_message.h>
52 #include <google/protobuf/message_lite.h>
53 #include <google/protobuf/stubs/once.h>
54 #include <google/protobuf/port.h>
55 #include <google/protobuf/repeated_field.h>
56 #include <google/protobuf/wire_format_lite.h>
57 #include <google/protobuf/stubs/strutil.h>
58 #include <google/protobuf/stubs/casts.h>
60 #include <google/protobuf/port_def.inc>
63 #error "You cannot SWIG proto headers"
78 template <
typename To,
typename From>
80 return PROTOBUF_NAMESPACE_ID::internal::down_cast<To>(f);
82 template <
typename To,
typename From>
84 return PROTOBUF_NAMESPACE_ID::internal::down_cast<To>(f);
94 if (PROTOBUF_PREDICT_FALSE(
112 template <
typename Msg>
114 for (
int i = t.size(); --
i >= 0;) {
115 if (!t.Get(
i).IsInitialized())
return false;
125 for (
int i = t.size(); --i >= 0;) {
126 if (!
reinterpret_cast<const RepeatedPtrFieldBase&
>(t)
127 .
Get<ImplicitWeakTypeHandler<T> >(i)
137 return (has_bits_array[hasbit / 32] & (1u << (hasbit & 31))) != 0;
143 return *oneof ==
tag >> 3;
162 Arena* submessage_arena);
167 template <
typename T>
171 return reinterpret_cast<T*
>(
175 template <
typename T>
177 Arena* submessage_arena) {
181 message_arena,
reinterpret_cast<MessageLite*
>(submessage),
187 class PROTOBUF_EXPORT CachedSize {
189 int Get()
const {
return size_.load(std::memory_order_relaxed); }
193 std::atomic<int>
size_{0};
211 #include <google/protobuf/port_undef.inc>
213 #endif // GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
const T & Get(const void *ptr)
void OnShutdownDestroyMessage(const void *ptr)
void ExtensionSerializer(const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
bool IsPresent(const void *base, uint32 hasbit)
bool AllAreInitialized(const Type &t)
void GenericSwap(MessageLite *m1, MessageLite *m2)
T * DuplicateIfNonNull(T *message)
bool AllAreInitializedWeak(const RepeatedPtrField< T > &t)
#define T(upbtypeconst, upbtype, ctype, default_value)
void InitProtobufDefaults()
bool IsOneofPresent(const void *base, uint32 offset, uint32 tag)
void DestroyString(const void *s)
void OnShutdownRun(void(*f)(const void *), const void *arg)
static void * tag(intptr_t t)
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
void InitProtobufDefaultsSlow()
GRPC_CUSTOM_MESSAGELITE MessageLite
GRPC_CUSTOM_CODEDINPUTSTREAM CodedInputStream
T * GetOwnedMessage(Arena *message_arena, T *submessage, Arena *submessage_arena)
GRPC_CUSTOM_CODEDOUTPUTSTREAM CodedOutputStream
MessageLite * GetOwnedMessageInternal(Arena *message_arena, MessageLite *submessage, Arena *submessage_arena)
void OnShutdownDestroyString(const std::string *ptr)
MessageLite * DuplicateIfNonNullInternal(MessageLite *message)
void(* SpecialSerializer)(const uint8 *base, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
void DestroyMessage(const void *message)
PROTOBUF_CONSTINIT std::atomic< bool > init_protobuf_defaults_state
const PROTOBUF_EXPORT std::string & GetEmptyString()
void UnknownFieldSerializerLite(const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:26