Go to the documentation of this file. 1 #ifndef PROTOBUF_BENCHMARKS_UTIL_SCHEMA_PROTO2_TO_PROTO3_UTIL_H_
2 #define PROTOBUF_BENCHMARKS_UTIL_SCHEMA_PROTO2_TO_PROTO3_UTIL_H_
12 using google::protobuf::DescriptorProto;
13 using google::protobuf::FileDescriptorProto;
14 using google::protobuf::FieldDescriptorProto;
16 using google::protobuf::EnumValueDescriptorProto;
47 &&
descriptor->options().message_set_wire_format()) {
96 bool has_zero =
false;
102 enum_type->mutable_value(0)->CopyFrom(temp_enum_value);
109 for (
int i =
enum_type->mutable_value()->size() - 1;
i > 0;
i--) {
113 enum_type->mutable_value(0)->set_number(0);
114 enum_type->mutable_value(0)->set_name(
"ADDED_ZERO_VALUE_" +
194 #endif // PROTOBUF_BENCHMARKS_UTIL_SCHEMA_PROTO2_TO_PROTO3_UTIL_H_
void ScrubMessage(DescriptorProto *message_type)
const Descriptor * containing_type() const
static void StripFile(const FileDescriptor *old_file, FileDescriptorProto *file)
static void ScrubMessage(DescriptorProto *message_type)
static void StripMessage(DescriptorProto *message_type)
zend_class_entry * enum_type
static bool ShouldClearLabel(const FieldDescriptorProto *field)
PROTOBUF_NAMESPACE_ID::FieldDescriptorProto * mutable_extension(int index)
PROTOBUF_NAMESPACE_ID::DescriptorProto * mutable_nested_type(int index)
PROTOBUF_NAMESPACE_ID::FieldDescriptorProto * mutable_extension(int index)
zend_class_entry * message_type
const FieldDescriptor * field(int index) const
static void StripFile(FileDescriptorProto *file)
void ScrubFile(FileDescriptorProto *file)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_NAMESPACE_ID::EnumDescriptorProto * mutable_enum_type(int index)
const FieldDescriptor * extension(int index) const
struct Descriptor Descriptor
const FieldDescriptor * field
PROTOBUF_NAMESPACE_ID::DescriptorProto * mutable_message_type(int index)
const Descriptor * nested_type(int index) const
const Descriptor * message_type(int index) const
const FieldDescriptor * extension(int index) const
static void ScrubFile(FileDescriptorProto *file)
static void StripMessage(const Descriptor *old_message, DescriptorProto *new_message)
static constexpr Label LABEL_REQUIRED
const Descriptor * message_type() const
void ScrubEnum(EnumDescriptorProto *enum_type)
PROTOBUF_NAMESPACE_ID::FieldDescriptorProto * mutable_field(int index)
int enum_type_size() const
static bool IsMessageSet(const Descriptor *descriptor)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:58