Classes | |
class | _FieldProperty |
class | _Listener |
class | _OneofListener |
class | GeneratedProtocolMessageType |
|
private |
Helper for _AddMessageMethods().
Definition at line 1043 of file python_message.py.
|
private |
Definition at line 360 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 905 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 867 of file python_message.py.
|
private |
Sets class-level attributes for all enum fields defined in this message. Also exporting a class-level object that can name enum values. Args: descriptor: Descriptor object for this message type. cls: Class we're constructing for this message type.
Definition at line 367 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 971 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 917 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 825 of file python_message.py.
|
private |
Adds an __init__ method to cls.
Definition at line 473 of file python_message.py.
|
private |
Adds the IsInitialized and FindInitializationError methods to the protocol message class.
Definition at line 1200 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 811 of file python_message.py.
|
private |
Definition at line 1295 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1116 of file python_message.py.
|
private |
Adds implementations of all Message methods to cls.
Definition at line 1410 of file python_message.py.
|
private |
Adds implementation of private helper methods to cls.
Definition at line 1437 of file python_message.py.
|
private |
Adds properties for all fields in this protocol message type.
Definition at line 768 of file python_message.py.
|
private |
Adds a public property for a protocol message field. Clients can use this property to get and (in the case of non-repeated scalar fields) directly set the value of a protocol message field. Args: field: A FieldDescriptor for this field. cls: The class we're constructing.
Definition at line 587 of file python_message.py.
|
private |
Adds properties for all fields in this protocol message type.
Definition at line 576 of file python_message.py.
|
private |
Adds a public property for a nonrepeated, composite protocol message field. A composite field is a "group" or "message" field. Clients can use this property to get the value of the field, but cannot assign to the property directly. Args: field: A FieldDescriptor for this field. cls: The class we're constructing.
Definition at line 724 of file python_message.py.
|
private |
Adds a public property for a nonrepeated, scalar protocol message field. Clients can use this property to get and directly set the value of the field. Note that when the client sets the value of a field by using this property, all necessary "has" bits are set as a side-effect, and we also perform type-checking. Args: field: A FieldDescriptor for this field. cls: The class we're constructing.
Definition at line 664 of file python_message.py.
|
private |
Adds a public property for a "repeated" protocol message field. Clients can use this property to get the value of the field, which will be either a _RepeatedScalarFieldContainer or _RepeatedCompositeFieldContainer (see below). Note that when clients add values to these containers, we perform type-checking in the case of repeated scalar fields, and we also set any necessary "has" bits as a side-effect. Args: field: A FieldDescriptor for this field. cls: The class we're constructing.
Definition at line 620 of file python_message.py.
|
private |
Definition at line 1361 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1008 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1084 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1070 of file python_message.py.
|
private |
Adds a __slots__ entry to dictionary, containing the names of all valid attributes for this message type. Args: message_descriptor: A Descriptor instance describing this message type. dictionary: Class dictionary to which we'll add a '__slots__' entry.
Definition at line 241 of file python_message.py.
|
private |
Definition at line 783 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1001 of file python_message.py.
|
private |
Helper for _AddMessageMethods().
Definition at line 1015 of file python_message.py.
|
private |
Definition at line 1343 of file python_message.py.
|
private |
Definition at line 287 of file python_message.py.
|
private |
Returns the number of bytes needed to serialize a non-repeated element. The returned byte count includes space for tag information and any other additional space associated with serializing value. Args: value: Value we're serializing. field_number: Field number of this value. (Since the field number is stored as part of a varint-encoded tag, this has an impact on the total bytes required to serialize the value). field_type: The type of the field. One of the TYPE_* constants within FieldDescriptor.
Definition at line 1023 of file python_message.py.
|
private |
Definition at line 1367 of file python_message.py.
|
private |
Returns a function which returns a default value for a field. Args: field: FieldDescriptor object for this field. The returned function has one argument: message: Message instance containing this field, or a weakref proxy of same. That function in turn returns a default value for this field. The default value may refer back to |message| via a weak reference.
Definition at line 404 of file python_message.py.
|
private |
Definition at line 1387 of file python_message.py.
|
private |
Returns a field descriptor by field name. Args: message_descriptor: A Descriptor describing all fields in message. field_name: The name of the field to retrieve. Returns: The field descriptor associated with the field name.
Definition at line 560 of file python_message.py.
|
private |
Definition at line 382 of file python_message.py.
|
private |
Unpacks Any message and returns the unpacked message. This internal method is different from public Any Unpack method which takes the target message as argument. _InternalUnpackAny method does not have target message type and need to find the message type in descriptor pool. Args: msg: An Any message to be unpacked. Returns: The unpacked message.
Definition at line 931 of file python_message.py.
|
private |
Definition at line 269 of file python_message.py.
|
private |
Definition at line 275 of file python_message.py.
|
private |
Definition at line 261 of file python_message.py.
|
private |
Given a (FieldDescriptor, value) tuple from _fields, return true if the value should be included in the list returned by ListFields().
Definition at line 799 of file python_message.py.
|
private |
Definition at line 280 of file python_message.py.
|
private |
Returns the name of the public property attribute which clients can use to get and (in some cases) set the value of a protocol message field. Args: proto_field_name: The protocol message field name, exactly as it appears (or would appear) in a .proto file.
Definition at line 212 of file python_message.py.
|
private |
Re-raise the currently-handled TypeError with the field name added.
Definition at line 462 of file python_message.py.
|
private |
Definition at line 1403 of file python_message.py.
|
private |
Definition at line 1380 of file python_message.py.
|
private |
Definition at line 51 of file python_message.py.
|
private |
Definition at line 998 of file python_message.py.
|
private |
Definition at line 557 of file python_message.py.
|
private |
Definition at line 1364 of file python_message.py.
|
private |
Definition at line 1012 of file python_message.py.
|
private |
Definition at line 1005 of file python_message.py.
|
private |
Definition at line 1020 of file python_message.py.
|
private |
Definition at line 77 of file python_message.py.
|
private |
Definition at line 492 of file python_message.py.
|
private |
Definition at line 493 of file python_message.py.
|
private |
Definition at line 78 of file python_message.py.
|
private |
Definition at line 781 of file python_message.py.
|
private |
Definition at line 780 of file python_message.py.
|
private |
Definition at line 76 of file python_message.py.
|
private |
Definition at line 494 of file python_message.py.
|
private |
Definition at line 1197 of file python_message.py.
|
private |
Definition at line 1113 of file python_message.py.
|
private |
Definition at line 505 of file python_message.py.
|
private |
Definition at line 506 of file python_message.py.
|
private |
Definition at line 507 of file python_message.py.
|
private |
Definition at line 1466 of file python_message.py.
|
private |
Definition at line 497 of file python_message.py.
|
private |
Definition at line 823 of file python_message.py.
|
private |
Definition at line 821 of file python_message.py.
|
private |
Definition at line 1434 of file python_message.py.
|
private |
Definition at line 504 of file python_message.py.
|
private |
Definition at line 501 of file python_message.py.
|
private |
Definition at line 1468 of file python_message.py.
google.protobuf.internal.python_message.ByteSize |
Definition at line 1067 of file python_message.py.
google.protobuf.internal.python_message.Clear |
Definition at line 1431 of file python_message.py.
google.protobuf.internal.python_message.ClearExtension |
Definition at line 914 of file python_message.py.
google.protobuf.internal.python_message.ClearField |
Definition at line 902 of file python_message.py.
google.protobuf.internal.python_message.DiscardUnknownFields |
Definition at line 1433 of file python_message.py.
google.protobuf.internal.python_message.Extensions |
Definition at line 584 of file python_message.py.
google.protobuf.internal.python_message.FindInitializationErrors |
Definition at line 1292 of file python_message.py.
google.protobuf.internal.python_message.FromString |
Definition at line 796 of file python_message.py.
google.protobuf.internal.python_message.HasExtension |
Definition at line 929 of file python_message.py.
google.protobuf.internal.python_message.HasField |
Definition at line 864 of file python_message.py.
google.protobuf.internal.python_message.IsInitialized |
Definition at line 1246 of file python_message.py.
google.protobuf.internal.python_message.ListFields |
Definition at line 819 of file python_message.py.
google.protobuf.internal.python_message.MergeFrom |
Definition at line 1340 of file python_message.py.
google.protobuf.internal.python_message.MergeFromString |
Definition at line 1138 of file python_message.py.
google.protobuf.internal.python_message.RegisterExtension |
Definition at line 790 of file python_message.py.
google.protobuf.internal.python_message.SerializePartialToString |
Definition at line 1091 of file python_message.py.
google.protobuf.internal.python_message.SerializeToString |
Definition at line 1081 of file python_message.py.
google.protobuf.internal.python_message.SetInParent |
Definition at line 1467 of file python_message.py.
google.protobuf.internal.python_message.UnknownFields |
Definition at line 1432 of file python_message.py.
google.protobuf.internal.python_message.WhichOneof |
Definition at line 1358 of file python_message.py.