
Public Member Functions | |
| def | __init__ (self, name, full_name, index, containing_type, fields, options=None, serialized_options=None) |
| def | __new__ (cls, name, full_name, index, containing_type, fields, options=None, serialized_options=None) |
Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase | |
| def | __init__ (self, options, serialized_options, options_class_name) |
| def | GetOptions (self) |
Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass | |
| def | __instancecheck__ (cls, obj) |
Public Attributes | |
| containing_type | |
| fields | |
| full_name | |
| index | |
| name | |
Public Attributes inherited from google.protobuf.descriptor.DescriptorBase | |
| has_options | |
Static Private Attributes | |
| _C_DESCRIPTOR_CLASS = _message.OneofDescriptor | |
Descriptor for a oneof field.
name: (str) Name of the oneof field.
full_name: (str) Full name of the oneof field, including package name.
index: (int) 0-based index giving the order of the oneof field inside
its containing type.
containing_type: (Descriptor) Descriptor of the protocol message
type that contains this field. Set by the Descriptor constructor
if we're passed into one.
fields: (list of FieldDescriptor) The list of field descriptors this
oneof can contain.
Definition at line 713 of file descriptor.py.
| def google.protobuf.descriptor.OneofDescriptor.__init__ | ( | self, | |
| name, | |||
| full_name, | |||
| index, | |||
| containing_type, | |||
| fields, | |||
options = None, |
|||
serialized_options = None |
|||
| ) |
Arguments are as described in the attribute description above.
Definition at line 736 of file descriptor.py.
| def google.protobuf.descriptor.OneofDescriptor.__new__ | ( | cls, | |
| name, | |||
| full_name, | |||
| index, | |||
| containing_type, | |||
| fields, | |||
options = None, |
|||
serialized_options = None |
|||
| ) |
Definition at line 730 of file descriptor.py.
|
staticprivate |
Definition at line 728 of file descriptor.py.
| google.protobuf.descriptor.OneofDescriptor.containing_type |
Definition at line 743 of file descriptor.py.
| google.protobuf.descriptor.OneofDescriptor.fields |
Definition at line 744 of file descriptor.py.
| google.protobuf.descriptor.OneofDescriptor.full_name |
Definition at line 741 of file descriptor.py.
| google.protobuf.descriptor.OneofDescriptor.index |
Definition at line 742 of file descriptor.py.
| google.protobuf.descriptor.OneofDescriptor.name |
Definition at line 740 of file descriptor.py.