|
|
@ -809,6 +809,7 @@ class PROTOBUF_EXPORT Reflection final { |
|
|
|
std::string value) const; |
|
|
|
std::string value) const; |
|
|
|
void AddEnum(Message* message, const FieldDescriptor* field, |
|
|
|
void AddEnum(Message* message, const FieldDescriptor* field, |
|
|
|
const EnumValueDescriptor* value) const; |
|
|
|
const EnumValueDescriptor* value) const; |
|
|
|
|
|
|
|
|
|
|
|
// Add an integer value to a repeated enum field rather than
|
|
|
|
// Add an integer value to a repeated enum field rather than
|
|
|
|
// EnumValueDescriptor. For proto3 this is just setting the enum field to the
|
|
|
|
// EnumValueDescriptor. For proto3 this is just setting the enum field to the
|
|
|
|
// value specified, for proto2 it's more complicated. If value is a known enum
|
|
|
|
// value specified, for proto2 it's more complicated. If value is a known enum
|
|
|
@ -990,6 +991,7 @@ class PROTOBUF_EXPORT Reflection final { |
|
|
|
template <typename T> |
|
|
|
template <typename T> |
|
|
|
RepeatedPtrField<T>* MutableRepeatedPtrFieldInternal( |
|
|
|
RepeatedPtrField<T>* MutableRepeatedPtrFieldInternal( |
|
|
|
Message* message, const FieldDescriptor* field) const; |
|
|
|
Message* message, const FieldDescriptor* field) const; |
|
|
|
|
|
|
|
|
|
|
|
// Obtain a pointer to a Repeated Field Structure and do some type checking:
|
|
|
|
// Obtain a pointer to a Repeated Field Structure and do some type checking:
|
|
|
|
// on field->cpp_type(),
|
|
|
|
// on field->cpp_type(),
|
|
|
|
// on field->field_option().ctype() (if ctype >= 0)
|
|
|
|
// on field->field_option().ctype() (if ctype >= 0)
|
|
|
|