aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/message.py
diff options
context:
space:
mode:
authorGravatar liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2010-12-03 09:12:33 +0000
committerGravatar liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2010-12-03 09:12:33 +0000
commit2726e7a6ebd72eec6f66abe4ced3c88983f20b8e (patch)
treedcf88bc5537ca5b35b1bee3af5c04505b7a90c94 /python/google/protobuf/message.py
parent0acafda8f424bb8a5adcf77bf2d4bdb3a9661d4b (diff)
Fix issues: 166 167 172 175 181 188 192 194 195.
Diffstat (limited to 'python/google/protobuf/message.py')
-rwxr-xr-xpython/google/protobuf/message.py3
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):