Index: third_party/protobuf/python/google/protobuf/reflection.py |
diff --git a/third_party/protobuf/python/google/protobuf/reflection.py b/third_party/protobuf/python/google/protobuf/reflection.py |
index 51c83321202f6718c50f0836c797a8e9451043ec..0c757264f440fdcb59e36f1cbfc596ffda52603b 100755 |
--- a/third_party/protobuf/python/google/protobuf/reflection.py |
+++ b/third_party/protobuf/python/google/protobuf/reflection.py |
@@ -58,7 +58,13 @@ else: |
from google.protobuf.internal import python_message as message_impl |
# The type of all Message classes. |
-# Part of the public interface, but normally only used by message factories. |
+# Part of the public interface. |
+# |
+# Used by generated files, but clients can also use it at runtime: |
+# mydescriptor = pool.FindDescriptor(.....) |
+# class MyProtoClass(Message): |
+# __metaclass__ = GeneratedProtocolMessageType |
+# DESCRIPTOR = mydescriptor |
GeneratedProtocolMessageType = message_impl.GeneratedProtocolMessageType |