<s> import base_object <EOL> import update_object_pb2 <EOL> class UpdateObject ( base_object . BaseObject ) : <EOL> data_members = [ "<STR_LIT>" , "<STR_LIT:data>" ] <EOL> def __init__ ( self , parents , data ) : <EOL> self . parents = parents <EOL> self . data = data <EOL> self . _sha1 = None <EOL> @ staticmethod <EOL> def from_object ( obj ) : <EOL> """<STR_LIT>""" <EOL> protobuf = update_object_pb2 . UpdateObject ( ) <EOL> protobuf . ParseFromString ( obj ) <EOL> return UpdateObject ( protobuf . parents , protobuf . data ) <EOL> def as_object ( self ) : <EOL> """<STR_LIT>""" <EOL> protobuf = update_object_pb2 . UpdateObject ( ) <EOL> protobuf . parents . extend ( self . parents ) <EOL> protobuf . data = self . data <EOL> return protobuf . SerializeToString ( ) </s>
