#NEWLINE# def __init__( self , filename , content_generator = None , content_length = None ) : #NEWLINE# #INDENT# 'ApiBinaryStream constructor.\n\n    Args:\n      filename: A file name to be used by the browser when user downloads the\n          file.\n      content_generator: A generator that yields byte chunks (of any size) to\n          be streamed to the user.\n      content_length: The length of the stream, if known upfront.\n\n    Raises:\n      ValueError: if content_generator is None.\n    ' #NEWLINE# self . filename = filename #NEWLINE# self . content_length = content_length #NEWLINE# if ( content_length is None ) : #NEWLINE# #INDENT# raise ValueError ( "content_generator can't be None" ) #NEWLINE# #UNINDENT# self . content_generator = content_generator