<s> from google . net . proto import ProtocolBuffer <EOL> import array <EOL> import dummy_thread as thread <EOL> __pychecker__ = """<STR_LIT>""" <EOL> if hasattr ( ProtocolBuffer , '<STR_LIT>' ) : <EOL> _extension_runtime = True <EOL> _ExtendableProtocolMessage = ProtocolBuffer . ExtendableProtocolMessage <EOL> else : <EOL> _extension_runtime = False <EOL> _ExtendableProtocolMessage = ProtocolBuffer . ProtocolMessage <EOL> class ImagesServiceError ( ProtocolBuffer . ProtocolMessage ) : <EOL> UNSPECIFIED_ERROR = <NUM_LIT:1> <EOL> BAD_TRANSFORM_DATA = <NUM_LIT:2> <EOL> NOT_IMAGE = <NUM_LIT:3> <EOL> BAD_IMAGE_DATA = <NUM_LIT:4> <EOL> IMAGE_TOO_LARGE = <NUM_LIT:5> <EOL> INVALID_BLOB_KEY = <NUM_LIT:6> <EOL> _ErrorCode_NAMES = { <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> <NUM_LIT:6> : "<STR_LIT>" , <EOL> } <EOL> def ErrorCode_Name ( cls , x ) : return cls . _ErrorCode_NAMES . get ( x , "<STR_LIT>" ) <EOL> ErrorCode_Name = classmethod ( ErrorCode_Name ) <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesServiceTransform ( ProtocolBuffer . ProtocolMessage ) : <EOL> RESIZE = <NUM_LIT:1> <EOL> ROTATE = <NUM_LIT:2> <EOL> HORIZONTAL_FLIP = <NUM_LIT:3> <EOL> VERTICAL_FLIP = <NUM_LIT:4> <EOL> CROP = <NUM_LIT:5> <EOL> IM_FEELING_LUCKY = <NUM_LIT:6> <EOL> _Type_NAMES = { <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> <NUM_LIT:6> : "<STR_LIT>" , <EOL> } <EOL> def Type_Name ( cls , x ) : return cls . _Type_NAMES . get ( x , "<STR_LIT>" ) <EOL> Type_Name = classmethod ( Type_Name ) <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class Transform ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_width_ = <NUM_LIT:0> <EOL> width_ = <NUM_LIT:0> <EOL> has_height_ = <NUM_LIT:0> <EOL> height_ = <NUM_LIT:0> <EOL> has_crop_to_fit_ = <NUM_LIT:0> <EOL> crop_to_fit_ = <NUM_LIT:0> <EOL> has_crop_offset_x_ = <NUM_LIT:0> <EOL> crop_offset_x_ = <NUM_LIT:0.5> <EOL> has_crop_offset_y_ = <NUM_LIT:0> <EOL> crop_offset_y_ = <NUM_LIT:0.5> <EOL> has_rotate_ = <NUM_LIT:0> <EOL> rotate_ = <NUM_LIT:0> <EOL> has_horizontal_flip_ = <NUM_LIT:0> <EOL> horizontal_flip_ = <NUM_LIT:0> <EOL> has_vertical_flip_ = <NUM_LIT:0> <EOL> vertical_flip_ = <NUM_LIT:0> <EOL> has_crop_left_x_ = <NUM_LIT:0> <EOL> crop_left_x_ = <NUM_LIT:0.0> <EOL> has_crop_top_y_ = <NUM_LIT:0> <EOL> crop_top_y_ = <NUM_LIT:0.0> <EOL> has_crop_right_x_ = <NUM_LIT:0> <EOL> crop_right_x_ = <NUM_LIT:1.0> <EOL> has_crop_bottom_y_ = <NUM_LIT:0> <EOL> crop_bottom_y_ = <NUM_LIT:1.0> <EOL> has_autolevels_ = <NUM_LIT:0> <EOL> autolevels_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def width ( self ) : return self . width_ <EOL> def set_width ( self , x ) : <EOL> self . has_width_ = <NUM_LIT:1> <EOL> self . width_ = x <EOL> def clear_width ( self ) : <EOL> if self . has_width_ : <EOL> self . has_width_ = <NUM_LIT:0> <EOL> self . width_ = <NUM_LIT:0> <EOL> def has_width ( self ) : return self . has_width_ <EOL> def height ( self ) : return self . height_ <EOL> def set_height ( self , x ) : <EOL> self . has_height_ = <NUM_LIT:1> <EOL> self . height_ = x <EOL> def clear_height ( self ) : <EOL> if self . has_height_ : <EOL> self . has_height_ = <NUM_LIT:0> <EOL> self . height_ = <NUM_LIT:0> <EOL> def has_height ( self ) : return self . has_height_ <EOL> def crop_to_fit ( self ) : return self . crop_to_fit_ <EOL> def set_crop_to_fit ( self , x ) : <EOL> self . has_crop_to_fit_ = <NUM_LIT:1> <EOL> self . crop_to_fit_ = x <EOL> def clear_crop_to_fit ( self ) : <EOL> if self . has_crop_to_fit_ : <EOL> self . has_crop_to_fit_ = <NUM_LIT:0> <EOL> self . crop_to_fit_ = <NUM_LIT:0> <EOL> def has_crop_to_fit ( self ) : return self . has_crop_to_fit_ <EOL> def crop_offset_x ( self ) : return self . crop_offset_x_ <EOL> def set_crop_offset_x ( self , x ) : <EOL> self . has_crop_offset_x_ = <NUM_LIT:1> <EOL> self . crop_offset_x_ = x <EOL> def clear_crop_offset_x ( self ) : <EOL> if self . has_crop_offset_x_ : <EOL> self . has_crop_offset_x_ = <NUM_LIT:0> <EOL> self . crop_offset_x_ = <NUM_LIT:0.5> <EOL> def has_crop_offset_x ( self ) : return self . has_crop_offset_x_ <EOL> def crop_offset_y ( self ) : return self . crop_offset_y_ <EOL> def set_crop_offset_y ( self , x ) : <EOL> self . has_crop_offset_y_ = <NUM_LIT:1> <EOL> self . crop_offset_y_ = x <EOL> def clear_crop_offset_y ( self ) : <EOL> if self . has_crop_offset_y_ : <EOL> self . has_crop_offset_y_ = <NUM_LIT:0> <EOL> self . crop_offset_y_ = <NUM_LIT:0.5> <EOL> def has_crop_offset_y ( self ) : return self . has_crop_offset_y_ <EOL> def rotate ( self ) : return self . rotate_ <EOL> def set_rotate ( self , x ) : <EOL> self . has_rotate_ = <NUM_LIT:1> <EOL> self . rotate_ = x <EOL> def clear_rotate ( self ) : <EOL> if self . has_rotate_ : <EOL> self . has_rotate_ = <NUM_LIT:0> <EOL> self . rotate_ = <NUM_LIT:0> <EOL> def has_rotate ( self ) : return self . has_rotate_ <EOL> def horizontal_flip ( self ) : return self . horizontal_flip_ <EOL> def set_horizontal_flip ( self , x ) : <EOL> self . has_horizontal_flip_ = <NUM_LIT:1> <EOL> self . horizontal_flip_ = x <EOL> def clear_horizontal_flip ( self ) : <EOL> if self . has_horizontal_flip_ : <EOL> self . has_horizontal_flip_ = <NUM_LIT:0> <EOL> self . horizontal_flip_ = <NUM_LIT:0> <EOL> def has_horizontal_flip ( self ) : return self . has_horizontal_flip_ <EOL> def vertical_flip ( self ) : return self . vertical_flip_ <EOL> def set_vertical_flip ( self , x ) : <EOL> self . has_vertical_flip_ = <NUM_LIT:1> <EOL> self . vertical_flip_ = x <EOL> def clear_vertical_flip ( self ) : <EOL> if self . has_vertical_flip_ : <EOL> self . has_vertical_flip_ = <NUM_LIT:0> <EOL> self . vertical_flip_ = <NUM_LIT:0> <EOL> def has_vertical_flip ( self ) : return self . has_vertical_flip_ <EOL> def crop_left_x ( self ) : return self . crop_left_x_ <EOL> def set_crop_left_x ( self , x ) : <EOL> self . has_crop_left_x_ = <NUM_LIT:1> <EOL> self . crop_left_x_ = x <EOL> def clear_crop_left_x ( self ) : <EOL> if self . has_crop_left_x_ : <EOL> self . has_crop_left_x_ = <NUM_LIT:0> <EOL> self . crop_left_x_ = <NUM_LIT:0.0> <EOL> def has_crop_left_x ( self ) : return self . has_crop_left_x_ <EOL> def crop_top_y ( self ) : return self . crop_top_y_ <EOL> def set_crop_top_y ( self , x ) : <EOL> self . has_crop_top_y_ = <NUM_LIT:1> <EOL> self . crop_top_y_ = x <EOL> def clear_crop_top_y ( self ) : <EOL> if self . has_crop_top_y_ : <EOL> self . has_crop_top_y_ = <NUM_LIT:0> <EOL> self . crop_top_y_ = <NUM_LIT:0.0> <EOL> def has_crop_top_y ( self ) : return self . has_crop_top_y_ <EOL> def crop_right_x ( self ) : return self . crop_right_x_ <EOL> def set_crop_right_x ( self , x ) : <EOL> self . has_crop_right_x_ = <NUM_LIT:1> <EOL> self . crop_right_x_ = x <EOL> def clear_crop_right_x ( self ) : <EOL> if self . has_crop_right_x_ : <EOL> self . has_crop_right_x_ = <NUM_LIT:0> <EOL> self . crop_right_x_ = <NUM_LIT:1.0> <EOL> def has_crop_right_x ( self ) : return self . has_crop_right_x_ <EOL> def crop_bottom_y ( self ) : return self . crop_bottom_y_ <EOL> def set_crop_bottom_y ( self , x ) : <EOL> self . has_crop_bottom_y_ = <NUM_LIT:1> <EOL> self . crop_bottom_y_ = x <EOL> def clear_crop_bottom_y ( self ) : <EOL> if self . has_crop_bottom_y_ : <EOL> self . has_crop_bottom_y_ = <NUM_LIT:0> <EOL> self . crop_bottom_y_ = <NUM_LIT:1.0> <EOL> def has_crop_bottom_y ( self ) : return self . has_crop_bottom_y_ <EOL> def autolevels ( self ) : return self . autolevels_ <EOL> def set_autolevels ( self , x ) : <EOL> self . has_autolevels_ = <NUM_LIT:1> <EOL> self . autolevels_ = x <EOL> def clear_autolevels ( self ) : <EOL> if self . has_autolevels_ : <EOL> self . has_autolevels_ = <NUM_LIT:0> <EOL> self . autolevels_ = <NUM_LIT:0> <EOL> def has_autolevels ( self ) : return self . has_autolevels_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_width ( ) ) : self . set_width ( x . width ( ) ) <EOL> if ( x . has_height ( ) ) : self . set_height ( x . height ( ) ) <EOL> if ( x . has_crop_to_fit ( ) ) : self . set_crop_to_fit ( x . crop_to_fit ( ) ) <EOL> if ( x . has_crop_offset_x ( ) ) : self . set_crop_offset_x ( x . crop_offset_x ( ) ) <EOL> if ( x . has_crop_offset_y ( ) ) : self . set_crop_offset_y ( x . crop_offset_y ( ) ) <EOL> if ( x . has_rotate ( ) ) : self . set_rotate ( x . rotate ( ) ) <EOL> if ( x . has_horizontal_flip ( ) ) : self . set_horizontal_flip ( x . horizontal_flip ( ) ) <EOL> if ( x . has_vertical_flip ( ) ) : self . set_vertical_flip ( x . vertical_flip ( ) ) <EOL> if ( x . has_crop_left_x ( ) ) : self . set_crop_left_x ( x . crop_left_x ( ) ) <EOL> if ( x . has_crop_top_y ( ) ) : self . set_crop_top_y ( x . crop_top_y ( ) ) <EOL> if ( x . has_crop_right_x ( ) ) : self . set_crop_right_x ( x . crop_right_x ( ) ) <EOL> if ( x . has_crop_bottom_y ( ) ) : self . set_crop_bottom_y ( x . crop_bottom_y ( ) ) <EOL> if ( x . has_autolevels ( ) ) : self . set_autolevels ( x . autolevels ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_width_ != x . has_width_ : return <NUM_LIT:0> <EOL> if self . has_width_ and self . width_ != x . width_ : return <NUM_LIT:0> <EOL> if self . has_height_ != x . has_height_ : return <NUM_LIT:0> <EOL> if self . has_height_ and self . height_ != x . height_ : return <NUM_LIT:0> <EOL> if self . has_crop_to_fit_ != x . has_crop_to_fit_ : return <NUM_LIT:0> <EOL> if self . has_crop_to_fit_ and self . crop_to_fit_ != x . crop_to_fit_ : return <NUM_LIT:0> <EOL> if self . has_crop_offset_x_ != x . has_crop_offset_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_offset_x_ and self . crop_offset_x_ != x . crop_offset_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_offset_y_ != x . has_crop_offset_y_ : return <NUM_LIT:0> <EOL> if self . has_crop_offset_y_ and self . crop_offset_y_ != x . crop_offset_y_ : return <NUM_LIT:0> <EOL> if self . has_rotate_ != x . has_rotate_ : return <NUM_LIT:0> <EOL> if self . has_rotate_ and self . rotate_ != x . rotate_ : return <NUM_LIT:0> <EOL> if self . has_horizontal_flip_ != x . has_horizontal_flip_ : return <NUM_LIT:0> <EOL> if self . has_horizontal_flip_ and self . horizontal_flip_ != x . horizontal_flip_ : return <NUM_LIT:0> <EOL> if self . has_vertical_flip_ != x . has_vertical_flip_ : return <NUM_LIT:0> <EOL> if self . has_vertical_flip_ and self . vertical_flip_ != x . vertical_flip_ : return <NUM_LIT:0> <EOL> if self . has_crop_left_x_ != x . has_crop_left_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_left_x_ and self . crop_left_x_ != x . crop_left_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_top_y_ != x . has_crop_top_y_ : return <NUM_LIT:0> <EOL> if self . has_crop_top_y_ and self . crop_top_y_ != x . crop_top_y_ : return <NUM_LIT:0> <EOL> if self . has_crop_right_x_ != x . has_crop_right_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_right_x_ and self . crop_right_x_ != x . crop_right_x_ : return <NUM_LIT:0> <EOL> if self . has_crop_bottom_y_ != x . has_crop_bottom_y_ : return <NUM_LIT:0> <EOL> if self . has_crop_bottom_y_ and self . crop_bottom_y_ != x . crop_bottom_y_ : return <NUM_LIT:0> <EOL> if self . has_autolevels_ != x . has_autolevels_ : return <NUM_LIT:0> <EOL> if self . has_autolevels_ and self . autolevels_ != x . autolevels_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_width_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . width_ ) <EOL> if ( self . has_height_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . height_ ) <EOL> if ( self . has_crop_to_fit_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_crop_offset_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_offset_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_rotate_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . rotate_ ) <EOL> if ( self . has_horizontal_flip_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_vertical_flip_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_crop_left_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_top_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_right_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_bottom_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_autolevels_ ) : n += <NUM_LIT:2> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_width_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . width_ ) <EOL> if ( self . has_height_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . height_ ) <EOL> if ( self . has_crop_to_fit_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_crop_offset_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_offset_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_rotate_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . rotate_ ) <EOL> if ( self . has_horizontal_flip_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_vertical_flip_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_crop_left_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_top_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_right_x_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_crop_bottom_y_ ) : n += <NUM_LIT:5> <EOL> if ( self . has_autolevels_ ) : n += <NUM_LIT:2> <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_width ( ) <EOL> self . clear_height ( ) <EOL> self . clear_crop_to_fit ( ) <EOL> self . clear_crop_offset_x ( ) <EOL> self . clear_crop_offset_y ( ) <EOL> self . clear_rotate ( ) <EOL> self . clear_horizontal_flip ( ) <EOL> self . clear_vertical_flip ( ) <EOL> self . clear_crop_left_x ( ) <EOL> self . clear_crop_top_y ( ) <EOL> self . clear_crop_right_x ( ) <EOL> self . clear_crop_bottom_y ( ) <EOL> self . clear_autolevels ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_width_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . width_ ) <EOL> if ( self . has_height_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . height_ ) <EOL> if ( self . has_rotate_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . rotate_ ) <EOL> if ( self . has_horizontal_flip_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:32> ) <EOL> out . putBoolean ( self . horizontal_flip_ ) <EOL> if ( self . has_vertical_flip_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . vertical_flip_ ) <EOL> if ( self . has_crop_left_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_left_x_ ) <EOL> if ( self . has_crop_top_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_top_y_ ) <EOL> if ( self . has_crop_right_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_right_x_ ) <EOL> if ( self . has_crop_bottom_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_bottom_y_ ) <EOL> if ( self . has_autolevels_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . autolevels_ ) <EOL> if ( self . has_crop_to_fit_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . crop_to_fit_ ) <EOL> if ( self . has_crop_offset_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_offset_x_ ) <EOL> if ( self . has_crop_offset_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_offset_y_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_width_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . width_ ) <EOL> if ( self . has_height_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . height_ ) <EOL> if ( self . has_rotate_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . rotate_ ) <EOL> if ( self . has_horizontal_flip_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:32> ) <EOL> out . putBoolean ( self . horizontal_flip_ ) <EOL> if ( self . has_vertical_flip_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . vertical_flip_ ) <EOL> if ( self . has_crop_left_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_left_x_ ) <EOL> if ( self . has_crop_top_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_top_y_ ) <EOL> if ( self . has_crop_right_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_right_x_ ) <EOL> if ( self . has_crop_bottom_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_bottom_y_ ) <EOL> if ( self . has_autolevels_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . autolevels_ ) <EOL> if ( self . has_crop_to_fit_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . crop_to_fit_ ) <EOL> if ( self . has_crop_offset_x_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_offset_x_ ) <EOL> if ( self . has_crop_offset_y_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . crop_offset_y_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_width ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_height ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_rotate ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:32> : <EOL> self . set_horizontal_flip ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_vertical_flip ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_left_x ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_top_y ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_right_x ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_bottom_y ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_autolevels ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_to_fit ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_offset_x ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_crop_offset_y ( d . getFloat ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_width_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . width_ ) ) <EOL> if self . has_height_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . height_ ) ) <EOL> if self . has_crop_to_fit_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . crop_to_fit_ ) ) <EOL> if self . has_crop_offset_x_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_offset_x_ ) ) <EOL> if self . has_crop_offset_y_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_offset_y_ ) ) <EOL> if self . has_rotate_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . rotate_ ) ) <EOL> if self . has_horizontal_flip_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . horizontal_flip_ ) ) <EOL> if self . has_vertical_flip_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . vertical_flip_ ) ) <EOL> if self . has_crop_left_x_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_left_x_ ) ) <EOL> if self . has_crop_top_y_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_top_y_ ) ) <EOL> if self . has_crop_right_x_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_right_x_ ) ) <EOL> if self . has_crop_bottom_y_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . crop_bottom_y_ ) ) <EOL> if self . has_autolevels_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . autolevels_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kwidth = <NUM_LIT:1> <EOL> kheight = <NUM_LIT:2> <EOL> kcrop_to_fit = <NUM_LIT:11> <EOL> kcrop_offset_x = <NUM_LIT:12> <EOL> kcrop_offset_y = <NUM_LIT> <EOL> krotate = <NUM_LIT:3> <EOL> khorizontal_flip = <NUM_LIT:4> <EOL> kvertical_flip = <NUM_LIT:5> <EOL> kcrop_left_x = <NUM_LIT:6> <EOL> kcrop_top_y = <NUM_LIT:7> <EOL> kcrop_right_x = <NUM_LIT:8> <EOL> kcrop_bottom_y = <NUM_LIT:9> <EOL> kautolevels = <NUM_LIT:10> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:width>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> <NUM_LIT:6> : "<STR_LIT>" , <EOL> <NUM_LIT:7> : "<STR_LIT>" , <EOL> <NUM_LIT:8> : "<STR_LIT>" , <EOL> <NUM_LIT:9> : "<STR_LIT>" , <EOL> <NUM_LIT:10> : "<STR_LIT>" , <EOL> <NUM_LIT:11> : "<STR_LIT>" , <EOL> <NUM_LIT:12> : "<STR_LIT>" , <EOL> <NUM_LIT> : "<STR_LIT>" , <EOL> } , <NUM_LIT> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:4> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:5> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:6> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT:7> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT:8> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT:9> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT:10> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:11> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:12> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT> : ProtocolBuffer . Encoder . FLOAT , <EOL> } , <NUM_LIT> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImageData ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_content_ = <NUM_LIT:0> <EOL> content_ = "<STR_LIT>" <EOL> has_blob_key_ = <NUM_LIT:0> <EOL> blob_key_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def content ( self ) : return self . content_ <EOL> def set_content ( self , x ) : <EOL> self . has_content_ = <NUM_LIT:1> <EOL> self . content_ = x <EOL> def clear_content ( self ) : <EOL> if self . has_content_ : <EOL> self . has_content_ = <NUM_LIT:0> <EOL> self . content_ = "<STR_LIT>" <EOL> def has_content ( self ) : return self . has_content_ <EOL> def blob_key ( self ) : return self . blob_key_ <EOL> def set_blob_key ( self , x ) : <EOL> self . has_blob_key_ = <NUM_LIT:1> <EOL> self . blob_key_ = x <EOL> def clear_blob_key ( self ) : <EOL> if self . has_blob_key_ : <EOL> self . has_blob_key_ = <NUM_LIT:0> <EOL> self . blob_key_ = "<STR_LIT>" <EOL> def has_blob_key ( self ) : return self . has_blob_key_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_content ( ) ) : self . set_content ( x . content ( ) ) <EOL> if ( x . has_blob_key ( ) ) : self . set_blob_key ( x . blob_key ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_content_ != x . has_content_ : return <NUM_LIT:0> <EOL> if self . has_content_ and self . content_ != x . content_ : return <NUM_LIT:0> <EOL> if self . has_blob_key_ != x . has_blob_key_ : return <NUM_LIT:0> <EOL> if self . has_blob_key_ and self . blob_key_ != x . blob_key_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_content_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . content_ ) ) <EOL> if ( self . has_blob_key_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . blob_key_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_content_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . content_ ) ) <EOL> if ( self . has_blob_key_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . blob_key_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_content ( ) <EOL> self . clear_blob_key ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . content_ ) <EOL> if ( self . has_blob_key_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . blob_key_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_content_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . content_ ) <EOL> if ( self . has_blob_key_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . blob_key_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_content ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_blob_key ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_content_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . content_ ) ) <EOL> if self . has_blob_key_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . blob_key_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kcontent = <NUM_LIT:1> <EOL> kblob_key = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:content>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class InputSettings ( ProtocolBuffer . ProtocolMessage ) : <EOL> UNCHANGED_ORIENTATION = <NUM_LIT:0> <EOL> CORRECT_ORIENTATION = <NUM_LIT:1> <EOL> _ORIENTATION_CORRECTION_TYPE_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } <EOL> def ORIENTATION_CORRECTION_TYPE_Name ( cls , x ) : return cls . _ORIENTATION_CORRECTION_TYPE_NAMES . get ( x , "<STR_LIT>" ) <EOL> ORIENTATION_CORRECTION_TYPE_Name = classmethod ( ORIENTATION_CORRECTION_TYPE_Name ) <EOL> has_correct_exif_orientation_ = <NUM_LIT:0> <EOL> correct_exif_orientation_ = <NUM_LIT:0> <EOL> has_parse_metadata_ = <NUM_LIT:0> <EOL> parse_metadata_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def correct_exif_orientation ( self ) : return self . correct_exif_orientation_ <EOL> def set_correct_exif_orientation ( self , x ) : <EOL> self . has_correct_exif_orientation_ = <NUM_LIT:1> <EOL> self . correct_exif_orientation_ = x <EOL> def clear_correct_exif_orientation ( self ) : <EOL> if self . has_correct_exif_orientation_ : <EOL> self . has_correct_exif_orientation_ = <NUM_LIT:0> <EOL> self . correct_exif_orientation_ = <NUM_LIT:0> <EOL> def has_correct_exif_orientation ( self ) : return self . has_correct_exif_orientation_ <EOL> def parse_metadata ( self ) : return self . parse_metadata_ <EOL> def set_parse_metadata ( self , x ) : <EOL> self . has_parse_metadata_ = <NUM_LIT:1> <EOL> self . parse_metadata_ = x <EOL> def clear_parse_metadata ( self ) : <EOL> if self . has_parse_metadata_ : <EOL> self . has_parse_metadata_ = <NUM_LIT:0> <EOL> self . parse_metadata_ = <NUM_LIT:0> <EOL> def has_parse_metadata ( self ) : return self . has_parse_metadata_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_correct_exif_orientation ( ) ) : self . set_correct_exif_orientation ( x . correct_exif_orientation ( ) ) <EOL> if ( x . has_parse_metadata ( ) ) : self . set_parse_metadata ( x . parse_metadata ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_correct_exif_orientation_ != x . has_correct_exif_orientation_ : return <NUM_LIT:0> <EOL> if self . has_correct_exif_orientation_ and self . correct_exif_orientation_ != x . correct_exif_orientation_ : return <NUM_LIT:0> <EOL> if self . has_parse_metadata_ != x . has_parse_metadata_ : return <NUM_LIT:0> <EOL> if self . has_parse_metadata_ and self . parse_metadata_ != x . parse_metadata_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_correct_exif_orientation_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . correct_exif_orientation_ ) <EOL> if ( self . has_parse_metadata_ ) : n += <NUM_LIT:2> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_correct_exif_orientation_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . correct_exif_orientation_ ) <EOL> if ( self . has_parse_metadata_ ) : n += <NUM_LIT:2> <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_correct_exif_orientation ( ) <EOL> self . clear_parse_metadata ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_correct_exif_orientation_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . correct_exif_orientation_ ) <EOL> if ( self . has_parse_metadata_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putBoolean ( self . parse_metadata_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_correct_exif_orientation_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . correct_exif_orientation_ ) <EOL> if ( self . has_parse_metadata_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putBoolean ( self . parse_metadata_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_correct_exif_orientation ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_parse_metadata ( d . getBoolean ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_correct_exif_orientation_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . correct_exif_orientation_ ) ) <EOL> if self . has_parse_metadata_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . parse_metadata_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kcorrect_exif_orientation = <NUM_LIT:1> <EOL> kparse_metadata = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class OutputSettings ( ProtocolBuffer . ProtocolMessage ) : <EOL> PNG = <NUM_LIT:0> <EOL> JPEG = <NUM_LIT:1> <EOL> WEBP = <NUM_LIT:2> <EOL> _MIME_TYPE_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } <EOL> def MIME_TYPE_Name ( cls , x ) : return cls . _MIME_TYPE_NAMES . get ( x , "<STR_LIT>" ) <EOL> MIME_TYPE_Name = classmethod ( MIME_TYPE_Name ) <EOL> has_mime_type_ = <NUM_LIT:0> <EOL> mime_type_ = <NUM_LIT:0> <EOL> has_quality_ = <NUM_LIT:0> <EOL> quality_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def mime_type ( self ) : return self . mime_type_ <EOL> def set_mime_type ( self , x ) : <EOL> self . has_mime_type_ = <NUM_LIT:1> <EOL> self . mime_type_ = x <EOL> def clear_mime_type ( self ) : <EOL> if self . has_mime_type_ : <EOL> self . has_mime_type_ = <NUM_LIT:0> <EOL> self . mime_type_ = <NUM_LIT:0> <EOL> def has_mime_type ( self ) : return self . has_mime_type_ <EOL> def quality ( self ) : return self . quality_ <EOL> def set_quality ( self , x ) : <EOL> self . has_quality_ = <NUM_LIT:1> <EOL> self . quality_ = x <EOL> def clear_quality ( self ) : <EOL> if self . has_quality_ : <EOL> self . has_quality_ = <NUM_LIT:0> <EOL> self . quality_ = <NUM_LIT:0> <EOL> def has_quality ( self ) : return self . has_quality_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_mime_type ( ) ) : self . set_mime_type ( x . mime_type ( ) ) <EOL> if ( x . has_quality ( ) ) : self . set_quality ( x . quality ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_mime_type_ != x . has_mime_type_ : return <NUM_LIT:0> <EOL> if self . has_mime_type_ and self . mime_type_ != x . mime_type_ : return <NUM_LIT:0> <EOL> if self . has_quality_ != x . has_quality_ : return <NUM_LIT:0> <EOL> if self . has_quality_ and self . quality_ != x . quality_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_mime_type_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . mime_type_ ) <EOL> if ( self . has_quality_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . quality_ ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_mime_type_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . mime_type_ ) <EOL> if ( self . has_quality_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . quality_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_mime_type ( ) <EOL> self . clear_quality ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_mime_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . mime_type_ ) <EOL> if ( self . has_quality_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . quality_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_mime_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . mime_type_ ) <EOL> if ( self . has_quality_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . quality_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_mime_type ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_quality ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_mime_type_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . mime_type_ ) ) <EOL> if self . has_quality_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . quality_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmime_type = <NUM_LIT:1> <EOL> kquality = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesTransformRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_image_ = <NUM_LIT:0> <EOL> has_output_ = <NUM_LIT:0> <EOL> has_input_ = <NUM_LIT:0> <EOL> input_ = None <EOL> def __init__ ( self , contents = None ) : <EOL> self . image_ = ImageData ( ) <EOL> self . transform_ = [ ] <EOL> self . output_ = OutputSettings ( ) <EOL> self . lazy_init_lock_ = thread . allocate_lock ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def image ( self ) : return self . image_ <EOL> def mutable_image ( self ) : self . has_image_ = <NUM_LIT:1> ; return self . image_ <EOL> def clear_image ( self ) : self . has_image_ = <NUM_LIT:0> ; self . image_ . Clear ( ) <EOL> def has_image ( self ) : return self . has_image_ <EOL> def transform_size ( self ) : return len ( self . transform_ ) <EOL> def transform_list ( self ) : return self . transform_ <EOL> def transform ( self , i ) : <EOL> return self . transform_ [ i ] <EOL> def mutable_transform ( self , i ) : <EOL> return self . transform_ [ i ] <EOL> def add_transform ( self ) : <EOL> x = Transform ( ) <EOL> self . transform_ . append ( x ) <EOL> return x <EOL> def clear_transform ( self ) : <EOL> self . transform_ = [ ] <EOL> def output ( self ) : return self . output_ <EOL> def mutable_output ( self ) : self . has_output_ = <NUM_LIT:1> ; return self . output_ <EOL> def clear_output ( self ) : self . has_output_ = <NUM_LIT:0> ; self . output_ . Clear ( ) <EOL> def has_output ( self ) : return self . has_output_ <EOL> def input ( self ) : <EOL> if self . input_ is None : <EOL> self . lazy_init_lock_ . acquire ( ) <EOL> try : <EOL> if self . input_ is None : self . input_ = InputSettings ( ) <EOL> finally : <EOL> self . lazy_init_lock_ . release ( ) <EOL> return self . input_ <EOL> def mutable_input ( self ) : self . has_input_ = <NUM_LIT:1> ; return self . input ( ) <EOL> def clear_input ( self ) : <EOL> if self . has_input_ : <EOL> self . has_input_ = <NUM_LIT:0> ; <EOL> if self . input_ is not None : self . input_ . Clear ( ) <EOL> def has_input ( self ) : return self . has_input_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_image ( ) ) : self . mutable_image ( ) . MergeFrom ( x . image ( ) ) <EOL> for i in xrange ( x . transform_size ( ) ) : self . add_transform ( ) . CopyFrom ( x . transform ( i ) ) <EOL> if ( x . has_output ( ) ) : self . mutable_output ( ) . MergeFrom ( x . output ( ) ) <EOL> if ( x . has_input ( ) ) : self . mutable_input ( ) . MergeFrom ( x . input ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_image_ != x . has_image_ : return <NUM_LIT:0> <EOL> if self . has_image_ and self . image_ != x . image_ : return <NUM_LIT:0> <EOL> if len ( self . transform_ ) != len ( x . transform_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . transform_ , x . transform_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if self . has_output_ != x . has_output_ : return <NUM_LIT:0> <EOL> if self . has_output_ and self . output_ != x . output_ : return <NUM_LIT:0> <EOL> if self . has_input_ != x . has_input_ : return <NUM_LIT:0> <EOL> if self . has_input_ and self . input_ != x . input_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_image_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . image_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> for p in self . transform_ : <EOL> if not p . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> if ( not self . has_output_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . output_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> if ( self . has_input_ and not self . input_ . IsInitialized ( debug_strs ) ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( self . image_ . ByteSize ( ) ) <EOL> n += <NUM_LIT:1> * len ( self . transform_ ) <EOL> for i in xrange ( len ( self . transform_ ) ) : n += self . lengthString ( self . transform_ [ i ] . ByteSize ( ) ) <EOL> n += self . lengthString ( self . output_ . ByteSize ( ) ) <EOL> if ( self . has_input_ ) : n += <NUM_LIT:1> + self . lengthString ( self . input_ . ByteSize ( ) ) <EOL> return n + <NUM_LIT:2> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_image_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . image_ . ByteSizePartial ( ) ) <EOL> n += <NUM_LIT:1> * len ( self . transform_ ) <EOL> for i in xrange ( len ( self . transform_ ) ) : n += self . lengthString ( self . transform_ [ i ] . ByteSizePartial ( ) ) <EOL> if ( self . has_output_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . output_ . ByteSizePartial ( ) ) <EOL> if ( self . has_input_ ) : n += <NUM_LIT:1> + self . lengthString ( self . input_ . ByteSizePartial ( ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_image ( ) <EOL> self . clear_transform ( ) <EOL> self . clear_output ( ) <EOL> self . clear_input ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSize ( ) ) <EOL> self . image_ . OutputUnchecked ( out ) <EOL> for i in xrange ( len ( self . transform_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . transform_ [ i ] . ByteSize ( ) ) <EOL> self . transform_ [ i ] . OutputUnchecked ( out ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . output_ . ByteSize ( ) ) <EOL> self . output_ . OutputUnchecked ( out ) <EOL> if ( self . has_input_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . input_ . ByteSize ( ) ) <EOL> self . input_ . OutputUnchecked ( out ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_image_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSizePartial ( ) ) <EOL> self . image_ . OutputPartial ( out ) <EOL> for i in xrange ( len ( self . transform_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . transform_ [ i ] . ByteSizePartial ( ) ) <EOL> self . transform_ [ i ] . OutputPartial ( out ) <EOL> if ( self . has_output_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . output_ . ByteSizePartial ( ) ) <EOL> self . output_ . OutputPartial ( out ) <EOL> if ( self . has_input_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . input_ . ByteSizePartial ( ) ) <EOL> self . input_ . OutputPartial ( out ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_image ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . add_transform ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_output ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_input ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_image_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . image_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . transform_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % elm ) <EOL> res += e . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> cnt += <NUM_LIT:1> <EOL> if self . has_output_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . output_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> if self . has_input_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . input_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kimage = <NUM_LIT:1> <EOL> ktransform = <NUM_LIT:2> <EOL> koutput = <NUM_LIT:3> <EOL> kinput = <NUM_LIT:4> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:image>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT:input>" , <EOL> } , <NUM_LIT:4> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:4> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:4> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesTransformResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_image_ = <NUM_LIT:0> <EOL> has_source_metadata_ = <NUM_LIT:0> <EOL> source_metadata_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> self . image_ = ImageData ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def image ( self ) : return self . image_ <EOL> def mutable_image ( self ) : self . has_image_ = <NUM_LIT:1> ; return self . image_ <EOL> def clear_image ( self ) : self . has_image_ = <NUM_LIT:0> ; self . image_ . Clear ( ) <EOL> def has_image ( self ) : return self . has_image_ <EOL> def source_metadata ( self ) : return self . source_metadata_ <EOL> def set_source_metadata ( self , x ) : <EOL> self . has_source_metadata_ = <NUM_LIT:1> <EOL> self . source_metadata_ = x <EOL> def clear_source_metadata ( self ) : <EOL> if self . has_source_metadata_ : <EOL> self . has_source_metadata_ = <NUM_LIT:0> <EOL> self . source_metadata_ = "<STR_LIT>" <EOL> def has_source_metadata ( self ) : return self . has_source_metadata_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_image ( ) ) : self . mutable_image ( ) . MergeFrom ( x . image ( ) ) <EOL> if ( x . has_source_metadata ( ) ) : self . set_source_metadata ( x . source_metadata ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_image_ != x . has_image_ : return <NUM_LIT:0> <EOL> if self . has_image_ and self . image_ != x . image_ : return <NUM_LIT:0> <EOL> if self . has_source_metadata_ != x . has_source_metadata_ : return <NUM_LIT:0> <EOL> if self . has_source_metadata_ and self . source_metadata_ != x . source_metadata_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_image_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . image_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( self . image_ . ByteSize ( ) ) <EOL> if ( self . has_source_metadata_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . source_metadata_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_image_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . image_ . ByteSizePartial ( ) ) <EOL> if ( self . has_source_metadata_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . source_metadata_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_image ( ) <EOL> self . clear_source_metadata ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSize ( ) ) <EOL> self . image_ . OutputUnchecked ( out ) <EOL> if ( self . has_source_metadata_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . source_metadata_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_image_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSizePartial ( ) ) <EOL> self . image_ . OutputPartial ( out ) <EOL> if ( self . has_source_metadata_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . source_metadata_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_image ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_source_metadata ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_image_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . image_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> if self . has_source_metadata_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . source_metadata_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kimage = <NUM_LIT:1> <EOL> ksource_metadata = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:image>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class CompositeImageOptions ( ProtocolBuffer . ProtocolMessage ) : <EOL> TOP_LEFT = <NUM_LIT:0> <EOL> TOP = <NUM_LIT:1> <EOL> TOP_RIGHT = <NUM_LIT:2> <EOL> LEFT = <NUM_LIT:3> <EOL> CENTER = <NUM_LIT:4> <EOL> RIGHT = <NUM_LIT:5> <EOL> BOTTOM_LEFT = <NUM_LIT:6> <EOL> BOTTOM = <NUM_LIT:7> <EOL> BOTTOM_RIGHT = <NUM_LIT:8> <EOL> _ANCHOR_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> <NUM_LIT:6> : "<STR_LIT>" , <EOL> <NUM_LIT:7> : "<STR_LIT>" , <EOL> <NUM_LIT:8> : "<STR_LIT>" , <EOL> } <EOL> def ANCHOR_Name ( cls , x ) : return cls . _ANCHOR_NAMES . get ( x , "<STR_LIT>" ) <EOL> ANCHOR_Name = classmethod ( ANCHOR_Name ) <EOL> has_source_index_ = <NUM_LIT:0> <EOL> source_index_ = <NUM_LIT:0> <EOL> has_x_offset_ = <NUM_LIT:0> <EOL> x_offset_ = <NUM_LIT:0> <EOL> has_y_offset_ = <NUM_LIT:0> <EOL> y_offset_ = <NUM_LIT:0> <EOL> has_opacity_ = <NUM_LIT:0> <EOL> opacity_ = <NUM_LIT:0.0> <EOL> has_anchor_ = <NUM_LIT:0> <EOL> anchor_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def source_index ( self ) : return self . source_index_ <EOL> def set_source_index ( self , x ) : <EOL> self . has_source_index_ = <NUM_LIT:1> <EOL> self . source_index_ = x <EOL> def clear_source_index ( self ) : <EOL> if self . has_source_index_ : <EOL> self . has_source_index_ = <NUM_LIT:0> <EOL> self . source_index_ = <NUM_LIT:0> <EOL> def has_source_index ( self ) : return self . has_source_index_ <EOL> def x_offset ( self ) : return self . x_offset_ <EOL> def set_x_offset ( self , x ) : <EOL> self . has_x_offset_ = <NUM_LIT:1> <EOL> self . x_offset_ = x <EOL> def clear_x_offset ( self ) : <EOL> if self . has_x_offset_ : <EOL> self . has_x_offset_ = <NUM_LIT:0> <EOL> self . x_offset_ = <NUM_LIT:0> <EOL> def has_x_offset ( self ) : return self . has_x_offset_ <EOL> def y_offset ( self ) : return self . y_offset_ <EOL> def set_y_offset ( self , x ) : <EOL> self . has_y_offset_ = <NUM_LIT:1> <EOL> self . y_offset_ = x <EOL> def clear_y_offset ( self ) : <EOL> if self . has_y_offset_ : <EOL> self . has_y_offset_ = <NUM_LIT:0> <EOL> self . y_offset_ = <NUM_LIT:0> <EOL> def has_y_offset ( self ) : return self . has_y_offset_ <EOL> def opacity ( self ) : return self . opacity_ <EOL> def set_opacity ( self , x ) : <EOL> self . has_opacity_ = <NUM_LIT:1> <EOL> self . opacity_ = x <EOL> def clear_opacity ( self ) : <EOL> if self . has_opacity_ : <EOL> self . has_opacity_ = <NUM_LIT:0> <EOL> self . opacity_ = <NUM_LIT:0.0> <EOL> def has_opacity ( self ) : return self . has_opacity_ <EOL> def anchor ( self ) : return self . anchor_ <EOL> def set_anchor ( self , x ) : <EOL> self . has_anchor_ = <NUM_LIT:1> <EOL> self . anchor_ = x <EOL> def clear_anchor ( self ) : <EOL> if self . has_anchor_ : <EOL> self . has_anchor_ = <NUM_LIT:0> <EOL> self . anchor_ = <NUM_LIT:0> <EOL> def has_anchor ( self ) : return self . has_anchor_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_source_index ( ) ) : self . set_source_index ( x . source_index ( ) ) <EOL> if ( x . has_x_offset ( ) ) : self . set_x_offset ( x . x_offset ( ) ) <EOL> if ( x . has_y_offset ( ) ) : self . set_y_offset ( x . y_offset ( ) ) <EOL> if ( x . has_opacity ( ) ) : self . set_opacity ( x . opacity ( ) ) <EOL> if ( x . has_anchor ( ) ) : self . set_anchor ( x . anchor ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_source_index_ != x . has_source_index_ : return <NUM_LIT:0> <EOL> if self . has_source_index_ and self . source_index_ != x . source_index_ : return <NUM_LIT:0> <EOL> if self . has_x_offset_ != x . has_x_offset_ : return <NUM_LIT:0> <EOL> if self . has_x_offset_ and self . x_offset_ != x . x_offset_ : return <NUM_LIT:0> <EOL> if self . has_y_offset_ != x . has_y_offset_ : return <NUM_LIT:0> <EOL> if self . has_y_offset_ and self . y_offset_ != x . y_offset_ : return <NUM_LIT:0> <EOL> if self . has_opacity_ != x . has_opacity_ : return <NUM_LIT:0> <EOL> if self . has_opacity_ and self . opacity_ != x . opacity_ : return <NUM_LIT:0> <EOL> if self . has_anchor_ != x . has_anchor_ : return <NUM_LIT:0> <EOL> if self . has_anchor_ and self . anchor_ != x . anchor_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_source_index_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_x_offset_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_y_offset_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_opacity_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_anchor_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthVarInt64 ( self . source_index_ ) <EOL> n += self . lengthVarInt64 ( self . x_offset_ ) <EOL> n += self . lengthVarInt64 ( self . y_offset_ ) <EOL> n += self . lengthVarInt64 ( self . anchor_ ) <EOL> return n + <NUM_LIT:9> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_source_index_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . source_index_ ) <EOL> if ( self . has_x_offset_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . x_offset_ ) <EOL> if ( self . has_y_offset_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . y_offset_ ) <EOL> if ( self . has_opacity_ ) : <EOL> n += <NUM_LIT:5> <EOL> if ( self . has_anchor_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . anchor_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_source_index ( ) <EOL> self . clear_x_offset ( ) <EOL> self . clear_y_offset ( ) <EOL> self . clear_opacity ( ) <EOL> self . clear_anchor ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . source_index_ ) <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . x_offset_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . y_offset_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . opacity_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . anchor_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_source_index_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . source_index_ ) <EOL> if ( self . has_x_offset_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . x_offset_ ) <EOL> if ( self . has_y_offset_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . y_offset_ ) <EOL> if ( self . has_opacity_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putFloat ( self . opacity_ ) <EOL> if ( self . has_anchor_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . anchor_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_source_index ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_x_offset ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_y_offset ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_opacity ( d . getFloat ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_anchor ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_source_index_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . source_index_ ) ) <EOL> if self . has_x_offset_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . x_offset_ ) ) <EOL> if self . has_y_offset_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . y_offset_ ) ) <EOL> if self . has_opacity_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatFloat ( self . opacity_ ) ) <EOL> if self . has_anchor_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . anchor_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> ksource_index = <NUM_LIT:1> <EOL> kx_offset = <NUM_LIT:2> <EOL> ky_offset = <NUM_LIT:3> <EOL> kopacity = <NUM_LIT:4> <EOL> kanchor = <NUM_LIT:5> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> } , <NUM_LIT:5> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:4> : ProtocolBuffer . Encoder . FLOAT , <EOL> <NUM_LIT:5> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:5> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesCanvas ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_width_ = <NUM_LIT:0> <EOL> width_ = <NUM_LIT:0> <EOL> has_height_ = <NUM_LIT:0> <EOL> height_ = <NUM_LIT:0> <EOL> has_output_ = <NUM_LIT:0> <EOL> has_color_ = <NUM_LIT:0> <EOL> color_ = - <NUM_LIT:1> <EOL> def __init__ ( self , contents = None ) : <EOL> self . output_ = OutputSettings ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def width ( self ) : return self . width_ <EOL> def set_width ( self , x ) : <EOL> self . has_width_ = <NUM_LIT:1> <EOL> self . width_ = x <EOL> def clear_width ( self ) : <EOL> if self . has_width_ : <EOL> self . has_width_ = <NUM_LIT:0> <EOL> self . width_ = <NUM_LIT:0> <EOL> def has_width ( self ) : return self . has_width_ <EOL> def height ( self ) : return self . height_ <EOL> def set_height ( self , x ) : <EOL> self . has_height_ = <NUM_LIT:1> <EOL> self . height_ = x <EOL> def clear_height ( self ) : <EOL> if self . has_height_ : <EOL> self . has_height_ = <NUM_LIT:0> <EOL> self . height_ = <NUM_LIT:0> <EOL> def has_height ( self ) : return self . has_height_ <EOL> def output ( self ) : return self . output_ <EOL> def mutable_output ( self ) : self . has_output_ = <NUM_LIT:1> ; return self . output_ <EOL> def clear_output ( self ) : self . has_output_ = <NUM_LIT:0> ; self . output_ . Clear ( ) <EOL> def has_output ( self ) : return self . has_output_ <EOL> def color ( self ) : return self . color_ <EOL> def set_color ( self , x ) : <EOL> self . has_color_ = <NUM_LIT:1> <EOL> self . color_ = x <EOL> def clear_color ( self ) : <EOL> if self . has_color_ : <EOL> self . has_color_ = <NUM_LIT:0> <EOL> self . color_ = - <NUM_LIT:1> <EOL> def has_color ( self ) : return self . has_color_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_width ( ) ) : self . set_width ( x . width ( ) ) <EOL> if ( x . has_height ( ) ) : self . set_height ( x . height ( ) ) <EOL> if ( x . has_output ( ) ) : self . mutable_output ( ) . MergeFrom ( x . output ( ) ) <EOL> if ( x . has_color ( ) ) : self . set_color ( x . color ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_width_ != x . has_width_ : return <NUM_LIT:0> <EOL> if self . has_width_ and self . width_ != x . width_ : return <NUM_LIT:0> <EOL> if self . has_height_ != x . has_height_ : return <NUM_LIT:0> <EOL> if self . has_height_ and self . height_ != x . height_ : return <NUM_LIT:0> <EOL> if self . has_output_ != x . has_output_ : return <NUM_LIT:0> <EOL> if self . has_output_ and self . output_ != x . output_ : return <NUM_LIT:0> <EOL> if self . has_color_ != x . has_color_ : return <NUM_LIT:0> <EOL> if self . has_color_ and self . color_ != x . color_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_width_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_height_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_output_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . output_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthVarInt64 ( self . width_ ) <EOL> n += self . lengthVarInt64 ( self . height_ ) <EOL> n += self . lengthString ( self . output_ . ByteSize ( ) ) <EOL> if ( self . has_color_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . color_ ) <EOL> return n + <NUM_LIT:3> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_width_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . width_ ) <EOL> if ( self . has_height_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . height_ ) <EOL> if ( self . has_output_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . output_ . ByteSizePartial ( ) ) <EOL> if ( self . has_color_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . color_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_width ( ) <EOL> self . clear_height ( ) <EOL> self . clear_output ( ) <EOL> self . clear_color ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . width_ ) <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . height_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . output_ . ByteSize ( ) ) <EOL> self . output_ . OutputUnchecked ( out ) <EOL> if ( self . has_color_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:32> ) <EOL> out . putVarInt32 ( self . color_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_width_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . width_ ) <EOL> if ( self . has_height_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . height_ ) <EOL> if ( self . has_output_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . output_ . ByteSizePartial ( ) ) <EOL> self . output_ . OutputPartial ( out ) <EOL> if ( self . has_color_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:32> ) <EOL> out . putVarInt32 ( self . color_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_width ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_height ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_output ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT:32> : <EOL> self . set_color ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_width_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . width_ ) ) <EOL> if self . has_height_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . height_ ) ) <EOL> if self . has_output_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . output_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> if self . has_color_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . color_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kwidth = <NUM_LIT:1> <EOL> kheight = <NUM_LIT:2> <EOL> koutput = <NUM_LIT:3> <EOL> kcolor = <NUM_LIT:4> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:width>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> } , <NUM_LIT:4> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:4> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:4> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesCompositeRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_canvas_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> self . image_ = [ ] <EOL> self . options_ = [ ] <EOL> self . canvas_ = ImagesCanvas ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def image_size ( self ) : return len ( self . image_ ) <EOL> def image_list ( self ) : return self . image_ <EOL> def image ( self , i ) : <EOL> return self . image_ [ i ] <EOL> def mutable_image ( self , i ) : <EOL> return self . image_ [ i ] <EOL> def add_image ( self ) : <EOL> x = ImageData ( ) <EOL> self . image_ . append ( x ) <EOL> return x <EOL> def clear_image ( self ) : <EOL> self . image_ = [ ] <EOL> def options_size ( self ) : return len ( self . options_ ) <EOL> def options_list ( self ) : return self . options_ <EOL> def options ( self , i ) : <EOL> return self . options_ [ i ] <EOL> def mutable_options ( self , i ) : <EOL> return self . options_ [ i ] <EOL> def add_options ( self ) : <EOL> x = CompositeImageOptions ( ) <EOL> self . options_ . append ( x ) <EOL> return x <EOL> def clear_options ( self ) : <EOL> self . options_ = [ ] <EOL> def canvas ( self ) : return self . canvas_ <EOL> def mutable_canvas ( self ) : self . has_canvas_ = <NUM_LIT:1> ; return self . canvas_ <EOL> def clear_canvas ( self ) : self . has_canvas_ = <NUM_LIT:0> ; self . canvas_ . Clear ( ) <EOL> def has_canvas ( self ) : return self . has_canvas_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . image_size ( ) ) : self . add_image ( ) . CopyFrom ( x . image ( i ) ) <EOL> for i in xrange ( x . options_size ( ) ) : self . add_options ( ) . CopyFrom ( x . options ( i ) ) <EOL> if ( x . has_canvas ( ) ) : self . mutable_canvas ( ) . MergeFrom ( x . canvas ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . image_ ) != len ( x . image_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . image_ , x . image_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if len ( self . options_ ) != len ( x . options_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . options_ , x . options_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if self . has_canvas_ != x . has_canvas_ : return <NUM_LIT:0> <EOL> if self . has_canvas_ and self . canvas_ != x . canvas_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> for p in self . image_ : <EOL> if not p . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> for p in self . options_ : <EOL> if not p . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> if ( not self . has_canvas_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . canvas_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . image_ ) <EOL> for i in xrange ( len ( self . image_ ) ) : n += self . lengthString ( self . image_ [ i ] . ByteSize ( ) ) <EOL> n += <NUM_LIT:1> * len ( self . options_ ) <EOL> for i in xrange ( len ( self . options_ ) ) : n += self . lengthString ( self . options_ [ i ] . ByteSize ( ) ) <EOL> n += self . lengthString ( self . canvas_ . ByteSize ( ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . image_ ) <EOL> for i in xrange ( len ( self . image_ ) ) : n += self . lengthString ( self . image_ [ i ] . ByteSizePartial ( ) ) <EOL> n += <NUM_LIT:1> * len ( self . options_ ) <EOL> for i in xrange ( len ( self . options_ ) ) : n += self . lengthString ( self . options_ [ i ] . ByteSizePartial ( ) ) <EOL> if ( self . has_canvas_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . canvas_ . ByteSizePartial ( ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_image ( ) <EOL> self . clear_options ( ) <EOL> self . clear_canvas ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . image_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ [ i ] . ByteSize ( ) ) <EOL> self . image_ [ i ] . OutputUnchecked ( out ) <EOL> for i in xrange ( len ( self . options_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . options_ [ i ] . ByteSize ( ) ) <EOL> self . options_ [ i ] . OutputUnchecked ( out ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . canvas_ . ByteSize ( ) ) <EOL> self . canvas_ . OutputUnchecked ( out ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . image_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ [ i ] . ByteSizePartial ( ) ) <EOL> self . image_ [ i ] . OutputPartial ( out ) <EOL> for i in xrange ( len ( self . options_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . options_ [ i ] . ByteSizePartial ( ) ) <EOL> self . options_ [ i ] . OutputPartial ( out ) <EOL> if ( self . has_canvas_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . canvas_ . ByteSizePartial ( ) ) <EOL> self . canvas_ . OutputPartial ( out ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . add_image ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . add_options ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_canvas ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . image_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % elm ) <EOL> res += e . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> cnt += <NUM_LIT:1> <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . options_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % elm ) <EOL> res += e . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> cnt += <NUM_LIT:1> <EOL> if self . has_canvas_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . canvas_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kimage = <NUM_LIT:1> <EOL> koptions = <NUM_LIT:2> <EOL> kcanvas = <NUM_LIT:3> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:image>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> } , <NUM_LIT:3> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:3> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesCompositeResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_image_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> self . image_ = ImageData ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def image ( self ) : return self . image_ <EOL> def mutable_image ( self ) : self . has_image_ = <NUM_LIT:1> ; return self . image_ <EOL> def clear_image ( self ) : self . has_image_ = <NUM_LIT:0> ; self . image_ . Clear ( ) <EOL> def has_image ( self ) : return self . has_image_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_image ( ) ) : self . mutable_image ( ) . MergeFrom ( x . image ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_image_ != x . has_image_ : return <NUM_LIT:0> <EOL> if self . has_image_ and self . image_ != x . image_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_image_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . image_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( self . image_ . ByteSize ( ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_image_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . image_ . ByteSizePartial ( ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_image ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSize ( ) ) <EOL> self . image_ . OutputUnchecked ( out ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_image_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSizePartial ( ) ) <EOL> self . image_ . OutputPartial ( out ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_image ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_image_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . image_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kimage = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:image>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesHistogramRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_image_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> self . image_ = ImageData ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def image ( self ) : return self . image_ <EOL> def mutable_image ( self ) : self . has_image_ = <NUM_LIT:1> ; return self . image_ <EOL> def clear_image ( self ) : self . has_image_ = <NUM_LIT:0> ; self . image_ . Clear ( ) <EOL> def has_image ( self ) : return self . has_image_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_image ( ) ) : self . mutable_image ( ) . MergeFrom ( x . image ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_image_ != x . has_image_ : return <NUM_LIT:0> <EOL> if self . has_image_ and self . image_ != x . image_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_image_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . image_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( self . image_ . ByteSize ( ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_image_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . image_ . ByteSizePartial ( ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_image ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSize ( ) ) <EOL> self . image_ . OutputUnchecked ( out ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_image_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . image_ . ByteSizePartial ( ) ) <EOL> self . image_ . OutputPartial ( out ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_image ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_image_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . image_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kimage = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:image>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesHistogram ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> self . red_ = [ ] <EOL> self . green_ = [ ] <EOL> self . blue_ = [ ] <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def red_size ( self ) : return len ( self . red_ ) <EOL> def red_list ( self ) : return self . red_ <EOL> def red ( self , i ) : <EOL> return self . red_ [ i ] <EOL> def set_red ( self , i , x ) : <EOL> self . red_ [ i ] = x <EOL> def add_red ( self , x ) : <EOL> self . red_ . append ( x ) <EOL> def clear_red ( self ) : <EOL> self . red_ = [ ] <EOL> def green_size ( self ) : return len ( self . green_ ) <EOL> def green_list ( self ) : return self . green_ <EOL> def green ( self , i ) : <EOL> return self . green_ [ i ] <EOL> def set_green ( self , i , x ) : <EOL> self . green_ [ i ] = x <EOL> def add_green ( self , x ) : <EOL> self . green_ . append ( x ) <EOL> def clear_green ( self ) : <EOL> self . green_ = [ ] <EOL> def blue_size ( self ) : return len ( self . blue_ ) <EOL> def blue_list ( self ) : return self . blue_ <EOL> def blue ( self , i ) : <EOL> return self . blue_ [ i ] <EOL> def set_blue ( self , i , x ) : <EOL> self . blue_ [ i ] = x <EOL> def add_blue ( self , x ) : <EOL> self . blue_ . append ( x ) <EOL> def clear_blue ( self ) : <EOL> self . blue_ = [ ] <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . red_size ( ) ) : self . add_red ( x . red ( i ) ) <EOL> for i in xrange ( x . green_size ( ) ) : self . add_green ( x . green ( i ) ) <EOL> for i in xrange ( x . blue_size ( ) ) : self . add_blue ( x . blue ( i ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . red_ ) != len ( x . red_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . red_ , x . red_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if len ( self . green_ ) != len ( x . green_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . green_ , x . green_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if len ( self . blue_ ) != len ( x . blue_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . blue_ , x . blue_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . red_ ) <EOL> for i in xrange ( len ( self . red_ ) ) : n += self . lengthVarInt64 ( self . red_ [ i ] ) <EOL> n += <NUM_LIT:1> * len ( self . green_ ) <EOL> for i in xrange ( len ( self . green_ ) ) : n += self . lengthVarInt64 ( self . green_ [ i ] ) <EOL> n += <NUM_LIT:1> * len ( self . blue_ ) <EOL> for i in xrange ( len ( self . blue_ ) ) : n += self . lengthVarInt64 ( self . blue_ [ i ] ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . red_ ) <EOL> for i in xrange ( len ( self . red_ ) ) : n += self . lengthVarInt64 ( self . red_ [ i ] ) <EOL> n += <NUM_LIT:1> * len ( self . green_ ) <EOL> for i in xrange ( len ( self . green_ ) ) : n += self . lengthVarInt64 ( self . green_ [ i ] ) <EOL> n += <NUM_LIT:1> * len ( self . blue_ ) <EOL> for i in xrange ( len ( self . blue_ ) ) : n += self . lengthVarInt64 ( self . blue_ [ i ] ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_red ( ) <EOL> self . clear_green ( ) <EOL> self . clear_blue ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . red_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . red_ [ i ] ) <EOL> for i in xrange ( len ( self . green_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . green_ [ i ] ) <EOL> for i in xrange ( len ( self . blue_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . blue_ [ i ] ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . red_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . red_ [ i ] ) <EOL> for i in xrange ( len ( self . green_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . green_ [ i ] ) <EOL> for i in xrange ( len ( self . blue_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt32 ( self . blue_ [ i ] ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . add_red ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . add_green ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . add_blue ( d . getVarInt32 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . red_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatInt32 ( e ) ) ) <EOL> cnt += <NUM_LIT:1> <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . green_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatInt32 ( e ) ) ) <EOL> cnt += <NUM_LIT:1> <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . blue_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatInt32 ( e ) ) ) <EOL> cnt += <NUM_LIT:1> <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kred = <NUM_LIT:1> <EOL> kgreen = <NUM_LIT:2> <EOL> kblue = <NUM_LIT:3> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> } , <NUM_LIT:3> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:3> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesHistogramResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_histogram_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> self . histogram_ = ImagesHistogram ( ) <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def histogram ( self ) : return self . histogram_ <EOL> def mutable_histogram ( self ) : self . has_histogram_ = <NUM_LIT:1> ; return self . histogram_ <EOL> def clear_histogram ( self ) : self . has_histogram_ = <NUM_LIT:0> ; self . histogram_ . Clear ( ) <EOL> def has_histogram ( self ) : return self . has_histogram_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_histogram ( ) ) : self . mutable_histogram ( ) . MergeFrom ( x . histogram ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_histogram_ != x . has_histogram_ : return <NUM_LIT:0> <EOL> if self . has_histogram_ and self . histogram_ != x . histogram_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_histogram_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> elif not self . histogram_ . IsInitialized ( debug_strs ) : initialized = <NUM_LIT:0> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( self . histogram_ . ByteSize ( ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_histogram_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( self . histogram_ . ByteSizePartial ( ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_histogram ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . histogram_ . ByteSize ( ) ) <EOL> self . histogram_ . OutputUnchecked ( out ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_histogram_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putVarInt32 ( self . histogram_ . ByteSizePartial ( ) ) <EOL> self . histogram_ . OutputPartial ( out ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> length = d . getVarInt32 ( ) <EOL> tmp = ProtocolBuffer . Decoder ( d . buffer ( ) , d . pos ( ) , d . pos ( ) + length ) <EOL> d . skip ( length ) <EOL> self . mutable_histogram ( ) . TryMerge ( tmp ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_histogram_ : <EOL> res += prefix + "<STR_LIT>" <EOL> res += self . histogram_ . __str__ ( prefix + "<STR_LIT:U+0020>" , printElemNumber ) <EOL> res += prefix + "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> khistogram = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesGetUrlBaseRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_blob_key_ = <NUM_LIT:0> <EOL> blob_key_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def blob_key ( self ) : return self . blob_key_ <EOL> def set_blob_key ( self , x ) : <EOL> self . has_blob_key_ = <NUM_LIT:1> <EOL> self . blob_key_ = x <EOL> def clear_blob_key ( self ) : <EOL> if self . has_blob_key_ : <EOL> self . has_blob_key_ = <NUM_LIT:0> <EOL> self . blob_key_ = "<STR_LIT>" <EOL> def has_blob_key ( self ) : return self . has_blob_key_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_blob_key ( ) ) : self . set_blob_key ( x . blob_key ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_blob_key_ != x . has_blob_key_ : return <NUM_LIT:0> <EOL> if self . has_blob_key_ and self . blob_key_ != x . blob_key_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_blob_key_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . blob_key_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_blob_key_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . blob_key_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_blob_key ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . blob_key_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_blob_key_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . blob_key_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_blob_key ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_blob_key_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . blob_key_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kblob_key = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class ImagesGetUrlBaseResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_url_ = <NUM_LIT:0> <EOL> url_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def url ( self ) : return self . url_ <EOL> def set_url ( self , x ) : <EOL> self . has_url_ = <NUM_LIT:1> <EOL> self . url_ = x <EOL> def clear_url ( self ) : <EOL> if self . has_url_ : <EOL> self . has_url_ = <NUM_LIT:0> <EOL> self . url_ = "<STR_LIT>" <EOL> def has_url ( self ) : return self . has_url_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_url ( ) ) : self . set_url ( x . url ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_url_ != x . has_url_ : return <NUM_LIT:0> <EOL> if self . has_url_ and self . url_ != x . url_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_url_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . url_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_url_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . url_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_url ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . url_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_url_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . url_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_url ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_url_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . url_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kurl = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:url>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> if _extension_runtime : <EOL> pass <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] </s>
