Public Member Functions | |
def | __init__ (self, name, full_name, index, containing_type, fields, options=None, serialized_options=None) |
def | __init__ (self, name, full_name, index, containing_type, fields, options=None, serialized_options=None, create_key=None) |
def | __new__ (cls, 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, create_key=None) |
![]() | |
def | __init__ (self, options, serialized_options, options_class_name) |
def | __init__ (self, options, serialized_options, options_class_name) |
def | GetOptions (self) |
def | GetOptions (self) |
![]() | |
def | __instancecheck__ (cls, obj) |
def | __instancecheck__ (cls, obj) |
Public Attributes | |
containing_type | |
fields | |
full_name | |
index | |
name | |
![]() | |
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.
Descriptor for a oneof field. Attributes: 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): :class:`Descriptor` of the protocol message type that contains this field. Set by the :class:`Descriptor` constructor if we're passed into one. fields (list[FieldDescriptor]): The list of field descriptors this oneof can contain.
Definition at line 713 of file bloaty/third_party/protobuf/python/google/protobuf/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 bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.OneofDescriptor.__init__ | ( | self, | |
name, | |||
full_name, | |||
index, | |||
containing_type, | |||
fields, | |||
options = None , |
|||
serialized_options = None , |
|||
create_key = None |
|||
) |
Arguments are as described in the attribute description above.
Definition at line 777 of file protobuf/python/google/protobuf/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 bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.OneofDescriptor.__new__ | ( | cls, | |
name, | |||
full_name, | |||
index, | |||
containing_type, | |||
fields, | |||
options = None , |
|||
serialized_options = None , |
|||
create_key = None |
|||
) |
Definition at line 771 of file protobuf/python/google/protobuf/descriptor.py.
|
staticprivate |
Definition at line 728 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.OneofDescriptor.containing_type |
Definition at line 743 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.OneofDescriptor.fields |
Definition at line 744 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.OneofDescriptor.full_name |
Definition at line 741 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.OneofDescriptor.index |
Definition at line 742 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.OneofDescriptor.name |
Definition at line 740 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.