(self, name, package, options=None, serialized_pb=None,
               dependencies=None, public_dependencies=None,
               syntax=None, pool=None)
Constructor.
Constructor.
Constructor .
def __init__(self, name, package, options=None, serialized_pb=None,
               dependencies=None, public_dependencies=None,
               syntax=None, pool=None):
    """Constructor."""
    super(FileDescriptor, self).__init__(options, 'FileOptions')

    if pool is None:
      from google.protobuf import descriptor_pool
      pool = descriptor_pool.Default()
    self.pool = pool
    self.message_types_by_name = {}
    self.name = name
    self.package = package
    self.syntax = syntax or "proto2"
    self.serialized_pb = serialized_pb

    self.enum_types_by_name = {}
    self.extensions_by_name = {}
    self.services_by_name = {}
    self.dependencies = (dependencies or [])
    self.public_dependencies = (public_dependencies or [])

    if (api_implementation.Type() == 'cpp' and
        self.serialized_pb is not None):
      _message.default_pool.AddSerializedFile(self.serialized_pb)
def __init__ ( self , name , package , options = None , serialized_pb = None , dependencies = None , public_dependencies = None , syntax = None , pool = None ) : super ( FileDescriptor , self ) . __init__ ( options , 'FileOptions' ) if pool is None : from google . protobuf import descriptor_pool pool = descriptor_pool . Default ( ) self . pool = pool self . message_types_by_name = { } self . name = name self . package = package self . syntax = syntax or "proto2" self . serialized_pb = serialized_pb self . enum_types_by_name = { } self . extensions_by_name = { } self . services_by_name = { } self . dependencies = ( dependencies or [ ] ) self . public_dependencies = ( public_dependencies or [ ] ) if ( api_implementation . Type ( ) == 'cpp' and self . serialized_pb is not None ) : _message . default_pool . AddSerializedFile ( self . serialized_pb )