Classes | Namespaces | Macros | Functions | Variables
protobuf/src/google/protobuf/descriptor.cc File Reference
#include <google/protobuf/descriptor.h>
#include <algorithm>
#include <array>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/any.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor_database.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/substitute.h>
#include <google/protobuf/io/strtod.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/stubs/hash.h>
#include <google/protobuf/port_def.inc>
#include <google/protobuf/port_undef.inc>
Include dependency graph for protobuf/src/google/protobuf/descriptor.cc:

Go to the source code of this file.

Classes

class  google::protobuf::DescriptorBuilder::OptionInterpreter::AggregateOptionFinder
 
struct  google::protobuf.descriptor_pool.DescriptorPool::Tables::CheckPoint
 
class  google::protobuf::DescriptorBuilder
 
struct  google::protobuf::DescriptorPool::Tables::FieldNamesResult
 
class  google::protobuf::FileDescriptorTables
 
class  google::protobuf::DescriptorBuilder::OptionInterpreter
 
struct  google::protobuf::Symbol::Package
 
struct  google::protobuf::Symbol::QueryKey
 
class  google::protobuf::Symbol
 
class  google::protobuf::DescriptorPool::Tables
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define BUILD_ARRAY(INPUT, OUTPUT, NAME, METHOD, PARENT)
 
#define DEFINE_MEMBERS(TYPE, TYPE_CONSTANT, FIELD)
 
#define HASH_FXN   hash
 
#define HASH_MAP   std::unordered_map
 
#define HASH_SET   std::unordered_set
 
#define VALIDATE_OPTIONS_FROM_ARRAY(descriptor, array_name, type)
 

Functions

static bool google::protobuf::ExistingFileMatchesProto (const FileDescriptor *existing_file, const FileDescriptorProto &proto)
 
static bool google::protobuf::IsLite (const FileDescriptor *file)
 
static std::string google::protobuf::ToLowercaseWithoutUnderscores (const std::string &name)
 
static bool google::protobuf::ValidateQualifiedName (StringPiece name)
 

Variables

static const char *const google::protobuf::kNonLinkedWeakMessageReplacementName = "google.protobuf.Empty"
 

Macro Definition Documentation

◆ BUILD_ARRAY

#define BUILD_ARRAY (   INPUT,
  OUTPUT,
  NAME,
  METHOD,
  PARENT 
)
Value:
OUTPUT->NAME##_count_ = INPUT.NAME##_size(); \
AllocateArray(INPUT.NAME##_size(), &OUTPUT->NAME##s_); \
for (int i = 0; i < INPUT.NAME##_size(); i++) { \
METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i); \
}

Definition at line 4791 of file protobuf/src/google/protobuf/descriptor.cc.

◆ DEFINE_MEMBERS

#define DEFINE_MEMBERS (   TYPE,
  TYPE_CONSTANT,
  FIELD 
)
Value:
explicit Symbol(TYPE* value) : ptr_(value) { \
value->symbol_type_ = TYPE_CONSTANT; \
} \
const TYPE* FIELD() const { \
return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
}

Definition at line 102 of file protobuf/src/google/protobuf/descriptor.cc.

◆ HASH_FXN

#define HASH_FXN   hash

Definition at line 522 of file protobuf/src/google/protobuf/descriptor.cc.

◆ HASH_MAP

#define HASH_MAP   std::unordered_map

Definition at line 520 of file protobuf/src/google/protobuf/descriptor.cc.

◆ HASH_SET

#define HASH_SET   std::unordered_set

Definition at line 521 of file protobuf/src/google/protobuf/descriptor.cc.

◆ VALIDATE_OPTIONS_FROM_ARRAY

#define VALIDATE_OPTIONS_FROM_ARRAY (   descriptor,
  array_name,
  type 
)
Value:
for (int i = 0; i < descriptor->array_name##_count(); ++i) { \
Validate##type##Options(descriptor->array_name##s_ + i, \
proto.array_name(i)); \
}

Definition at line 6472 of file protobuf/src/google/protobuf/descriptor.cc.

Variable Documentation

◆ block

Block* block

Definition at line 1041 of file protobuf/src/google/protobuf/descriptor.cc.

◆ capacity

uint16_t capacity

Definition at line 948 of file protobuf/src/google/protobuf/descriptor.cc.

◆ count

size_t count

Definition at line 1042 of file protobuf/src/google/protobuf/descriptor.cc.

◆ current_

Block* current_ = nullptr
private

Definition at line 1035 of file protobuf/src/google/protobuf/descriptor.cc.

◆ element_name

std::string element_name

Definition at line 3701 of file protobuf/src/google/protobuf/descriptor.cc.

◆ element_path

std::vector<int> element_path

Definition at line 3702 of file protobuf/src/google/protobuf/descriptor.cc.

◆ end_offset

uint16_t end_offset

Definition at line 947 of file protobuf/src/google/protobuf/descriptor.cc.

◆ error_

std::string error_

Definition at line 7696 of file protobuf/src/google/protobuf/descriptor.cc.

◆ full_blocks_

Block* full_blocks_ = nullptr
private

Definition at line 1037 of file protobuf/src/google/protobuf/descriptor.cc.

◆ have_source_loc_

bool have_source_loc_
private

Definition at line 3001 of file protobuf/src/google/protobuf/descriptor.cc.

◆ kFirstRawTag

constexpr Tag kFirstRawTag = KnownTypes::kSize
staticconstexprprivate

Definition at line 927 of file protobuf/src/google/protobuf/descriptor.cc.

◆ kSize

constexpr Tag kSize = static_cast<Tag>(sizeof...(T))
staticconstexpr

Definition at line 873 of file protobuf/src/google/protobuf/descriptor.cc.

◆ kSmallSizes

constexpr std::array<uint8_t, 6> kSmallSizes
staticconstexprprivate
Initial value:
= {
{
8, 16, 24, 32,
2 * sizeof(std::string), 3 * sizeof(std::string)}}

Definition at line 1019 of file protobuf/src/google/protobuf/descriptor.cc.

◆ name_scope

std::string name_scope

Definition at line 3700 of file protobuf/src/google/protobuf/descriptor.cc.

◆ next

Block* next

Definition at line 949 of file protobuf/src/google/protobuf/descriptor.cc.

◆ num_allocations_

size_t num_allocations_ = 0
private

Definition at line 1039 of file protobuf/src/google/protobuf/descriptor.cc.

◆ options

Message* options

Definition at line 3704 of file protobuf/src/google/protobuf/descriptor.cc.

◆ options_

DebugStringOptions options_
private

Definition at line 3003 of file protobuf/src/google/protobuf/descriptor.cc.

◆ original_options

const Message* original_options

Definition at line 3703 of file protobuf/src/google/protobuf/descriptor.cc.

◆ prefix_

std::string prefix_
private

Definition at line 505 of file protobuf/src/google/protobuf/descriptor.cc.

◆ ptr

void* ptr

Definition at line 867 of file protobuf/src/google/protobuf/descriptor.cc.

◆ rollback_info_

std::vector<RollbackInfo> rollback_info_
private

Definition at line 1044 of file protobuf/src/google/protobuf/descriptor.cc.

◆ size

Definition at line 868 of file protobuf/src/google/protobuf/descriptor.cc.

◆ small_size_blocks_

std::array<Block*, kSmallSizes.size()> small_size_blocks_ = {{}}
private

Definition at line 1036 of file protobuf/src/google/protobuf/descriptor.cc.

◆ source_loc_

SourceLocation source_loc_
private

Definition at line 3002 of file protobuf/src/google/protobuf/descriptor.cc.

◆ start_offset

uint16_t start_offset

Definition at line 946 of file protobuf/src/google/protobuf/descriptor.cc.

testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
ptr_
std::string * ptr_
Definition: abseil-cpp/absl/container/internal/container_memory_test.cc:103
value
const char * value
Definition: hpack_parser_table.cc:165
autogen_x86imm.OUTPUT
OUTPUT
Definition: autogen_x86imm.py:7
TYPE
#define TYPE(u, l)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:8202
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
descriptor
static const char descriptor[1336]
Definition: certs.upbdefs.c:16
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
s_
std::string s_
Definition: abseil-cpp/absl/container/btree_test.cc:1031


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:10