#NEWLINE# def ByteSizePartial( self ) : #NEWLINE# #INDENT# n = 0 #NEWLINE# if self . has_id_ : #NEWLINE# #INDENT# n += 1 #NEWLINE# n += self . lengthString ( len ( self . id_ ) ) #NEWLINE# #UNINDENT# if self . has_vanilla_query_ : #NEWLINE# #INDENT# n += 1 #NEWLINE# n += self . lengthString ( len ( self . vanilla_query_ ) ) #NEWLINE# #UNINDENT# if self . has_expiration_time_sec_ : #NEWLINE# #INDENT# n += 9 #NEWLINE# #UNINDENT# if self . has_state_ : #NEWLINE# #INDENT# n += 1 #NEWLINE# n += self . lengthVarInt64 ( self . state_ ) #NEWLINE# #UNINDENT# if self . has_error_message_ : #NEWLINE# #INDENT# n += ( 1 + self . lengthString ( len ( self . error_message_ ) ) ) #NEWLINE# #UNINDENT# return n