parent
5ba8730342
commit
57e4b64410
|
@ -237,9 +237,8 @@ methods where required.
|
|||
Old:
|
||||
|
||||
```c++
|
||||
bool MessageHasPresence(const google::protobuf::Descriptor* message) {
|
||||
return message->file()->syntax() ==
|
||||
google::protobuf::FileDescriptor::SYNTAX_PROTO2;
|
||||
bool MessageHasPresence(const google::protobuf::FieldDescriptor* field) {
|
||||
return field->has_presence();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue