Go to the documentation of this file.
4 #include <google/protobuf/source_context.pb.h>
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
18 PROTOBUF_PRAGMA_INIT_SEG
19 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
32 PROTOBUF_NAMESPACE_CLOSE
54 const char descriptor_table_protodef_google_2fprotobuf_2fsource_5fcontext_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
55 "\n$google/protobuf/source_context.proto\022\017"
56 "google.protobuf\"\"\n\rSourceContext\022\021\n\tfile"
57 "_name\030\001 \001(\tB\212\001\n\023com.google.protobufB\022Sou"
58 "rceContextProtoP\001Z6google.golang.org/pro"
59 "tobuf/types/known/sourcecontextpb\242\002\003GPB\252"
60 "\002\036Google.Protobuf.WellKnownTypesb\006proto3"
64 false,
false, 240, descriptor_table_protodef_google_2fprotobuf_2fsource_5fcontext_2eproto,
"google/protobuf/source_context.proto",
75 PROTOBUF_NAMESPACE_OPEN
84 bool is_message_owned)
85 : ::PROTOBUF_NAMESPACE_ID::
Message(
arena, is_message_owned) {
87 if (!is_message_owned) {
93 : ::PROTOBUF_NAMESPACE_ID::
Message() {
96 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
98 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
99 if (!
from._internal_file_name().empty()) {
101 GetArenaForAllocation());
108 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
110 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
115 if (GetArenaForAllocation() !=
nullptr)
return;
139 (void) cached_has_bits;
146 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
147 while (!
ctx->Done(&
ptr)) {
153 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 10)) {
165 if ((
tag == 0) || ((
tag & 7) == 4)) {
188 (void) cached_has_bits;
192 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
194 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
195 "google.protobuf.SourceContext.file_name");
201 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
210 size_t total_size = 0;
214 (void) cached_has_bits;
219 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
223 return MaybeComputeUnknownFieldsSize(total_size, &
_cached_size_);
227 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
243 (void) cached_has_bits;
245 if (!
from._internal_file_name().empty()) {
253 if (&
from ==
this)
return;
264 auto* lhs_arena = GetArenaForAllocation();
265 auto* rhs_arena = other->GetArenaForAllocation();
267 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
281 PROTOBUF_NAMESPACE_CLOSE
282 PROTOBUF_NAMESPACE_OPEN
284 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::SourceContext >(
arena);
286 PROTOBUF_NAMESPACE_CLOSE
289 #include <google/protobuf/port_undef.inc>
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
void InternalSwap(SourceContext *other)
struct EnumDescriptor EnumDescriptor
ArenaStringPtr::EmptyDefault EmptyDefault
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_once
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
GRPC_CUSTOM_MESSAGE Message
OPENSSL_EXPORT pem_password_cb void * u
static PyObject * UnknownFieldSet(CMessage *self)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
grpc_core::ScopedArenaPtr arena
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_NAMESPACE_CLOSE ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fsource_5fcontext_2eproto[1]
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::SourceContext * Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::SourceContext >(Arena *arena)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SourceContextDefaultTypeInternal _SourceContext_default_instance_
static void * tag(intptr_t t)
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
void SetCachedSize(int size) const final
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto
constexpr SourceContextDefaultTypeInternal()
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
const std::string & _internal_file_name() const
~SourceContextDefaultTypeInternal()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto
std::string * _internal_mutable_file_name()
const char * InlineGreedyStringParser(std::string *s, const char *ptr, ParseContext *ctx)
bool VerifyUTF8(StringPiece str, const char *field_name)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void _internal_set_file_name(const std::string &value)
const PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_getter()
ExplicitlyConstructed< std::string > fixed_address_empty_string
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< SourceContext > _instance
void AssignDescriptors(const DescriptorTable *table)
std::vector< std::pair< std::string, std::string > > Metadata
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_
static bool dynamic_init_dummy_google_2fprotobuf_2fsource_5fcontext_2eproto
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message *to, const ::PROTOBUF_NAMESPACE_ID::Message &from)
bool IsInitialized() const final
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto
static void ArenaDtor(void *object)
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
struct SourceContext SourceContext
const uint32_t TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:14