Index: third_party/protobuf/python/google/protobuf/message.py |
diff --git a/third_party/protobuf/python/google/protobuf/message.py b/third_party/protobuf/python/google/protobuf/message.py |
index 606f735f3e95e7980ad174f6891e32edb0b85221..aab250e4227c64dafcac5fa1520b7be47f77c23a 100755 |
--- a/third_party/protobuf/python/google/protobuf/message.py |
+++ b/third_party/protobuf/python/google/protobuf/message.py |
@@ -225,10 +225,11 @@ class Message(object): |
# """ |
def ListFields(self): |
"""Returns a list of (FieldDescriptor, value) tuples for all |
- fields in the message which are not empty. A singular field is non-empty |
- if HasField() would return true, and a repeated field is non-empty if |
- it contains at least one element. The fields are ordered by field |
- number""" |
+ fields in the message which are not empty. A message field is |
+ non-empty if HasField() would return true. A singular primitive field |
+ is non-empty if HasField() would return true in proto2 or it is non zero |
+ in proto3. A repeated field is non-empty if it contains at least one |
+ element. The fields are ordered by field number""" |
raise NotImplementedError |
def HasField(self, field_name): |