diff options
Diffstat (limited to 'python')
-rwxr-xr-x | python/google/protobuf/message.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/google/protobuf/message.py b/python/google/protobuf/message.py index 54cf35ea..6f19f85f 100755 --- a/python/google/protobuf/message.py +++ b/python/google/protobuf/message.py @@ -226,6 +226,9 @@ class Message(object): raise NotImplementedError def HasField(self, field_name): + """Checks if a certain field is set for the message. Note if the + field_name is not defined in the message descriptor, ValueError will be + raised.""" raise NotImplementedError def ClearField(self, field_name): |