class_docstr: 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.
class_docstr_tok: ["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","."]
docstr: Arguments are as described in the attribute description above.
code: def __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."""
      if create_key is not _internal_create_key:
          _Deprecated("OneofDescriptor")
  
      super(OneofDescriptor, self).__init__(
          options, serialized_options, "OneofOptions"
      )
      self.name = name
      self.full_name = full_name
      self.index = index
      self.containing_type = containing_type
      self.fields = fields
  
imports: import threading
  import warnings
  import six
  from google.protobuf.internal import api_implementation
label_desc: Use image node_id 1 to create a new OneofDescriptor object from inherited base classes: DescriptorBase with example: obj = OneofDescriptor(name, full_name, index, containing_type, fields, options, serialized_options, create_key)