def _add_billed_ops_to_map(billed_ops_dict, billed_ops_list):
 for billed_op in billed_ops_list:
  if (billed_op.op() not in billed_ops_dict):
   update_me = datamodel_pb.BilledOpProto()
   update_me.set_op(billed_op.op())
   update_me.set_num_ops(0)
   billed_ops_dict[billed_op.op()] = update_me
  update_me = billed_ops_dict[billed_op.op()]
  update_me.set_num_ops((update_me.num_ops() + billed_op.num_ops()))

def _add_billed_ops_to_map ( billed_ops_dict , billed_ops_list ) : for billed_op in billed_ops_list : if ( billed_op . op ( ) not in billed_ops_dict ) : update_me = datamodel_pb . BilledOpProto ( ) update_me . set_op ( billed_op . op ( ) ) update_me . set_num_ops ( 0 ) billed_ops_dict [ billed_op . op ( ) ] = update_me update_me = billed_ops_dict [ billed_op . op ( ) ] update_me . set_num_ops ( ( update_me . num_ops ( ) + billed_op . num_ops ( ) ) )
adds the billedopproto objects to the given map .