#NEWLINE# def ByteSizePartial( self ) : #NEWLINE# #INDENT# n = 0 #NEWLINE# if self . has_image_ : #NEWLINE# #INDENT# n += 1 #NEWLINE# n += self . lengthString ( self . image_ . ByteSizePartial ( ) ) #NEWLINE# #UNINDENT# n += ( 1 * len ( self . transform_ ) ) #NEWLINE# for i in xrange ( len ( self . transform_ ) ) : #NEWLINE# #INDENT# n += self . lengthString ( self . transform_ [ i ] . ByteSizePartial ( ) ) #NEWLINE# #UNINDENT# if self . has_output_ : #NEWLINE# #INDENT# n += 1 #NEWLINE# n += self . lengthString ( self . output_ . ByteSizePartial ( ) ) #NEWLINE# #UNINDENT# if self . has_input_ : #NEWLINE# #INDENT# n += ( 1 + self . lengthString ( self . input_ . ByteSizePartial ( ) ) ) #NEWLINE# #UNINDENT# return n